//
// AccountLayer::onRegister from 0x14007dea0 to 0x14007e013 (371 bytes)
//
// 2 xrefs:
// > AccountLayer::customSetup @ 0x14007d984
// > ??> @ 0x1406c68c4
//
// 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
//
// Hidden C++ exception states: #wind=1
void AccountLayer::onRegister(AccountLayer *a1, cocos2d::CCObject *a2)
{
AccountRegisterLayer *v2; // rbx
void (*show)(FLAlertLayer *); // rdx
v2 = (AccountRegisterLayer *)operator new(0x2F0u);
FLAlertLayer::FLAlertLayer(v2);
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AccountRegisterLayer_vtbl *)&AccountRegisterLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&AccountRegisterLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&AccountRegisterLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&AccountRegisterLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&AccountRegisterLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&AccountRegisterLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&AccountRegisterLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&AccountRegisterLayer::`vftable';
v2->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&AccountRegisterLayer::`vftable';
v2->GJAccountRegisterDelegate::__vftable = (GJAccountRegisterDelegate_vtbl *)&AccountRegisterLayer::`vftable';
v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&AccountRegisterLayer::`vftable';
v2->m_usernameField = nullptr;
v2->m_passwordField = nullptr;
v2->m_confirmPasswordField = nullptr;
v2->m_emailField = nullptr;
v2->m_usernameLabel = nullptr;
v2->m_passwordLabel = nullptr;
v2->m_confirmPasswordLabel = nullptr;
v2->m_emailLabel = nullptr;
v2->m_loadingCircle = nullptr;
v2->m_lockInput = 0;
if ( AccountRegisterLayer::init(v2) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(AccountRegisterLayer *, __int64))v2->~AccountRegisterLayer)(v2, 1);
v2 = nullptr;
}
show = (void (*)(FLAlertLayer *))v2->show;
if ( show == FLAlertLayer::show )
FLAlertLayer::show(v2);
else
show(v2);
}