//
// sub_1800B8840 from 0x1800b8840 to 0x1800b88a4 (100 bytes)
//
// 3 xrefs:
// > sub_1800B41E0 @ 0x1800b4210
// > sub_1800CA520 @ 0x1800ca543
// > ??> @ 0x1801fd2fc
//
// 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
//
char __fastcall sub_1800B8840(__int64 a1)
{
__int64 v2; // rdx
__int64 v3; // rax
_QWORD *i; // rax
__int64 v6; // [rsp+38h] [rbp+10h] BYREF
sub_1800C1750(&v6);
v2 = 0;
v3 = 0;
while ( v6 != *(_QWORD *)(a1 + 8 * v3) )
{
if ( ++v3 >= 13 )
{
if ( v6 != *((_QWORD *)off_1801AED20 + 8) )
{
for ( i = (_QWORD *)((char *)off_1801AED20 + 304); v6 != *i; ++i )
{
if ( ++v2 >= 5 )
return 0;
}
}
return 1;
}
}
return 1;
}