function npc_slot_23() /* entry=461 class_id=0x0A0F slot=0x23 */
{
  set_info(0x020A, *(arg_06));
  if (*(arg_06) == 1) {
    /* global_address global_id=0x1E */
  }
  for local_02 in nearby_items(shape=0x0616, origin=arg_06) {
    if (Item.getFrame(local_02) == 1) {
      local_09 = 1;
      local_06 = local_02;
    }
    /* loopnext  */
  }
  for local_02 in nearby_items(shape=0x01DB, origin=arg_06) {
    local_04 = local_02;
    /* loopnext  */
  }
  /* loopscr value_u8=0x24 */
  /* loopscr value_u8=0x44 */
  /* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
  while (!condition) {
    if (Item.getShape(local_02) == 0x018E) {
      if (Item.getFrame(local_02)) {
        local_08 = 1;
      }
    }
    else if (!Item.getFrame(local_02)) {
      local_08 = 1;
    }
    /* loopnext  */
  }
  spawn FREE.slot_3B(pid, 60, 0x00000000);
  suspend;
  /* global_address global_id=0x1E */
  if (local_08) {
    suspend;
  }
  else {
    suspend;
  }
  if (*(arg_06) == 1) {
    /* global_address global_id=0x1E */
  }
  if (!local_09) {
    spawn FREE.slot_3B(pid, 20, 0x00000000);
    suspend;
    spawn FREE.slot_3B(pid, 20, 0x00000000);
    suspend;
    spawn FREE.slot_3B(pid, 20, 0x00000000);
    suspend;
    while (Actor.isDead(arg_06)) {
      spawn FREE.slot_3B(pid, 2, 0x00000000);
      suspend;
    }
  }
  return;
}
