.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_800E0538 /* 0799E8 800E0538 3C058011 */ lui $a1, 0x8011 /* 0799EC 800E053C 24A5EFC8 */ addiu $a1, $a1, -0x1038 /* 0799F0 800E0540 8CA200C8 */ lw $v0, 0xc8($a1) /* 0799F4 800E0544 1040000C */ beqz $v0, .L800E0578 /* 0799F8 800E0548 0000202D */ daddu $a0, $zero, $zero /* 0799FC 800E054C 8C420000 */ lw $v0, ($v0) /* 079A00 800E0550 3C031000 */ lui $v1, 0x1000 /* 079A04 800E0554 00431024 */ and $v0, $v0, $v1 /* 079A08 800E0558 14400007 */ bnez $v0, .L800E0578 /* 079A0C 800E055C 3C020200 */ lui $v0, 0x200 /* 079A10 800E0560 8CA30000 */ lw $v1, ($a1) /* 079A14 800E0564 34422000 */ ori $v0, $v0, 0x2000 /* 079A18 800E0568 00621824 */ and $v1, $v1, $v0 /* 079A1C 800E056C 3C020200 */ lui $v0, 0x200 /* 079A20 800E0570 00621826 */ xor $v1, $v1, $v0 /* 079A24 800E0574 2C640001 */ sltiu $a0, $v1, 1 .L800E0578: /* 079A28 800E0578 03E00008 */ jr $ra /* 079A2C 800E057C 0080102D */ daddu $v0, $a0, $zero