function textfile_slot_22() /* entry=468 class_id=0x0A16 slot=0x22 */
{
  set_info(0x0001, *(arg_06));
  FREE.slot_34(arg_0C, arg_0A);
  if (!retval) {
    if (Item.getMapNum(arg_06) == 0) {
      if (Item.getFrame(arg_06) == 0) {
        spawn ITEM.slot_2A(pid, 0, 0, arg_06);
        suspend;
        return;
      }
      else if (Item.getFrame(arg_06) == 1) {
        spawn ITEM.slot_2A(pid, 0, 0, arg_06);
        suspend;
        return;
      }
    }
  }
  return;
}
