//
// sub_180068440 from 0x180068440 to 0x180068501 (193 bytes)
//
// 2 xrefs:
// > sub_180068920 @ 0x18006893e
// > ??> @ 0x1801f9468
//
// 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 10:53:27 +0000
//
__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;
}