//
// sub_1006F1B08 from 0x1006f1b08 to 0x1006f1bfc (244 bytes)
//
// 2 xrefs:
// > sub_1006F0C1C @ 0x1006f0fa8
// > sub_1006F1964 @ 0x1006f1ab0
//
// 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:12:41 +0000
//
bool __fastcall sub_1006F1B08(__int64 *a1, __int64 a2)
{
__int64 v5; // x20
__int64 v6; // x0
__int64 v7; // x21
char **v8; // x0
void *v9; // [xsp+8h] [xbp-28h] BYREF
v9 = nullptr;
*a1 = 0;
if ( (unsigned int)sub_100711408(a2) == 64 )
return 1;
if ( (unsigned int)sub_100711408(a2) == 64 )
{
v5 = 0;
}
else
{
v6 = sub_100718ADC();
v5 = v6;
if ( !v6 )
{
v5 = 0;
goto LABEL_11;
}
sub_100718BD0(v6, a2);
}
if ( !sub_100722480(v5, &unk_1009C17F0, &v9) || (v7 = sub_100718ADC(), (*a1 = v7) == 0) )
{
LABEL_11:
if ( v9 )
sub_100721BE0(v9);
goto LABEL_13;
}
v8 = sub_1006B0D04(0x38Fu);
sub_100718AF4(v7, v8, 16, v9);
v9 = nullptr;
LABEL_13:
if ( v5 )
sub_100718AE8(v5);
return *a1 != 0;
}