//
// sub_10087A510 from 0x10087a510 to 0x10087a5a3 (147 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ba2750
//
// 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 12:36:54 +0000
//
__int64 __fastcall sub_10087A510(__int64 a1)
{
*(_QWORD *)a1 = off_100BA2748;
*(_QWORD *)(a1 + 320) = off_100BA2BA0;
*(_QWORD *)(a1 + 344) = off_100BA2C20;
*(_QWORD *)(a1 + 408) = off_100BA2C50;
if ( (*(_BYTE *)(a1 + 416) & 1) != 0 )
{
**(_BYTE **)(a1 + 432) = 0;
*(_QWORD *)(a1 + 424) = 0;
if ( (*(_BYTE *)(a1 + 416) & 1) != 0 )
operator delete(*(void **)(a1 + 432));
return sub_100316000((_QWORD *)a1);
}
else
{
*(_WORD *)(a1 + 416) = 0;
return sub_100316000((_QWORD *)a1);
}
}