//
// sub_1003F2CB8 from 0x1003f2cb8 to 0x1003f2d44 (140 bytes)
//
// 3 xrefs:
// > sub_1003F20AC @ 0x1003f2214
// > sub_1003F20AC @ 0x1003f22b0
// > sub_1003F236C @ 0x1003f2464
//
// 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:04:31 +0000
//
char *__fastcall sub_1003F2CB8(__int64 **a1, int *a2, __int64 a3, _QWORD **a4)
{
__int64 *v6; // x0
char *v7; // x19
__int64 *v8; // x22
__int64 v10; // [xsp+8h] [xbp-28h] BYREF
v6 = sub_10001C6D8((__int64)a1, &v10, a2);
v7 = (char *)*v6;
if ( !*v6 )
{
v8 = v6;
v7 = (char *)operator new(0x30u);
*(_QWORD *)(v7 + 28) = **a4;
*((_DWORD *)v7 + 11) = 0;
*(_QWORD *)(v7 + 36) = 0;
sub_10000A0F0(a1, v10, v8, v7);
}
return v7;
}