//
// sub_1005A76D4 from 0x1005a76d4 to 0x1005a7768 (148 bytes)
//
// 1 xrefs:
// > sub_1005A76A8 @ 0x1005a76c4
//
// 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:05 +0000
//
__int64 __usercall sub_1005A76D4@(__int64 a1@, __int64 a2@)
{
char v2; // w9
unsigned int v3; // w9
if ( v2 < 0 )
v3 = ((byte_1009DAE38[v2 & 0x1F] * (unsigned int)*(unsigned __int8 *)(a1 + 264)) >> 5) & 0x7FC;
else
v3 = -(((byte_1009DAE38[v2 & 0x1F] * (unsigned int)*(unsigned __int8 *)(a1 + 264)) >> 5) & 0x7FC);
*(_DWORD *)(a2 + 80) = v3;
*(_BYTE *)(a2 + 60) |= 1u;
return 0;
}