//
// sub_1800C9250 from 0x1800c9250 to 0x1800c92bd (109 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c530
// > ??> @ 0x1801fe310
//
// 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_1800C9250(__int64 a1)
{
__int64 result; // rax
int v3; // ebx
if ( *(char *)(a1 + 60) < 0 )
return 0;
result = sub_1800C9580();
if ( (_DWORD)result )
return result;
if ( !*(_QWORD *)(a1 + 768) )
return 0;
v3 = 0;
while ( 1 )
{
result = sub_1800C9830(a1, *(_QWORD *)(a1 + 8) + 24 * (v3 + 3074LL));
if ( (_DWORD)result )
break;
if ( ++v3 >= 4 )
return 0;
}
return result;
}