//
// sub_1004951B0 from 0x1004951b0 to 0x100495296 (230 bytes)
//
// 1 xrefs:
// > ??> @ 0x100944478
//
// 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_1004951B0(GJAccountRegisterDelegate *a1)
{
cocos2d::CCObject *v2; // rdi
a1[-40].__vftable = (GJAccountRegisterDelegate_vtbl *)off_100943F10;
a1->__vftable = (GJAccountRegisterDelegate_vtbl *)off_100944478;
a1[1].__vftable = (GJAccountRegisterDelegate_vtbl *)&off_1009444E8;
a1[2].__vftable = (GJAccountRegisterDelegate_vtbl *)off_100944500;
a1[3].__vftable = (GJAccountRegisterDelegate_vtbl *)off_100944520;
a1[4].__vftable = (GJAccountRegisterDelegate_vtbl *)off_100944540;
a1[11].__vftable = (GJAccountRegisterDelegate_vtbl *)off_100944568;
a1[14].__vftable = (GJAccountRegisterDelegate_vtbl *)off_1009445E8;
a1[39].__vftable = (GJAccountRegisterDelegate_vtbl *)off_100944608;
a1[40].__vftable = (GJAccountRegisterDelegate_vtbl *)off_100944650;
a1[41].__vftable = (GJAccountRegisterDelegate_vtbl *)&off_100944670;
if ( GJAccountManager::sharedState()->m_accountRegisterDelegate != &a1[40] )
{
v2 = (cocos2d::CCObject *)a1[52].__vftable;
if ( !v2 )
return FLAlertLayer::dFLAlertLayer(&a1[-40]);
goto LABEL_5;
}
GJAccountManager::sharedState()->m_accountRegisterDelegate = nullptr;
v2 = (cocos2d::CCObject *)a1[52].__vftable;
if ( v2 )
LABEL_5:
cocos2d::CCObject::release(v2);
return FLAlertLayer::dFLAlertLayer(&a1[-40]);
}