//
// sub_1005D9BE0 from 0x1005d9be0 to 0x1005d9c28 (72 bytes)
//
// 4 xrefs:
// > sub_100588574 @ 0x1005885d4
// > sub_100592F4C @ 0x100592fac
// > sub_1005A1984 @ 0x1005a19e4
// > sub_1005A7050 @ 0x1005a70b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:09:36 +0000
//
__int64 __fastcall sub_1005D9BE0(_DWORD *a1, _DWORD *a2, int a3)
{
int v3; // w8
switch ( a3 )
{
case 1024:
v3 = *((unsigned __int8 *)a1 + a1[767] + 656);
break;
case 512:
v3 = a1[766];
break;
case 256:
v3 = a1[767];
break;
default:
v3 = a1[534];
break;
}
*a2 = v3;
return 0;
}