Decompile func0f117210

This commit is contained in:
Ryan Dwyer 2020-11-13 19:04:53 +10:00
parent 946af95072
commit 00ab93e686
2 changed files with 7 additions and 18 deletions

View File

@ -668,24 +668,13 @@ void func0f1171b4(s8 device, s32 arg1, s32 arg2)
var800a2380[device].unk2b8_06 = arg2; var800a2380[device].unk2b8_06 = arg2;
} }
s32 func0f117210(s8 device)
{
return var800a2380[device].unk008;
}
GLOBAL_ASM( GLOBAL_ASM(
glabel func0f117210 glabel func0f117250
/* f117210: 00047600 */ sll $t6,$a0,0x18
/* f117214: 000e7e03 */ sra $t7,$t6,0x18
/* f117218: 000fc080 */ sll $t8,$t7,0x2
/* f11721c: 030fc023 */ subu $t8,$t8,$t7
/* f117220: 0018c080 */ sll $t8,$t8,0x2
/* f117224: 030fc023 */ subu $t8,$t8,$t7
/* f117228: 0018c080 */ sll $t8,$t8,0x2
/* f11722c: 030fc021 */ addu $t8,$t8,$t7
/* f117230: 0018c080 */ sll $t8,$t8,0x2
/* f117234: 030fc023 */ subu $t8,$t8,$t7
/* f117238: 0018c080 */ sll $t8,$t8,0x2
/* f11723c: 3c02800a */ lui $v0,%hi(var800a2380+0x8)
/* f117240: 00581021 */ addu $v0,$v0,$t8
/* f117244: afa40000 */ sw $a0,0x0($sp)
/* f117248: 03e00008 */ jr $ra
/* f11724c: 8c422388 */ lw $v0,%lo(var800a2380+0x8)($v0)
/* f117250: 00047600 */ sll $t6,$a0,0x18 /* f117250: 00047600 */ sll $t6,$a0,0x18
/* f117254: 000e7e03 */ sra $t7,$t6,0x18 /* f117254: 000e7e03 */ sra $t7,$t6,0x18
/* f117258: 000fc080 */ sll $t8,$t7,0x2 /* f117258: 000fc080 */ sll $t8,$t7,0x2

View File

@ -34,7 +34,7 @@ s32 func0f11706c(s8 arg0);
s32 func0f117094(s8 arg0, u32 arg1); s32 func0f117094(s8 arg0, u32 arg1);
void func0f117150(s8 device, u8 *ptr); void func0f117150(s8 device, u8 *ptr);
void func0f1171b4(s8 device, s32 arg1, s32 arg2); void func0f1171b4(s8 device, s32 arg1, s32 arg2);
u32 func0f117210(void); s32 func0f117210(s8 device);
u32 func0f117430(void); u32 func0f117430(void);
u32 func0f117520(s8 arg0, u32 arg1, u32 *arg2); u32 func0f117520(s8 arg0, u32 arg1, u32 *arg2);
void pakDumpBuffer(u8 *buffer, u32 len, char *name); void pakDumpBuffer(u8 *buffer, u32 len, char *name);