//
// sub_100667AB4 from 0x100667ab4 to 0x100667b14 (96 bytes)
//
// 2 xrefs:
// > sub_100645938 @ 0x100645a24
// > sub_10064B350 @ 0x10064b3dc
//
// 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:02 +0000
//
__int64 __fastcall sub_100667AB4(__int64 a1)
{
__int64 v1; // x8
__int64 v3; // x8
if ( *(_DWORD *)(a1 + 4) == 4096 )
{
if ( (*(_DWORD *)a1 & 0xFFFFFF00) == 0x300 )
{
v1 = *(_QWORD *)(a1 + 128);
if ( v1 )
return *(_QWORD *)(v1 + 992);
else
return 0;
}
else
{
return 0;
}
}
else
{
v3 = *(_QWORD *)(a1 + 408);
if ( !v3 )
return *(_QWORD *)(*(_QWORD *)(a1 + 368) + 272LL);
return v3;
}
}