papermario/asm/nonmatchings/code_190B20/load_partner_actor.s

552 lines
29 KiB
ArmAsm
Raw Normal View History

2020-09-24 05:16:13 +02:00
.set noat # allow manual use of $at
2020-08-04 08:49:11 +02:00
.set noreorder # don't insert nops after branches
glabel load_partner_actor
2020-09-24 05:16:13 +02:00
/* 193454 80264B74 27BDFFB0 */ addiu $sp, $sp, -0x50
/* 193458 80264B78 AFB30024 */ sw $s3, 0x24($sp)
2020-09-28 03:13:56 +02:00
/* 19345C 80264B7C 3C138011 */ lui $s3, %hi(gPlayerData)
/* 193460 80264B80 2673F290 */ addiu $s3, $s3, %lo(gPlayerData)
2020-09-24 05:16:13 +02:00
/* 193464 80264B84 AFBF0034 */ sw $ra, 0x34($sp)
/* 193468 80264B88 AFB60030 */ sw $s6, 0x30($sp)
/* 19346C 80264B8C AFB5002C */ sw $s5, 0x2c($sp)
/* 193470 80264B90 AFB40028 */ sw $s4, 0x28($sp)
/* 193474 80264B94 AFB20020 */ sw $s2, 0x20($sp)
/* 193478 80264B98 AFB1001C */ sw $s1, 0x1c($sp)
/* 19347C 80264B9C AFB00018 */ sw $s0, 0x18($sp)
/* 193480 80264BA0 F7B80048 */ sdc1 $f24, 0x48($sp)
/* 193484 80264BA4 F7B60040 */ sdc1 $f22, 0x40($sp)
/* 193488 80264BA8 F7B40038 */ sdc1 $f20, 0x38($sp)
/* 19348C 80264BAC 82640012 */ lb $a0, 0x12($s3)
2020-09-28 03:13:56 +02:00
/* 193490 80264BB0 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 193494 80264BB4 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
2020-09-24 05:16:13 +02:00
/* 193498 80264BB8 108001ED */ beqz $a0, .L80265370
/* 19349C 80264BBC AE4000DC */ sw $zero, 0xdc($s2)
2020-11-29 08:13:07 +01:00
/* 1934A0 80264BC0 3C038028 */ lui $v1, %hi(D_80283F10)
/* 1934A4 80264BC4 24633F10 */ addiu $v1, $v1, %lo(D_80283F10)
2020-09-24 05:16:13 +02:00
/* 1934A8 80264BC8 00041080 */ sll $v0, $a0, 2
/* 1934AC 80264BCC 00441021 */ addu $v0, $v0, $a0
/* 1934B0 80264BD0 00021080 */ sll $v0, $v0, 2
/* 1934B4 80264BD4 00438021 */ addu $s0, $v0, $v1
/* 1934B8 80264BD8 8E14000C */ lw $s4, 0xc($s0)
/* 1934BC 80264BDC 16800003 */ bnez $s4, .L80264BEC
2021-01-12 16:42:27 +01:00
/* 1934C0 80264BE0 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L80264BE4:
2020-09-24 05:16:13 +02:00
/* 1934C4 80264BE4 080992F9 */ j .L80264BE4
2021-01-12 16:42:27 +01:00
/* 1934C8 80264BE8 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L80264BEC:
2020-09-24 05:16:13 +02:00
/* 1934CC 80264BEC 8E040000 */ lw $a0, ($s0)
/* 1934D0 80264BF0 8E060004 */ lw $a2, 4($s0)
/* 1934D4 80264BF4 8E050008 */ lw $a1, 8($s0)
/* 1934D8 80264BF8 0C017D24 */ jal nuPiReadRom
/* 1934DC 80264BFC 00C43023 */ subu $a2, $a2, $a0
2020-09-28 03:13:56 +02:00
/* 1934E0 80264C00 3C04800E */ lui $a0, %hi(gBattleStatus)
/* 1934E4 80264C04 2484C070 */ addiu $a0, $a0, %lo(gBattleStatus)
2020-09-24 05:16:13 +02:00
/* 1934E8 80264C08 8C820004 */ lw $v0, 4($a0)
/* 1934EC 80264C0C 30420040 */ andi $v0, $v0, 0x40
/* 1934F0 80264C10 14400007 */ bnez $v0, .L80264C30
2021-01-12 16:42:27 +01:00
/* 1934F4 80264C14 00000000 */ nop
2020-09-28 03:13:56 +02:00
/* 1934F8 80264C18 3C028007 */ lui $v0, %hi(gGameStatusPtr)
/* 1934FC 80264C1C 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0)
2020-09-24 05:16:13 +02:00
/* 193500 80264C20 904200AA */ lbu $v0, 0xaa($v0)
/* 193504 80264C24 30420002 */ andi $v0, $v0, 2
/* 193508 80264C28 1040000B */ beqz $v0, .L80264C58
2021-01-12 16:42:27 +01:00
/* 19350C 80264C2C 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L80264C30:
2020-09-24 05:16:13 +02:00
/* 193510 80264C30 C6180010 */ lwc1 $f24, 0x10($s0)
/* 193514 80264C34 4680C620 */ cvt.s.w $f24, $f24
/* 193518 80264C38 3C030010 */ lui $v1, 0x10
/* 19351C 80264C3C 3C01C2BE */ lui $at, 0xc2be
/* 193520 80264C40 4481A000 */ mtc1 $at, $f20
/* 193524 80264C44 8C820000 */ lw $v0, ($a0)
/* 193528 80264C48 4480B000 */ mtc1 $zero, $f22
/* 19352C 80264C4C 00431025 */ or $v0, $v0, $v1
/* 193530 80264C50 0809931C */ j .L80264C70
/* 193534 80264C54 AC820000 */ sw $v0, ($a0)
2020-08-04 08:49:11 +02:00
.L80264C58:
2020-09-24 05:16:13 +02:00
/* 193538 80264C58 C6180010 */ lwc1 $f24, 0x10($s0)
/* 19353C 80264C5C 4680C620 */ cvt.s.w $f24, $f24
/* 193540 80264C60 3C01C302 */ lui $at, 0xc302
/* 193544 80264C64 4481A000 */ mtc1 $at, $f20
/* 193548 80264C68 3C01C120 */ lui $at, 0xc120
/* 19354C 80264C6C 4481B000 */ mtc1 $at, $f22
2020-08-04 08:49:11 +02:00
.L80264C70:
2020-09-24 05:16:13 +02:00
/* 193550 80264C70 86960008 */ lh $s6, 8($s4)
/* 193554 80264C74 0C00AB39 */ jal heap_malloc
/* 193558 80264C78 24040444 */ addiu $a0, $zero, 0x444
/* 19355C 80264C7C 0040882D */ daddu $s1, $v0, $zero
/* 193560 80264C80 16200003 */ bnez $s1, .L80264C90
/* 193564 80264C84 AE4200DC */ sw $v0, 0xdc($s2)
2020-08-04 08:49:11 +02:00
.L80264C88:
2020-09-24 05:16:13 +02:00
/* 193568 80264C88 08099322 */ j .L80264C88
2021-01-12 16:42:27 +01:00
/* 19356C 80264C8C 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L80264C90:
2020-09-24 05:16:13 +02:00
/* 193570 80264C90 82620012 */ lb $v0, 0x12($s3)
/* 193574 80264C94 000210C0 */ sll $v0, $v0, 3
/* 193578 80264C98 02621021 */ addu $v0, $s3, $v0
/* 19357C 80264C9C 90420015 */ lbu $v0, 0x15($v0)
/* 193580 80264CA0 A2820006 */ sb $v0, 6($s4)
/* 193584 80264CA4 92430093 */ lbu $v1, 0x93($s2)
/* 193588 80264CA8 3C013F80 */ lui $at, 0x3f80
/* 19358C 80264CAC 44811000 */ mtc1 $at, $f2
/* 193590 80264CB0 24620001 */ addiu $v0, $v1, 1
/* 193594 80264CB4 A2420093 */ sb $v0, 0x93($s2)
/* 193598 80264CB8 A2230134 */ sb $v1, 0x134($s1)
/* 19359C 80264CBC A2200135 */ sb $zero, 0x135($s1)
/* 1935A0 80264CC0 AE340008 */ sw $s4, 8($s1)
/* 1935A4 80264CC4 92820005 */ lbu $v0, 5($s4)
/* 1935A8 80264CC8 A2220136 */ sb $v0, 0x136($s1)
/* 1935AC 80264CCC 8E820000 */ lw $v0, ($s4)
/* 1935B0 80264CD0 E6340144 */ swc1 $f20, 0x144($s1)
/* 1935B4 80264CD4 E6340138 */ swc1 $f20, 0x138($s1)
/* 1935B8 80264CD8 E6380148 */ swc1 $f24, 0x148($s1)
/* 1935BC 80264CDC E638013C */ swc1 $f24, 0x13c($s1)
/* 1935C0 80264CE0 E636014C */ swc1 $f22, 0x14c($s1)
/* 1935C4 80264CE4 E6360140 */ swc1 $f22, 0x140($s1)
/* 1935C8 80264CE8 A6200150 */ sh $zero, 0x150($s1)
/* 1935CC 80264CEC A6200152 */ sh $zero, 0x152($s1)
/* 1935D0 80264CF0 A6200154 */ sh $zero, 0x154($s1)
/* 1935D4 80264CF4 AE220000 */ sw $v0, ($s1)
/* 1935D8 80264CF8 92820007 */ lbu $v0, 7($s4)
/* 1935DC 80264CFC A23601F3 */ sb $s6, 0x1f3($s1)
/* 1935E0 80264D00 AE2001C0 */ sw $zero, 0x1c0($s1)
/* 1935E4 80264D04 A22201B8 */ sb $v0, 0x1b8($s1)
/* 1935E8 80264D08 8E820010 */ lw $v0, 0x10($s4)
/* 1935EC 80264D0C AE2001C8 */ sw $zero, 0x1c8($s1)
/* 1935F0 80264D10 AE2001CC */ sw $zero, 0x1cc($s1)
/* 1935F4 80264D14 AE2001D0 */ sw $zero, 0x1d0($s1)
/* 1935F8 80264D18 AE2001D4 */ sw $zero, 0x1d4($s1)
/* 1935FC 80264D1C AE2001D8 */ sw $zero, 0x1d8($s1)
/* 193600 80264D20 AE2001DC */ sw $zero, 0x1dc($s1)
/* 193604 80264D24 AE2201C4 */ sw $v0, 0x1c4($s1)
/* 193608 80264D28 A22001F1 */ sb $zero, 0x1f1($s1)
/* 19360C 80264D2C 4600A006 */ mov.s $f0, $f20
/* 193610 80264D30 A22001F2 */ sb $zero, 0x1f2($s1)
/* 193614 80264D34 AE20018C */ sw $zero, 0x18c($s1)
/* 193618 80264D38 AE20015C */ sw $zero, 0x15c($s1)
/* 19361C 80264D3C AE200160 */ sw $zero, 0x160($s1)
/* 193620 80264D40 AE200164 */ sw $zero, 0x164($s1)
/* 193624 80264D44 A6200168 */ sh $zero, 0x168($s1)
/* 193628 80264D48 A620016A */ sh $zero, 0x16a($s1)
/* 19362C 80264D4C A620016C */ sh $zero, 0x16c($s1)
/* 193630 80264D50 E6220170 */ swc1 $f2, 0x170($s1)
/* 193634 80264D54 E6220174 */ swc1 $f2, 0x174($s1)
/* 193638 80264D58 E6220178 */ swc1 $f2, 0x178($s1)
/* 19363C 80264D5C E622017C */ swc1 $f2, 0x17c($s1)
/* 193640 80264D60 E6220180 */ swc1 $f2, 0x180($s1)
/* 193644 80264D64 E6220184 */ swc1 $f2, 0x184($s1)
/* 193648 80264D68 A220019A */ sb $zero, 0x19a($s1)
/* 19364C 80264D6C 92820020 */ lbu $v0, 0x20($s4)
/* 193650 80264D70 4600B106 */ mov.s $f4, $f22
/* 193654 80264D74 A2220190 */ sb $v0, 0x190($s1)
2020-08-04 08:49:11 +02:00
/* 193658 80264D78 4600018D */ trunc.w.s $f6, $f0
2020-09-24 05:16:13 +02:00
/* 19365C 80264D7C 44023000 */ mfc1 $v0, $f6
/* 193660 80264D80 92830021 */ lbu $v1, 0x21($s4)
/* 193664 80264D84 4600C006 */ mov.s $f0, $f24
/* 193668 80264D88 A6220156 */ sh $v0, 0x156($s1)
2020-08-04 08:49:11 +02:00
/* 19366C 80264D8C 4600018D */ trunc.w.s $f6, $f0
2020-09-24 05:16:13 +02:00
/* 193670 80264D90 44023000 */ mfc1 $v0, $f6
2021-01-12 16:42:27 +01:00
/* 193674 80264D94 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 193678 80264D98 A6220158 */ sh $v0, 0x158($s1)
2020-08-04 08:49:11 +02:00
/* 19367C 80264D9C 4600218D */ trunc.w.s $f6, $f4
2020-09-24 05:16:13 +02:00
/* 193680 80264DA0 44023000 */ mfc1 $v0, $f6
2021-01-12 16:42:27 +01:00
/* 193684 80264DA4 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 193688 80264DA8 A622015A */ sh $v0, 0x15a($s1)
/* 19368C 80264DAC 2402000D */ addiu $v0, $zero, 0xd
/* 193690 80264DB0 E6220188 */ swc1 $f2, 0x188($s1)
/* 193694 80264DB4 AE200200 */ sw $zero, 0x200($s1)
/* 193698 80264DB8 A2200204 */ sb $zero, 0x204($s1)
/* 19369C 80264DBC A2200205 */ sb $zero, 0x205($s1)
/* 1936A0 80264DC0 A2200194 */ sb $zero, 0x194($s1)
/* 1936A4 80264DC4 A2200195 */ sb $zero, 0x195($s1)
/* 1936A8 80264DC8 A2200196 */ sb $zero, 0x196($s1)
/* 1936AC 80264DCC A2200197 */ sb $zero, 0x197($s1)
/* 1936B0 80264DD0 A2230191 */ sb $v1, 0x191($s1)
/* 1936B4 80264DD4 A6220434 */ sh $v0, 0x434($s1)
/* 1936B8 80264DD8 24020100 */ addiu $v0, $zero, 0x100
/* 1936BC 80264DDC A6220192 */ sh $v0, 0x192($s1)
/* 1936C0 80264DE0 8E820014 */ lw $v0, 0x14($s4)
/* 1936C4 80264DE4 92230136 */ lbu $v1, 0x136($s1)
/* 1936C8 80264DE8 A2200210 */ sb $zero, 0x210($s1)
/* 1936CC 80264DEC A2200211 */ sb $zero, 0x211($s1)
/* 1936D0 80264DF0 A2200212 */ sb $zero, 0x212($s1)
/* 1936D4 80264DF4 A2200213 */ sb $zero, 0x213($s1)
/* 1936D8 80264DF8 A2200214 */ sb $zero, 0x214($s1)
/* 1936DC 80264DFC A2200215 */ sb $zero, 0x215($s1)
/* 1936E0 80264E00 A2200216 */ sb $zero, 0x216($s1)
/* 1936E4 80264E04 A2200217 */ sb $zero, 0x217($s1)
/* 1936E8 80264E08 A2200218 */ sb $zero, 0x218($s1)
/* 1936EC 80264E0C A2200219 */ sb $zero, 0x219($s1)
/* 1936F0 80264E10 A2200220 */ sb $zero, 0x220($s1)
/* 1936F4 80264E14 A620021E */ sh $zero, 0x21e($s1)
/* 1936F8 80264E18 A220021D */ sb $zero, 0x21d($s1)
/* 1936FC 80264E1C A2200221 */ sb $zero, 0x221($s1)
/* 193700 80264E20 A2200222 */ sb $zero, 0x222($s1)
/* 193704 80264E24 A2200223 */ sb $zero, 0x223($s1)
/* 193708 80264E28 A2200224 */ sb $zero, 0x224($s1)
/* 19370C 80264E2C A220021C */ sb $zero, 0x21c($s1)
/* 193710 80264E30 AE22020C */ sw $v0, 0x20c($s1)
/* 193714 80264E34 000310C0 */ sll $v0, $v1, 3
/* 193718 80264E38 00431023 */ subu $v0, $v0, $v1
/* 19371C 80264E3C 00021080 */ sll $v0, $v0, 2
2021-02-10 18:30:27 +01:00
/* 193720 80264E40 3C018028 */ lui $at, %hi(bActorSoundTable)
2020-09-24 05:16:13 +02:00
/* 193724 80264E44 00220821 */ addu $at, $at, $v0
2021-02-10 18:30:27 +01:00
/* 193728 80264E48 8C221468 */ lw $v0, %lo(bActorSoundTable)($at)
2020-09-24 05:16:13 +02:00
/* 19372C 80264E4C AE22019C */ sw $v0, 0x19c($s1)
/* 193730 80264E50 000310C0 */ sll $v0, $v1, 3
/* 193734 80264E54 00431023 */ subu $v0, $v0, $v1
/* 193738 80264E58 00021080 */ sll $v0, $v0, 2
2021-02-10 18:30:27 +01:00
/* 19373C 80264E5C 3C018028 */ lui $at, %hi(bActorSoundTable+4)
2020-09-24 05:16:13 +02:00
/* 193740 80264E60 00220821 */ addu $at, $at, $v0
2021-02-10 18:30:27 +01:00
/* 193744 80264E64 8C22146C */ lw $v0, %lo(bActorSoundTable+4)($at)
2020-09-24 05:16:13 +02:00
/* 193748 80264E68 AE2201A0 */ sw $v0, 0x1a0($s1)
/* 19374C 80264E6C 000310C0 */ sll $v0, $v1, 3
/* 193750 80264E70 00431023 */ subu $v0, $v0, $v1
/* 193754 80264E74 00021080 */ sll $v0, $v0, 2
2021-02-10 18:30:27 +01:00
/* 193758 80264E78 3C018028 */ lui $at, %hi(bActorSoundTable+8)
2020-09-24 05:16:13 +02:00
/* 19375C 80264E7C 00220821 */ addu $at, $at, $v0
2021-02-10 18:30:27 +01:00
/* 193760 80264E80 8C221470 */ lw $v0, %lo(bActorSoundTable+8)($at)
2020-09-24 05:16:13 +02:00
/* 193764 80264E84 AE2201A4 */ sw $v0, 0x1a4($s1)
/* 193768 80264E88 000310C0 */ sll $v0, $v1, 3
/* 19376C 80264E8C 00431023 */ subu $v0, $v0, $v1
/* 193770 80264E90 00021080 */ sll $v0, $v0, 2
2021-02-10 18:30:27 +01:00
/* 193774 80264E94 3C018028 */ lui $at, %hi(bActorSoundTable+12)
2020-09-24 05:16:13 +02:00
/* 193778 80264E98 00220821 */ addu $at, $at, $v0
2021-02-10 18:30:27 +01:00
/* 19377C 80264E9C 8C221474 */ lw $v0, %lo(bActorSoundTable+12)($at)
2020-09-24 05:16:13 +02:00
/* 193780 80264EA0 AE2201A8 */ sw $v0, 0x1a8($s1)
/* 193784 80264EA4 000310C0 */ sll $v0, $v1, 3
/* 193788 80264EA8 00431023 */ subu $v0, $v0, $v1
/* 19378C 80264EAC 00021080 */ sll $v0, $v0, 2
2021-02-10 18:30:27 +01:00
/* 193790 80264EB0 3C018028 */ lui $at, %hi(bActorSoundTable+16)
2020-09-24 05:16:13 +02:00
/* 193794 80264EB4 00220821 */ addu $at, $at, $v0
2021-02-10 18:30:27 +01:00
/* 193798 80264EB8 8C221478 */ lw $v0, %lo(bActorSoundTable+16)($at)
2020-09-24 05:16:13 +02:00
/* 19379C 80264EBC AE2201AC */ sw $v0, 0x1ac($s1)
/* 1937A0 80264EC0 000310C0 */ sll $v0, $v1, 3
/* 1937A4 80264EC4 00431023 */ subu $v0, $v0, $v1
/* 1937A8 80264EC8 00021080 */ sll $v0, $v0, 2
2021-02-10 18:30:27 +01:00
/* 1937AC 80264ECC 3C018028 */ lui $at, %hi(bActorSoundTable+20)
2020-09-24 05:16:13 +02:00
/* 1937B0 80264ED0 00220821 */ addu $at, $at, $v0
2021-02-10 18:30:27 +01:00
/* 1937B4 80264ED4 8C22147C */ lw $v0, %lo(bActorSoundTable+20)($at)
2020-09-24 05:16:13 +02:00
/* 1937B8 80264ED8 AE2201B0 */ sw $v0, 0x1b0($s1)
/* 1937BC 80264EDC 000310C0 */ sll $v0, $v1, 3
/* 1937C0 80264EE0 00431023 */ subu $v0, $v0, $v1
/* 1937C4 80264EE4 00021080 */ sll $v0, $v0, 2
2021-02-10 18:30:27 +01:00
/* 1937C8 80264EE8 3C018028 */ lui $at, %hi(bActorSoundTable+24)
2020-09-24 05:16:13 +02:00
/* 1937CC 80264EEC 00220821 */ addu $at, $at, $v0
2021-02-10 18:30:27 +01:00
/* 1937D0 80264EF0 94221480 */ lhu $v0, %lo(bActorSoundTable+24)($at)
2020-09-24 05:16:13 +02:00
/* 1937D4 80264EF4 24040001 */ addiu $a0, $zero, 1
/* 1937D8 80264EF8 A62201B4 */ sh $v0, 0x1b4($s1)
/* 1937DC 80264EFC 000310C0 */ sll $v0, $v1, 3
/* 1937E0 80264F00 00431023 */ subu $v0, $v0, $v1
/* 1937E4 80264F04 00021080 */ sll $v0, $v0, 2
2021-02-10 18:30:27 +01:00
/* 1937E8 80264F08 3C018028 */ lui $at, %hi(bActorSoundTable+0x1A)
2020-09-24 05:16:13 +02:00
/* 1937EC 80264F0C 00220821 */ addu $at, $at, $v0
2021-02-10 18:30:27 +01:00
/* 1937F0 80264F10 94221482 */ lhu $v0, %lo(bActorSoundTable+0x1A)($at)
2020-09-24 05:16:13 +02:00
/* 1937F4 80264F14 26230004 */ addiu $v1, $s1, 4
/* 1937F8 80264F18 A62201B6 */ sh $v0, 0x1b6($s1)
2020-08-04 08:49:11 +02:00
.L80264F1C:
2020-09-24 05:16:13 +02:00
/* 1937FC 80264F1C AC600438 */ sw $zero, 0x438($v1)
/* 193800 80264F20 2484FFFF */ addiu $a0, $a0, -1
/* 193804 80264F24 0481FFFD */ bgez $a0, .L80264F1C
/* 193808 80264F28 2463FFFC */ addiu $v1, $v1, -4
/* 19380C 80264F2C 0C00AB39 */ jal heap_malloc
/* 193810 80264F30 240400C4 */ addiu $a0, $zero, 0xc4
/* 193814 80264F34 0040802D */ daddu $s0, $v0, $zero
/* 193818 80264F38 16000003 */ bnez $s0, .L80264F48
/* 19381C 80264F3C AE3001F4 */ sw $s0, 0x1f4($s1)
2020-08-04 08:49:11 +02:00
.L80264F40:
2020-09-24 05:16:13 +02:00
/* 193820 80264F40 080993D0 */ j .L80264F40
2021-01-12 16:42:27 +01:00
/* 193824 80264F44 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L80264F48:
2020-09-24 05:16:13 +02:00
/* 193828 80264F48 1AC000E7 */ blez $s6, .L802652E8
/* 19382C 80264F4C 0000982D */ daddu $s3, $zero, $zero
/* 193830 80264F50 3C013F80 */ lui $at, 0x3f80
/* 193834 80264F54 4481A000 */ mtc1 $at, $f20
2021-02-10 18:30:27 +01:00
/* 193838 80264F58 3C128028 */ lui $s2, %hi(bActorSoundTable)
/* 19383C 80264F5C 26521468 */ addiu $s2, $s2, %lo(bActorSoundTable)
2020-09-24 05:16:13 +02:00
/* 193840 80264F60 0260A82D */ daddu $s5, $s3, $zero
2020-08-04 08:49:11 +02:00
.L80264F64:
2020-09-24 05:16:13 +02:00
/* 193844 80264F64 8E83000C */ lw $v1, 0xc($s4)
/* 193848 80264F68 AE0000C0 */ sw $zero, 0xc0($s0)
/* 19384C 80264F6C 00751821 */ addu $v1, $v1, $s5
/* 193850 80264F70 AE030008 */ sw $v1, 8($s0)
/* 193854 80264F74 8C620000 */ lw $v0, ($v1)
/* 193858 80264F78 AE000004 */ sw $zero, 4($s0)
/* 19385C 80264F7C 34420004 */ ori $v0, $v0, 4
/* 193860 80264F80 AE020000 */ sw $v0, ($s0)
/* 193864 80264F84 90620005 */ lbu $v0, 5($v1)
/* 193868 80264F88 00021600 */ sll $v0, $v0, 0x18
/* 19386C 80264F8C 00021603 */ sra $v0, $v0, 0x18
/* 193870 80264F90 A6020014 */ sh $v0, 0x14($s0)
/* 193874 80264F94 00021400 */ sll $v0, $v0, 0x10
/* 193878 80264F98 00021403 */ sra $v0, $v0, 0x10
/* 19387C 80264F9C 44820000 */ mtc1 $v0, $f0
2021-01-12 16:42:27 +01:00
/* 193880 80264FA0 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 193884 80264FA4 46800020 */ cvt.s.w $f0, $f0
/* 193888 80264FA8 E6000020 */ swc1 $f0, 0x20($s0)
/* 19388C 80264FAC 90620006 */ lbu $v0, 6($v1)
/* 193890 80264FB0 00021600 */ sll $v0, $v0, 0x18
/* 193894 80264FB4 00021603 */ sra $v0, $v0, 0x18
/* 193898 80264FB8 A6020016 */ sh $v0, 0x16($s0)
/* 19389C 80264FBC 00021400 */ sll $v0, $v0, 0x10
/* 1938A0 80264FC0 00021403 */ sra $v0, $v0, 0x10
/* 1938A4 80264FC4 44820000 */ mtc1 $v0, $f0
2021-01-12 16:42:27 +01:00
/* 1938A8 80264FC8 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 1938AC 80264FCC 46800020 */ cvt.s.w $f0, $f0
/* 1938B0 80264FD0 E6000024 */ swc1 $f0, 0x24($s0)
/* 1938B4 80264FD4 90620007 */ lbu $v0, 7($v1)
/* 1938B8 80264FD8 A600001A */ sh $zero, 0x1a($s0)
/* 1938BC 80264FDC A600001C */ sh $zero, 0x1c($s0)
/* 1938C0 80264FE0 A600001E */ sh $zero, 0x1e($s0)
/* 1938C4 80264FE4 AE00002C */ sw $zero, 0x2c($s0)
/* 1938C8 80264FE8 AE000030 */ sw $zero, 0x30($s0)
/* 1938CC 80264FEC AE000034 */ sw $zero, 0x34($s0)
/* 1938D0 80264FF0 00021600 */ sll $v0, $v0, 0x18
/* 1938D4 80264FF4 00021603 */ sra $v0, $v0, 0x18
/* 1938D8 80264FF8 A6020018 */ sh $v0, 0x18($s0)
/* 1938DC 80264FFC 00021400 */ sll $v0, $v0, 0x10
/* 1938E0 80265000 00021403 */ sra $v0, $v0, 0x10
/* 1938E4 80265004 44820000 */ mtc1 $v0, $f0
2021-01-12 16:42:27 +01:00
/* 1938E8 80265008 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 1938EC 8026500C 46800020 */ cvt.s.w $f0, $f0
/* 1938F0 80265010 E6000028 */ swc1 $f0, 0x28($s0)
/* 1938F4 80265014 8C620010 */ lw $v0, 0x10($v1)
/* 1938F8 80265018 AE020078 */ sw $v0, 0x78($s0)
/* 1938FC 8026501C 8C62000C */ lw $v0, 0xc($v1)
/* 193900 80265020 AE020094 */ sw $v0, 0x94($s0)
/* 193904 80265024 8C620014 */ lw $v0, 0x14($v1)
/* 193908 80265028 AE02007C */ sw $v0, 0x7c($s0)
/* 19390C 8026502C 8C620018 */ lw $v0, 0x18($v1)
/* 193910 80265030 AE020080 */ sw $v0, 0x80($s0)
/* 193914 80265034 9462000A */ lhu $v0, 0xa($v1)
/* 193918 80265038 A6020098 */ sh $v0, 0x98($s0)
/* 19391C 8026503C 92220191 */ lbu $v0, 0x191($s1)
/* 193920 80265040 A2020073 */ sb $v0, 0x73($s0)
/* 193924 80265044 92220190 */ lbu $v0, 0x190($s1)
/* 193928 80265048 A2020072 */ sb $v0, 0x72($s0)
/* 19392C 8026504C AE000064 */ sw $zero, 0x64($s0)
/* 193930 80265050 90620008 */ lbu $v0, 8($v1)
/* 193934 80265054 00021600 */ sll $v0, $v0, 0x18
/* 193938 80265058 00021603 */ sra $v0, $v0, 0x18
/* 19393C 8026505C A602006C */ sh $v0, 0x6c($s0)
/* 193940 80265060 90630009 */ lbu $v1, 9($v1)
/* 193944 80265064 24020001 */ addiu $v0, $zero, 1
/* 193948 80265068 A6000070 */ sh $zero, 0x70($s0)
/* 19394C 8026506C A6000044 */ sh $zero, 0x44($s0)
/* 193950 80265070 A6000046 */ sh $zero, 0x46($s0)
/* 193954 80265074 A6000048 */ sh $zero, 0x48($s0)
/* 193958 80265078 AE000038 */ sw $zero, 0x38($s0)
/* 19395C 8026507C AE00003C */ sw $zero, 0x3c($s0)
/* 193960 80265080 AE000040 */ sw $zero, 0x40($s0)
/* 193964 80265084 E614004C */ swc1 $f20, 0x4c($s0)
/* 193968 80265088 E6140050 */ swc1 $f20, 0x50($s0)
/* 19396C 8026508C E6140054 */ swc1 $f20, 0x54($s0)
/* 193970 80265090 A2020074 */ sb $v0, 0x74($s0)
/* 193974 80265094 A6000068 */ sh $zero, 0x68($s0)
/* 193978 80265098 A600006A */ sh $zero, 0x6a($s0)
/* 19397C 8026509C 00031E00 */ sll $v1, $v1, 0x18
/* 193980 802650A0 00031E03 */ sra $v1, $v1, 0x18
/* 193984 802650A4 A603006E */ sh $v1, 0x6e($s0)
/* 193988 802650A8 92230136 */ lbu $v1, 0x136($s1)
/* 19398C 802650AC 000310C0 */ sll $v0, $v1, 3
/* 193990 802650B0 00431023 */ subu $v0, $v0, $v1
/* 193994 802650B4 00021080 */ sll $v0, $v0, 2
/* 193998 802650B8 00521021 */ addu $v0, $v0, $s2
/* 19399C 802650BC 8C420000 */ lw $v0, ($v0)
/* 1939A0 802650C0 AE0200A4 */ sw $v0, 0xa4($s0)
/* 1939A4 802650C4 92230136 */ lbu $v1, 0x136($s1)
/* 1939A8 802650C8 000310C0 */ sll $v0, $v1, 3
/* 1939AC 802650CC 00431023 */ subu $v0, $v0, $v1
/* 1939B0 802650D0 00021080 */ sll $v0, $v0, 2
/* 1939B4 802650D4 00521021 */ addu $v0, $v0, $s2
/* 1939B8 802650D8 8C420004 */ lw $v0, 4($v0)
/* 1939BC 802650DC AE0200A8 */ sw $v0, 0xa8($s0)
/* 1939C0 802650E0 92230136 */ lbu $v1, 0x136($s1)
/* 1939C4 802650E4 000310C0 */ sll $v0, $v1, 3
/* 1939C8 802650E8 00431023 */ subu $v0, $v0, $v1
/* 1939CC 802650EC 00021080 */ sll $v0, $v0, 2
/* 1939D0 802650F0 00521021 */ addu $v0, $v0, $s2
/* 1939D4 802650F4 8C420008 */ lw $v0, 8($v0)
/* 1939D8 802650F8 AE0200AC */ sw $v0, 0xac($s0)
/* 1939DC 802650FC 92230136 */ lbu $v1, 0x136($s1)
/* 1939E0 80265100 000310C0 */ sll $v0, $v1, 3
/* 1939E4 80265104 00431023 */ subu $v0, $v0, $v1
/* 1939E8 80265108 00021080 */ sll $v0, $v0, 2
/* 1939EC 8026510C 00521021 */ addu $v0, $v0, $s2
/* 1939F0 80265110 8C42000C */ lw $v0, 0xc($v0)
/* 1939F4 80265114 AE0200B0 */ sw $v0, 0xb0($s0)
/* 1939F8 80265118 92230136 */ lbu $v1, 0x136($s1)
/* 1939FC 8026511C 000310C0 */ sll $v0, $v1, 3
/* 193A00 80265120 00431023 */ subu $v0, $v0, $v1
/* 193A04 80265124 00021080 */ sll $v0, $v0, 2
/* 193A08 80265128 00521021 */ addu $v0, $v0, $s2
/* 193A0C 8026512C 8C420010 */ lw $v0, 0x10($v0)
/* 193A10 80265130 AE0200B4 */ sw $v0, 0xb4($s0)
/* 193A14 80265134 92230136 */ lbu $v1, 0x136($s1)
/* 193A18 80265138 000310C0 */ sll $v0, $v1, 3
/* 193A1C 8026513C 00431023 */ subu $v0, $v0, $v1
/* 193A20 80265140 00021080 */ sll $v0, $v0, 2
/* 193A24 80265144 00521021 */ addu $v0, $v0, $s2
/* 193A28 80265148 8C420014 */ lw $v0, 0x14($v0)
/* 193A2C 8026514C AE0200B8 */ sw $v0, 0xb8($s0)
/* 193A30 80265150 92230136 */ lbu $v1, 0x136($s1)
/* 193A34 80265154 000310C0 */ sll $v0, $v1, 3
/* 193A38 80265158 00431023 */ subu $v0, $v0, $v1
/* 193A3C 8026515C 00021080 */ sll $v0, $v0, 2
/* 193A40 80265160 00521021 */ addu $v0, $v0, $s2
/* 193A44 80265164 94420018 */ lhu $v0, 0x18($v0)
/* 193A48 80265168 A60200BC */ sh $v0, 0xbc($s0)
/* 193A4C 8026516C 92230136 */ lbu $v1, 0x136($s1)
/* 193A50 80265170 000310C0 */ sll $v0, $v1, 3
/* 193A54 80265174 00431023 */ subu $v0, $v0, $v1
/* 193A58 80265178 00021080 */ sll $v0, $v0, 2
/* 193A5C 8026517C 00521021 */ addu $v0, $v0, $s2
/* 193A60 80265180 9442001A */ lhu $v0, 0x1a($v0)
/* 193A64 80265184 8E030094 */ lw $v1, 0x94($s0)
/* 193A68 80265188 10600030 */ beqz $v1, .L8026524C
/* 193A6C 8026518C A60200BE */ sh $v0, 0xbe($s0)
/* 193A70 80265190 0C00AB39 */ jal heap_malloc
/* 193A74 80265194 240408E8 */ addiu $a0, $zero, 0x8e8
/* 193A78 80265198 0040202D */ daddu $a0, $v0, $zero
/* 193A7C 8026519C 14800003 */ bnez $a0, .L802651AC
/* 193A80 802651A0 AE0200C0 */ sw $v0, 0xc0($s0)
2020-08-04 08:49:11 +02:00
.L802651A4:
2020-09-24 05:16:13 +02:00
/* 193A84 802651A4 08099469 */ j .L802651A4
2021-01-12 16:42:27 +01:00
/* 193A88 802651A8 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L802651AC:
2020-09-24 05:16:13 +02:00
/* 193A8C 802651AC 0000282D */ daddu $a1, $zero, $zero
/* 193A90 802651B0 0080182D */ daddu $v1, $a0, $zero
/* 193A94 802651B4 A08006C0 */ sb $zero, 0x6c0($a0)
/* 193A98 802651B8 A0800750 */ sb $zero, 0x750($a0)
/* 193A9C 802651BC A0800764 */ sb $zero, 0x764($a0)
/* 193AA0 802651C0 A0800768 */ sb $zero, 0x768($a0)
/* 193AA4 802651C4 A08007D8 */ sb $zero, 0x7d8($a0)
/* 193AA8 802651C8 A08007D9 */ sb $zero, 0x7d9($a0)
2020-08-04 08:49:11 +02:00
.L802651CC:
2020-09-24 05:16:13 +02:00
/* 193AAC 802651CC C6200144 */ lwc1 $f0, 0x144($s1)
2020-08-04 08:49:11 +02:00
/* 193AB0 802651D0 4600018D */ trunc.w.s $f6, $f0
2020-09-24 05:16:13 +02:00
/* 193AB4 802651D4 44023000 */ mfc1 $v0, $f6
2021-01-12 16:42:27 +01:00
/* 193AB8 802651D8 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 193ABC 802651DC A46207FC */ sh $v0, 0x7fc($v1)
/* 193AC0 802651E0 C6200148 */ lwc1 $f0, 0x148($s1)
2020-08-04 08:49:11 +02:00
/* 193AC4 802651E4 4600018D */ trunc.w.s $f6, $f0
2020-09-24 05:16:13 +02:00
/* 193AC8 802651E8 44023000 */ mfc1 $v0, $f6
2021-01-12 16:42:27 +01:00
/* 193ACC 802651EC 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 193AD0 802651F0 A462081C */ sh $v0, 0x81c($v1)
/* 193AD4 802651F4 C620014C */ lwc1 $f0, 0x14c($s1)
/* 193AD8 802651F8 24A50001 */ addiu $a1, $a1, 1
2020-08-04 08:49:11 +02:00
/* 193ADC 802651FC 4600018D */ trunc.w.s $f6, $f0
2020-09-24 05:16:13 +02:00
/* 193AE0 80265200 44023000 */ mfc1 $v0, $f6
2021-01-12 16:42:27 +01:00
/* 193AE4 80265204 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 193AE8 80265208 A462083C */ sh $v0, 0x83c($v1)
/* 193AEC 8026520C 28A20010 */ slti $v0, $a1, 0x10
/* 193AF0 80265210 1440FFEE */ bnez $v0, .L802651CC
/* 193AF4 80265214 24630002 */ addiu $v1, $v1, 2
/* 193AF8 80265218 0000282D */ daddu $a1, $zero, $zero
/* 193AFC 8026521C 0080182D */ daddu $v1, $a0, $zero
/* 193B00 80265220 24020003 */ addiu $v0, $zero, 3
/* 193B04 80265224 A08207DA */ sb $v0, 0x7da($a0)
/* 193B08 80265228 A08007DB */ sb $zero, 0x7db($a0)
/* 193B0C 8026522C A08008AC */ sb $zero, 0x8ac($a0)
2020-08-04 08:49:11 +02:00
.L80265230:
2020-09-24 05:16:13 +02:00
/* 193B10 80265230 AC6008B0 */ sw $zero, 0x8b0($v1)
/* 193B14 80265234 00851021 */ addu $v0, $a0, $a1
/* 193B18 80265238 24A50001 */ addiu $a1, $a1, 1
/* 193B1C 8026523C A04008B8 */ sb $zero, 0x8b8($v0)
/* 193B20 80265240 28A20002 */ slti $v0, $a1, 2
/* 193B24 80265244 1440FFFA */ bnez $v0, .L80265230
/* 193B28 80265248 24630004 */ addiu $v1, $v1, 4
2020-08-04 08:49:11 +02:00
.L8026524C:
2020-09-24 05:16:13 +02:00
/* 193B2C 8026524C 8E020000 */ lw $v0, ($s0)
/* 193B30 80265250 04400007 */ bltz $v0, .L80265270
2021-01-12 16:42:27 +01:00
/* 193B34 80265254 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 193B38 80265258 0C00AB39 */ jal heap_malloc
/* 193B3C 8026525C 2404008C */ addiu $a0, $zero, 0x8c
/* 193B40 80265260 14400003 */ bnez $v0, .L80265270
/* 193B44 80265264 AE020010 */ sw $v0, 0x10($s0)
2020-08-04 08:49:11 +02:00
.L80265268:
2020-09-24 05:16:13 +02:00
/* 193B48 80265268 0809949A */ j .L80265268
2021-01-12 16:42:27 +01:00
/* 193B4C 8026526C 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L80265270:
2020-09-24 05:16:13 +02:00
/* 193B50 80265270 8E040094 */ lw $a0, 0x94($s0)
/* 193B54 80265274 2402FFFF */ addiu $v0, $zero, -1
/* 193B58 80265278 E6140090 */ swc1 $f20, 0x90($s0)
/* 193B5C 8026527C AE000088 */ sw $zero, 0x88($s0)
/* 193B60 80265280 10800009 */ beqz $a0, .L802652A8
/* 193B64 80265284 AE020084 */ sw $v0, 0x84($s0)
/* 193B68 80265288 0C09973A */ jal func_80265CE8
/* 193B6C 8026528C 24050001 */ addiu $a1, $zero, 1
/* 193B70 80265290 3C048000 */ lui $a0, 0x8000
/* 193B74 80265294 00442025 */ or $a0, $v0, $a0
/* 193B78 80265298 0000282D */ daddu $a1, $zero, $zero
/* 193B7C 8026529C 0C0B783B */ jal func_802DE0EC
/* 193B80 802652A0 AE020088 */ sw $v0, 0x88($s0)
/* 193B84 802652A4 AE020084 */ sw $v0, 0x84($s0)
2020-08-04 08:49:11 +02:00
.L802652A8:
2020-09-24 05:16:13 +02:00
/* 193B88 802652A8 26620001 */ addiu $v0, $s3, 1
/* 193B8C 802652AC 0056102A */ slt $v0, $v0, $s6
/* 193B90 802652B0 50400009 */ beql $v0, $zero, .L802652D8
/* 193B94 802652B4 AE00000C */ sw $zero, 0xc($s0)
/* 193B98 802652B8 0C00AB39 */ jal heap_malloc
/* 193B9C 802652BC 240400C4 */ addiu $a0, $zero, 0xc4
/* 193BA0 802652C0 AE02000C */ sw $v0, 0xc($s0)
/* 193BA4 802652C4 0040802D */ daddu $s0, $v0, $zero
/* 193BA8 802652C8 56000003 */ bnel $s0, $zero, .L802652D8
/* 193BAC 802652CC AE00000C */ sw $zero, 0xc($s0)
2020-08-04 08:49:11 +02:00
.L802652D0:
2020-09-24 05:16:13 +02:00
/* 193BB0 802652D0 080994B4 */ j .L802652D0
2021-01-12 16:42:27 +01:00
/* 193BB4 802652D4 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L802652D8:
2020-09-24 05:16:13 +02:00
/* 193BB8 802652D8 26730001 */ addiu $s3, $s3, 1
/* 193BBC 802652DC 0276102A */ slt $v0, $s3, $s6
/* 193BC0 802652E0 1440FF20 */ bnez $v0, .L80264F64
/* 193BC4 802652E4 26B50024 */ addiu $s5, $s5, 0x24
2020-08-04 08:49:11 +02:00
.L802652E8:
2020-09-24 05:16:13 +02:00
/* 193BC8 802652E8 8E250144 */ lw $a1, 0x144($s1)
/* 193BCC 802652EC 8E260148 */ lw $a2, 0x148($s1)
/* 193BD0 802652F0 8E27014C */ lw $a3, 0x14c($s1)
/* 193BD4 802652F4 0C044898 */ jal create_shadow_type
/* 193BD8 802652F8 0000202D */ daddu $a0, $zero, $zero
/* 193BDC 802652FC AE22042C */ sw $v0, 0x42c($s1)
/* 193BE0 80265300 92220190 */ lbu $v0, 0x190($s1)
/* 193BE4 80265304 3C014038 */ lui $at, 0x4038
/* 193BE8 80265308 44811800 */ mtc1 $at, $f3
/* 193BEC 8026530C 44801000 */ mtc1 $zero, $f2
/* 193BF0 80265310 44820000 */ mtc1 $v0, $f0
2021-01-12 16:42:27 +01:00
/* 193BF4 80265314 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 193BF8 80265318 46800021 */ cvt.d.w $f0, $f0
/* 193BFC 8026531C 46220003 */ div.d $f0, $f0, $f2
/* 193C00 80265320 46200020 */ cvt.s.d $f0, $f0
/* 193C04 80265324 0C011D82 */ jal func_80047608
/* 193C08 80265328 E6200430 */ swc1 $f0, 0x430($s1)
/* 193C0C 8026532C 3C05C30E */ lui $a1, 0xc30e
/* 193C10 80265330 3C064208 */ lui $a2, 0x4208
/* 193C14 80265334 3C073F80 */ lui $a3, 0x3f80
/* 193C18 80265338 0000202D */ daddu $a0, $zero, $zero
/* 193C1C 8026533C A6220436 */ sh $v0, 0x436($s1)
/* 193C20 80265340 0C01C43C */ jal func_800710F0
/* 193C24 80265344 AFA00010 */ sw $zero, 0x10($sp)
/* 193C28 80265348 2405000A */ addiu $a1, $zero, 0xa
/* 193C2C 8026534C 8E2401C4 */ lw $a0, 0x1c4($s1)
/* 193C30 80265350 0000302D */ daddu $a2, $zero, $zero
/* 193C34 80265354 AE220440 */ sw $v0, 0x440($s1)
/* 193C38 80265358 0C0B0CF8 */ jal start_script
/* 193C3C 8026535C AE200228 */ sw $zero, 0x228($s1)
/* 193C40 80265360 8C430144 */ lw $v1, 0x144($v0)
/* 193C44 80265364 AE2301E4 */ sw $v1, 0x1e4($s1)
/* 193C48 80265368 24030100 */ addiu $v1, $zero, 0x100
/* 193C4C 8026536C AC430148 */ sw $v1, 0x148($v0)
2020-08-04 08:49:11 +02:00
.L80265370:
2020-09-24 05:16:13 +02:00
/* 193C50 80265370 8FBF0034 */ lw $ra, 0x34($sp)
/* 193C54 80265374 8FB60030 */ lw $s6, 0x30($sp)
/* 193C58 80265378 8FB5002C */ lw $s5, 0x2c($sp)
/* 193C5C 8026537C 8FB40028 */ lw $s4, 0x28($sp)
/* 193C60 80265380 8FB30024 */ lw $s3, 0x24($sp)
/* 193C64 80265384 8FB20020 */ lw $s2, 0x20($sp)
/* 193C68 80265388 8FB1001C */ lw $s1, 0x1c($sp)
/* 193C6C 8026538C 8FB00018 */ lw $s0, 0x18($sp)
/* 193C70 80265390 D7B80048 */ ldc1 $f24, 0x48($sp)
/* 193C74 80265394 D7B60040 */ ldc1 $f22, 0x40($sp)
/* 193C78 80265398 D7B40038 */ ldc1 $f20, 0x38($sp)
/* 193C7C 8026539C 03E00008 */ jr $ra
/* 193C80 802653A0 27BD0050 */ addiu $sp, $sp, 0x50