// // AccountLoginLayer::create from 0x851634 to 0x85183c (520 bytes) // // 3 xrefs: // > AccountHelpLayer::onReLogin @ 0x84a230 // > AccountLayer::onLogin @ 0x84a328 // > @ 0x57d80 // // 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 // AccountLoginLayer *AccountLoginLayer::create() { AccountLoginLayer *v0; // x19 int v1; // w22 char *v2; // x0 AccountLoginLayer_vtbl *v3; // x1 AccountLoginLayer *v4; // x0 unsigned int *v6; // x2 int v7; // w1 char *v8; // [xsp+50h] [xbp+50h] BYREF v0 = (AccountLoginLayer *)operator new(0x2C8u); cocos2d::CCLayerColor::CCLayerColor(v0); v0->m_buttonMenu = nullptr; v0->m_alertProtocol = nullptr; v0->m_scene = nullptr; v0->m_controlConnected = -1; v0->m_joystickConnected = -1; v0->m_reverseKeyBack = 0; v0->m_mainLayer = nullptr; v0->m_ZOrder = 0; v0->m_noElasticity = 0; v0->m_button1 = nullptr; v0->m_button2 = nullptr; v0->m_scrollingLayer = nullptr; v0->m_containsBorder = 0; v0->m_noAction = 0; v0->m_forcePrioRegistered = 0; v0->m_usernameInput = nullptr; v0->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AccountLoginLayer_vtbl *)&off_118EFC0; v0->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_118F510; v0->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_118F580; v0->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_118F598; v0->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_118F5B8; v0->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_118F5D8; v0->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_118F600; v0->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_118F680; v0->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)off_118F6A0; v0->GJAccountLoginDelegate::__vftable = (GJAccountLoginDelegate_vtbl *)&off_118F6E8; v0->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_118F708; v0->m_passwordInput = nullptr; v0->m_usernameLabel = nullptr; v0->m_passwordLabel = nullptr; v0->m_loadingCircle = nullptr; v0->m_username.m_data.m_data = (stl::StringData::Internal *)&byte_124B6C8; v0->m_password.m_data.m_data = (stl::StringData::Internal *)&byte_124B6C8; sub_D18D28(&v8); v1 = (unsigned __int8)AccountLoginLayer::init(v0, &v8); v2 = v8 - 24; if ( v8 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v6 = (unsigned int *)(v8 - 8); do v7 = __ldaxr(v6); while ( __stlxr(v7 - 1, v6) ); } else { v7 = *((_DWORD *)v8 - 2); *((_DWORD *)v8 - 2) = v7 - 1; } if ( v7 <= 0 ) operator delete(v2); } if ( v1 ) { cocos2d::CCObject::autorelease(v0); } else { v3 = v0->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v4 = v0; v0 = nullptr; v3->~AccountLoginLayer_0(v4); } return v0; }