mirror of
https://github.com/pmret/papermario.git
synced 2024-11-15 07:22:29 +01:00
647db26552
* . * yaml update * git subrepo pull --force tools/splat subrepo: subdir: "tools/splat" merged: "cd690f725d" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cd690f725d" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * separate main bss syms * renames and one match * SR symbol rename * fix symbol_addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "5fa8aa24ca" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "5fa8aa24ca" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * remove old artifacts
122 lines
5.8 KiB
ArmAsm
122 lines
5.8 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel kill_enemy
|
|
/* 19BAC 8003E7AC 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 19BB0 8003E7B0 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 19BB4 8003E7B4 0080802D */ daddu $s0, $a0, $zero
|
|
/* 19BB8 8003E7B8 AFBF0020 */ sw $ra, 0x20($sp)
|
|
/* 19BBC 8003E7BC AFB3001C */ sw $s3, 0x1c($sp)
|
|
/* 19BC0 8003E7C0 AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 19BC4 8003E7C4 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 19BC8 8003E7C8 82020004 */ lb $v0, 4($s0)
|
|
/* 19BCC 8003E7CC 00021080 */ sll $v0, $v0, 2
|
|
/* 19BD0 8003E7D0 3C13800B */ lui $s3, %hi(gCurrentEncounter+0x28)
|
|
/* 19BD4 8003E7D4 02629821 */ addu $s3, $s3, $v0
|
|
/* 19BD8 8003E7D8 8E730F38 */ lw $s3, %lo(gCurrentEncounter+0x28)($s3)
|
|
/* 19BDC 8003E7DC 8E640000 */ lw $a0, ($s3)
|
|
/* 19BE0 8003E7E0 3C12800B */ lui $s2, %hi(gCurrentEncounter)
|
|
/* 19BE4 8003E7E4 26520F10 */ addiu $s2, $s2, %lo(gCurrentEncounter)
|
|
/* 19BE8 8003E7E8 18800009 */ blez $a0, .L8003E810
|
|
/* 19BEC 8003E7EC 0000882D */ daddu $s1, $zero, $zero
|
|
/* 19BF0 8003E7F0 0260182D */ daddu $v1, $s3, $zero
|
|
.L8003E7F4:
|
|
/* 19BF4 8003E7F4 8C620004 */ lw $v0, 4($v1)
|
|
/* 19BF8 8003E7F8 10500005 */ beq $v0, $s0, .L8003E810
|
|
/* 19BFC 8003E7FC 00000000 */ nop
|
|
/* 19C00 8003E800 26310001 */ addiu $s1, $s1, 1
|
|
/* 19C04 8003E804 0224102A */ slt $v0, $s1, $a0
|
|
/* 19C08 8003E808 1440FFFA */ bnez $v0, .L8003E7F4
|
|
/* 19C0C 8003E80C 24630004 */ addiu $v1, $v1, 4
|
|
.L8003E810:
|
|
/* 19C10 8003E810 8E020034 */ lw $v0, 0x34($s0)
|
|
/* 19C14 8003E814 10400003 */ beqz $v0, .L8003E824
|
|
/* 19C18 8003E818 00000000 */ nop
|
|
/* 19C1C 8003E81C 0C0B102B */ jal kill_script_by_ID
|
|
/* 19C20 8003E820 8E04004C */ lw $a0, 0x4c($s0)
|
|
.L8003E824:
|
|
/* 19C24 8003E824 8E020038 */ lw $v0, 0x38($s0)
|
|
/* 19C28 8003E828 10400003 */ beqz $v0, .L8003E838
|
|
/* 19C2C 8003E82C 00000000 */ nop
|
|
/* 19C30 8003E830 0C0B102B */ jal kill_script_by_ID
|
|
/* 19C34 8003E834 8E040050 */ lw $a0, 0x50($s0)
|
|
.L8003E838:
|
|
/* 19C38 8003E838 8E02003C */ lw $v0, 0x3c($s0)
|
|
/* 19C3C 8003E83C 10400003 */ beqz $v0, .L8003E84C
|
|
/* 19C40 8003E840 00000000 */ nop
|
|
/* 19C44 8003E844 0C0B102B */ jal kill_script_by_ID
|
|
/* 19C48 8003E848 8E040054 */ lw $a0, 0x54($s0)
|
|
.L8003E84C:
|
|
/* 19C4C 8003E84C 8E020040 */ lw $v0, 0x40($s0)
|
|
/* 19C50 8003E850 10400003 */ beqz $v0, .L8003E860
|
|
/* 19C54 8003E854 00000000 */ nop
|
|
/* 19C58 8003E858 0C0B102B */ jal kill_script_by_ID
|
|
/* 19C5C 8003E85C 8E040058 */ lw $a0, 0x58($s0)
|
|
.L8003E860:
|
|
/* 19C60 8003E860 8E020044 */ lw $v0, 0x44($s0)
|
|
/* 19C64 8003E864 10400003 */ beqz $v0, .L8003E874
|
|
/* 19C68 8003E868 00000000 */ nop
|
|
/* 19C6C 8003E86C 0C0B102B */ jal kill_script_by_ID
|
|
/* 19C70 8003E870 8E04005C */ lw $a0, 0x5c($s0)
|
|
.L8003E874:
|
|
/* 19C74 8003E874 8E020048 */ lw $v0, 0x48($s0)
|
|
/* 19C78 8003E878 10400003 */ beqz $v0, .L8003E888
|
|
/* 19C7C 8003E87C 00000000 */ nop
|
|
/* 19C80 8003E880 0C0B102B */ jal kill_script_by_ID
|
|
/* 19C84 8003E884 8E040060 */ lw $a0, 0x60($s0)
|
|
.L8003E888:
|
|
/* 19C88 8003E888 86040008 */ lh $a0, 8($s0)
|
|
/* 19C8C 8003E88C AE000020 */ sw $zero, 0x20($s0)
|
|
/* 19C90 8003E890 AE000024 */ sw $zero, 0x24($s0)
|
|
/* 19C94 8003E894 AE000028 */ sw $zero, 0x28($s0)
|
|
/* 19C98 8003E898 AE00002C */ sw $zero, 0x2c($s0)
|
|
/* 19C9C 8003E89C 0C00EABB */ jal get_npc_unsafe
|
|
/* 19CA0 8003E8A0 AE000030 */ sw $zero, 0x30($s0)
|
|
/* 19CA4 8003E8A4 0C00E273 */ jal free_npc
|
|
/* 19CA8 8003E8A8 0040202D */ daddu $a0, $v0, $zero
|
|
/* 19CAC 8003E8AC 8E040064 */ lw $a0, 0x64($s0)
|
|
/* 19CB0 8003E8B0 50800004 */ beql $a0, $zero, .L8003E8C4
|
|
/* 19CB4 8003E8B4 0000202D */ daddu $a0, $zero, $zero
|
|
/* 19CB8 8003E8B8 0C00AB4B */ jal heap_free
|
|
/* 19CBC 8003E8BC 00000000 */ nop
|
|
/* 19CC0 8003E8C0 0000202D */ daddu $a0, $zero, $zero
|
|
.L8003E8C4:
|
|
/* 19CC4 8003E8C4 0260182D */ daddu $v1, $s3, $zero
|
|
.L8003E8C8:
|
|
/* 19CC8 8003E8C8 8C620004 */ lw $v0, 4($v1)
|
|
/* 19CCC 8003E8CC 50500001 */ beql $v0, $s0, .L8003E8D4
|
|
/* 19CD0 8003E8D0 AC600004 */ sw $zero, 4($v1)
|
|
.L8003E8D4:
|
|
/* 19CD4 8003E8D4 24840001 */ addiu $a0, $a0, 1
|
|
/* 19CD8 8003E8D8 28820010 */ slti $v0, $a0, 0x10
|
|
/* 19CDC 8003E8DC 1440FFFA */ bnez $v0, .L8003E8C8
|
|
/* 19CE0 8003E8E0 24630004 */ addiu $v1, $v1, 4
|
|
/* 19CE4 8003E8E4 8E030000 */ lw $v1, ($s0)
|
|
/* 19CE8 8003E8E8 30620004 */ andi $v0, $v1, 4
|
|
/* 19CEC 8003E8EC 1440000E */ bnez $v0, .L8003E928
|
|
/* 19CF0 8003E8F0 30620008 */ andi $v0, $v1, 8
|
|
/* 19CF4 8003E8F4 10400004 */ beqz $v0, .L8003E908
|
|
/* 19CF8 8003E8F8 30620001 */ andi $v0, $v1, 1
|
|
/* 19CFC 8003E8FC 8E42008C */ lw $v0, 0x8c($s2)
|
|
/* 19D00 8003E900 16020009 */ bne $s0, $v0, .L8003E928
|
|
/* 19D04 8003E904 30620001 */ andi $v0, $v1, 1
|
|
.L8003E908:
|
|
/* 19D08 8003E908 14400007 */ bnez $v0, .L8003E928
|
|
/* 19D0C 8003E90C 30620010 */ andi $v0, $v1, 0x10
|
|
/* 19D10 8003E910 14400005 */ bnez $v0, .L8003E928
|
|
/* 19D14 8003E914 00000000 */ nop
|
|
/* 19D18 8003E918 86650048 */ lh $a1, 0x48($s3)
|
|
/* 19D1C 8003E91C 82440020 */ lb $a0, 0x20($s2)
|
|
/* 19D20 8003E920 0C00F8B8 */ jal COPY_set_defeated
|
|
/* 19D24 8003E924 00B12821 */ addu $a1, $a1, $s1
|
|
.L8003E928:
|
|
/* 19D28 8003E928 0C00AB4B */ jal heap_free
|
|
/* 19D2C 8003E92C 0200202D */ daddu $a0, $s0, $zero
|
|
/* 19D30 8003E930 8FBF0020 */ lw $ra, 0x20($sp)
|
|
/* 19D34 8003E934 8FB3001C */ lw $s3, 0x1c($sp)
|
|
/* 19D38 8003E938 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 19D3C 8003E93C 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 19D40 8003E940 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 19D44 8003E944 03E00008 */ jr $ra
|
|
/* 19D48 8003E948 27BD0028 */ addiu $sp, $sp, 0x28
|