function npc_slot_23() /* entry=387 class_id=0x0A11 slot=0x23 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    item, /* [BP-02h] type=0x24 */
    pad, /* [BP-04h] type=0x24 */
    padDir; /* [BP-06h] type=0x69 */

  set_info(0x020A, *(arg_06));
  /* global_address global_id=0x3C */
  if (Actor.getMap((*(arg_06) == 1)) != 40) {
    /* global_address global_id=0x3C */
  }
  /* loopscr value_u8=0x24 */
  /* loopscr value_u8=0x42 */
  /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
  while (!condition) {
    pad = item;
    /* loopnext  */
  }
  /* loopscr value_u8=0x24 */
  /* loopscr value_u8=0x44 */
  /* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
  while (!condition) {
    if (Item.getShape(item) == 0x018E) {
      if (Item.getFrame(item)) {
        padDir = 1;
      }
    }
    else if (!Item.getFrame(item)) {
      padDir = 1;
    }
    /* loopnext  */
  }
  spawn class_0A0C_slot_32(pid, 60, 0x00000000);
  suspend;
  /* global_address global_id=0x3C */
  if (padDir) {
    suspend;
  }
  else {
    suspend;
  }
  /* global_address global_id=0x3C */
  if (!AudioProcess.isSFXPlayingForObject(48)) {
    spawn class_0A0C_slot_32(pid, 2, 0x00000000);
    suspend;
  }
  if (*(arg_06) == 1) {
    /* global_address global_id=0x3C */
  }
  return;
}
