//
// sub_100126640 from 0x100126640 to 0x1001266ac (108 bytes)
//
// 1 xrefs:
// > sub_100126528 @ 0x1001265e8
//
// 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
//
int *__fastcall sub_100126640(_QWORD *a1, __int64 a2)
{
int *v4; // x19
__int128 v5; // q1
unsigned __int64 v6; // x1
_QWORD *v7; // x0
v4 = (int *)operator new(0x38u);
v5 = *(_OWORD *)(a2 + 16);
*((_OWORD *)v4 + 1) = *(_OWORD *)a2;
*((_OWORD *)v4 + 2) = v5;
*((_QWORD *)v4 + 6) = *(_QWORD *)(a2 + 32);
v6 = v4[4];
*(_QWORD *)v4 = 0;
*((_QWORD *)v4 + 1) = v6;
v7 = (_QWORD *)sub_10001ABFC((__int64)a1, v6, v4 + 4);
sub_10001AD58(a1, v4, v7);
return v4;
}