//
// sub_1800887F0 from 0x1800887f0 to 0x180088826 (54 bytes)
//
// 5 xrefs:
// > sub_1800886A0 @ 0x1800886f7
// > sub_1800DAEB0 @ 0x1800daf2e
// > sub_180113B70 @ 0x180113bee
// > sub_180113CC0 @ 0x180113d3e
// > ??> @ 0x1801fa38c
//
// 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_1800887F0(__int64 a1, int a2)
{
__int64 result; // rax
if ( a2 <= (int)abs32(*(_DWORD *)(a1 + 12)) || (result = sub_1800884B0((_QWORD *)a1, a2), !(_DWORD)result) )
{
*(_DWORD *)(a1 + 8) = a2;
return 0;
}
return result;
}