function door2_slot_20() /* entry=377 class_id=0x0A07 slot=0x20 */
{
  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_01F9;

  block_01F3:
    goto block_0306;

  block_01F9:
    spawn class_0A06_slot_22(pid, arg_06);
    suspend;
    /* create_list element_size=0x2 count=0xC */
    /* free_local_list bp_offset=0xFE target=[BP-02h] */
    doorList = 0x00D0;
    class_0A0C_slot_3A(0x00A9, 0x00AB, 0x00AC, 0x00AF, 0x00B2, 0x00B3, 0x00B4, 0x00B6, 0x00B7, 0x00B8, 0x00B9, doorList);
    /* free_stack_list value_u8=0x0 target=[SP+00h] */
    maxFrame = retval;
    counter = 2;

  block_0278:
    if (counter <= maxFrame) goto block_02FC;

  block_0283:
    spawn class_0A0C_slot_32(doorList, counter, pid, 2, 0x00000000);
    suspend;
    counter = (1 + counter);
    goto block_0278;

  block_02FC:
    /* word_to_dword  */
    /* pop_result  */
    goto block_0306;

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

}
