{"type": "func", "start": 5798436, "end": 5798686, "name": "AccountLoginLayer::create", "pseudocode": "// \n// AccountLoginLayer::create from 0x587a24 to 0x587b1e (250 bytes)\n// \n// 2 xrefs:\n// > AccountHelpLayer::onReLogin @ 0x584596\n// > AccountLayer::onLogin @ 0x584776\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:52:59 +0000\n// \n\nFLAlertLayer *__fastcall AccountLoginLayer::create(int a1)\n{\n  FLAlertLayer *v2; // r4\n  int v3; // r7\n  int v4; // r3\n  FLAlertLayer *v5; // r0\n  int v7[3]; // [sp+0h] [bp-14h] BYREF\n\n  v2 = (FLAlertLayer *)operator new(0x23Cu);\n  FLAlertLayer::FLAlertLayer(v2);\n  *(_DWORD *)v2 = &off_CB3CD8;\n  *((_DWORD *)v2 + 66) = &off_CB3F98;\n  *((_DWORD *)v2 + 67) = &off_CB3FD0;\n  *((_DWORD *)v2 + 68) = &off_CB3FDC;\n  *((_DWORD *)v2 + 69) = &off_CB3FEC;\n  *((_DWORD *)v2 + 70) = &off_CB4000;\n  *((_DWORD *)v2 + 79) = &off_CB4018;\n  *((_DWORD *)v2 + 83) = &off_CB4058;\n  *((_DWORD *)v2 + 110) = &off_CB4068;\n  *((_DWORD *)v2 + 130) = &off_CB408C;\n  *((_DWORD *)v2 + 131) = &off_CB409C;\n  *((_DWORD *)v2 + 132) = 0;\n  *((_DWORD *)v2 + 133) = 0;\n  *((_DWORD *)v2 + 134) = 0;\n  *((_DWORD *)v2 + 135) = 0;\n  *((_DWORD *)v2 + 136) = 0;\n  *((_DWORD *)v2 + 137) = 0;\n  *((_DWORD *)v2 + 138) = 0;\n  *((_DWORD *)v2 + 139) = 0;\n  *((_DWORD *)v2 + 140) = 0;\n  *((_DWORD *)v2 + 141) = 0;\n  *((_DWORD *)v2 + 142) = 0;\n  std::string::basic_string(v7, a1);\n  v3 = AccountLoginLayer::init((int *)v2, v7);\n  std::string::~string((int)v7);\n  if ( v3 )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    v4 = *(_DWORD *)v2;\n    v5 = v2;\n    v2 = nullptr;\n    (*(void (__fastcall **)(FLAlertLayer *))(v4 + 8))(v5);\n  }\n  return v2;\n}", "assembly": "; \n; AccountLoginLayer::create from 0x587a24 to 0x587b1e (250 bytes)\n; \n; 2 xrefs:\n; > AccountHelpLayer::onReLogin @ 0x584596\n; > AccountLayer::onLogin @ 0x584776\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:52:59 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x587a24\nSUB             SP, SP, #0x14                                          ; +0x2, 0x587a26\nLDR             R6, =(__stack_chk_guard_ptr - 0x587A34)                ; +0x4, 0x587a28\nMOV             R7, R0                                                 ; +0x6, 0x587a2a\nMOV.W           R0, #0x23C; unsigned int                               ; +0x8, 0x587a2c\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x587a30\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x587a32\nLDR             R3, [R6]                                               ; +0x10, 0x587a34\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x12, 0x587a36\nBL              _Znwj; operator new(uint)                              ; +0x14, 0x587a38\nMOV             R4, R0                                                 ; +0x18, 0x587a3c\nBL              _ZN12FLAlertLayerC2Ev; FLAlertLayer::FLAlertLayer(void) ; +0x1a, 0x587a3e\nLDR             R3, =(_ZTV17AccountLoginLayer_ptr - 0x587A4E)          ; +0x1e, 0x587a42\nMOV             R1, R7                                                 ; +0x20, 0x587a44\nMOV             R0, SP                                                 ; +0x22, 0x587a46\nMOV             R5, SP                                                 ; +0x24, 0x587a48\nADD             R3, PC; _ZTV17AccountLoginLayer_ptr                    ; +0x26, 0x587a4a\nLDR             R3, [R3]; `vtable for'AccountLoginLayer ...            ; +0x28, 0x587a4c\nADD.W           R2, R3, #8                                             ; +0x2a, 0x587a4e\nSTR             R2, [R4]                                               ; +0x2e, 0x587a52\nADD.W           R2, R3, #0x2C8                                         ; +0x30, 0x587a54\nSTR.W           R2, [R4,#0x108]                                        ; +0x34, 0x587a58\nADD.W           R2, R3, #0x300                                         ; +0x38, 0x587a5c\nSTR.W           R2, [R4,#0x10C]                                        ; +0x3c, 0x587a60\nADD.W           R2, R3, #0x30C                                         ; +0x40, 0x587a64\nSTR.W           R2, [R4,#0x110]                                        ; +0x44, 0x587a68\nADD.W           R2, R3, #0x31C                                         ; +0x48, 0x587a6c\nSTR.W           R2, [R4,#0x114]                                        ; +0x4c, 0x587a70\nADD.W           R2, R3, #0x330                                         ; +0x50, 0x587a74\nSTR.W           R2, [R4,#0x118]                                        ; +0x54, 0x587a78\nADD.W           R2, R3, #0x348                                         ; +0x58, 0x587a7c\nSTR.W           R2, [R4,#0x13C]                                        ; +0x5c, 0x587a80\nADD.W           R2, R3, #0x388                                         ; +0x60, 0x587a84\nSTR.W           R2, [R4,#0x14C]                                        ; +0x64, 0x587a88\nADD.W           R2, R3, #0x398                                         ; +0x68, 0x587a8c\nSTR.W           R2, [R4,#0x1B8]                                        ; +0x6c, 0x587a90\nADD.W           R2, R3, #0x3BC                                         ; +0x70, 0x587a94\nADD.W           R3, R3, #0x3CC                                         ; +0x74, 0x587a98\nSTR.W           R2, [R4,#0x208]                                        ; +0x78, 0x587a9c\nSTR.W           R3, [R4,#0x20C]                                        ; +0x7c, 0x587aa0\nMOVS            R3, #0                                                 ; +0x80, 0x587aa4\nSTR.W           R3, [R4,#0x210]                                        ; +0x82, 0x587aa6\nSTR.W           R3, [R4,#0x214]                                        ; +0x86, 0x587aaa\nSTR.W           R3, [R4,#0x218]                                        ; +0x8a, 0x587aae\nSTR.W           R3, [R4,#0x21C]                                        ; +0x8e, 0x587ab2\nSTR.W           R3, [R4,#0x220]                                        ; +0x92, 0x587ab6\nSTR.W           R3, [R4,#0x224]                                        ; +0x96, 0x587aba\nSTR.W           R3, [R4,#0x228]                                        ; +0x9a, 0x587abe\nSTR.W           R3, [R4,#0x22C]                                        ; +0x9e, 0x587ac2\nSTR.W           R3, [R4,#0x230]                                        ; +0xa2, 0x587ac6\nSTR.W           R3, [R4,#0x234]                                        ; +0xa6, 0x587aca\nSTR.W           R3, [R4,#0x238]                                        ; +0xaa, 0x587ace\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xae, 0x587ad2\nMOV             R0, R4; int                                            ; +0xb2, 0x587ad6\nMOV             R1, SP; float                                          ; +0xb4, 0x587ad8\nBL              _ZN17AccountLoginLayer4initENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; AccountLoginLayer::init(std::string) ; +0xb6, 0x587ada\nMOV             R7, R0                                                 ; +0xba, 0x587ade\nMOV             R0, SP                                                 ; +0xbc, 0x587ae0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xbe, 0x587ae2\nCBZ             R7, loc_587AF8                                         ; +0xc2, 0x587ae6\nMOV             R0, R4; this                                           ; +0xc4, 0x587ae8\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xc6, 0x587aea\nB               loc_587B02                                             ; +0xca, 0x587aee\nMOV             R0, R5                                                 ; +0xcc, 0x587af0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xce, 0x587af2\nB               loc_587B16                                             ; +0xd2, 0x587af6\nLDR             R3, [R4]                                               ; +0xd4, 0x587af8\nMOV             R0, R4                                                 ; +0xd6, 0x587afa\nMOV             R4, R7                                                 ; +0xd8, 0x587afc\nLDR             R3, [R3,#8]                                            ; +0xda, 0x587afe\nBLX             R3                                                     ; +0xdc, 0x587b00\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xde, 0x587b02\nMOV             R0, R4                                                 ; +0xe0, 0x587b04\nLDR             R3, [R6]                                               ; +0xe2, 0x587b06\nCMP             R2, R3                                                 ; +0xe4, 0x587b08\nBEQ             loc_587B1A                                             ; +0xe6, 0x587b0a\nBLX             __stack_chk_fail                                       ; +0xe8, 0x587b0c\nMOV             R0, R4; void *                                         ; +0xec, 0x587b10\nBL              _ZdlPv; operator delete(void *)                        ; +0xee, 0x587b12\nBL              __cxa_end_cleanup                                      ; +0xf2, 0x587b16\nADD             SP, SP, #0x14                                          ; +0xf6, 0x587b1a\nPOP             {R4-R7,PC}                                             ; +0xf8, 0x587b1c", "xrefs": ["AccountHelpLayer::onReLogin @ 0x584596", "AccountLayer::onLogin @ 0x584776"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}