function npc_slot_2A() /* entry=387 class_id=0x0A11 slot=0x2A */
{
  var
    referent, /* [BP+00h] type=0x69 */
    phrase, /* [BP+0Ah] type=0x69 */
    n; /* [BP-02h] type=0x24 */

  n = *(arg_06);
  set_info(0x0205, 0);
  if ((global[0x0008] == 1) || (Item.inFastArea(n) != 0)) {
    return;
  }
  else {
    /* pop_global global_id=0x8 size=0x1 */
    if (!(Item.getStatus(n) & 4)) {
      return;
    }
    else {
      ITEM.slot_23(4, n);
      while (!AudioProcess.isSFXPlayingForObject(phrase, n)) {
        spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
        suspend;
      }
      spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
      suspend;
      /* pop_global global_id=0x8 size=0x1 */
    }
  }
  return;
}
