//
// sub_18000ECE0 from 0x18000ece0 to 0x18000ed40 (96 bytes)
//
// 3 xrefs:
// > ??> @ 0x18016c808
// > ??> @ 0x18016ca80
// > ??> @ 0x1801f6ce4
//
// 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_18000ECE0(__int64 a1, __int64 a2)
{
__int64 result; // rax
char v5; // [rsp+30h] [rbp+8h] BYREF
result = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 152LL))(a1, &v5);
if ( !(_DWORD)result )
{
if ( (v5 & 0x10) != 0 )
{
if ( a2 )
{
*(_QWORD *)a2 = *(_QWORD *)(a1 + 180);
*(_DWORD *)(a2 + 8) = *(_DWORD *)(a1 + 188);
}
return 0;
}
else
{
return 40;
}
}
return result;
}