papermario/ver/us/asm/nonmatchings/B9D60/func_80126EAC.s
Ethan Roseman 3315d6010f
Splat refactor (#257)
* 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>
2021-04-13 16:47:52 +09:00

58 lines
3.0 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80126EAC
/* BD5AC 80126EAC 27BDFFC0 */ addiu $sp, $sp, -0x40
/* BD5B0 80126EB0 3C058015 */ lui $a1, %hi(D_80154C30)
/* BD5B4 80126EB4 24A54C30 */ addiu $a1, $a1, %lo(D_80154C30)
/* BD5B8 80126EB8 00041080 */ sll $v0, $a0, 2
/* BD5BC 80126EBC 00441021 */ addu $v0, $v0, $a0
/* BD5C0 80126EC0 00021080 */ sll $v0, $v0, 2
/* BD5C4 80126EC4 00441023 */ subu $v0, $v0, $a0
/* BD5C8 80126EC8 000218C0 */ sll $v1, $v0, 3
/* BD5CC 80126ECC 00431021 */ addu $v0, $v0, $v1
/* BD5D0 80126ED0 000210C0 */ sll $v0, $v0, 3
/* BD5D4 80126ED4 AFB00038 */ sw $s0, 0x38($sp)
/* BD5D8 80126ED8 00458021 */ addu $s0, $v0, $a1
/* BD5DC 80126EDC AFBF003C */ sw $ra, 0x3c($sp)
/* BD5E0 80126EE0 8602047E */ lh $v0, 0x47e($s0)
/* BD5E4 80126EE4 28420006 */ slti $v0, $v0, 6
/* BD5E8 80126EE8 10400017 */ beqz $v0, .L80126F48
/* BD5EC 80126EEC 24050018 */ addiu $a1, $zero, 0x18
/* BD5F0 80126EF0 3C02802F */ lui $v0, %hi(D_802ED670)
/* BD5F4 80126EF4 2442D670 */ addiu $v0, $v0, %lo(D_802ED670)
/* BD5F8 80126EF8 3C04802F */ lui $a0, %hi(D_802ED550)
/* BD5FC 80126EFC 2484D550 */ addiu $a0, $a0, %lo(D_802ED550)
/* BD600 80126F00 00A0302D */ daddu $a2, $a1, $zero
/* BD604 80126F04 AFA00010 */ sw $zero, 0x10($sp)
/* BD608 80126F08 AFA20014 */ sw $v0, 0x14($sp)
/* BD60C 80126F0C 86020482 */ lh $v0, 0x482($s0)
/* BD610 80126F10 24070002 */ addiu $a3, $zero, 2
/* BD614 80126F14 AFA20018 */ sw $v0, 0x18($sp)
/* BD618 80126F18 86030484 */ lh $v1, 0x484($s0)
/* BD61C 80126F1C 2402000A */ addiu $v0, $zero, 0xa
/* BD620 80126F20 AFA20020 */ sw $v0, 0x20($sp)
/* BD624 80126F24 AFA20024 */ sw $v0, 0x24($sp)
/* BD628 80126F28 2402012C */ addiu $v0, $zero, 0x12c
/* BD62C 80126F2C AFA20028 */ sw $v0, 0x28($sp)
/* BD630 80126F30 240200DC */ addiu $v0, $zero, 0xdc
/* BD634 80126F34 AFA2002C */ sw $v0, 0x2c($sp)
/* BD638 80126F38 240200FF */ addiu $v0, $zero, 0xff
/* BD63C 80126F3C AFA20030 */ sw $v0, 0x30($sp)
/* BD640 80126F40 0C04BA68 */ jal func_8012E9A0
/* BD644 80126F44 AFA3001C */ sw $v1, 0x1c($sp)
.L80126F48:
/* BD648 80126F48 9602047E */ lhu $v0, 0x47e($s0)
/* BD64C 80126F4C 24420001 */ addiu $v0, $v0, 1
/* BD650 80126F50 A602047E */ sh $v0, 0x47e($s0)
/* BD654 80126F54 00021400 */ sll $v0, $v0, 0x10
/* BD658 80126F58 00021403 */ sra $v0, $v0, 0x10
/* BD65C 80126F5C 2842000C */ slti $v0, $v0, 0xc
/* BD660 80126F60 50400001 */ beql $v0, $zero, .L80126F68
/* BD664 80126F64 A600047E */ sh $zero, 0x47e($s0)
.L80126F68:
/* BD668 80126F68 8FBF003C */ lw $ra, 0x3c($sp)
/* BD66C 80126F6C 8FB00038 */ lw $s0, 0x38($sp)
/* BD670 80126F70 03E00008 */ jr $ra
/* BD674 80126F74 27BD0040 */ addiu $sp, $sp, 0x40