{"type": "func", "start": 4299921340, "end": 4299921588, "name": "DeathTrackerOptionsPopup::FLAlert_Clicked", "pseudocode": "// \n// DeathTrackerOptionsPopup::FLAlert_Clicked from 0x1004b97bc to 0x1004b98b4 (248 bytes)\n// \n// 2 xrefs:\n// > sub_1004B98E8 @ 0x1004b98ec\n// > <???> @ 0x100983ed8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:06:16 +0000\n// \n\n__int64 __fastcall DeathTrackerOptionsPopup::FLAlert_Clicked(__int64 result, __int64 a2, int a3)\n{\n  __int64 v3; // x19\n  __int64 v4; // x0\n  __int64 v5; // x20\n  _QWORD *v6; // x0\n  __int64 v7; // x0\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  char v9; // [xsp+17h] [xbp-29h]\n  void *v10[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v11; // [xsp+2Fh] [xbp-11h]\n\n  if ( a3 )\n  {\n    v3 = result;\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n    if ( (_DWORD)result == 1 )\n    {\n      if ( *(_QWORD *)(v3 + 1024) )\n      {\n        v4 = GameLevelManager::sharedState();\n        sub_1000B3F6C(v4, *(_DWORD **)(v3 + 1024), 0);\n        v5 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);\n        sub_100009900(v10, \"Death data cleared\");\n        sub_100009900(__p, \"\");\n        v6 = TextAlertPopup::create((__int64)v10, 150, (__int64)__p, 0.5, 0.6);\n        (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v5 + 464LL))(v5, v6, 1000);\n        if ( v9 < 0 )\n          operator delete(__p[0]);\n        if ( v11 < 0 )\n          operator delete(v10[0]);\n        v7 = *(_QWORD *)(v3 + 1032);\n        if ( v7 )\n          sub_1004BB1CC(v7, 0);\n        return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1368LL))(v3, 0);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; DeathTrackerOptionsPopup::FLAlert_Clicked from 0x1004b97bc to 0x1004b98b4 (248 bytes)\n; \n; 2 xrefs:\n; > sub_1004B98E8 @ 0x1004b98ec\n; > <???> @ 0x100983ed8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:06:16 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1004b97bc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1004b97c0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1004b97c4\nADD             X29, SP, #0x40                                         ; +0xc, 0x1004b97c8\nCBZ             W2, loc_1004B98A4                                      ; +0x10, 0x1004b97cc\nMOV             X19, X0                                                ; +0x14, 0x1004b97d0\nLDR             X8, [X1]                                               ; +0x18, 0x1004b97d4\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x1004b97d8\nMOV             X0, X1                                                 ; +0x20, 0x1004b97dc\nBLR             X8                                                     ; +0x24, 0x1004b97e0\nCMP             W0, #1                                                 ; +0x28, 0x1004b97e4\nB.NE            loc_1004B98A4                                          ; +0x2c, 0x1004b97e8\nLDR             X8, [X19,#0x400]                                       ; +0x30, 0x1004b97ec\nCBZ             X8, loc_1004B98A4                                      ; +0x34, 0x1004b97f0\nBL              GameLevelManager__sharedState                          ; +0x38, 0x1004b97f4\nLDR             X1, [X19,#0x400]                                       ; +0x3c, 0x1004b97f8\nMOV             W2, #0                                                 ; +0x40, 0x1004b97fc\nBL              sub_1000B3F6C                                          ; +0x44, 0x1004b9800\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x48, 0x1004b9804\nLDR             X20, [X0,#0x110]                                       ; +0x4c, 0x1004b9808\nADRL            X1, aDeathDataClear; \"Death data cleared\"              ; +0x50, 0x1004b980c\nADD             X0, SP, #0x40+var_28; int                              ; +0x58, 0x1004b9814\nBL              sub_100009900                                          ; +0x5c, 0x1004b9818\nADRL            X1, asc_10088BE68; \"\"                                  ; +0x60, 0x1004b981c\nMOV             X0, SP; int                                            ; +0x68, 0x1004b9824\nBL              sub_100009900                                          ; +0x6c, 0x1004b9828\nADRP            X8, #dword_10075BCDC@PAGE                              ; +0x70, 0x1004b982c\nLDR             S1, [X8,#dword_10075BCDC@PAGEOFF]                      ; +0x74, 0x1004b9830\nADD             X0, SP, #0x40+var_28                                   ; +0x78, 0x1004b9834\nFMOV            S0, #0.5                                               ; +0x7c, 0x1004b9838\nMOV             X2, SP                                                 ; +0x80, 0x1004b983c\nMOV             W1, #0x96                                              ; +0x84, 0x1004b9840\nBL              TextAlertPopup__create                                 ; +0x88, 0x1004b9844\nMOV             X1, X0                                                 ; +0x8c, 0x1004b9848\nLDR             X8, [X20]                                              ; +0x90, 0x1004b984c\nLDR             X8, [X8,#0x1D0]                                        ; +0x94, 0x1004b9850\nMOV             X0, X20                                                ; +0x98, 0x1004b9854\nMOV             W2, #0x3E8                                             ; +0x9c, 0x1004b9858\nBLR             X8                                                     ; +0xa0, 0x1004b985c\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0xa4, 0x1004b9860\nTBZ             W8, #0x1F, loc_1004B9870                               ; +0xa8, 0x1004b9864\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xac, 0x1004b9868\nBL              __ZdlPv; operator delete(void *)                       ; +0xb0, 0x1004b986c\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0xb4, 0x1004b9870\nTBZ             W8, #0x1F, loc_1004B9880                               ; +0xb8, 0x1004b9874\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0xbc, 0x1004b9878\nBL              __ZdlPv; operator delete(void *)                       ; +0xc0, 0x1004b987c\nLDR             X0, [X19,#0x408]                                       ; +0xc4, 0x1004b9880\nCBZ             X0, loc_1004B9890                                      ; +0xc8, 0x1004b9884\nMOV             X1, #0                                                 ; +0xcc, 0x1004b9888\nBL              sub_1004BB1CC                                          ; +0xd0, 0x1004b988c\nLDR             X8, [X19]                                              ; +0xd4, 0x1004b9890\nLDR             X8, [X8,#0x558]                                        ; +0xd8, 0x1004b9894\nMOV             X0, X19                                                ; +0xdc, 0x1004b9898\nMOV             X1, #0                                                 ; +0xe0, 0x1004b989c\nBLR             X8                                                     ; +0xe4, 0x1004b98a0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xe8, 0x1004b98a4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xec, 0x1004b98a8\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xf0, 0x1004b98ac\nRET                                                                    ; +0xf4, 0x1004b98b0", "xrefs": ["sub_1004B98E8 @ 0x1004b98ec", "<???> @ 0x100983ed8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}