function door2_slot_30() /* entry=377 class_id=0x0A07 slot=0x30 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    doorList, /* [BP-02h] type=0x6C */
    doorList2, /* [BP-04h] type=0x6C */
    counter, /* [BP-06h] type=0x69 */
    door1, /* [BP-08h] type=0x24 */
    door2, /* [BP-0Ah] type=0x24 */
    item, /* [BP-0Ch] type=0x24 */
    maxFrame; /* [BP-0Eh] type=0x69 */

  set_info(0x0207, *(arg_06));
  spawn DOOR.slot_22(pid, arg_06);
  suspend;
  /* create_list element_size=0x2 count=0x5 */
  /* free_local_list bp_offset=0xFE target=[BP-02h] */
  doorList = 0x0189;
  /* create_list element_size=0x2 count=0x5 */
  /* free_local_list bp_offset=0xFC target=[BP-04h] */
  doorList2 = 0x0187;
  FREE.slot_3A(0x0193, 0x0192, 0x0191, 0x0190, 0x018D, 0x018C, 0x018B, 0x018A, doorList);
  /* free_stack_list value_u8=0x0 target=[SP+00h] */
  maxFrame = retval;
  /* loop_selector item in nearby_items(shape=ELEVATOR_DOOR_RIGHT, origin=arg_06) */
  while (!condition) {
    door1 = item;
    /* loopnext  */
  }
  for item in nearby_items(shape=ELEVATOR_DOOR_LEFT, origin=arg_06) {
    door2 = item;
    /* loopnext  */
  }
  counter = 2;
  while (counter > maxFrame) {
    spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
    suspend;
    counter = (1 + counter);
  }
  /* word_to_dword  */
  /* pop_result  */
  /* free_local_list bp_offset=0xFE target=[BP-02h] */
  /* free_local_list bp_offset=0xFC target=[BP-04h] */
  return;
}
