//
// sub_1006F70D0 from 0x1006f70d0 to 0x1006f7180 (176 bytes)
//
// 4 xrefs:
// > sub_1006F73D0 @ 0x1006f740c
// > sub_1006F8154 @ 0x1006f818c
// > sub_1006F81F8 @ 0x1006f8218
// > sub_1006F825C @ 0x1006f8308
//
// 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:43 +0000
//
__int64 __fastcall sub_1006F70D0(__int64 a1)
{
__int64 v2; // x19
__int64 v3; // x20
__int64 v4; // x0
v2 = sub_1006E5CF4(a1, (__int64)sub_1006F7180, (__int64)sub_1006F7190, (__int64)sub_1006F7190);
if ( !v2 )
{
v2 = sub_1006F71D8();
if ( v2 )
{
v3 = sub_1006E5D78(a1, v2, (__int64)sub_1006F7180, (__int64)sub_1006F7190, (__int64)sub_1006F7190);
if ( v3 )
{
v4 = *(_QWORD *)(v2 + 8);
if ( v4 )
sub_1006FD22C(v4);
sub_1006AF634(12, v2, v2 + 32);
sub_1006B0510((char *)v2, 0x30u);
sub_1006AEDAC((void *)v2);
return v3;
}
}
else
{
return 0;
}
}
return v2;
}