//
// sub_D0EFC8 from 0xd0efc8 to 0xd0f048 (128 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall sub_D0EFC8(__int64 a1, __int64 *a2)
{
__int64 v3; // x2
__int64 v4; // x0
__int64 result; // x0
v3 = *a2;
*(_QWORD *)a1 = *a2;
*(_QWORD *)(a1 + *(_QWORD *)(v3 - 24)) = a2[3];
*(_QWORD *)(a1 + 16) = off_121E480;
sub_D0D938(a1 + 16);
sub_CCE20C(a1 + 120);
*(_QWORD *)(a1 + 16) = off_111E930;
sub_CEA56C((unsigned int **)(a1 + 72));
v4 = a2[1];
*(_QWORD *)a1 = v4;
result = *(_QWORD *)(v4 - 24);
*(_QWORD *)(a1 + result) = a2[2];
return result;
}