//
// sub_1800D1740 from 0x1800d1740 to 0x1800d1800 (192 bytes)
//
// 3 xrefs:
// > sub_1800E2FB0 @ 0x1800e3064
// > sub_1800E5B50 @ 0x1800e5bff
// > ??> @ 0x1801febc8
//
// 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_1800D1740(__int64 a1, __int64 a2)
{
*(_QWORD *)(a1 + 8) = a1;
*(_QWORD *)a1 = a1;
*(_QWORD *)(a1 + 16) = 0;
sub_1800D5CE0(a1 + 272);
*(_QWORD *)(a1 + 24) = a2;
*(_QWORD *)(a1 + 32) = 0;
*(_QWORD *)(a1 + 40) = 0;
*(_QWORD *)(a1 + 48) = 0;
*(_DWORD *)(a1 + 56) = 0;
*(_QWORD *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 116) = 0;
*(_QWORD *)(a1 + 124) = 1065353216;
*(_QWORD *)(a1 + 132) = 1065353216;
*(_QWORD *)(a1 + 140) = 0;
*(_DWORD *)(a1 + 148) = 0;
*(_DWORD *)(a1 + 152) = 1065353216;
*(_DWORD *)(a1 + 156) = 1065353216;
*(_DWORD *)(a1 + 160) = 1065353216;
sub_1800D1B60(a1);
*(_QWORD *)(a1 + 80) = 0;
*(_QWORD *)(a1 + 304) = 0;
*(_BYTE *)(a1 + 312) = 0;
*(_BYTE *)(a1 + 112) = 1;
return a1;
}