Decompile func0f117310

This commit is contained in:
Ryan Dwyer
2020-11-13 19:15:06 +10:00
parent d91f8d9a00
commit 71c1dd042a
+5 -16
View File
@@ -712,24 +712,13 @@ glabel func0f117290
/* f117304: afa40000 */ sw $a0,0x0($sp)
/* f117308: 03e00008 */ jr $ra
/* f11730c: 8c422384 */ lw $v0,%lo(var800a2380+0x4)($v0)
/* f117310: 00047600 */ sll $t6,$a0,0x18
/* f117314: 000e7e03 */ sra $t7,$t6,0x18
/* f117318: 000fc080 */ sll $t8,$t7,0x2
/* f11731c: 030fc023 */ subu $t8,$t8,$t7
/* f117320: 0018c080 */ sll $t8,$t8,0x2
/* f117324: 030fc023 */ subu $t8,$t8,$t7
/* f117328: 0018c080 */ sll $t8,$t8,0x2
/* f11732c: 030fc021 */ addu $t8,$t8,$t7
/* f117330: 0018c080 */ sll $t8,$t8,0x2
/* f117334: 030fc023 */ subu $t8,$t8,$t7
/* f117338: 0018c080 */ sll $t8,$t8,0x2
/* f11733c: 3c01800a */ lui $at,%hi(var800a2380+0x4)
/* f117340: 00380821 */ addu $at,$at,$t8
/* f117344: afa40000 */ sw $a0,0x0($sp)
/* f117348: 03e00008 */ jr $ra
/* f11734c: ac252384 */ sw $a1,%lo(var800a2380+0x4)($at)
);
void func0f117310(s8 device, s32 value)
{
var800a2380[device].unk004 = value;
}
s32 func0f117350(s8 device)
{
return var800a2380[device].unk2b8_01;