{"type": "func", "start": 4299914724, "end": 4299915036, "name": "DeathMarkerSettingsPopup::FLAlert_Clicked", "pseudocode": "// \n// DeathMarkerSettingsPopup::FLAlert_Clicked from 0x1004b7de4 to 0x1004b7f1c (312 bytes)\n// \n// 2 xrefs:\n// > sub_1004B7F50 @ 0x1004b7f54\n// > <???> @ 0x100982e48\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:15 +0000\n// \n\nvoid __fastcall DeathMarkerSettingsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)\n{\n  __int64 v4; // x0\n  __int64 v5; // x0\n  __int64 v6; // x0\n  __int64 v7; // x0\n  __int64 v8; // x19\n  _QWORD *v9; // x0\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  char v11; // [xsp+17h] [xbp-29h]\n  void *v12[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v13; // [xsp+2Fh] [xbp-11h]\n\n  if ( a3 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )\n  {\n    v4 = GameLevelManager::sharedState();\n    sub_1000B3F6C(v4, *(_DWORD **)(a1 + 1056), 1);\n    if ( *(_QWORD *)(GameManager::sharedState() + 544) )\n    {\n      v5 = GameManager::sharedState();\n      *(_QWORD *)(*(_QWORD *)(v5 + 544) + 14448LL) = *(_QWORD *)(*(_QWORD *)(v5 + 544) + 14440LL);\n      *(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 14464LL) = 0;\n      if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1944LL) )\n      {\n        v6 = GameManager::sharedState();\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(v6 + 544) + 1944LL) + 520LL))(*(_QWORD *)(*(_QWORD *)(v6 + 544) + 1944LL));\n        *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1944LL) = 0;\n      }\n      v7 = GameManager::sharedState();\n      sub_10051DBBC(*(_QWORD *)(v7 + 544));\n    }\n    v8 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);\n    sub_100009900(v12, \"Death markers cleared\");\n    sub_100009900(__p, \"\");\n    v9 = TextAlertPopup::create((__int64)v12, 150, (__int64)__p, 0.5, 0.6);\n    (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v8 + 464LL))(v8, v9, 1000);\n    if ( v11 < 0 )\n      operator delete(__p[0]);\n    if ( v13 < 0 )\n      operator delete(v12[0]);\n  }\n}", "assembly": "; \n; DeathMarkerSettingsPopup::FLAlert_Clicked from 0x1004b7de4 to 0x1004b7f1c (312 bytes)\n; \n; 2 xrefs:\n; > sub_1004B7F50 @ 0x1004b7f54\n; > <???> @ 0x100982e48\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:15 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1004b7de4\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1004b7de8\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1004b7dec\nADD             X29, SP, #0x40                                         ; +0xc, 0x1004b7df0\nCBZ             W2, loc_1004B7F0C                                      ; +0x10, 0x1004b7df4\nMOV             X19, X0                                                ; +0x14, 0x1004b7df8\nLDR             X8, [X1]                                               ; +0x18, 0x1004b7dfc\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x1004b7e00\nMOV             X0, X1                                                 ; +0x20, 0x1004b7e04\nBLR             X8                                                     ; +0x24, 0x1004b7e08\nCMP             W0, #1                                                 ; +0x28, 0x1004b7e0c\nB.NE            loc_1004B7F0C                                          ; +0x2c, 0x1004b7e10\nBL              GameLevelManager__sharedState                          ; +0x30, 0x1004b7e14\nLDR             X1, [X19,#0x420]                                       ; +0x34, 0x1004b7e18\nMOV             W2, #1                                                 ; +0x38, 0x1004b7e1c\nBL              sub_1000B3F6C                                          ; +0x3c, 0x1004b7e20\nBL              GameManager__sharedState                               ; +0x40, 0x1004b7e24\nLDR             X8, [X0,#0x220]                                        ; +0x44, 0x1004b7e28\nCBZ             X8, loc_1004B7E90                                      ; +0x48, 0x1004b7e2c\nBL              GameManager__sharedState                               ; +0x4c, 0x1004b7e30\nLDR             X8, [X0,#0x220]                                        ; +0x50, 0x1004b7e34\nLDR             X9, [X8,#0x3868]                                       ; +0x54, 0x1004b7e38\nSTR             X9, [X8,#0x3870]                                       ; +0x58, 0x1004b7e3c\nBL              GameManager__sharedState                               ; +0x5c, 0x1004b7e40\nLDR             X8, [X0,#0x220]                                        ; +0x60, 0x1004b7e44\nMOV             W9, #0x3880                                            ; +0x64, 0x1004b7e48\nSTRB            WZR, [X8,X9]                                           ; +0x68, 0x1004b7e4c\nBL              GameManager__sharedState                               ; +0x6c, 0x1004b7e50\nLDR             X8, [X0,#0x220]                                        ; +0x70, 0x1004b7e54\nLDR             X8, [X8,#0x798]                                        ; +0x74, 0x1004b7e58\nCBZ             X8, loc_1004B7E84                                      ; +0x78, 0x1004b7e5c\nBL              GameManager__sharedState                               ; +0x7c, 0x1004b7e60\nLDR             X8, [X0,#0x220]                                        ; +0x80, 0x1004b7e64\nLDR             X0, [X8,#0x798]                                        ; +0x84, 0x1004b7e68\nLDR             X8, [X0]                                               ; +0x88, 0x1004b7e6c\nLDR             X8, [X8,#0x208]                                        ; +0x8c, 0x1004b7e70\nBLR             X8                                                     ; +0x90, 0x1004b7e74\nBL              GameManager__sharedState                               ; +0x94, 0x1004b7e78\nLDR             X8, [X0,#0x220]                                        ; +0x98, 0x1004b7e7c\nSTR             XZR, [X8,#0x798]                                       ; +0x9c, 0x1004b7e80\nBL              GameManager__sharedState                               ; +0xa0, 0x1004b7e84\nLDR             X0, [X0,#0x220]                                        ; +0xa4, 0x1004b7e88\nBL              sub_10051DBBC                                          ; +0xa8, 0x1004b7e8c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xac, 0x1004b7e90\nLDR             X19, [X0,#0x110]                                       ; +0xb0, 0x1004b7e94\nADRL            X1, aDeathMarkersCl; \"Death markers cleared\"           ; +0xb4, 0x1004b7e98\nADD             X0, SP, #0x40+var_28; int                              ; +0xbc, 0x1004b7ea0\nBL              sub_100009900                                          ; +0xc0, 0x1004b7ea4\nADRL            X1, asc_10088BE68; \"\"                                  ; +0xc4, 0x1004b7ea8\nMOV             X0, SP; int                                            ; +0xcc, 0x1004b7eb0\nBL              sub_100009900                                          ; +0xd0, 0x1004b7eb4\nADRP            X8, #dword_10075BCDC@PAGE                              ; +0xd4, 0x1004b7eb8\nLDR             S1, [X8,#dword_10075BCDC@PAGEOFF]                      ; +0xd8, 0x1004b7ebc\nADD             X0, SP, #0x40+var_28                                   ; +0xdc, 0x1004b7ec0\nFMOV            S0, #0.5                                               ; +0xe0, 0x1004b7ec4\nMOV             X2, SP                                                 ; +0xe4, 0x1004b7ec8\nMOV             W1, #0x96                                              ; +0xe8, 0x1004b7ecc\nBL              TextAlertPopup__create                                 ; +0xec, 0x1004b7ed0\nMOV             X1, X0                                                 ; +0xf0, 0x1004b7ed4\nLDR             X8, [X19]                                              ; +0xf4, 0x1004b7ed8\nLDR             X8, [X8,#0x1D0]                                        ; +0xf8, 0x1004b7edc\nMOV             X0, X19                                                ; +0xfc, 0x1004b7ee0\nMOV             W2, #0x3E8                                             ; +0x100, 0x1004b7ee4\nBLR             X8                                                     ; +0x104, 0x1004b7ee8\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0x108, 0x1004b7eec\nTBZ             W8, #0x1F, loc_1004B7EFC                               ; +0x10c, 0x1004b7ef0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x110, 0x1004b7ef4\nBL              __ZdlPv; operator delete(void *)                       ; +0x114, 0x1004b7ef8\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x118, 0x1004b7efc\nTBZ             W8, #0x1F, loc_1004B7F0C                               ; +0x11c, 0x1004b7f00\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0x120, 0x1004b7f04\nBL              __ZdlPv; operator delete(void *)                       ; +0x124, 0x1004b7f08\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x128, 0x1004b7f0c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x12c, 0x1004b7f10\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x130, 0x1004b7f14\nRET                                                                    ; +0x134, 0x1004b7f18", "xrefs": ["sub_1004B7F50 @ 0x1004b7f54", "<???> @ 0x100982e48"], "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"}