//
// sub_180068440 from 0x180068440 to 0x180068501 (193 bytes)
//
// 2 xrefs:
// > sub_180068920 @ 0x18006893e
// > ??> @ 0x1801f9468
//
// 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_180068440(__int64 *a1, __int64 a2, __int64 a3)
{
__int64 v3; // rbx
__int64 result; // rax
v3 = *a1;
LOBYTE(a3) = 1;
*(_QWORD *)(v3 + 584) = 0;
*(_QWORD *)(v3 + 592) = 0;
*(_QWORD *)(v3 + 600) = 0;
*(_QWORD *)(v3 + 600) = -1;
*(_QWORD *)(v3 + 576) = v3 + 576;
*(_QWORD *)(v3 + 584) = v3 + 576;
*(_QWORD *)(v3 + 592) = 0;
result = sub_1800F2990(*(_QWORD *)(v3 + 168) + 1824LL, v3 + 544, a3);
if ( !(_DWORD)result )
{
*(_QWORD *)(v3 + 600) = -1;
*(_QWORD *)(v3 + 576) = v3 + 576;
*(_QWORD *)(v3 + 584) = v3 + 576;
*(_QWORD *)(v3 + 592) = 0;
*(_QWORD *)(v3 + 672) = 0;
*(_DWORD *)(v3 + 680) = 1065353216;
*(_DWORD *)(v3 + 684) = 1;
*(_QWORD *)(v3 + 568) = 1065353216;
_InterlockedOr((volatile signed __int32 *)(v3 + 100), 0x10u);
return sub_1800696B0(v3, 1);
}
return result;
}