//
// sub_1800C89F0 from 0x1800c89f0 to 0x1800c8a70 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x18016c528
//
// 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_1800C89F0(__int64 a1, bool *a2)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rax
if ( (*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 96LL) + 100LL) & 0x80) != 0
&& (!*(_QWORD *)(a1 + 40) || !*(_QWORD *)(a1 + 664) || (*(_DWORD *)(a1 + 212) & 0x80) != 0) )
{
v2 = *(_QWORD *)(a1 + 736);
if ( !v2 || (*(_DWORD *)(v2 + 100) & 0x80) != 0 )
{
v3 = *(_QWORD *)(a1 + 744);
if ( !v3 || (*(_DWORD *)(v3 + 100) & 0x80) != 0 )
{
v4 = *(_QWORD *)(a1 + 48);
if ( !v4 || (*(_DWORD *)(v4 + 100) & 0x80) != 0 )
return sub_1800C7A50(a1, a2);
}
}
}
*a2 = 1;
return 0;
}