//
// sub_10070EA10 from 0x10070ea10 to 0x10070ea8c (124 bytes)
//
// 6 xrefs:
// > ??> @ 0x1009c0b60
// > ??> @ 0x1009c0bb8
// > ??> @ 0x1009c0c10
// > ??> @ 0x1009c0c68
// > ??> @ 0x1009c0cc0
// > ??> @ 0x1009c0d18
//
// 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_10070EA10(__int64 a1, int a2, int a3, _DWORD *a4)
{
switch ( a2 )
{
case 3:
if ( a3 >= 1 )
{
**(_DWORD **)(a1 + 120) = a3;
return 1;
}
return 0;
case 2:
*a4 = **(_DWORD **)(a1 + 120);
return 1;
case 0:
**(_DWORD **)(a1 + 120) = 8 * sub_1007113F8(a1);
return 1;
default:
return 0xFFFFFFFFLL;
}
}