//
// sub_10070B34C from 0x10070b34c to 0x10070b430 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009bf118
//
// 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:53 +0000
//
__int64 __fastcall sub_10070B34C(__int64 a1, _BYTE *a2, unsigned int *a3, unsigned __int64 a4)
{
unsigned __int64 v4; // x20
unsigned int *v5; // x23
_BYTE *v6; // x19
unsigned __int64 v8; // x27
_BYTE *v9; // x25
unsigned int *v10; // x0
unsigned __int64 v12; // [xsp+0h] [xbp-60h]
unsigned int *v13; // [xsp+8h] [xbp-58h]
v4 = a4;
v5 = a3;
v6 = a2;
if ( a4 >> 62 )
{
v12 = a4 - 0x4000000000000000LL;
v8 = (a4 - 0x4000000000000000LL) & 0xC000000000000000LL;
v13 = (unsigned int *)((char *)a3 + v8 + 0x4000000000000000LL);
v9 = a2;
do
{
sub_1006C5334(v5, v9, 0x4000000000000000LL, *(_DWORD **)(a1 + 120), a1 + 40, *(_DWORD *)(a1 + 16));
v4 -= 0x4000000000000000LL;
v5 += 0x1000000000000000LL;
v9 += 0x4000000000000000LL;
}
while ( v4 >> 62 );
v6 += v8 + 0x4000000000000000LL;
v10 = v13;
v4 = v12 - v8;
}
else
{
v10 = a3;
}
if ( v4 )
sub_1006C5334(v10, v6, v4, *(_DWORD **)(a1 + 120), a1 + 40, *(_DWORD *)(a1 + 16));
return 1;
}