//
// sub_10070E81C from 0x10070e81c to 0x10070e8b0 (148 bytes)
//
// 6 xrefs:
// > ??> @ 0x1009c0b50
// > ??> @ 0x1009c0ba8
// > ??> @ 0x1009c0c00
// > ??> @ 0x1009c0c58
// > ??> @ 0x1009c0cb0
// > ??> @ 0x1009c0d08
//
// 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_10070E81C(__int64 a1, __int64 a2)
{
__int64 v4; // x8
__int64 v5; // x11
__int64 v6; // x21
__int64 v7; // x0
int v9; // [xsp+Ch] [xbp-24h]
if ( !a2 )
return 0;
sub_100709C04(a1);
v4 = 58;
v5 = 120;
if ( v9 != 64 )
v5 = 0;
if ( v9 != 128 )
v4 = v5;
if ( v9 == 40 )
v6 = 160;
else
v6 = v4;
v7 = sub_100711270(a1);
return sub_100722168(a2, v6, a1 + 24, v7);
}