//
// sub_100667B14 from 0x100667b14 to 0x100667b84 (112 bytes)
//
// 1 xrefs:
// > sub_1006A9638 @ 0x1006abd90
//
// 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_100667B14(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x20
if ( a2 )
{
if ( *(_QWORD *)(a1 + 272) || (v4 = sub_10070460C(), (*(_QWORD *)(a1 + 272) = v4) != 0) )
{
v5 = sub_1007250C8(a2);
v6 = sub_1007199B0(v5);
if ( v6 )
{
if ( (unsigned int)sub_100704974(*(_QWORD *)(a1 + 272), v6) )
return 1;
sub_1007199A4(v6);
}
}
}
return 0;
}