//
// sub_1001A2B18 from 0x1001a2b18 to 0x1001a2ba4 (140 bytes)
//
// 1 xrefs:
// > sub_1001976F0 @ 0x100197860
//
// 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:01 +0000
//
_QWORD *__fastcall sub_1001A2B18(__int64 **a1, int *a2, __int64 a3, _QWORD **a4)
{
__int64 *v6; // x0
_QWORD *v7; // x19
__int64 *v8; // x21
__int64 v10; // [xsp+8h] [xbp-28h] BYREF
v6 = sub_10001AC20((__int64)a1, &v10, a2);
v7 = (_QWORD *)*v6;
if ( !*v6 )
{
v8 = v6;
v7 = operator new(0x40u);
v7[4] = **a4;
v7[5] = 0;
*((_DWORD *)v7 + 12) = 0;
v7[7] = 0;
sub_10000A0F0(a1, v10, v8, v7);
}
return v7;
}