//
// sub_1006F5138 from 0x1006f5138 to 0x1006f5190 (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x1009bdec8
// > ??> @ 0x1009bdfa0
// > ??> @ 0x1009be128
//
// 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:42 +0000
//
__int64 __fastcall sub_1006F5138(int a1, __int64 *a2)
{
__int64 v4; // x0
if ( a1 == 2 )
{
sub_1006F4CA8(*a2);
*a2 = 0;
return 2;
}
else if ( a1 )
{
return 1;
}
else
{
v4 = sub_1006F4B10();
*a2 = v4;
if ( v4 )
return 2;
else
return 0;
}
}