//
// sub_10070FCC0 from 0x10070fcc0 to 0x10070fd70 (176 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009e9838
//
// 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:56 +0000
//
__int64 __fastcall sub_10070FCC0(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // x20
__int64 v5; // x22
__int64 v6; // x0
v4 = 0;
if ( a2 && (int)a3 >= 1 )
{
v5 = *(_QWORD *)(a1 + 48);
if ( v5 && (v6 = *(_QWORD *)(a1 + 56)) != 0 )
{
v4 = sub_100700894(v6, a2, a3);
if ( (int)v4 >= 1 && *(_DWORD *)(a1 + 24) && !(unsigned int)sub_1007091A4(v5) )
{
sub_100700768(a1, 15);
return 0;
}
}
else
{
v4 = 0;
}
if ( *(_QWORD *)(a1 + 56) )
{
sub_100700768(a1, 15);
sub_100701210(a1);
}
}
return v4;
}