Pseudocode and stuff

This commit is contained in:
MaddoScientisto 2026-03-25 23:32:13 +01:00
commit ee33f94b4b
466 changed files with 27770 additions and 276 deletions

View file

@ -0,0 +1,48 @@
function door3_slot_20() /* entry=378 class_id=0x0A08 slot=0x20 */
{
var
referent, /* [BP+00h] type=0x69 */
doorList, /* [BP-02h] type=0x6C */
doorList2, /* [BP-04h] type=0x6C */
counter, /* [BP-06h] type=0x69 */
door2, /* [BP-08h] type=0x24 */
maxFrame; /* [BP-0Ah] type=0x69 */
entry:
set_info(0x0207, *(arg_06));
spawn class_0A06_slot_22(pid, arg_06);
suspend;
/* create_list element_size=0x2 count=0x4 */
/* free_local_list bp_offset=0xFE target=[BP-02h] */
doorList = 0x036A;
/* create_list element_size=0x2 count=0x4 */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
doorList2 = 0x036B;
counter = 0;
class_0A0C_slot_3A(0x0358, 0x035C, 0x035D, 0x0359, 0x035A, 0x035B, doorList);
/* free_stack_list value_u8=0x0 target=[SP+00h] */
maxFrame = retval;
spawn class_0A0C_slot_32(doorList2, 1, pid, 5, 0x00000000);
suspend;
counter = 2;
block_0250:
if (counter <= (maxFrame - 1)) goto block_0302;
block_0261:
spawn class_0A0C_slot_32(doorList2, counter, doorList, pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_0250;
block_0302:
/* word_to_dword */
/* pop_result */
goto block_037A;
block_037A:
/* free_local_list bp_offset=0xFE target=[BP-02h] */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
return;
}

View file

@ -0,0 +1,154 @@
function door3_slot_21() /* entry=378 class_id=0x0A08 slot=0x21 */
{
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=0x4 */
/* free_local_list bp_offset=0xFE target=[BP-02h] */
doorList2 = 0x036A;
/* create_list element_size=0x2 count=0x4 */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
doorList = 0x036B;
class_0A0C_slot_3A(0x0358, 0x035C, 0x035D, 0x0359, 0x035A, 0x035B, 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_0459:
if condition goto block_0467;
block_045C:
door2 = item;
/* loopnext */
goto block_0459;
block_0467:
/* 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_0487:
if condition goto block_0495;
block_048A:
door1 = item;
/* loopnext */
goto block_0487;
block_0495:
if (door1 && door2) goto block_0804;
block_04A8:
counter = 1;
block_04BC:
if (counter <= (maxFrame - 1)) goto block_0804;
block_04CD:
class_0A0C_slot_2D(Item.getZ(door1), Item.legal_create(door1), Intrinsic0013(door1), 0, doorList, (maxFrame - counter), list_element(size=0x2), door1);
if (!retval) goto block_050F;
block_0508:
nonLegalDoor1 = 1;
block_050F:
if ((!bool) && (!nonLegalDoor1)) goto block_056E;
block_051F:
class_0A0C_slot_2D(Item.getZ(door2), Item.legal_create(door2), (Intrinsic0013(door2) + 16), 0, doorList2, (maxFrame - counter), list_element(size=0x2), door2);
if (!retval) goto block_0564;
block_055D:
nonLegalDoor2 = 1;
block_0564:
bool = 1;
goto block_05B3;
block_056E:
class_0A0C_slot_2D(Item.getZ(door2), Item.legal_create(door2), (Intrinsic0013(door2) + 16), 0, doorList2, (maxFrame - counter), list_element(size=0x2), door2);
if (!retval) goto block_05B3;
block_05AC:
nonLegalDoor2 = 1;
block_05B3:
if ((!nonLegalDoor1) && (!nonLegalDoor2)) goto block_0605;
block_05C3:
spawn class_0A0C_slot_32(pid, (5 + counter), 0x00000000);
suspend;
goto block_07F7;
block_0605:
bool = 0;
if nonLegalDoor2 goto block_0646;
block_062E:
block_0646:
if ((nonLegalDoor1 != 1) && (nonLegalDoor2 != 0)) goto block_06A6;
block_065A:
block_06A6:
counter2 = ((maxFrame - counter) + 1);
block_06B3:
if (counter2 <= (maxFrame - 1)) goto block_07B3;
block_06C4:
if (!bool) goto block_073A;
block_06EA:
bool = 1;
goto block_0780;
block_073A:
block_0780:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter2 = (1 + counter2);
goto block_06B3;
block_07B3:
/* word_to_dword */
/* pop_result */
goto block_083A;
block_07F7:
counter = (1 + counter);
goto block_04BC;
block_0804:
set_info(1, 0);
/* word_to_dword */
/* pop_result */
goto block_083A;
block_083A:
/* free_local_list bp_offset=0xFE target=[BP-02h] */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
return;
}

View file

@ -0,0 +1,48 @@
function door3_slot_22() /* entry=378 class_id=0x0A08 slot=0x22 */
{
var
referent, /* [BP+00h] type=0x69 */
doorList2, /* [BP-02h] type=0x6C */
doorList, /* [BP-04h] type=0x6C */
counter, /* [BP-06h] type=0x69 */
door2, /* [BP-08h] type=0x24 */
maxFrame; /* [BP-0Ah] type=0x69 */
entry:
set_info(0x0207, *(arg_06));
spawn class_0A06_slot_22(pid, arg_06);
suspend;
/* create_list element_size=0x2 count=0x4 */
/* free_local_list bp_offset=0xFE target=[BP-02h] */
doorList2 = 0x0368;
/* create_list element_size=0x2 count=0x4 */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
doorList = 0x0369;
counter = 0;
class_0A0C_slot_3A(0x0352, 0x0354, 0x0355, 0x0353, 0x0356, 0x0357, doorList);
/* free_stack_list value_u8=0x0 target=[SP+00h] */
maxFrame = retval;
spawn class_0A0C_slot_32(doorList2, 1, pid, 5, 0x00000000);
suspend;
counter = 2;
block_0A10:
if (counter <= (maxFrame - 1)) goto block_0AC2;
block_0A21:
spawn class_0A0C_slot_32(doorList2, counter, doorList, pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_0A10;
block_0AC2:
/* word_to_dword */
/* pop_result */
goto block_0B3A;
block_0B3A:
/* free_local_list bp_offset=0xFE target=[BP-02h] */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
return;
}

View file

@ -0,0 +1,154 @@
function door3_slot_23() /* entry=378 class_id=0x0A08 slot=0x23 */
{
var
referent, /* [BP+00h] type=0x69 */
doorList, /* [BP-02h] type=0x6C */
doorList2, /* [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=0x4 */
/* free_local_list bp_offset=0xFE target=[BP-02h] */
doorList = 0x0368;
/* create_list element_size=0x2 count=0x4 */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
doorList2 = 0x0369;
class_0A0C_slot_3A(0x0352, 0x0354, 0x0355, 0x0353, 0x0356, 0x0357, 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_0C19:
if condition goto block_0C27;
block_0C1C:
door1 = item;
/* loopnext */
goto block_0C19;
block_0C27:
/* 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_0C47:
if condition goto block_0C55;
block_0C4A:
door2 = item;
/* loopnext */
goto block_0C47;
block_0C55:
if (door1 && door2) goto block_0FC4;
block_0C68:
counter = 1;
block_0C7C:
if (counter <= (maxFrame - 1)) goto block_0FC4;
block_0C8D:
class_0A0C_slot_2D(Item.getZ(door1), Item.legal_create(door1), Intrinsic0013(door1), 0, doorList, (maxFrame - counter), list_element(size=0x2), door1);
if (!retval) goto block_0CCF;
block_0CC8:
nonLegalDoor1 = 1;
block_0CCF:
if ((!bool) && (!nonLegalDoor1)) goto block_0D2E;
block_0CDF:
class_0A0C_slot_2D(Item.getZ(door2), (Item.legal_create(door2) + 16), Intrinsic0013(door2), 0, doorList2, (maxFrame - counter), list_element(size=0x2), door2);
if (!retval) goto block_0D24;
block_0D1D:
nonLegalDoor2 = 1;
block_0D24:
bool = 1;
goto block_0D73;
block_0D2E:
class_0A0C_slot_2D(Item.getZ(door2), (Item.legal_create(door2) + 16), Intrinsic0013(door2), 0, doorList2, (maxFrame - counter), list_element(size=0x2), door2);
if (!retval) goto block_0D73;
block_0D6C:
nonLegalDoor2 = 1;
block_0D73:
if ((!nonLegalDoor1) && (!nonLegalDoor2)) goto block_0DC5;
block_0D83:
spawn class_0A0C_slot_32(pid, (5 + counter), 0x00000000);
suspend;
goto block_0FB7;
block_0DC5:
bool = 0;
if nonLegalDoor2 goto block_0E06;
block_0DEE:
block_0E06:
if ((nonLegalDoor1 != 1) && (nonLegalDoor2 != 0)) goto block_0E66;
block_0E1A:
block_0E66:
counter2 = ((maxFrame - counter) + 1);
block_0E73:
if (counter2 <= (maxFrame - 1)) goto block_0F73;
block_0E84:
if (!bool) goto block_0EFA;
block_0EAA:
bool = 1;
goto block_0F40;
block_0EFA:
block_0F40:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter2 = (1 + counter2);
goto block_0E73;
block_0F73:
/* word_to_dword */
/* pop_result */
goto block_0FFA;
block_0FB7:
counter = (1 + counter);
goto block_0C7C;
block_0FC4:
set_info(1, 0);
/* word_to_dword */
/* pop_result */
goto block_0FFA;
block_0FFA:
/* free_local_list bp_offset=0xFE target=[BP-02h] */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
return;
}

View file

@ -0,0 +1,48 @@
function door3_slot_24() /* entry=378 class_id=0x0A08 slot=0x24 */
{
var
referent, /* [BP+00h] type=0x69 */
doorList, /* [BP-02h] type=0x6C */
doorList2, /* [BP-04h] type=0x6C */
counter, /* [BP-06h] type=0x69 */
door2, /* [BP-08h] type=0x24 */
maxFrame; /* [BP-0Ah] type=0x69 */
entry:
set_info(0x0207, *(arg_06));
spawn class_0A06_slot_22(pid, arg_06);
suspend;
/* create_list element_size=0x2 count=0x5 */
/* free_local_list bp_offset=0xFE target=[BP-02h] */
doorList = 0x030D;
/* create_list element_size=0x2 count=0x5 */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
doorList2 = 0x030E;
counter = 0;
class_0A0C_slot_3A(0x00A4, 0x00E1, 0x00D6, 0x00D8, 0x0170, 0x0171, 0x0172, 0x0173, doorList);
/* free_stack_list value_u8=0x0 target=[SP+00h] */
maxFrame = retval;
spawn class_0A0C_slot_32(doorList2, 1, pid, 5, 0x00000000);
suspend;
counter = 2;
block_11DC:
if (counter <= (maxFrame - 1)) goto block_128E;
block_11ED:
spawn class_0A0C_slot_32(doorList2, counter, doorList, pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_11DC;
block_128E:
/* word_to_dword */
/* pop_result */
goto block_12D2;
block_12D2:
/* free_local_list bp_offset=0xFE target=[BP-02h] */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
return;
}

View file

@ -0,0 +1,154 @@
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.legal_create(door1), Intrinsic0013(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.legal_create(door2), Intrinsic0013(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.legal_create(door2), (Intrinsic0013(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;
}

View file

@ -0,0 +1,48 @@
function door3_slot_26() /* entry=378 class_id=0x0A08 slot=0x26 */
{
var
referent, /* [BP+00h] type=0x69 */
doorList, /* [BP-02h] type=0x6C */
doorList2, /* [BP-04h] type=0x6C */
counter, /* [BP-06h] type=0x69 */
door2, /* [BP-08h] type=0x24 */
maxFrame; /* [BP-0Ah] type=0x69 */
entry:
set_info(0x0207, *(arg_06));
spawn class_0A06_slot_22(pid, arg_06);
suspend;
/* create_list element_size=0x2 count=0x5 */
/* free_local_list bp_offset=0xFE target=[BP-02h] */
doorList = 0x00A5;
/* create_list element_size=0x2 count=0x5 */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
doorList2 = 0x0100;
counter = 0;
class_0A0C_slot_3A(0x016C, 0x016D, 0x016E, 0x016F, 0x009B, 0x00D3, 0x00E4, 0x00DA, doorList);
/* free_stack_list value_u8=0x0 target=[SP+00h] */
maxFrame = retval;
spawn class_0A0C_slot_32(doorList2, 1, pid, 5, 0x00000000);
suspend;
counter = 2;
block_1985:
if (counter <= (maxFrame - 1)) goto block_1A37;
block_1996:
spawn class_0A0C_slot_32(doorList2, counter, doorList, pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_1985;
block_1A37:
/* word_to_dword */
/* pop_result */
goto block_1A7B;
block_1A7B:
/* free_local_list bp_offset=0xFE target=[BP-02h] */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
return;
}

View file

@ -0,0 +1,153 @@
function door3_slot_27() /* entry=378 class_id=0x0A08 slot=0x27 */
{
var
referent, /* [BP+00h] type=0x69 */
doorList, /* [BP-02h] type=0x6C */
doorList2, /* [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] */
doorList = 0x0100;
/* create_list element_size=0x2 count=0x5 */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
doorList2 = 0x00A5;
class_0A0C_slot_3A(0x009B, 0x00D3, 0x00E4, 0x00DA, 0x016C, 0x016D, 0x016E, 0x016F, 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_1B73:
if condition goto block_1B81;
block_1B76:
door1 = item;
/* loopnext */
goto block_1B73;
block_1B81:
/* 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_1BA1:
if condition goto block_1BAF;
block_1BA4:
door2 = item;
/* loopnext */
goto block_1BA1;
block_1BAF:
if (door1 && door2) goto block_1F19;
block_1BC2:
counter = 1;
block_1BD7:
if (counter <= (maxFrame - 1)) goto block_1F19;
block_1BE8:
class_0A0C_slot_2D(Item.getZ(door1), Item.legal_create(door1), Intrinsic0013(door1), 0, doorList, (maxFrame - counter), list_element(size=0x2), door1);
if (!retval) goto block_1C2A;
block_1C23:
nonLegalDoor1 = 1;
block_1C2A:
if ((!bool) && (!nonLegalDoor1)) goto block_1C86;
block_1C3A:
class_0A0C_slot_2D(Item.getZ(door2), Item.legal_create(door2), Intrinsic0013(door2), 0, doorList2, (maxFrame - counter), list_element(size=0x2), door2);
if (!retval) goto block_1C7C;
block_1C75:
nonLegalDoor2 = 1;
block_1C7C:
bool = 1;
goto block_1CCB;
block_1C86:
class_0A0C_slot_2D(Item.getZ(door2), (Item.legal_create(door2) + 16), Intrinsic0013(door2), 0, doorList2, (maxFrame - counter), list_element(size=0x2), door2);
if (!retval) goto block_1CCB;
block_1CC4:
nonLegalDoor2 = 1;
block_1CCB:
if ((!nonLegalDoor1) && (!nonLegalDoor2)) goto block_1D1D;
block_1CDB:
spawn class_0A0C_slot_32(pid, (5 + counter), 0x00000000);
suspend;
goto block_1F0C;
block_1D1D:
bool = 0;
if nonLegalDoor2 goto block_1D5E;
block_1D46:
block_1D5E:
if ((nonLegalDoor1 != 1) && (nonLegalDoor2 != 0)) goto block_1DBE;
block_1D72:
block_1DBE:
counter2 = ((maxFrame - counter) + 1);
block_1DCB:
if (counter2 <= (maxFrame - 1)) goto block_1EC8;
block_1DDC:
if (!bool) goto block_1E4F;
block_1E02:
bool = 1;
goto block_1E95;
block_1E4F:
block_1E95:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter2 = (1 + counter2);
goto block_1DCB;
block_1EC8:
/* word_to_dword */
/* pop_result */
goto block_1F47;
block_1F0C:
counter = (1 + counter);
goto block_1BD7;
block_1F19:
/* word_to_dword */
/* pop_result */
goto block_1F47;
block_1F47:
/* free_local_list bp_offset=0xFE target=[BP-02h] */
/* free_local_list bp_offset=0xFC target=[BP-04h] */
return;
}

View file

@ -0,0 +1,40 @@
function door3_slot_28() /* entry=378 class_id=0x0A08 slot=0x28 */
{
var
referent, /* [BP+00h] type=0x69 */
counter, /* [BP-02h] type=0x69 */
maxFrame; /* [BP-04h] type=0x69 */
entry:
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) > 0) goto block_201E;
block_2014:
/* word_to_dword */
/* pop_result */
goto block_20D3;
block_201E:
spawn class_0A06_slot_22(pid, arg_06);
suspend;
maxFrame = 9;
counter = 1;
block_2058:
if (counter <= maxFrame) goto block_20A3;
block_2063:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_2058;
block_20A3:
/* word_to_dword */
/* pop_result */
goto block_20D3;
block_20D3:
return;
}

View file

@ -0,0 +1,44 @@
function door3_slot_29() /* entry=378 class_id=0x0A08 slot=0x29 */
{
var
referent, /* [BP+00h] type=0x69 */
counter, /* [BP-02h] type=0x69 */
maxFrame; /* [BP-04h] type=0x69 */
entry:
set_info(0x0207, *(arg_06));
maxFrame = 9;
class_0A0C_slot_2D(Item.getZ(arg_06), Item.legal_create(arg_06), Intrinsic0013(arg_06), maxFrame, 0x053D, *(arg_06));
if retval goto block_2187;
block_2151:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
goto block_2191;
block_2187:
/* word_to_dword */
/* pop_result */
goto block_21F0;
block_2191:
counter = (maxFrame - 1);
block_219B:
if (counter >= 0) goto block_21E6;
block_21A3:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (counter - 1);
goto block_219B;
block_21E6:
/* word_to_dword */
/* pop_result */
goto block_21F0;
block_21F0:
return;
}

View file

@ -0,0 +1,40 @@
function door3_slot_2A() /* entry=378 class_id=0x0A08 slot=0x2A */
{
var
referent, /* [BP+00h] type=0x69 */
counter, /* [BP-02h] type=0x69 */
maxFrame; /* [BP-04h] type=0x69 */
entry:
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) > 0) goto block_2251;
block_2247:
/* word_to_dword */
/* pop_result */
goto block_2306;
block_2251:
spawn class_0A06_slot_22(pid, arg_06);
suspend;
maxFrame = 9;
counter = 1;
block_228B:
if (counter <= maxFrame) goto block_22D6;
block_2296:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_228B;
block_22D6:
/* word_to_dword */
/* pop_result */
goto block_2306;
block_2306:
return;
}

View file

@ -0,0 +1,44 @@
function door3_slot_2B() /* entry=378 class_id=0x0A08 slot=0x2B */
{
var
referent, /* [BP+00h] type=0x69 */
counter, /* [BP-02h] type=0x69 */
maxFrame; /* [BP-04h] type=0x69 */
entry:
set_info(0x0207, *(arg_06));
maxFrame = 9;
class_0A0C_slot_2D(Item.getZ(arg_06), Item.legal_create(arg_06), Intrinsic0013(arg_06), maxFrame, 0x053B, *(arg_06));
if retval goto block_23BA;
block_2384:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
goto block_23C4;
block_23BA:
/* word_to_dword */
/* pop_result */
goto block_2423;
block_23C4:
counter = (maxFrame - 1);
block_23CE:
if (counter >= 0) goto block_2419;
block_23D6:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (counter - 1);
goto block_23CE;
block_2419:
/* word_to_dword */
/* pop_result */
goto block_2423;
block_2423:
return;
}