//
// sub_18009F820 from 0x18009f820 to 0x18009f852 (50 bytes)
//
// 3 xrefs:
// > sub_1800A0210 @ 0x1800a0246
// > sub_1800A19A0 @ 0x1800a1c69
// > ??> @ 0x1801b76f8
//
// 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_18009F820(__int64 a1)
{
__int64 v2; // rcx
__int64 result; // rax
v2 = *(_QWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 32) )
return (*(__int64 (__fastcall **)(__int64))(a1 + 24))(v2);
result = (*(unsigned int (__fastcall **)(__int64))(a1 + 72))(v2);
if ( (_DWORD)result == -1 )
return -1;
return result;
}