//
// sub_10071EDA4 from 0x10071eda4 to 0x10071ee4c (168 bytes)
//
// 1 xrefs:
// > sub_10071CFFC @ 0x10071d8d8
//
// 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_10071EDA4(__int64 *a1, const void *a2, __int64 a3, __int64 a4)
{
__int64 v6; // x21
__int64 v7; // x8
__int64 v8; // x22
void **v9; // x23
_BYTE *v10; // x0
__int64 v11; // x21
if ( !a1 )
return 1;
v6 = *a1;
if ( !*a1 )
return 1;
v7 = *(_QWORD *)(a4 + 32);
if ( !v7 )
return 1;
if ( (*(_BYTE *)(v7 + 8) & 2) == 0 )
return 1;
v8 = *(int *)(v7 + 32);
v9 = (void **)(v6 + v8);
if ( !(v6 + v8) )
return 1;
if ( *v9 )
sub_1006AEDAC(*v9);
v10 = sub_1006AE878(a3, (__int64)"tasn_utl.c", 174);
*v9 = v10;
if ( v10 )
{
v11 = v8 + v6;
memcpy(v10, a2, (int)a3);
*(_QWORD *)(v11 + 8) = (int)a3;
*(_DWORD *)(v11 + 16) = 0;
return 1;
}
return 0;
}