papermario/ver/us/asm/nonmatchings/42E3A0/func_802A98B0_42EC50.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

63 lines
3.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A98B0_42EC50
/* 42EC50 802A98B0 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42EC54 802A98B4 AFB1001C */ sw $s1, 0x1c($sp)
/* 42EC58 802A98B8 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42EC5C 802A98BC 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42EC60 802A98C0 AFBF0020 */ sw $ra, 0x20($sp)
/* 42EC64 802A98C4 AFB00018 */ sw $s0, 0x18($sp)
/* 42EC68 802A98C8 0C0511EA */ jal draw_icon_0
/* 42EC6C 802A98CC 8E240004 */ lw $a0, 4($s1)
/* 42EC70 802A98D0 8E300008 */ lw $s0, 8($s1)
/* 42EC74 802A98D4 0C0511EA */ jal draw_icon_0
/* 42EC78 802A98D8 0200202D */ daddu $a0, $s0, $zero
/* 42EC7C 802A98DC 0200202D */ daddu $a0, $s0, $zero
/* 42EC80 802A98E0 27A50010 */ addiu $a1, $sp, 0x10
/* 42EC84 802A98E4 0C05126B */ jal get_icon_render_pos
/* 42EC88 802A98E8 27A60014 */ addiu $a2, $sp, 0x14
/* 42EC8C 802A98EC 86220068 */ lh $v0, 0x68($s1)
/* 42EC90 802A98F0 14400011 */ bnez $v0, .L802A9938
/* 42EC94 802A98F4 3C0451EB */ lui $a0, 0x51eb
/* 42EC98 802A98F8 96230044 */ lhu $v1, 0x44($s1)
/* 42EC9C 802A98FC 3484851F */ ori $a0, $a0, 0x851f
/* 42ECA0 802A9900 00031C00 */ sll $v1, $v1, 0x10
/* 42ECA4 802A9904 00031403 */ sra $v0, $v1, 0x10
/* 42ECA8 802A9908 00440018 */ mult $v0, $a0
/* 42ECAC 802A990C 8FA50014 */ lw $a1, 0x14($sp)
/* 42ECB0 802A9910 00031FC3 */ sra $v1, $v1, 0x1f
/* 42ECB4 802A9914 8FA40010 */ lw $a0, 0x10($sp)
/* 42ECB8 802A9918 00003810 */ mfhi $a3
/* 42ECBC 802A991C 00073143 */ sra $a2, $a3, 5
/* 42ECC0 802A9920 00C33023 */ subu $a2, $a2, $v1
/* 42ECC4 802A9924 00063400 */ sll $a2, $a2, 0x10
/* 42ECC8 802A9928 0C09A1DC */ jal func_80268770
/* 42ECCC 802A992C 00063403 */ sra $a2, $a2, 0x10
/* 42ECD0 802A9930 080AA65C */ j .L802A9970
/* 42ECD4 802A9934 00000000 */ nop
.L802A9938:
/* 42ECD8 802A9938 96230044 */ lhu $v1, 0x44($s1)
/* 42ECDC 802A993C 3484851F */ ori $a0, $a0, 0x851f
/* 42ECE0 802A9940 00031C00 */ sll $v1, $v1, 0x10
/* 42ECE4 802A9944 00031403 */ sra $v0, $v1, 0x10
/* 42ECE8 802A9948 00440018 */ mult $v0, $a0
/* 42ECEC 802A994C 8FA50014 */ lw $a1, 0x14($sp)
/* 42ECF0 802A9950 00031FC3 */ sra $v1, $v1, 0x1f
/* 42ECF4 802A9954 8FA40010 */ lw $a0, 0x10($sp)
/* 42ECF8 802A9958 00003810 */ mfhi $a3
/* 42ECFC 802A995C 00073143 */ sra $a2, $a3, 5
/* 42ED00 802A9960 00C33023 */ subu $a2, $a2, $v1
/* 42ED04 802A9964 00063400 */ sll $a2, $a2, 0x10
/* 42ED08 802A9968 0C09A203 */ jal func_8026880C
/* 42ED0C 802A996C 00063403 */ sra $a2, $a2, 0x10
.L802A9970:
/* 42ED10 802A9970 8E24000C */ lw $a0, 0xc($s1)
/* 42ED14 802A9974 0C0511EA */ jal draw_icon_0
/* 42ED18 802A9978 00000000 */ nop
/* 42ED1C 802A997C 8FBF0020 */ lw $ra, 0x20($sp)
/* 42ED20 802A9980 8FB1001C */ lw $s1, 0x1c($sp)
/* 42ED24 802A9984 8FB00018 */ lw $s0, 0x18($sp)
/* 42ED28 802A9988 03E00008 */ jr $ra
/* 42ED2C 802A998C 27BD0028 */ addiu $sp, $sp, 0x28