papermario/ver/us/asm/nonmatchings/d0a70_len_4fe0/func_8013B0EC.s

70 lines
3.0 KiB
ArmAsm
Raw Normal View History

2020-09-24 05:16:13 +02:00
.set noat # allow manual use of $at
2020-08-04 08:49:11 +02:00
.set noreorder # don't insert nops after branches
.section .rodata
glabel jtbl_80151038
.word L8013B160_D1860, L8013B140_D1840, L8013B150_D1850, L8013B120_D1820, L8013B160_D1860, 0
.section .text
2020-08-04 08:49:11 +02:00
glabel func_8013B0EC
2020-09-24 05:16:13 +02:00
/* D17EC 8013B0EC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* D17F0 8013B0F0 AFB00010 */ sw $s0, 0x10($sp)
/* D17F4 8013B0F4 0080802D */ daddu $s0, $a0, $zero
/* D17F8 8013B0F8 AFBF0014 */ sw $ra, 0x14($sp)
/* D17FC 8013B0FC 92030001 */ lbu $v1, 1($s0)
/* D1800 8013B100 2C620005 */ sltiu $v0, $v1, 5
/* D1804 8013B104 10400026 */ beqz $v0, .L8013B1A0
/* D1808 8013B108 00031080 */ sll $v0, $v1, 2
2021-02-03 07:40:16 +01:00
/* D180C 8013B10C 3C018015 */ lui $at, %hi(jtbl_80151038)
2020-09-24 05:16:13 +02:00
/* D1810 8013B110 00220821 */ addu $at, $at, $v0
2021-02-03 07:40:16 +01:00
/* D1814 8013B114 8C221038 */ lw $v0, %lo(jtbl_80151038)($at)
2020-09-24 05:16:13 +02:00
/* D1818 8013B118 00400008 */ jr $v0
2021-01-11 13:40:52 +01:00
/* D181C 8013B11C 00000000 */ nop
2021-01-12 16:42:27 +01:00
glabel L8013B120_D1820
2020-09-24 05:16:13 +02:00
/* D1820 8013B120 8E020034 */ lw $v0, 0x34($s0)
/* D1824 8013B124 14400004 */ bnez $v0, .L8013B138
/* D1828 8013B128 24020001 */ addiu $v0, $zero, 1
/* D182C 8013B12C A2020003 */ sb $v0, 3($s0)
/* D1830 8013B130 0804EC4F */ j .L8013B13C
/* D1834 8013B134 24020010 */ addiu $v0, $zero, 0x10
2020-08-04 08:49:11 +02:00
.L8013B138:
2020-09-24 05:16:13 +02:00
/* D1838 8013B138 A2020003 */ sb $v0, 3($s0)
2020-08-04 08:49:11 +02:00
.L8013B13C:
2020-09-24 05:16:13 +02:00
/* D183C 8013B13C A2020004 */ sb $v0, 4($s0)
2021-01-12 16:42:27 +01:00
glabel L8013B140_D1840
2020-09-24 05:16:13 +02:00
/* D1840 8013B140 0C04F012 */ jal func_8013C048
/* D1844 8013B144 0200202D */ daddu $a0, $s0, $zero
/* D1848 8013B148 0804EC5A */ j .L8013B168
2021-01-11 13:40:52 +01:00
/* D184C 8013B14C 00000000 */ nop
2021-01-12 16:42:27 +01:00
glabel L8013B150_D1850
2020-09-24 05:16:13 +02:00
/* D1850 8013B150 0C04F0FC */ jal func_8013C3F0
/* D1854 8013B154 0200202D */ daddu $a0, $s0, $zero
/* D1858 8013B158 0804EC5A */ j .L8013B168
2021-01-11 13:40:52 +01:00
/* D185C 8013B15C 00000000 */ nop
2021-01-12 16:42:27 +01:00
glabel L8013B160_D1860
2020-09-24 05:16:13 +02:00
/* D1860 8013B160 0C04EF22 */ jal func_8013BC88
/* D1864 8013B164 0200202D */ daddu $a0, $s0, $zero
2020-08-04 08:49:11 +02:00
.L8013B168:
2020-09-24 05:16:13 +02:00
/* D1868 8013B168 82030005 */ lb $v1, 5($s0)
/* D186C 8013B16C 24020004 */ addiu $v0, $zero, 4
/* D1870 8013B170 14620003 */ bne $v1, $v0, .L8013B180
2021-01-11 13:40:52 +01:00
/* D1874 8013B174 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* D1878 8013B178 0C04FB9A */ jal func_8013EE68
/* D187C 8013B17C 0200202D */ daddu $a0, $s0, $zero
2020-08-04 08:49:11 +02:00
.L8013B180:
2020-09-24 05:16:13 +02:00
/* D1880 8013B180 82030006 */ lb $v1, 6($s0)
/* D1884 8013B184 2862000D */ slti $v0, $v1, 0xd
/* D1888 8013B188 10400005 */ beqz $v0, .L8013B1A0
/* D188C 8013B18C 2862000B */ slti $v0, $v1, 0xb
/* D1890 8013B190 14400003 */ bnez $v0, .L8013B1A0
2021-01-11 13:40:52 +01:00
/* D1894 8013B194 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* D1898 8013B198 0C04FC7E */ jal func_8013F1F8
/* D189C 8013B19C 0200202D */ daddu $a0, $s0, $zero
2020-08-04 08:49:11 +02:00
.L8013B1A0:
2020-09-24 05:16:13 +02:00
/* D18A0 8013B1A0 8FBF0014 */ lw $ra, 0x14($sp)
/* D18A4 8013B1A4 8FB00010 */ lw $s0, 0x10($sp)
/* D18A8 8013B1A8 03E00008 */ jr $ra
/* D18AC 8013B1AC 27BD0018 */ addiu $sp, $sp, 0x18