//
// sub_1006A1EC8 from 0x1006a1ec8 to 0x1006a1f50 (136 bytes)
//
// 4 xrefs:
// > sub_1006A3F88 @ 0x1006a406c
// > sub_1006A40B8 @ 0x1006a41d8
// > sub_1006A4244 @ 0x1006a42b8
// > sub_1006A68E8 @ 0x1006a6e2c
//
// 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:11:40 +0000
//
__int64 __fastcall sub_1006A1EC8(__int64 *a1, __int64 a2)
{
__int64 v2; // x20
__int64 v4; // x21
v2 = a2;
v4 = *a1;
if ( !a2 )
v2 = a1[2] + *(unsigned int *)(v4 + 24);
(*(void (__fastcall **)(__int64, __int64))(v4 + 16))(v2, a1[1]);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(v4 + 8))(a1[2], v2, *(unsigned int *)(v4 + 32));
(*(void (__fastcall **)(__int64, __int64))(v4 + 16))(v2, a1[2]);
off_1009E5FD8(a1);
return 0;
}