//
// sub_180088B30 from 0x180088b30 to 0x180088b9f (111 bytes)
//
// 2 xrefs:
// > sub_1800FC980 @ 0x1800fcc82
// > ??> @ 0x1801fa3d4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:41 +0000
//
__int64 __fastcall sub_180088B30(_QWORD *a1, int a2)
{
__int64 v2; // rbx
__int64 v4; // rcx
__int64 result; // rax
v2 = 0;
if ( a2 != -1 )
v2 = sub_1800880E0(a1[21] + 74128LL, a2);
v4 = a1[72];
if ( v2 == v4 )
return 0;
if ( !v4 || (result = sub_1800887C0(v4, (__int64)a1), !(_DWORD)result) )
{
if ( !v2 || (result = sub_180087C80(v2, a1), !(_DWORD)result) )
{
a1[72] = v2;
return 0;
}
}
return result;
}