//
// sub_1005984D0 from 0x1005984d0 to 0x100598538 (104 bytes)
//
// 1 xrefs:
// > sub_1005968A8 @ 0x100596adc
//
// 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:08:48 +0000
//
__int64 __fastcall sub_1005984D0(__int64 a1)
{
__int64 v1; // x8
__int64 v2; // x10
int v3; // w11
v1 = *(_QWORD *)(a1 + 376);
if ( *(_DWORD *)(v1 + 18524) )
v2 = 4;
else
v2 = dword_100772D30[32 * (__int64)*(int *)(v1 + 18548) + 16 * (2LL - *(int *)(v1 + 18512)) + *(int *)(v1 + 18544)];
v3 = dword_100772EB0[v2];
*(_QWORD *)(v1 + 18504) = *(&off_1009AB448 + v2);
*(_DWORD *)(v1 + 18520) = v3;
return 0;
}