//
// sub_1800CCA20 from 0x1800cca20 to 0x1800cca79 (89 bytes)
//
// 5 xrefs:
// > sub_1800CCA20 @ 0x1800cca56
// > sub_1800FD380 @ 0x1800fd407
// > ??> @ 0x18018b4d8
// > ??> @ 0x18018b4e8
// > ??> @ 0x1801fe6ac
//
// 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_1800CCA20(_QWORD *a1, unsigned int a2)
{
__int64 result; // rax
_QWORD *v5; // rdi
_QWORD *v6; // rbx
result = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 120LL))(a1);
if ( !(_DWORD)result )
{
v5 = a1 + 50;
v6 = (_QWORD *)*v5;
if ( (_QWORD *)*v5 == v5 )
{
return 0;
}
else
{
while ( 1 )
{
result = sub_1800CCA20(v6[2], a2);
if ( (_DWORD)result )
break;
v6 = (_QWORD *)*v6;
if ( v6 == v5 )
return 0;
}
}
}
return result;
}