//
// sub_1800C2ED0 from 0x1800c2ed0 to 0x1800c2f29 (89 bytes)
//
// 2 xrefs:
// > sub_1800C2180 @ 0x1800c2198
// > ??> @ 0x1801fdd28
//
// 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:03 +0000
//
__int64 __fastcall sub_1800C2ED0(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rdx
__int64 v3; // rax
v1 = a1 + 1096;
if ( !a1 )
v1 = 1104;
v2 = *(_QWORD *)v1;
if ( !*(_QWORD *)v1 )
return 0;
v3 = a1 + 1113;
if ( !a1 )
v3 = 1121;
if ( *(_BYTE *)v3 && (*(_BYTE *)v3 = 0, (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v2 + 64LL))(v2)) )
return 49;
else
return 0;
}