function door2_slot_2A() /* entry=377 class_id=0x0A07 slot=0x2A */
{
  var
    referent, /* [BP+00h] type=0x69 */
    doorList, /* [BP-02h] type=0x6C */
    counter, /* [BP-04h] type=0x69 */
    maxFrame; /* [BP-06h] type=0x69 */

  entry:
    set_info(0x021B, 0);
    if (Item.getStatus(arg_06) & 4) goto block_1148;

  block_1142:
    goto block_123A;

  block_1148:
    spawn class_0A06_slot_22(pid, arg_06);
    suspend;
    /* create_list element_size=0x2 count=0x7 */
    /* free_local_list bp_offset=0xFE target=[BP-02h] */
    doorList = 0x00CB;
    class_0A0C_slot_3A(123, 0x00C3, 0x00C4, 0x00C5, 0x00C6, 0x00C7, doorList);
    /* free_stack_list value_u8=0x0 target=[SP+00h] */
    maxFrame = retval;
    counter = 2;

  block_11B7:
    if (counter <= maxFrame) goto block_1230;

  block_11C2:
    spawn class_0A0C_slot_32(doorList, pid, 3, 0x00000000);
    suspend;
    counter = (1 + counter);
    goto block_11B7;

  block_1230:
    /* word_to_dword  */
    /* pop_result  */
    goto block_123A;

  block_123A:
    /* free_local_list bp_offset=0xFE target=[BP-02h] */
    return;

}
