//
// sub_1003EB760 from 0x1003eb760 to 0x1003eb815 (181 bytes)
//
// 1 xrefs:
// > sub_1003EB0F0 @ 0x1003eb1c7
//
// 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_1003EB760(__int64 *a1, int *a2)
{
char *v3; // r15
int v4; // r13d
_QWORD *v5; // rdi
v3 = (char *)operator new(0xD0u);
*(_OWORD *)v3 = 0;
v4 = *a2;
*((_DWORD *)v3 + 4) = *a2;
v5 = v3 + 24;
if ( (a2[2] & 1) != 0 )
{
sub_100006B70(v5, *((const void **)a2 + 3), *((_QWORD *)a2 + 2), 0.0);
v4 = *((_DWORD *)v3 + 4);
}
else
{
*((_QWORD *)v3 + 5) = *((_QWORD *)a2 + 3);
*(_OWORD *)v5 = *(_OWORD *)(a2 + 2);
}
memcpy(v3 + 48, a2 + 8, 0x9Du);
*((_QWORD *)v3 + 1) = v4;
return sub_1003EB220(a1, (__int64)v3);
}