//
// sub_1800CDCB0 from 0x1800cdcb0 to 0x1800cdd01 (81 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016cb00
// > ??> @ 0x1801fe7cc
//
// 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_1800CDCB0(__int64 a1, _DWORD *a2)
{
__int64 v2; // rax
__int64 result; // rax
__int64 v4; // rcx
v2 = *(_QWORD *)(a1 + 472);
if ( !v2 || !*(_QWORD *)(a1 + 32) )
return 30;
if ( !*(_QWORD *)(v2 + 40) )
{
v4 = *(_QWORD *)(v2 + 48);
if ( v4 )
{
*a2 = *(unsigned __int16 *)(v4 + 280);
return 0;
}
return 30;
}
result = sub_1800DEB00();
if ( !(_DWORD)result )
return 0;
return result;
}