//
// sub_10067AAB8 from 0x10067aab8 to 0x10067ab48 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009b1100
// > ??> @ 0x1009b1180
//
// 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:14 +0000
//
__int64 __fastcall sub_10067AAB8(_DWORD *a1, _DWORD *a2, int a3)
{
__int64 result; // x0
int v5; // w9
unsigned int v6; // w9
int v7; // w8
if ( !a3 )
return 0;
if ( a1[378] )
return sub_1006A0D34(a1 + 334);
result = 131073;
*a2 = a1[116];
if ( *(_BYTE *)(*(_QWORD *)a1 + 1302LL) )
{
a2[1] = a1[117];
}
else
{
v5 = a1[118];
if ( v5 == -1 )
{
result = 1;
v6 = 1;
}
else
{
a2[1] = v5;
v6 = 2;
}
v7 = a1[119];
if ( v7 != -1 )
{
a2[v6] = v7;
return (1 << (v6 | 0x10)) | (unsigned int)result;
}
}
return result;
}