.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_80047898 /* 022C98 80047898 00041040 */ sll $v0, $a0, 1 /* 022C9C 8004789C 00441021 */ addu $v0, $v0, $a0 /* 022CA0 800478A0 00021080 */ sll $v0, $v0, 2 /* 022CA4 800478A4 00441023 */ subu $v0, $v0, $a0 /* 022CA8 800478A8 3C03800A */ lui $v1, 0x800a /* 022CAC 800478AC 8C630F44 */ lw $v1, 0xf44($v1) /* 022CB0 800478B0 00021100 */ sll $v0, $v0, 4 /* 022CB4 800478B4 00622021 */ addu $a0, $v1, $v0 /* 022CB8 800478B8 80820038 */ lb $v0, 0x38($a0) /* 022CBC 800478BC 1040000C */ beqz $v0, .L800478F0 /* 022CC0 800478C0 90830038 */ lbu $v1, 0x38($a0) /* 022CC4 800478C4 80820039 */ lb $v0, 0x39($a0) /* 022CC8 800478C8 14400009 */ bnez $v0, .L800478F0 /* 022CCC 800478CC 24020001 */ addiu $v0, $zero, 1 /* 022CD0 800478D0 A0830039 */ sb $v1, 0x39($a0) /* 022CD4 800478D4 8C830040 */ lw $v1, 0x40($a0) /* 022CD8 800478D8 A082003B */ sb $v0, 0x3b($a0) /* 022CDC 800478DC 2402000A */ addiu $v0, $zero, 0xa /* 022CE0 800478E0 A0800038 */ sb $zero, 0x38($a0) /* 022CE4 800478E4 A080003A */ sb $zero, 0x3a($a0) /* 022CE8 800478E8 A082003D */ sb $v0, 0x3d($a0) /* 022CEC 800478EC AC830044 */ sw $v1, 0x44($a0) .L800478F0: /* 022CF0 800478F0 03E00008 */ jr $ra /* 022CF4 800478F4 00000000 */ nop