function npc_slot_24() /* entry=387 class_id=0x0A11 slot=0x24 */
{
  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));
  if (global[0x003C] == *(arg_06)) {
    /* global_address global_id=0x3C */
    /* global_address global_id=0x3C */
    while (!Actor.isBusy()) {
      spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
      suspend;
    }
    /* global_address global_id=0x3C */
    if (!Actor.getSomeFlagProbablyCrouch()) {
      /* global_address global_id=0x3C */
      /* global_address global_id=0x3C */
      suspend;
    }
  }
  for item in selector_0x42(arg0=0x01DB, arg1=0x043D, arg2=(5 * 32), origin=arg_06) {
    pad = item;
    /* loopnext  */
  }
  if (!pad) {
    if (Item.getFrame(pad) == 1) {
      /* global_address global_id=0x3C */
      suspend;
      suspend;
      spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
      suspend;
      /* global_address global_id=0x3C */
      suspend;
    }
    else {
      /* global_address global_id=0x3C */
      suspend;
      suspend;
      spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
      suspend;
      /* global_address global_id=0x3C */
      suspend;
    }
    /* global_address global_id=0x3C */
    if (!AudioProcess.isSFXPlayingForObject(52)) {
      spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
      suspend;
    }
    spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
    suspend;
  }
  return;
}
