//
// sub_1000A00C0 from 0x1000a00c0 to 0x1000a016e (174 bytes)
//
// 2 xrefs:
// > GJAccountManager::dGJAccountManager @ 0x1000a0185
// > sub_1000A0190 @ 0x1000a0199
//
// 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:13 +0000
//
__int64 __fastcall sub_1000A00C0(__int64 a1)
{
__int64 v2; // rdi
*(_QWORD *)a1 = off_100ABC988;
qword_100BE1148 = 0;
v2 = *(_QWORD *)(a1 + 320);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( (*(_BYTE *)(a1 + 472) & 1) != 0 )
{
operator delete(*(void **)(a1 + 488));
if ( (*(_BYTE *)(a1 + 448) & 1) == 0 )
{
LABEL_5:
if ( (*(_BYTE *)(a1 + 368) & 1) == 0 )
goto LABEL_6;
LABEL_11:
operator delete(*(void **)(a1 + 384));
if ( (*(_BYTE *)(a1 + 328) & 1) == 0 )
return cocos2d::CCNode::dCCNode(a1);
goto LABEL_7;
}
}
else if ( (*(_BYTE *)(a1 + 448) & 1) == 0 )
{
goto LABEL_5;
}
operator delete(*(void **)(a1 + 464));
if ( (*(_BYTE *)(a1 + 368) & 1) != 0 )
goto LABEL_11;
LABEL_6:
if ( (*(_BYTE *)(a1 + 328) & 1) != 0 )
LABEL_7:
operator delete(*(void **)(a1 + 344));
return cocos2d::CCNode::dCCNode(a1);
}