//
// sub_100713D78 from 0x100713d78 to 0x100713e24 (172 bytes)
//
// 2 xrefs:
// > sub_10074E758 @ 0x10074e7e0
// > sub_10074F01C @ 0x10074f048
//
// 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:58 +0000
//
__int64 __fastcall sub_100713D78(__int64 a1, void **a2)
{
__int64 v4; // x21
void *__dst; // [xsp+8h] [xbp-28h] BYREF
if ( !a1 )
return 0;
if ( !*(_QWORD *)(a1 + 24) )
return 0;
v4 = sub_1007217B8(0, *(unsigned int *)(a1 + 20), 6);
if ( a2 )
{
__dst = *a2;
sub_100721670(&__dst, 0, *(unsigned int *)(a1 + 20), 6, 0);
memcpy(__dst, *(const void **)(a1 + 24), *(int *)(a1 + 20));
__dst = (char *)__dst + *(int *)(a1 + 20);
*a2 = __dst;
}
return v4;
}