//
// sub_10070CE44 from 0x10070ce44 to 0x10070cea8 (100 bytes)
//
// 3 xrefs:
// > ??> @ 0x1009bfe80
// > ??> @ 0x1009c00e8
// > ??> @ 0x1009c0350
//
// 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
//
__int64 __fastcall sub_10070CE44(__int64 a1, __n128 *a2, _QWORD *a3, unsigned __int64 a4)
{
__int64 v4; // x8
void (__fastcall *v5)(_QWORD *, __n128 *, unsigned __int64, __int64, __int64, _QWORD); // x9
__n128 *v6; // x4
void (__fastcall *v7)(__n128 *, __n128 *, __int64); // x5
v4 = *(_QWORD *)(a1 + 120);
v5 = *(void (__fastcall **)(_QWORD *, __n128 *, unsigned __int64, __int64, __int64, _QWORD))(v4 + 256);
if ( v5 )
{
v5(a3, a2, a4, v4, a1 + 40, *(unsigned int *)(a1 + 16));
}
else
{
v6 = (__n128 *)(a1 + 40);
v7 = *(void (__fastcall **)(__n128 *, __n128 *, __int64))(v4 + 248);
if ( *(_DWORD *)(a1 + 16) )
sub_1006CA99C(a3, a2, a4, v4, v6, v7);
else
sub_1006CAD14((__int64)a3, a2, a4, v4, v6, (__int64 (__fastcall *)(unsigned __int64, _QWORD *, __int64))v7);
}
return 1;
}