{"type": "func", "start": 4612396, "end": 4612474, "name": "AccountLayer::onLogin", "pseudocode": "// \n// AccountLayer::onLogin from 0x46612c to 0x46617a (78 bytes)\n// \n// 0 xrefs:\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\nvoid AccountLayer::onLogin(AccountLayer *a1, cocos2d::CCObject *a2)\n{\n  std::string v2; // r1\n  int v3; // r6\n  _DWORD v4[2]; // [sp+0h] [bp-8h] BYREF\n\n  v4[0] = a1;\n  v4[1] = a2;\n  GJAccountManager::sharedState();\n  sub_775C20(v4);\n  v3 = AccountLoginLayer::create((AccountLoginLayer *)v4, v2);\n  sub_774008(v4);\n  (*(void (__fastcall **)(int))(*(_DWORD *)v3 + 644))(v3);\n}", "assembly": "; \n; AccountLayer::onLogin from 0x46612c to 0x46617a (78 bytes)\n; \n; 0 xrefs:\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,R1,R4-R6,LR}                                       ; +0x0, 0x46612c\nMOV             R5, SP                                                 ; +0x2, 0x46612e\nLDR             R4, =(__stack_chk_guard_ptr - 0x466136)                ; +0x4, 0x466130\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x6, 0x466132\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x8, 0x466134\nLDR             R3, [R4]                                               ; +0xa, 0x466136\nSTR             R3, [SP,#8+var_4]                                      ; +0xc, 0x466138\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0xe, 0x46613a\nADD.W           R1, R0, #0x10C                                         ; +0x12, 0x46613e\nMOV             R0, SP                                                 ; +0x16, 0x466142\nBL              sub_775C20                                             ; +0x18, 0x466144\nMOV             R0, SP                                                 ; +0x1c, 0x466148\nBL              _ZN17AccountLoginLayer6createESs; AccountLoginLayer::create(std::string) ; +0x1e, 0x46614a\nMOV             R6, R0                                                 ; +0x22, 0x46614e\nMOV             R0, SP                                                 ; +0x24, 0x466150\nBL              sub_774008                                             ; +0x26, 0x466152\nLDR             R3, [R6]                                               ; +0x2a, 0x466156\nMOV             R0, R6                                                 ; +0x2c, 0x466158\nLDR.W           R3, [R3,#0x284]                                        ; +0x2e, 0x46615a\nBLX             R3                                                     ; +0x32, 0x46615e\nLDR             R2, [SP,#8+var_4]                                      ; +0x34, 0x466160\nLDR             R3, [R4]                                               ; +0x36, 0x466162\nCMP             R2, R3                                                 ; +0x38, 0x466164\nBEQ             loc_466176                                             ; +0x3a, 0x466166\nBLX             __stack_chk_fail                                       ; +0x3c, 0x466168\nMOV             R0, R5                                                 ; +0x40, 0x46616c\nBL              sub_774008                                             ; +0x42, 0x46616e\nBL              __cxa_end_cleanup                                      ; +0x46, 0x466172\nADD             SP, SP, #8                                             ; +0x4a, 0x466176\nPOP             {R4-R6,PC}                                             ; +0x4c, 0x466178", "xrefs": [], "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"}