mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
3315d6010f
* all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
110 lines
5.5 KiB
ArmAsm
110 lines
5.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80044374
|
|
/* 1F774 80044374 27BDFFD0 */ addiu $sp, $sp, -0x30
|
|
/* 1F778 80044378 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 1F77C 8004437C 00A0802D */ daddu $s0, $a1, $zero
|
|
/* 1F780 80044380 AFBF0028 */ sw $ra, 0x28($sp)
|
|
/* 1F784 80044384 AFB50024 */ sw $s5, 0x24($sp)
|
|
/* 1F788 80044388 AFB40020 */ sw $s4, 0x20($sp)
|
|
/* 1F78C 8004438C AFB3001C */ sw $s3, 0x1c($sp)
|
|
/* 1F790 80044390 AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 1F794 80044394 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 1F798 80044398 8C910148 */ lw $s1, 0x148($a0)
|
|
/* 1F79C 8004439C 0C0B1192 */ jal func_802C4648
|
|
/* 1F7A0 800443A0 24040001 */ addiu $a0, $zero, 1
|
|
/* 1F7A4 800443A4 3C13800B */ lui $s3, %hi(D_800B0EF0)
|
|
/* 1F7A8 800443A8 26730EF0 */ addiu $s3, $s3, %lo(D_800B0EF0)
|
|
/* 1F7AC 800443AC 24020001 */ addiu $v0, $zero, 1
|
|
/* 1F7B0 800443B0 A2620005 */ sb $v0, 5($s3)
|
|
/* 1F7B4 800443B4 A2220005 */ sb $v0, 5($s1)
|
|
/* 1F7B8 800443B8 AE71008C */ sw $s1, 0x8c($s3)
|
|
/* 1F7BC 800443BC 82220004 */ lb $v0, 4($s1)
|
|
/* 1F7C0 800443C0 00021080 */ sll $v0, $v0, 2
|
|
/* 1F7C4 800443C4 00531021 */ addu $v0, $v0, $s3
|
|
/* 1F7C8 800443C8 8C430028 */ lw $v1, 0x28($v0)
|
|
/* 1F7CC 800443CC 2402FFFF */ addiu $v0, $zero, -1
|
|
/* 1F7D0 800443D0 A2600004 */ sb $zero, 4($s3)
|
|
/* 1F7D4 800443D4 A2600011 */ sb $zero, 0x11($s3)
|
|
/* 1F7D8 800443D8 AE700014 */ sw $s0, 0x14($s3)
|
|
/* 1F7DC 800443DC AE620018 */ sw $v0, 0x18($s3)
|
|
/* 1F7E0 800443E0 AE630088 */ sw $v1, 0x88($s3)
|
|
/* 1F7E4 800443E4 8E22003C */ lw $v0, 0x3c($s1)
|
|
/* 1F7E8 800443E8 10400003 */ beqz $v0, .L800443F8
|
|
/* 1F7EC 800443EC 00000000 */ nop
|
|
/* 1F7F0 800443F0 0C0B1108 */ jal func_802C4420
|
|
/* 1F7F4 800443F4 8E240054 */ lw $a0, 0x54($s1)
|
|
.L800443F8:
|
|
/* 1F7F8 800443F8 8E220044 */ lw $v0, 0x44($s1)
|
|
/* 1F7FC 800443FC 10400003 */ beqz $v0, .L8004440C
|
|
/* 1F800 80044400 00000000 */ nop
|
|
/* 1F804 80044404 0C0B1108 */ jal func_802C4420
|
|
/* 1F808 80044408 8E24005C */ lw $a0, 0x5c($s1)
|
|
.L8004440C:
|
|
/* 1F80C 8004440C 0C038056 */ jal func_800E0158
|
|
/* 1F810 80044410 0000802D */ daddu $s0, $zero, $zero
|
|
/* 1F814 80044414 0C03BD6F */ jal func_800EF5BC
|
|
/* 1F818 80044418 00000000 */ nop
|
|
/* 1F81C 8004441C 8E740088 */ lw $s4, 0x88($s3)
|
|
/* 1F820 80044420 8E820000 */ lw $v0, ($s4)
|
|
/* 1F824 80044424 18400021 */ blez $v0, .L800444AC
|
|
/* 1F828 80044428 24150001 */ addiu $s5, $zero, 1
|
|
/* 1F82C 8004442C 0280902D */ daddu $s2, $s4, $zero
|
|
.L80044430:
|
|
/* 1F830 80044430 8E510004 */ lw $s1, 4($s2)
|
|
/* 1F834 80044434 12200018 */ beqz $s1, .L80044498
|
|
/* 1F838 80044438 00000000 */ nop
|
|
/* 1F83C 8004443C 8E220000 */ lw $v0, ($s1)
|
|
/* 1F840 80044440 30420008 */ andi $v0, $v0, 8
|
|
/* 1F844 80044444 10400004 */ beqz $v0, .L80044458
|
|
/* 1F848 80044448 00000000 */ nop
|
|
/* 1F84C 8004444C 8E62008C */ lw $v0, 0x8c($s3)
|
|
/* 1F850 80044450 16220011 */ bne $s1, $v0, .L80044498
|
|
/* 1F854 80044454 00000000 */ nop
|
|
.L80044458:
|
|
/* 1F858 80044458 8E220028 */ lw $v0, 0x28($s1)
|
|
/* 1F85C 8004445C 1040000E */ beqz $v0, .L80044498
|
|
/* 1F860 80044460 0040202D */ daddu $a0, $v0, $zero
|
|
/* 1F864 80044464 2405000A */ addiu $a1, $zero, 0xa
|
|
/* 1F868 80044468 0000302D */ daddu $a2, $zero, $zero
|
|
/* 1F86C 8004446C 0C0B0CF8 */ jal func_802C33E0
|
|
/* 1F870 80044470 A2350005 */ sb $s5, 5($s1)
|
|
/* 1F874 80044474 0040182D */ daddu $v1, $v0, $zero
|
|
/* 1F878 80044478 AE230040 */ sw $v1, 0x40($s1)
|
|
/* 1F87C 8004447C 8C620144 */ lw $v0, 0x144($v1)
|
|
/* 1F880 80044480 AE220058 */ sw $v0, 0x58($s1)
|
|
/* 1F884 80044484 AC710148 */ sw $s1, 0x148($v1)
|
|
/* 1F888 80044488 86220008 */ lh $v0, 8($s1)
|
|
/* 1F88C 8004448C AC62014C */ sw $v0, 0x14c($v1)
|
|
/* 1F890 80044490 92220006 */ lbu $v0, 6($s1)
|
|
/* 1F894 80044494 A0620004 */ sb $v0, 4($v1)
|
|
.L80044498:
|
|
/* 1F898 80044498 8E820000 */ lw $v0, ($s4)
|
|
/* 1F89C 8004449C 26100001 */ addiu $s0, $s0, 1
|
|
/* 1F8A0 800444A0 0202102A */ slt $v0, $s0, $v0
|
|
/* 1F8A4 800444A4 1440FFE2 */ bnez $v0, .L80044430
|
|
/* 1F8A8 800444A8 26520004 */ addiu $s2, $s2, 4
|
|
.L800444AC:
|
|
/* 1F8AC 800444AC 24020001 */ addiu $v0, $zero, 1
|
|
/* 1F8B0 800444B0 AE600090 */ sw $zero, 0x90($s3)
|
|
/* 1F8B4 800444B4 AE600094 */ sw $zero, 0x94($s3)
|
|
/* 1F8B8 800444B8 A2620012 */ sb $v0, 0x12($s3)
|
|
/* 1F8BC 800444BC 8FBF0028 */ lw $ra, 0x28($sp)
|
|
/* 1F8C0 800444C0 8FB50024 */ lw $s5, 0x24($sp)
|
|
/* 1F8C4 800444C4 8FB40020 */ lw $s4, 0x20($sp)
|
|
/* 1F8C8 800444C8 8FB3001C */ lw $s3, 0x1c($sp)
|
|
/* 1F8CC 800444CC 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 1F8D0 800444D0 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 1F8D4 800444D4 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 1F8D8 800444D8 24020003 */ addiu $v0, $zero, 3
|
|
/* 1F8DC 800444DC 3C01800A */ lui $at, %hi(D_8009A5E0)
|
|
/* 1F8E0 800444E0 AC22A5E0 */ sw $v0, %lo(D_8009A5E0)($at)
|
|
/* 1F8E4 800444E4 24020001 */ addiu $v0, $zero, 1
|
|
/* 1F8E8 800444E8 3C01800A */ lui $at, %hi(D_8009A658)
|
|
/* 1F8EC 800444EC AC22A658 */ sw $v0, %lo(D_8009A658)($at)
|
|
/* 1F8F0 800444F0 3C01800A */ lui $at, %hi(D_8009A5B0)
|
|
/* 1F8F4 800444F4 AC20A5B0 */ sw $zero, %lo(D_8009A5B0)($at)
|
|
/* 1F8F8 800444F8 03E00008 */ jr $ra
|
|
/* 1F8FC 800444FC 27BD0030 */ addiu $sp, $sp, 0x30
|