//
// sub_1003D8930 from 0x1003d8930 to 0x1003d89f5 (197 bytes)
//
// 1 xrefs:
// > sub_1003D82A0 @ 0x1003d8397
//
// This function is hookable on this platform (idp: pc, 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 12:29:42 +0000
//
__int64 __fastcall sub_1003D8930(__int64 *a1, int *a2)
{
char *v3; // r14
int v4; // eax
_QWORD *v5; // rdi
__int128 v6; // xmm0
__int128 v7; // xmm1
__int128 v8; // xmm2
v3 = (char *)operator new(0x78u);
*(_OWORD *)v3 = 0;
v4 = *a2;
*((_DWORD *)v3 + 4) = *a2;
v5 = v3 + 24;
if ( (a2[2] & 1) != 0 )
{
sub_10001AD30(v5, *((const void **)a2 + 3), *((_QWORD *)a2 + 2));
v4 = *((_DWORD *)v3 + 4);
}
else
{
*((_QWORD *)v3 + 5) = *((_QWORD *)a2 + 3);
*(_OWORD *)v5 = *(_OWORD *)(a2 + 2);
}
v3[112] = *((_BYTE *)a2 + 96);
v6 = *((_OWORD *)a2 + 2);
v7 = *((_OWORD *)a2 + 3);
v8 = *((_OWORD *)a2 + 4);
*((_OWORD *)v3 + 6) = *((_OWORD *)a2 + 5);
*((_OWORD *)v3 + 5) = v8;
*((_OWORD *)v3 + 4) = v7;
*((_OWORD *)v3 + 3) = v6;
*((_QWORD *)v3 + 1) = v4;
return sub_1003D83F0(a1, (__int64)v3);
}