//
// sub_10072C570 from 0x10072c570 to 0x10072c604 (148 bytes)
//
// 7 xrefs:
// > ??> @ 0x1009c3568
// > ??> @ 0x1009c35d0
// > ??> @ 0x1009c3638
// > ??> @ 0x1009c36a0
// > ??> @ 0x1009c3708
// > ??> @ 0x1009c3770
// > ??> @ 0x1009c37d8
//
// 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:10 +0000
//
_BYTE *__fastcall sub_10072C570(__int64 a1, const void **a2)
{
_BYTE *v3; // x0
_BYTE *v4; // x20
if ( !a2 )
return nullptr;
if ( !*(_DWORD *)a2 )
return nullptr;
v3 = sub_1006AE878((unsigned int)(*(_DWORD *)a2 + 1), (__int64)"v3_ia5.c", 87);
v4 = v3;
if ( v3 )
{
memcpy(v3, a2[1], *(int *)a2);
v4[*(int *)a2] = 0;
}
else
{
sub_100706FB0(34, 149, 65, (__int64)"v3_ia5.c", 88);
return nullptr;
}
return v4;
}