//
// sub_1800C46C0 from 0x1800c46c0 to 0x1800c4744 (132 bytes)
//
// 2 xrefs:
// > sub_1800C3960 @ 0x1800c3990
// > ??> @ 0x1801fde60
//
// 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_1800C46C0(__int64 a1, _DWORD *a2, _DWORD *a3)
{
__int64 v3; // rbx
__int64 v6; // rdi
__int64 result; // rax
DWORD v8; // [rsp+40h] [rbp+8h] BYREF
v3 = a1 - 8;
if ( !a1 )
v3 = 0;
v6 = *(_QWORD *)(v3 + 1880);
if ( !*(_DWORD *)(v6 + 8) || (v8 = 0, sub_1800C1770(&v8), v8 - *(_DWORD *)(v6 + 8) <= 0x3E8) )
{
*a3 = 0;
goto LABEL_8;
}
*(_DWORD *)(v6 + 8) = 0;
*a3 = 1;
result = sub_1800C43E0(v3);
if ( !(_DWORD)result )
{
LABEL_8:
*a2 = *(_DWORD *)(v3 + 1888);
return 0;
}
return result;
}