.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_80047928 /* 22D28 80047928 27BDFFE0 */ addiu $sp, $sp, -0x20 /* 22D2C 8004792C 0080302D */ daddu $a2, $a0, $zero /* 22D30 80047930 AFB10014 */ sw $s1, 0x14($sp) /* 22D34 80047934 00A0882D */ daddu $s1, $a1, $zero /* 22D38 80047938 00061040 */ sll $v0, $a2, 1 /* 22D3C 8004793C 00461021 */ addu $v0, $v0, $a2 /* 22D40 80047940 00021080 */ sll $v0, $v0, 2 /* 22D44 80047944 00461023 */ subu $v0, $v0, $a2 /* 22D48 80047948 3C03800A */ lui $v1, 0x800a /* 22D4C 8004794C 8C630F44 */ lw $v1, 0xf44($v1) /* 22D50 80047950 00021100 */ sll $v0, $v0, 4 /* 22D54 80047954 AFBF0018 */ sw $ra, 0x18($sp) /* 22D58 80047958 AFB00010 */ sw $s0, 0x10($sp) /* 22D5C 8004795C 00628021 */ addu $s0, $v1, $v0 /* 22D60 80047960 2403FFF7 */ addiu $v1, $zero, -9 /* 22D64 80047964 8E020000 */ lw $v0, ($s0) /* 22D68 80047968 82040048 */ lb $a0, 0x48($s0) /* 22D6C 8004796C 00431024 */ and $v0, $v0, $v1 /* 22D70 80047970 10910006 */ beq $a0, $s1, .L8004798C /* 22D74 80047974 AE020000 */ sw $v0, ($s0) /* 22D78 80047978 0C011E68 */ jal func_800479A0 /* 22D7C 8004797C 00C0202D */ daddu $a0, $a2, $zero /* 22D80 80047980 24020001 */ addiu $v0, $zero, 1 /* 22D84 80047984 A2110048 */ sb $s1, 0x48($s0) /* 22D88 80047988 A202004A */ sb $v0, 0x4a($s0) .L8004798C: /* 22D8C 8004798C 8FBF0018 */ lw $ra, 0x18($sp) /* 22D90 80047990 8FB10014 */ lw $s1, 0x14($sp) /* 22D94 80047994 8FB00010 */ lw $s0, 0x10($sp) /* 22D98 80047998 03E00008 */ jr $ra /* 22D9C 8004799C 27BD0020 */ addiu $sp, $sp, 0x20