function pepsins_use() /* entry=30 class_id=0x009A slot=0x01 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    item, /* [BP-02h] type=0x24 */
    x, /* [BP-04h] type=0x69 */
    y, /* [BP-06h] type=0x69 */
    z, /* [BP-08h] type=0x69 */
    wp; /* [BP-0Dh] type=0x24 */

  set_info(0x0207, *(arg_06));
  process_exclude();
  x = 0;
  y = 1;
  wp = Item.getX(arg_06);
  local_0B = (Item.getY(arg_06) + 32);
  local_09 = (Item.getZ(arg_06) + 32);
  if (UCMachine.rndRange(100, 0) <= 50) {
    if (!Item.legalCreateAtPoint(wp, 0, 0x0343, item)) {
      suspend;
      /* loop_selector item in nearby_items(shape=SMALL_BOX_PROP, origin=global[0x003C]) */
      while (!condition) {
        if (!(Item.getStatus(item) & 0x0080)) {
          spawn ITEM.slot_28(pid, 1, 0, item);
          suspend;
        }
        /* loopnext  */
      }
    }
    return;
  }
  else if (!Item.legalCreateAtPoint(wp, 0, 0x0579, item)) {
    suspend;
  }
  return;
}
