{"type": "func", "start": 8692716, "end": 8693032, "name": "AccountHelpLayer::onAccountManagement", "pseudocode": "// \n// AccountHelpLayer::onAccountManagement from 0x84a3ec to 0x84a528 (316 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x48768\n// > AccountHelpLayer::customSetup @ 0x84d388\n// > <???> @ 0x122a4e8\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 AccountHelpLayer::onAccountManagement(AccountHelpLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // w21\n  FLAlertLayer *v3; // x20\n  void *v4; // x0\n  unsigned int *v5; // x2\n  int v6; // w1\n  __int64 v7; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = (int)a1;\n  sub_D153B8((int)&v7, \"Open the account management page?\");\n  v3 = FLAlertLayer::create(v2 + 616, (__int64)\"Manage\", (__int64)&v7);\n  v4 = (void *)(v7 - 24);\n  if ( (__int64 *)(v7 - 24) != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v5 = (unsigned int *)(v7 - 8);\n      do\n        v6 = __ldaxr(v5);\n      while ( __stlxr(v6 - 1, v5) );\n    }\n    else\n    {\n      v6 = *(_DWORD *)(v7 - 8);\n      *(_DWORD *)(v7 - 8) = v6 - 1;\n    }\n    if ( v6 <= 0 )\n      operator delete(v4);\n  }\n  v3->setTag(v3, 5);\n  v3->show(v3);\n}", "assembly": "; \n; AccountHelpLayer::onAccountManagement from 0x84a3ec to 0x84a528 (316 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x48768\n; > AccountHelpLayer::customSetup @ 0x84d388\n; > <???> @ 0x122a4e8\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x84a3ec\nADRP            X1, #aOpenTheAccount@PAGE; \"Open the account management page?\" ; +0x4, 0x84a3f0\nMOV             X29, SP                                                ; +0x8, 0x84a3f4\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x84a3f8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x84a3fc\nADD             X20, X29, #0x50+var_10                                 ; +0x14, 0x84a400\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x18, 0x84a404\nADD             X1, X1, #aOpenTheAccount@PAGEOFF; \"Open the account management page?\" ; +0x1c, 0x84a408\nMOV             X21, X0                                                ; +0x20, 0x84a40c\nADD             X2, X29, #0x50+var_20                                  ; +0x24, 0x84a410\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x84a414\nMOV             X0, X20; int                                           ; +0x2c, 0x84a418\nLDR             X3, [X3]                                               ; +0x30, 0x84a41c\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x34, 0x84a420\nBL              sub_D153B8                                             ; +0x38, 0x84a424\nLDR             S0, =0x43B40000                                        ; +0x3c, 0x84a428\nADRP            X1, #aManage@PAGE; \"Manage\"                            ; +0x40, 0x84a42c\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x44, 0x84a430\nADRP            X4, #aYes@PAGE; \"Yes\"                                  ; +0x48, 0x84a434\nADD             X0, X21, #0x268                                        ; +0x4c, 0x84a438\nADD             X1, X1, #aManage@PAGEOFF; \"Manage\"                     ; +0x50, 0x84a43c\nMOV             X2, X20                                                ; +0x54, 0x84a440\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x58, 0x84a444\nADD             X4, X4, #aYes@PAGEOFF; \"Yes\"                           ; +0x5c, 0x84a448\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x60, 0x84a44c\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x64, 0x84a450\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x68, 0x84a454\nMOV             X20, X0                                                ; +0x6c, 0x84a458\nSUB             X0, X2, #0x18; p                                       ; +0x70, 0x84a45c\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x74, 0x84a460\nCMP             X0, X1                                                 ; +0x78, 0x84a464\nB.NE            loc_84A4B4                                             ; +0x7c, 0x84a468\nLDR             X2, [X20]                                              ; +0x80, 0x84a46c\nMOV             X0, X20                                                ; +0x84, 0x84a470\nMOV             W1, #5                                                 ; +0x88, 0x84a474\nLDR             X2, [X2,#0x48]                                         ; +0x8c, 0x84a478\nBLR             X2                                                     ; +0x90, 0x84a47c\nLDR             X1, [X20]                                              ; +0x94, 0x84a480\nMOV             X0, X20                                                ; +0x98, 0x84a484\nLDR             X1, [X1,#0x508]                                        ; +0x9c, 0x84a488\nBLR             X1                                                     ; +0xa0, 0x84a48c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa4, 0x84a490\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xa8, 0x84a494\nLDR             X0, [X19]                                              ; +0xac, 0x84a498\nCMP             X1, X0                                                 ; +0xb0, 0x84a49c\nB.NE            loc_84A4F8                                             ; +0xb4, 0x84a4a0\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xb8, 0x84a4a4\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xbc, 0x84a4a8\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xc0, 0x84a4ac\nRET                                                                    ; +0xc4, 0x84a4b0\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xc8, 0x84a4b4\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xcc, 0x84a4b8\nCBZ             X1, loc_84A4E8                                         ; +0xd0, 0x84a4bc\nSUB             X2, X2, #8                                             ; +0xd4, 0x84a4c0\nLDAXR           W1, [X2]                                               ; +0xd8, 0x84a4c4\nSUB             W3, W1, #1                                             ; +0xdc, 0x84a4c8\nSTLXR           W4, W3, [X2]                                           ; +0xe0, 0x84a4cc\nCBNZ            W4, loc_84A4C4                                         ; +0xe4, 0x84a4d0\nCMP             W1, WZR                                                ; +0xe8, 0x84a4d4\nB.GT            loc_84A46C                                             ; +0xec, 0x84a4d8\nADD             X1, X29, #0x50+var_18                                  ; +0xf0, 0x84a4dc\nBL              j__ZdlPv; operator delete(void *)                      ; +0xf4, 0x84a4e0\nB               loc_84A46C                                             ; +0xf8, 0x84a4e4\nLDUR            W1, [X2,#-8]                                           ; +0xfc, 0x84a4e8\nSUB             W3, W1, #1                                             ; +0x100, 0x84a4ec\nSTUR            W3, [X2,#-8]                                           ; +0x104, 0x84a4f0\nB               loc_84A4D4                                             ; +0x108, 0x84a4f4\nBL              .__stack_chk_fail                                      ; +0x10c, 0x84a4f8\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x110, 0x84a4fc\nMOV             X19, X0                                                ; +0x114, 0x84a500\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x118, 0x84a504\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x11c, 0x84a508\nSUB             X0, X0, #0x18                                          ; +0x120, 0x84a50c\nCMP             X0, X1                                                 ; +0x124, 0x84a510\nB.EQ            loc_84A520                                             ; +0x128, 0x84a514\nADD             X1, X29, #0x50+var_18                                  ; +0x12c, 0x84a518\nBL              sub_4DC260                                             ; +0x130, 0x84a51c\nMOV             X0, X19                                                ; +0x134, 0x84a520\nBL              _Unwind_Resume                                         ; +0x138, 0x84a524", "xrefs": ["<???> @ 0x48768", "AccountHelpLayer::customSetup @ 0x84d388", "<???> @ 0x122a4e8"], "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"}