function door3_slot_25() /* entry=378 class_id=0x0A08 slot=0x25 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    doorList2, /* [BP-02h] type=0x6C */
    doorList, /* [BP-04h] type=0x6C */
    counter, /* [BP-06h] type=0x69 */
    counter2, /* [BP-08h] type=0x69 */
    door1, /* [BP-0Ah] type=0x24 */
    door2, /* [BP-0Ch] type=0x24 */
    item, /* [BP-0Eh] type=0x24 */
    nonLegalDoor1, /* [BP-0Fh] type=0x62 */
    nonLegalDoor2, /* [BP-10h] type=0x62 */
    bool, /* [BP-11h] type=0x62 */
    maxFrame; /* [BP-13h] type=0x69 */

  entry:
    set_info(0x0207, *(arg_06));
    /* create_list element_size=0x2 count=0x5 */
    /* free_local_list bp_offset=0xFE target=[BP-02h] */
    doorList2 = 0x030D;
    /* create_list element_size=0x2 count=0x5 */
    /* free_local_list bp_offset=0xFC target=[BP-04h] */
    doorList = 0x030E;
    class_0A0C_slot_3A(0x00A4, 0x00E1, 0x00D6, 0x00D8, 0x0170, 0x0171, 0x0172, 0x0173, doorList);
    /* free_stack_list value_u8=0x0 target=[SP+00h] */
    maxFrame = retval;
    /* loopscr value_u8=0x24 */
    /* loopscr value_u8=0x3D */
    /* loopscr value_u8=0x40 */
    /* loopscr value_u8=0x25 */
    /* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */

  block_13BD:
    if condition goto block_13CB;

  block_13C0:
    door1 = item;
    /* loopnext  */
    goto block_13BD;

  block_13CB:
    /* loopscr value_u8=0x24 */
    /* loopscr value_u8=0x3D */
    /* loopscr value_u8=0x40 */
    /* loopscr value_u8=0x25 */
    /* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */

  block_13EB:
    if condition goto block_13F9;

  block_13EE:
    door2 = item;
    /* loopnext  */
    goto block_13EB;

  block_13F9:
    if (door1 && door2) goto block_1770;

  block_140C:
    counter = 1;

  block_142E:
    if (counter <= (maxFrame - 1)) goto block_1770;

  block_143F:
    class_0A0C_slot_2D(Item.getZ(door1), Item.getY(door1), Item.getX(door1), 0, doorList, (maxFrame - counter), list_element(size=0x2), door1);
    if (!retval) goto block_1481;

  block_147A:
    nonLegalDoor1 = 1;

  block_1481:
    if ((!bool) && (!nonLegalDoor1)) goto block_14DD;

  block_1491:
    class_0A0C_slot_2D(Item.getZ(door2), Item.getY(door2), Item.getX(door2), 0, doorList2, (maxFrame - counter), list_element(size=0x2), door2);
    if (!retval) goto block_14D3;

  block_14CC:
    nonLegalDoor2 = 1;

  block_14D3:
    bool = 1;
    goto block_1522;

  block_14DD:
    class_0A0C_slot_2D(Item.getZ(door2), Item.getY(door2), (Item.getX(door2) + 16), 0, doorList2, (maxFrame - counter), list_element(size=0x2), door2);
    if (!retval) goto block_1522;

  block_151B:
    nonLegalDoor2 = 1;

  block_1522:
    if ((!nonLegalDoor1) && (!nonLegalDoor2)) goto block_1574;

  block_1532:
    spawn class_0A0C_slot_32(pid, (5 + counter), 0x00000000);
    suspend;
    goto block_1763;

  block_1574:
    bool = 0;
    if nonLegalDoor2 goto block_15B5;

  block_159D:

  block_15B5:
    if ((nonLegalDoor1 != 1) && (nonLegalDoor2 != 0)) goto block_1615;

  block_15C9:

  block_1615:
    counter2 = ((maxFrame - counter) + 1);

  block_1622:
    if (counter2 <= (maxFrame - 1)) goto block_171F;

  block_1633:
    if (!bool) goto block_16A6;

  block_1659:
    bool = 1;
    goto block_16EC;

  block_16A6:

  block_16EC:
    spawn class_0A0C_slot_32(pid, 10, 0x00000000);
    suspend;
    counter2 = (1 + counter2);
    goto block_1622;

  block_171F:
    /* word_to_dword  */
    /* pop_result  */
    goto block_17A6;

  block_1763:
    counter = (1 + counter);
    goto block_142E;

  block_1770:
    set_info(1, 0);
    /* word_to_dword  */
    /* pop_result  */
    goto block_17A6;

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

}
