{"type": "func", "start": 4627284, "end": 4627588, "name": "AccountLoginLayer::create", "pseudocode": "// \n// AccountLoginLayer::create from 0x469b54 to 0x469c84 (304 bytes)\n// \n// 2 xrefs:\n// > AccountLayer::onLogin @ 0x46614a\n// > AccountHelpLayer::onReLogin @ 0x46619c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nAccountLoginLayer *__fastcall AccountLoginLayer::create(char *a1, char *a2, char *a3)\n{\n  AccountLoginLayer *v3; // r4\n  int v4; // r6\n  AccountLoginLayer_vtbl *v5; // r3\n  AccountLoginLayer *v6; // r0\n  char *v8[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v8[0] = a1;\n  v8[1] = a2;\n  v8[2] = a3;\n  v3 = (AccountLoginLayer *)operator new(0x218u);\n  cocos2d::CCLayerColor::CCLayerColor(v3);\n  v3->m_buttonMenu = nullptr;\n  v3->m_alertProtocol = nullptr;\n  v3->m_scene = nullptr;\n  v3->m_reverseKeyBack = 0;\n  v3->m_mainLayer = nullptr;\n  v3->m_ZOrder = 0;\n  v3->m_noElasticity = 0;\n  v3->m_button1 = nullptr;\n  v3->m_button2 = nullptr;\n  v3->m_scrollingLayer = nullptr;\n  v3->m_controlConnected = -1;\n  v3->m_containsBorder = 0;\n  v3->m_noAction = 0;\n  v3->m_joystickConnected = -1;\n  v3->m_forcePrioRegistered = 0;\n  v3->m_usernameInput = nullptr;\n  v3->m_passwordInput = nullptr;\n  v3->m_usernameLabel = nullptr;\n  v3->m_passwordLabel = nullptr;\n  v3->m_loadingCircle = nullptr;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AccountLoginLayer_vtbl *)&off_A68A30;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A68CD8;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A68D10;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A68D1C;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A68D2C;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A68D3C;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A68D50;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A68D90;\n  v3->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A68DA0;\n  v3->GJAccountLoginDelegate::__vftable = (GJAccountLoginDelegate_vtbl *)&off_A68DC4;\n  v3->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A68DD4;\n  v3->m_username.m_data.m_data = (stl::StringData<char>::Internal *)&unk_ACDDA8;\n  v3->m_password.m_data.m_data = (stl::StringData<char>::Internal *)&unk_ACDDA8;\n  sub_775C20(v8);\n  v4 = AccountLoginLayer::init(v3, v8);\n  sub_774008(v8);\n  if ( v4 )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    v5 = v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v6 = v3;\n    v3 = nullptr;\n    v5->~AccountLoginLayer_0(v6);\n  }\n  return v3;\n}", "assembly": "; \n; AccountLoginLayer::create from 0x469b54 to 0x469c84 (304 bytes)\n; \n; 2 xrefs:\n; > AccountLayer::onLogin @ 0x46614a\n; > AccountHelpLayer::onReLogin @ 0x46619c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x469b54\nMOV             R6, R0                                                 ; +0x2, 0x469b56\nLDR             R5, =(__stack_chk_guard_ptr - 0x469B62)                ; +0x4, 0x469b58\nMOV.W           R0, #0x218; unsigned int                               ; +0x6, 0x469b5a\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x469b5e\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x469b60\nLDR             R3, [R5]                                               ; +0xe, 0x469b62\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x10, 0x469b64\nBL              _Znwj; operator new(uint)                              ; +0x12, 0x469b66\nMOV             R4, R0                                                 ; +0x16, 0x469b6a\nBL              _ZN7cocos2d12CCLayerColorC2Ev; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x18, 0x469b6c\nMOVS            R3, #0                                                 ; +0x1c, 0x469b70\nMOV.W           R2, #0xFFFFFFFF                                        ; +0x1e, 0x469b72\nSTR.W           R3, [R4,#0x1B8]                                        ; +0x22, 0x469b76\nMOV             R0, SP                                                 ; +0x26, 0x469b7a\nSTR.W           R3, [R4,#0x1BC]                                        ; +0x28, 0x469b7c\nMOV             R7, SP                                                 ; +0x2c, 0x469b80\nSTR.W           R3, [R4,#0x1C0]                                        ; +0x2e, 0x469b82\nSTRB.W          R3, [R4,#0x1C4]                                        ; +0x32, 0x469b86\nSTR.W           R3, [R4,#0x1C8]                                        ; +0x36, 0x469b8a\nSTR.W           R3, [R4,#0x1CC]                                        ; +0x3a, 0x469b8e\nSTRB.W          R3, [R4,#0x1D0]                                        ; +0x3e, 0x469b92\nSTR.W           R3, [R4,#0x1D4]                                        ; +0x42, 0x469b96\nSTR.W           R3, [R4,#0x1D8]                                        ; +0x46, 0x469b9a\nSTR.W           R3, [R4,#0x1DC]                                        ; +0x4a, 0x469b9e\nSTR.W           R2, [R4,#0x1E0]                                        ; +0x4e, 0x469ba2\nSTRB.W          R3, [R4,#0x1E4]                                        ; +0x52, 0x469ba6\nSTRB.W          R3, [R4,#0x1E5]                                        ; +0x56, 0x469baa\nSTR.W           R2, [R4,#0x1E8]                                        ; +0x5a, 0x469bae\nSTRB.W          R3, [R4,#0x1EC]                                        ; +0x5e, 0x469bb2\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x62, 0x469bb6\nSTR.W           R3, [R4,#0x200]                                        ; +0x66, 0x469bba\nSTR.W           R3, [R4,#0x204]                                        ; +0x6a, 0x469bbe\nSTR.W           R3, [R4,#0x208]                                        ; +0x6e, 0x469bc2\nSTR.W           R3, [R4,#0x20C]                                        ; +0x72, 0x469bc6\nLDR             R2, =(_ZTV17AccountLoginLayer_ptr - 0x469BD2)          ; +0x76, 0x469bca\nLDR             R3, =(off_AB5BA0 - 0x469BD6)                           ; +0x78, 0x469bcc\nADD             R2, PC; _ZTV17AccountLoginLayer_ptr                    ; +0x7a, 0x469bce\nLDR             R2, [R2]; `vtable for'AccountLoginLayer ...            ; +0x7c, 0x469bd0\nADD             R3, PC; off_AB5BA0                                     ; +0x7e, 0x469bd2\nLDR             R3, [R3]; dword_ACDD9C                                 ; +0x80, 0x469bd4\nADD.W           R1, R2, #8                                             ; +0x82, 0x469bd6\nADDS            R3, #0xC                                               ; +0x86, 0x469bda\nSTR             R1, [R4]                                               ; +0x88, 0x469bdc\nADD.W           R1, R2, #0x2B0                                         ; +0x8a, 0x469bde\nSTR.W           R1, [R4,#0x108]                                        ; +0x8e, 0x469be2\nADD.W           R1, R2, #0x2E8                                         ; +0x92, 0x469be6\nSTR.W           R1, [R4,#0x10C]                                        ; +0x96, 0x469bea\nADD.W           R1, R2, #0x2F4                                         ; +0x9a, 0x469bee\nSTR.W           R1, [R4,#0x110]                                        ; +0x9e, 0x469bf2\nADD.W           R1, R2, #0x304                                         ; +0xa2, 0x469bf6\nSTR.W           R1, [R4,#0x114]                                        ; +0xa6, 0x469bfa\nADD.W           R1, R2, #0x314                                         ; +0xaa, 0x469bfe\nSTR.W           R1, [R4,#0x118]                                        ; +0xae, 0x469c02\nADD.W           R1, R2, #0x328                                         ; +0xb2, 0x469c06\nSTR.W           R1, [R4,#0x13C]                                        ; +0xb6, 0x469c0a\nADD.W           R1, R2, #0x368                                         ; +0xba, 0x469c0e\nSTR.W           R1, [R4,#0x14C]                                        ; +0xbe, 0x469c12\nADD.W           R1, R2, #0x378                                         ; +0xc2, 0x469c16\nSTR.W           R1, [R4,#0x1F0]                                        ; +0xc6, 0x469c1a\nADD.W           R1, R2, #0x39C                                         ; +0xca, 0x469c1e\nADD.W           R2, R2, #0x3AC                                         ; +0xce, 0x469c22\nSTR.W           R1, [R4,#0x1F4]                                        ; +0xd2, 0x469c26\nMOV             R1, R6                                                 ; +0xd6, 0x469c2a\nSTR.W           R2, [R4,#0x1F8]                                        ; +0xd8, 0x469c2c\nSTR.W           R3, [R4,#0x210]                                        ; +0xdc, 0x469c30\nSTR.W           R3, [R4,#0x214]                                        ; +0xe0, 0x469c34\nBL              sub_775C20                                             ; +0xe4, 0x469c38\nMOV             R0, R4                                                 ; +0xe8, 0x469c3c\nMOV             R1, SP                                                 ; +0xea, 0x469c3e\nBL              _ZN17AccountLoginLayer4initESs; AccountLoginLayer::init(std::string) ; +0xec, 0x469c40\nMOV             R6, R0                                                 ; +0xf0, 0x469c44\nMOV             R0, SP                                                 ; +0xf2, 0x469c46\nBL              sub_774008                                             ; +0xf4, 0x469c48\nCBZ             R6, loc_469C5E                                         ; +0xf8, 0x469c4c\nMOV             R0, R4; this                                           ; +0xfa, 0x469c4e\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xfc, 0x469c50\nB               loc_469C68                                             ; +0x100, 0x469c54\nMOV             R0, R7                                                 ; +0x102, 0x469c56\nBL              sub_774008                                             ; +0x104, 0x469c58\nB               loc_469C7C                                             ; +0x108, 0x469c5c\nLDR             R3, [R4]                                               ; +0x10a, 0x469c5e\nMOV             R0, R4                                                 ; +0x10c, 0x469c60\nMOV             R4, R6                                                 ; +0x10e, 0x469c62\nLDR             R3, [R3,#8]                                            ; +0x110, 0x469c64\nBLX             R3                                                     ; +0x112, 0x469c66\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x114, 0x469c68\nMOV             R0, R4                                                 ; +0x116, 0x469c6a\nLDR             R3, [R5]                                               ; +0x118, 0x469c6c\nCMP             R2, R3                                                 ; +0x11a, 0x469c6e\nBEQ             loc_469C80                                             ; +0x11c, 0x469c70\nBLX             __stack_chk_fail                                       ; +0x11e, 0x469c72\nMOV             R0, R4; p                                              ; +0x122, 0x469c76\nBL              _ZdlPv; operator delete(void *)                        ; +0x124, 0x469c78\nBL              __cxa_end_cleanup                                      ; +0x128, 0x469c7c\nADD             SP, SP, #0xC                                           ; +0x12c, 0x469c80\nPOP             {R4-R7,PC}                                             ; +0x12e, 0x469c82", "xrefs": ["AccountLayer::onLogin @ 0x46614a", "AccountHelpLayer::onReLogin @ 0x46619c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}