//
// sub_1800C89F0 from 0x1800c89f0 to 0x1800c8a70 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x18016c528
//
// 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:54:06 +0000
//
__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;
}