//
// sub_1005D99B8 from 0x1005d99b8 to 0x1005d99f4 (60 bytes)
//
// 3 xrefs:
// > sub_100593444 @ 0x1005939d0
// > sub_100594114 @ 0x100594770
// > sub_1005A1F14 @ 0x1005a236c
//
// 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_1005D99B8(__int64 a1, int a2, int *a3)
{
int v3; // w8
if ( !a3 )
return 31;
if ( (unsigned int)(a2 - 1) > 0xE )
v3 = 8363;
else
v3 = dword_1007740EC[(char)(a2 - 1)];
*a3 = v3;
return 0;
}