//
// sub_100088AB0 from 0x100088ab0 to 0x100088b49 (153 bytes)
//
// 0 xrefs:
//
// 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:20:05 +0000
//
__int64 __fastcall sub_100088AB0(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
__int64 v5; // rax
__int64 v6; // rdi
result = *(_QWORD *)(a1 + 1936);
if ( *(_DWORD *)(result + 1140) != 1 && !*(_BYTE *)(a1 + 12544) && !*(_BYTE *)(a1 + 12616) )
{
GameManager::sharedState(a1, a2, a3);
v6 = a2;
if ( !(unsigned __int8)GameManager::getGameVariable(v5, "0192")
|| (result = *(_QWORD *)(a1 + 1936), *(_BYTE *)(result + 1528) == 1) )
{
result = *(_QWORD *)(a1 + 14176);
if ( result != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v6 = a2;
result = *(_QWORD *)(a1 + 14176);
}
if ( result )
{
result = cocos2d::CCObject::release(result);
v6 = a2;
}
*(_QWORD *)(a1 + 14176) = v6;
}
}
}
return result;
}