//
// sub_1006FB6B8 from 0x1006fb6b8 to 0x1006fb768 (176 bytes)
//
// 1 xrefs:
// > sub_1006FBC64 @ 0x1006fbc90
//
// 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:45 +0000
//
__int64 __fastcall sub_1006FB6B8(__int64 a1)
{
__int64 v2; // x19
__int64 v3; // x20
__int64 v4; // x0
v2 = sub_1006E5CF4(a1, (__int64)sub_1006FB768, (__int64)sub_1006FB778, (__int64)sub_1006FB778);
if ( !v2 )
{
v2 = sub_1006FB7C0();
if ( v2 )
{
v3 = sub_1006E5D78(a1, v2, (__int64)sub_1006FB768, (__int64)sub_1006FB778, (__int64)sub_1006FB778);
if ( v3 )
{
v4 = *(_QWORD *)(v2 + 8);
if ( v4 )
sub_1006FD22C(v4);
sub_1006AF634(13, v2, v2 + 32);
sub_1006B0510((char *)v2, 0x30u);
sub_1006AEDAC((void *)v2);
return v3;
}
}
else
{
return 0;
}
}
return v2;
}