//
// sub_1800102F0 from 0x1800102f0 to 0x180010399 (169 bytes)
//
// 3 xrefs:
// > ??> @ 0x18016c770
// > ??> @ 0x18016c9e8
// > ??> @ 0x1801f6e10
//
// 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_1800102F0(__int64 *a1, __int64 a2, __int64 a3, unsigned __int8 a4)
{
__int64 result; // rax
__int64 v8; // rax
__int64 v9; // [rsp+30h] [rbp+8h] BYREF
if ( a2 == a1[37] && a3 == a1[38] && a4 == *((_BYTE *)a1 + 312) )
return 0;
v8 = *a1;
a1[37] = a2;
a1[38] = a3;
*((_BYTE *)a1 + 312) = a4;
result = (*(__int64 (__fastcall **)(__int64 *, _QWORD, __int64 *))(v8 + 288))(a1, 0, &v9);
if ( !(_DWORD)result )
{
if ( v9 )
return sub_18009B890(v9, a2, a3, a4);
else
return 9;
}
return result;
}