//
// sub_100706460 from 0x100706460 to 0x1007064dc (124 bytes)
//
// 6 xrefs:
// > sub_1006AC468 @ 0x1006ac4d8
// > sub_1006AC468 @ 0x1006ac4f4
// > sub_1006AC468 @ 0x1006ac524
// > sub_1006AC468 @ 0x1006ac550
// > sub_1006F32A8 @ 0x1006f33b4
// > sub_1007067E0 @ 0x100706804
//
// 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:51 +0000
//
__int64 sub_100706460()
{
__int64 v0; // x0
__int64 v1; // x0
__int64 v2; // x19
__int64 (*v3)(void); // x0
v0 = qword_100A0CD68;
if ( !qword_100A0CD68 )
{
v1 = sub_1006FE9F8();
v2 = v1;
if ( v1 )
{
v0 = sub_1006FEA08(v1);
qword_100A0CD68 = v0;
if ( v0 )
{
qword_100A0CD60 = v2;
goto LABEL_7;
}
sub_1006FD22C(v2);
}
v0 = (__int64)sub_100705AB8();
qword_100A0CD68 = v0;
if ( !v0 )
return 0;
}
LABEL_7:
v3 = *(__int64 (**)(void))(v0 + 40);
if ( v3 )
return v3();
return 0;
}