papermario/asm/nonmatchings/code_28910_len_5090/func_80050900.s

35 lines
1.6 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
glabel func_80050900
2020-09-24 05:16:13 +02:00
/* 2BD00 80050900 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 2BD04 80050904 AFB10014 */ sw $s1, 0x14($sp)
/* 2BD08 80050908 0080882D */ daddu $s1, $a0, $zero
/* 2BD0C 8005090C AFB00010 */ sw $s0, 0x10($sp)
/* 2BD10 80050910 0000802D */ daddu $s0, $zero, $zero
/* 2BD14 80050914 AFBF0018 */ sw $ra, 0x18($sp)
/* 2BD18 80050918 320500FF */ andi $a1, $s0, 0xff
2020-08-04 08:49:11 +02:00
.L8005091C:
2020-09-24 05:16:13 +02:00
/* 2BD1C 8005091C 000510C0 */ sll $v0, $a1, 3
/* 2BD20 80050920 00451021 */ addu $v0, $v0, $a1
/* 2BD24 80050924 000210C0 */ sll $v0, $v0, 3
/* 2BD28 80050928 8E230000 */ lw $v1, ($s1)
/* 2BD2C 8005092C 24421320 */ addiu $v0, $v0, 0x1320
/* 2BD30 80050930 00622021 */ addu $a0, $v1, $v0
/* 2BD34 80050934 90830045 */ lbu $v1, 0x45($a0)
/* 2BD38 80050938 92220234 */ lbu $v0, 0x234($s1)
/* 2BD3C 8005093C 14620003 */ bne $v1, $v0, .L8005094C
/* 2BD40 80050940 26100001 */ addiu $s0, $s0, 1
/* 2BD44 80050944 0C014E31 */ jal func_800538C4
2021-01-12 16:42:27 +01:00
/* 2BD48 80050948 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L8005094C:
2020-09-24 05:16:13 +02:00
/* 2BD4C 8005094C 320200FF */ andi $v0, $s0, 0xff
/* 2BD50 80050950 2C420018 */ sltiu $v0, $v0, 0x18
/* 2BD54 80050954 1440FFF1 */ bnez $v0, .L8005091C
/* 2BD58 80050958 320500FF */ andi $a1, $s0, 0xff
/* 2BD5C 8005095C 8FBF0018 */ lw $ra, 0x18($sp)
/* 2BD60 80050960 8FB10014 */ lw $s1, 0x14($sp)
/* 2BD64 80050964 8FB00010 */ lw $s0, 0x10($sp)
/* 2BD68 80050968 03E00008 */ jr $ra
/* 2BD6C 8005096C 27BD0020 */ addiu $sp, $sp, 0x20