//
// sub_100125450 from 0x100125450 to 0x1001254e0 (144 bytes)
//
// 1 xrefs:
// > sub_1001253D0 @ 0x100125404
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char *__fastcall sub_100125450(__int64 **a1, __int64 a2, __int64 a3, __int64 a4)
{
void **v6; // x0
char *v7; // x21
void **v8; // x22
__int128 v9; // q1
__int64 v11; // [xsp+0h] [xbp-30h] BYREF
__int64 v12; // [xsp+8h] [xbp-28h] BYREF
v6 = (void **)sub_1001254E0(a1, a2, &v12, &v11, a3);
v7 = (char *)*v6;
if ( !*v6 )
{
v8 = v6;
v7 = (char *)operator new(0x40u);
v9 = *(_OWORD *)(a4 + 16);
*(_OWORD *)(v7 + 28) = *(_OWORD *)a4;
*(_OWORD *)(v7 + 44) = v9;
*((_DWORD *)v7 + 15) = *(_DWORD *)(a4 + 32);
sub_10000A0F0(a1, v12, v8, v7);
}
return v7;
}