{"type": "func", "start": 8703016, "end": 8703348, "name": "AccountHelpLayer::verifyUnlink", "pseudocode": "// \n// AccountHelpLayer::verifyUnlink from 0x84cc28 to 0x84cd74 (332 bytes)\n// \n// 2 xrefs:\n// > AccountHelpLayer::FLAlert_Clicked @ 0x84d668\n// > <???> @ 0x2d648\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::verifyUnlink(AccountHelpLayer *a1)\n{\n  int v1; // w21\n  FLAlertLayer *v2; // x19\n  void *v3; // x0\n  unsigned int *v4; // x2\n  int v5; // w1\n  __int64 v6; // [xsp+40h] [xbp+40h] BYREF\n\n  v1 = (int)a1;\n  sub_D153B8(\n    (int)&v6,\n    \"This will <cr>delete</c> ALL <cl>save data</c>.\\nDo you want to continue?\\n<cy>(You cannot undo this action)</c>\");\n  v2 = FLAlertLayer::create(v1 + 616, (__int64)\"Warning\", (__int64)&v6);\n  v3 = (void *)(v6 - 24);\n  if ( (__int64 *)(v6 - 24) != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v4 = (unsigned int *)(v6 - 8);\n      do\n        v5 = __ldaxr(v4);\n      while ( __stlxr(v5 - 1, v4) );\n    }\n    else\n    {\n      v5 = *(_DWORD *)(v6 - 8);\n      *(_DWORD *)(v6 - 8) = v5 - 1;\n    }\n    if ( v5 <= 0 )\n      operator delete(v3);\n  }\n  v2->setTag(v2, 4);\n  ButtonSprite::updateBGImage(v2->m_button2, \"GJ_button_06.png\");\n  v2->show(v2);\n}", "assembly": "; \n; AccountHelpLayer::verifyUnlink from 0x84cc28 to 0x84cd74 (332 bytes)\n; \n; 2 xrefs:\n; > AccountHelpLayer::FLAlert_Clicked @ 0x84d668\n; > <???> @ 0x2d648\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, 0x84cc28\nADRP            X1, #aThisWillCrDele@PAGE; \"This will <cr>delete</c> ALL <cl>save d\"... ; +0x4, 0x84cc2c\nMOV             X29, SP                                                ; +0x8, 0x84cc30\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x84cc34\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x84cc38\nADD             X19, X29, #0x50+var_10                                 ; +0x14, 0x84cc3c\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x18, 0x84cc40\nADD             X1, X1, #aThisWillCrDele@PAGEOFF; \"This will <cr>delete</c> ALL <cl>save d\"... ; +0x1c, 0x84cc44\nMOV             X21, X0                                                ; +0x20, 0x84cc48\nADD             X2, X29, #0x50+var_20                                  ; +0x24, 0x84cc4c\nLDR             X3, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x84cc50\nMOV             X0, X19; int                                           ; +0x2c, 0x84cc54\nLDR             X3, [X3]                                               ; +0x30, 0x84cc58\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x34, 0x84cc5c\nBL              sub_D153B8                                             ; +0x38, 0x84cc60\nLDR             S0, =0x43960000                                        ; +0x3c, 0x84cc64\nADRP            X1, #aWarning@PAGE; \"Warning\"                          ; +0x40, 0x84cc68\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x44, 0x84cc6c\nADRP            X4, #aDelete_0@PAGE; \"DELETE\"                          ; +0x48, 0x84cc70\nADD             X0, X21, #0x268                                        ; +0x4c, 0x84cc74\nADD             X1, X1, #aWarning@PAGEOFF; \"Warning\"                   ; +0x50, 0x84cc78\nMOV             X2, X19                                                ; +0x54, 0x84cc7c\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x58, 0x84cc80\nADD             X4, X4, #aDelete_0@PAGEOFF; \"DELETE\"                   ; +0x5c, 0x84cc84\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x60, 0x84cc88\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x64, 0x84cc8c\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x68, 0x84cc90\nMOV             X19, X0                                                ; +0x6c, 0x84cc94\nSUB             X0, X2, #0x18; p                                       ; +0x70, 0x84cc98\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x74, 0x84cc9c\nCMP             X0, X1                                                 ; +0x78, 0x84cca0\nB.NE            loc_84CD00                                             ; +0x7c, 0x84cca4\nLDR             X2, [X19]                                              ; +0x80, 0x84cca8\nMOV             X0, X19                                                ; +0x84, 0x84ccac\nMOV             W1, #4                                                 ; +0x88, 0x84ccb0\nLDR             X2, [X2,#0x48]                                         ; +0x8c, 0x84ccb4\nBLR             X2                                                     ; +0x90, 0x84ccb8\nLDR             X0, [X19,#0x258]; this                                 ; +0x94, 0x84ccbc\nADRL            X1, aGjButton06Png; \"GJ_button_06.png\"                 ; +0x98, 0x84ccc0\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xa0, 0x84ccc8\nLDR             X1, [X19]                                              ; +0xa4, 0x84cccc\nMOV             X0, X19                                                ; +0xa8, 0x84ccd0\nLDR             X1, [X1,#0x508]                                        ; +0xac, 0x84ccd4\nBLR             X1                                                     ; +0xb0, 0x84ccd8\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xb4, 0x84ccdc\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xb8, 0x84cce0\nLDR             X0, [X20]                                              ; +0xbc, 0x84cce4\nCMP             X1, X0                                                 ; +0xc0, 0x84cce8\nB.NE            loc_84CD44                                             ; +0xc4, 0x84ccec\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xc8, 0x84ccf0\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xcc, 0x84ccf4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xd0, 0x84ccf8\nRET                                                                    ; +0xd4, 0x84ccfc\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xd8, 0x84cd00\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xdc, 0x84cd04\nCBZ             X1, loc_84CD34                                         ; +0xe0, 0x84cd08\nSUB             X2, X2, #8                                             ; +0xe4, 0x84cd0c\nLDAXR           W1, [X2]                                               ; +0xe8, 0x84cd10\nSUB             W3, W1, #1                                             ; +0xec, 0x84cd14\nSTLXR           W4, W3, [X2]                                           ; +0xf0, 0x84cd18\nCBNZ            W4, loc_84CD10                                         ; +0xf4, 0x84cd1c\nCMP             W1, WZR                                                ; +0xf8, 0x84cd20\nB.GT            loc_84CCA8                                             ; +0xfc, 0x84cd24\nADD             X1, X29, #0x50+var_18                                  ; +0x100, 0x84cd28\nBL              j__ZdlPv; operator delete(void *)                      ; +0x104, 0x84cd2c\nB               loc_84CCA8                                             ; +0x108, 0x84cd30\nLDUR            W1, [X2,#-8]                                           ; +0x10c, 0x84cd34\nSUB             W3, W1, #1                                             ; +0x110, 0x84cd38\nSTUR            W3, [X2,#-8]                                           ; +0x114, 0x84cd3c\nB               loc_84CD20                                             ; +0x118, 0x84cd40\nBL              .__stack_chk_fail                                      ; +0x11c, 0x84cd44\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x120, 0x84cd48\nMOV             X19, X0                                                ; +0x124, 0x84cd4c\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x128, 0x84cd50\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x12c, 0x84cd54\nSUB             X0, X0, #0x18                                          ; +0x130, 0x84cd58\nCMP             X0, X1                                                 ; +0x134, 0x84cd5c\nB.EQ            loc_84CD6C                                             ; +0x138, 0x84cd60\nADD             X1, X29, #0x50+var_18                                  ; +0x13c, 0x84cd64\nBL              sub_4DC260                                             ; +0x140, 0x84cd68\nMOV             X0, X19                                                ; +0x144, 0x84cd6c\nBL              _Unwind_Resume                                         ; +0x148, 0x84cd70", "xrefs": ["AccountHelpLayer::FLAlert_Clicked @ 0x84d668", "<???> @ 0x2d648"], "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"}