//
// sub_10070B660 from 0x10070b660 to 0x10070b6fc (156 bytes)
//
// 4 xrefs:
// > ??> @ 0x1009bf270
// > ??> @ 0x1009bf2c8
// > ??> @ 0x1009bf320
// > ??> @ 0x1009bf378
//
// 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:54 +0000
//
__int64 __fastcall sub_10070B660(__int64 a1, unsigned __int8 *a2, __int64 a3, int a4)
{
int v7[54]; // [xsp+8h] [xbp-F8h] BYREF
if ( a4 || (sub_100711044(a1) & 0xF0007) == 4 || (sub_100711044(a1) & 0xF0007) == 3 )
{
sub_1006C4524(a2, *(int **)(a1 + 120));
}
else
{
sub_1006C4524(a2, v7);
sub_1006C4698((signed __int64)v7, *(_DWORD **)(a1 + 120));
sub_1006B0510((char *)v7, 0xD8u);
}
return 1;
}