//
// sub_180087E70 from 0x180087e70 to 0x180087ea5 (53 bytes)
//
// 2 xrefs:
// > sub_1800E2620 @ 0x1800e2c7f
// > ??> @ 0x1801fa2b4
//
// 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_180087E70(__int64 a1)
{
__int64 v1; // rbx
v1 = a1 + 16;
if ( !(unsigned int)sub_180087CB0((_QWORD *)(a1 + 16)) && !(unsigned int)sub_180087D80((_QWORD *)(v1 + 16)) )
{
*(_DWORD *)(v1 + 32) = -1;
*(_DWORD *)(v1 + 36) = 0;
}
return 0;
}