//
// sub_1001A30C4 from 0x1001a30c4 to 0x1001a3160 (156 bytes)
//
// 2 xrefs:
// > sub_100198268 @ 0x10019843c
// > sub_1001B95D4 @ 0x1001b9784
//
// 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:00:02 +0000
//
char *__fastcall sub_1001A30C4(__int64 **a1, int *a2, _QWORD *a3, __int64 a4)
{
__int64 *v7; // x0
char *v8; // x19
__int64 *v9; // x23
__int64 v11; // [xsp+8h] [xbp-38h] BYREF
v7 = sub_10001C6D8((__int64)a1, &v11, a2);
v8 = (char *)*v7;
if ( !*v7 )
{
v9 = v7;
v8 = (char *)operator new(0x40u);
*(_QWORD *)(v8 + 28) = *a3;
*(_OWORD *)(v8 + 36) = *(_OWORD *)a4;
*(_QWORD *)(v8 + 52) = *(_QWORD *)(a4 + 16);
sub_10000A0F0(a1, v11, v9, v8);
}
return v8;
}