//
// sub_10070D9EC from 0x10070d9ec to 0x10070da7c (144 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009c06c0
// > ??> @ 0x1009c0718
//
// 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:55 +0000
//
bool __fastcall sub_10070D9EC(__int64 a1, __int64 a2, _QWORD *a3, unsigned __int64 a4)
{
_QWORD *v4; // x11
__int64 v5; // x10
void (__fastcall *v6)(_QWORD *, __int64, unsigned __int64); // x10
v4 = *(_QWORD **)(a1 + 120);
if ( !v4[62] || !v4[63] )
return 0;
v5 = 0;
if ( a2 && a3 && a4 >= 0x10 )
{
v6 = (void (__fastcall *)(_QWORD *, __int64, unsigned __int64))v4[66];
if ( v6 )
{
v6(a3, a2, a4);
return 1;
}
return !(unsigned int)sub_1006CE3A4(v4 + 62, (__int128 *)(a1 + 40), a3, a2, a4, *(_DWORD *)(a1 + 16));
}
return v5;
}