papermario/ver/jp/asm/nonmatchings/10080/func_80034CD8.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

97 lines
5.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80034CD8
/* 100D8 80034CD8 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 100DC 80034CDC AFBF001C */ sw $ra, 0x1c($sp)
/* 100E0 80034CE0 AFB00018 */ sw $s0, 0x18($sp)
/* 100E4 80034CE4 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 100E8 80034CE8 3C01800A */ lui $at, %hi(D_8009E741)
/* 100EC 80034CEC A020E741 */ sb $zero, %lo(D_8009E741)($at)
/* 100F0 80034CF0 3C01800A */ lui $at, %hi(D_8009E742)
/* 100F4 80034CF4 A420E742 */ sh $zero, %lo(D_8009E742)($at)
/* 100F8 80034CF8 0C038056 */ jal func_800E0158
/* 100FC 80034CFC 00000000 */ nop
/* 10100 80034D00 0C009C15 */ jal func_80027054
/* 10104 80034D04 24040002 */ addiu $a0, $zero, 2
/* 10108 80034D08 0C00AAF0 */ jal func_8002ABC0
/* 1010C 80034D0C 00000000 */ nop
/* 10110 80034D10 0000202D */ daddu $a0, $zero, $zero
/* 10114 80034D14 0C0528E6 */ jal func_8014A398
/* 10118 80034D18 0080282D */ daddu $a1, $a0, $zero
/* 1011C 80034D1C 0C05186C */ jal func_801461B0
/* 10120 80034D20 00000000 */ nop
/* 10124 80034D24 0000202D */ daddu $a0, $zero, $zero
/* 10128 80034D28 0080282D */ daddu $a1, $a0, $zero
/* 1012C 80034D2C 0C046B8D */ jal func_8011AE34
/* 10130 80034D30 0080302D */ daddu $a2, $a0, $zero
/* 10134 80034D34 0000202D */ daddu $a0, $zero, $zero
/* 10138 80034D38 2405000C */ addiu $a1, $zero, 0xc
/* 1013C 80034D3C 2406001C */ addiu $a2, $zero, 0x1c
/* 10140 80034D40 3C10800B */ lui $s0, %hi(D_800B1D60)
/* 10144 80034D44 26101D60 */ addiu $s0, $s0, %lo(D_800B1D60)
/* 10148 80034D48 24020006 */ addiu $v0, $zero, 6
/* 1014C 80034D4C A6020004 */ sh $v0, 4($s0)
/* 10150 80034D50 24020001 */ addiu $v0, $zero, 1
/* 10154 80034D54 A6020006 */ sh $v0, 6($s0)
/* 10158 80034D58 24020010 */ addiu $v0, $zero, 0x10
/* 1015C 80034D5C A6020012 */ sh $v0, 0x12($s0)
/* 10160 80034D60 24021000 */ addiu $v0, $zero, 0x1000
/* 10164 80034D64 A6020014 */ sh $v0, 0x14($s0)
/* 10168 80034D68 96020000 */ lhu $v0, ($s0)
/* 1016C 80034D6C 240300B8 */ addiu $v1, $zero, 0xb8
/* 10170 80034D70 AFA30010 */ sw $v1, 0x10($sp)
/* 10174 80034D74 96030AB0 */ lhu $v1, 0xab0($s0)
/* 10178 80034D78 3C0141C8 */ lui $at, 0x41c8
/* 1017C 80034D7C 4481A000 */ mtc1 $at, $f20
/* 10180 80034D80 34420002 */ ori $v0, $v0, 2
/* 10184 80034D84 A6020000 */ sh $v0, ($s0)
/* 10188 80034D88 96020558 */ lhu $v0, 0x558($s0)
/* 1018C 80034D8C 24070128 */ addiu $a3, $zero, 0x128
/* 10190 80034D90 3C018007 */ lui $at, %hi(D_800773E0)
/* 10194 80034D94 AC2073E0 */ sw $zero, %lo(D_800773E0)($at)
/* 10198 80034D98 34420002 */ ori $v0, $v0, 2
/* 1019C 80034D9C A6020558 */ sh $v0, 0x558($s0)
/* 101A0 80034DA0 96021008 */ lhu $v0, 0x1008($s0)
/* 101A4 80034DA4 34630002 */ ori $v1, $v1, 2
/* 101A8 80034DA8 A6030AB0 */ sh $v1, 0xab0($s0)
/* 101AC 80034DAC E6140018 */ swc1 $f20, 0x18($s0)
/* 101B0 80034DB0 34420002 */ ori $v0, $v0, 2
/* 101B4 80034DB4 0C00B7E9 */ jal func_8002DFA4
/* 101B8 80034DB8 A6021008 */ sh $v0, 0x1008($s0)
/* 101BC 80034DBC 24020028 */ addiu $v0, $zero, 0x28
/* 101C0 80034DC0 A602001E */ sh $v0, 0x1e($s0)
/* 101C4 80034DC4 24020064 */ addiu $v0, $zero, 0x64
/* 101C8 80034DC8 3C0143FA */ lui $at, 0x43fa
/* 101CC 80034DCC 44810000 */ mtc1 $at, $f0
/* 101D0 80034DD0 3C01447A */ lui $at, 0x447a
/* 101D4 80034DD4 44811000 */ mtc1 $at, $f2
/* 101D8 80034DD8 3C0144BB */ lui $at, 0x44bb
/* 101DC 80034DDC 34218000 */ ori $at, $at, 0x8000
/* 101E0 80034DE0 44812000 */ mtc1 $at, $f4
/* 101E4 80034DE4 3C014316 */ lui $at, 0x4316
/* 101E8 80034DE8 44813000 */ mtc1 $at, $f6
/* 101EC 80034DEC 3C04800A */ lui $a0, %hi(D_8009A630)
/* 101F0 80034DF0 2484A630 */ addiu $a0, $a0, %lo(D_8009A630)
/* 101F4 80034DF4 A600002C */ sh $zero, 0x2c($s0)
/* 101F8 80034DF8 A600002E */ sh $zero, 0x2e($s0)
/* 101FC 80034DFC A6000030 */ sh $zero, 0x30($s0)
/* 10200 80034E00 E6140054 */ swc1 $f20, 0x54($s0)
/* 10204 80034E04 E6140058 */ swc1 $f20, 0x58($s0)
/* 10208 80034E08 A600001C */ sh $zero, 0x1c($s0)
/* 1020C 80034E0C A6020020 */ sh $v0, 0x20($s0)
/* 10210 80034E10 A6000022 */ sh $zero, 0x22($s0)
/* 10214 80034E14 E600003C */ swc1 $f0, 0x3c($s0)
/* 10218 80034E18 E6020040 */ swc1 $f2, 0x40($s0)
/* 1021C 80034E1C E6040044 */ swc1 $f4, 0x44($s0)
/* 10220 80034E20 E606005C */ swc1 $f6, 0x5c($s0)
/* 10224 80034E24 8C820000 */ lw $v0, ($a0)
/* 10228 80034E28 3C030001 */ lui $v1, 1
/* 1022C 80034E2C 00431025 */ or $v0, $v0, $v1
/* 10230 80034E30 AC820000 */ sw $v0, ($a0)
/* 10234 80034E34 8FBF001C */ lw $ra, 0x1c($sp)
/* 10238 80034E38 8FB00018 */ lw $s0, 0x18($sp)
/* 1023C 80034E3C D7B40020 */ ldc1 $f20, 0x20($sp)
/* 10240 80034E40 03E00008 */ jr $ra
/* 10244 80034E44 27BD0028 */ addiu $sp, $sp, 0x28