{"type": "func", "start": 5785432, "end": 5785510, "name": "AccountLayer::onLogin", "pseudocode": "// \n// AccountLayer::onLogin from 0x584758 to 0x5847a6 (78 bytes)\n// \n// 0 xrefs:\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:57 +0000\n// \n\nint __fastcall AccountLayer::onLogin(AccountLayer *this, cocos2d::CCObject *a2, int a3, int a4)\n{\n  int v4; // r0\n  int v5; // r6\n  int v7[4]; // [sp+0h] [bp-10h] BYREF\n\n  v7[0] = (int)this;\n  v7[1] = (int)a2;\n  v7[2] = a3;\n  v7[3] = a4;\n  v4 = GJAccountManager::sharedState(this);\n  std::string::basic_string(v7, v4 + 268);\n  v5 = AccountLoginLayer::create(v7);\n  std::string::~string((int)v7);\n  return (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 656))(v5);\n}", "assembly": "; \n; AccountLayer::onLogin from 0x584758 to 0x5847a6 (78 bytes)\n; \n; 0 xrefs:\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:57 +0000\n; \nPUSH            {R0-R6,LR}                                             ; +0x0, 0x584758\nMOV             R5, SP                                                 ; +0x2, 0x58475a\nLDR             R4, =(__stack_chk_guard_ptr - 0x584762)                ; +0x4, 0x58475c\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x6, 0x58475e\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x8, 0x584760\nLDR             R3, [R4]                                               ; +0xa, 0x584762\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xc, 0x584764\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0xe, 0x584766\nADD.W           R1, R0, #0x10C                                         ; +0x12, 0x58476a\nMOV             R0, SP                                                 ; +0x16, 0x58476e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x18, 0x584770\nMOV             R0, SP                                                 ; +0x1c, 0x584774\nBL              _ZN17AccountLoginLayer6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; AccountLoginLayer::create(std::string) ; +0x1e, 0x584776\nMOV             R6, R0                                                 ; +0x22, 0x58477a\nMOV             R0, SP                                                 ; +0x24, 0x58477c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x26, 0x58477e\nLDR             R3, [R6]                                               ; +0x2a, 0x584782\nMOV             R0, R6                                                 ; +0x2c, 0x584784\nLDR.W           R3, [R3,#0x290]                                        ; +0x2e, 0x584786\nBLX             R3                                                     ; +0x32, 0x58478a\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x34, 0x58478c\nLDR             R3, [R4]                                               ; +0x36, 0x58478e\nCMP             R2, R3                                                 ; +0x38, 0x584790\nBEQ             loc_5847A2                                             ; +0x3a, 0x584792\nBLX             __stack_chk_fail                                       ; +0x3c, 0x584794\nMOV             R0, R5                                                 ; +0x40, 0x584798\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x42, 0x58479a\nBL              __cxa_end_cleanup                                      ; +0x46, 0x58479e\nADD             SP, SP, #0x10                                          ; +0x4a, 0x5847a2\nPOP             {R4-R6,PC}                                             ; +0x4c, 0x5847a4", "xrefs": [], "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"}