function npc_slot_2F() /* entry=461 class_id=0x0A0F slot=0x2F */
{
  set_info(0x020A, *(arg_06));
  if (*(arg_06) <= 0x0100) {
    return;
  }
  else if (*(arg_06) == 1) {
    if (global[0x0004] == 1) {
      return;
    }
    local_02 = Actor.getLastAnimSet(arg_06);
    spawn NPC.slot_30(arg_06);
    return;
  }
  else if (*(arg_06) == World.getControlledNPCNum()) {
    NPC.slot_2A(arg_06);
    if ((retval == 0) && (Item.isEntirelyOnScreen(arg_06) != 1)) {
      local_04 = UCMachine.rndRange(1, 0);
      if (local_04 == 0) {
      }
      else if (local_04 == 1) {
      }
      spawn FREE.slot_3B(pid, 20, 0x00000000);
      suspend;
    }
    return;
  }
  return;
}
