function miss9_slot_20() /* entry=361 class_id=0x0915 slot=0x20 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    target, /* [BP-02h] type=0x24 */
    station, /* [BP-04h] type=0x24 */
    screen, /* [BP-06h] type=0x24 */
    item, /* [BP-08h] type=0x24 */
    counter; /* [BP-0Ah] type=0x69 */

  set_info(0x0001, *(arg_06));
  /* pop_global global_id=0x28 size=0x1 */
  /* global_address global_id=0x3C */
  while (!Actor.isBusy()) {
    spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
    suspend;
  }
  /* global_address global_id=0x3C */
  /* global_address global_id=0x3C */
  suspend;
  /* loop_selector item in nearby_items(shape=0x04C6, origin=arg_06) */
  while (!condition) {
    station = item;
    /* loopnext  */
  }
  for item in nearby_items(shape=0x037A, origin=arg_06) {
    if (Item.getQLo(item) == 99) {
      screen = item;
    }
    /* loopnext  */
  }
  for item in nearby_items(shape=0x053A, origin=arg_06) {
    target = item;
    /* loopnext  */
  }
  if (!target) {
    for item in nearby_items(shape=15, origin=arg_06) {
      /* loopnext  */
    }
    FREE.slot_29(*(arg_06), global[0x003C]);
    while ((retval > 2) && (counter == 6)) {
      /* global_address global_id=0x3C */
      /* global_address global_id=0x3C */
      /* global_address global_id=0x3C */
      spawn NPC.slot_22(Item.getDirFromTo16(Item.getX(pid, 1, Item.getY(Item.getY(arg_06), Item.getX(arg_06)))));
      suspend;
      counter = (1 + counter);
    }
    /* global_address global_id=0x3C */
    /* global_address global_id=0x3C */
    suspend;
    spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
    suspend;
    spawn FREE.slot_3D(pid, Item.getY(target), Item.getX(target), 0x00000000);
    suspend;
    spawn FREE.waitNTimerTicks(pid, 100, 0x00000000);
    suspend;
    /* str_to_ptr  */
    /* free_stack_string value_u8=0x4 target=[SP+04h] */
    suspend;
    spawn FREE.waitNTimerTicks(pid, 100, 0x00000000);
    suspend;
    spawn FREE.slot_3E(pid, 0x00000000);
    suspend;
    spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
    suspend;
    spawn FREE.waitNTimerTicks(pid, 100, 0x00000000);
    suspend;
    /* loop_selector item in nearby_items(shape=TELEPORTER_LIGHTS, origin=arg_06) */
    while (!condition) {
      /* loopnext  */
    }
    spawn FREE.slot_26(pid, "9f", 0x00000000);
    /* free_stack_string value_u8=0x0 target=[SP+00h] */
    suspend;
  }
  return;
}
