//
// sub_10071EE4C from 0x10071ee4c to 0x10071ef18 (204 bytes)
//
// 1 xrefs:
// > sub_10071C3A4 @ 0x10071c528
//
// 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:13:04 +0000
//
__int64 __fastcall sub_10071EE4C(_DWORD *a1, void **a2, __int64 *a3, __int64 a4)
{
__int64 v6; // x21
__int64 v7; // x8
__int64 v9; // x22
if ( !a3 )
return 0;
v6 = *a3;
if ( !*a3 )
return 0;
v7 = *(_QWORD *)(a4 + 32);
if ( !v7 )
return 0;
if ( (*(_BYTE *)(v7 + 8) & 2) == 0 )
return 0;
v9 = *(int *)(v7 + 32);
if ( !(v6 + v9) )
return 0;
if ( *(_DWORD *)(v9 + v6 + 16) )
return 0;
if ( a2 )
{
memcpy(*a2, *(const void **)(v6 + v9), *(_QWORD *)(v6 + v9 + 8));
*a2 = (char *)*a2 + *(_QWORD *)(v6 + v9 + 8);
}
if ( a1 )
*a1 = *(_QWORD *)(v9 + v6 + 8);
return 1;
}