//
// sub_100498A60 from 0x100498a60 to 0x100498b7b (283 bytes)
//
// 4 xrefs:
// > sub_100498B90 @ 0x100498b95
// > sub_100498BA0 @ 0x100498bac
// > sub_100498BC0 @ 0x100498bc9
// > sub_100498BE0 @ 0x100498bf3
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100498A60(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
*(_QWORD *)a1 = off_100944688;
*(_QWORD *)(a1 + 320) = off_100944BD8;
*(_QWORD *)(a1 + 328) = &off_100944C48;
*(_QWORD *)(a1 + 336) = off_100944C60;
*(_QWORD *)(a1 + 344) = off_100944C80;
*(_QWORD *)(a1 + 352) = off_100944CA0;
*(_QWORD *)(a1 + 408) = off_100944CC8;
*(_QWORD *)(a1 + 432) = off_100944D48;
*(_QWORD *)(a1 + 632) = off_100944D68;
*(_QWORD *)(a1 + 640) = off_100944DB0;
*(_QWORD *)(a1 + 648) = &off_100944DD0;
if ( GJAccountManager::sharedState()->m_accountLoginDelegate == (GJAccountLoginDelegate *)(a1 + 640) )
{
GJAccountManager::sharedState()->m_accountLoginDelegate = nullptr;
v2 = *(cocos2d::CCObject **)(a1 + 688);
if ( !v2 )
goto LABEL_6;
goto LABEL_5;
}
v2 = *(cocos2d::CCObject **)(a1 + 688);
if ( v2 )
LABEL_5:
cocos2d::CCObject::release(v2);
LABEL_6:
if ( (*(_BYTE *)(a1 + 720) & 1) != 0 )
operator delete(*(void **)(a1 + 736));
if ( (*(_BYTE *)(a1 + 696) & 1) != 0 )
operator delete(*(void **)(a1 + 712));
return FLAlertLayer::dFLAlertLayer(a1);
}