{"type": "func", "start": 13262572, "end": 13263068, "name": "DeathMarkerSettingsPopup::FLAlert_Clicked", "pseudocode": "// \n// DeathMarkerSettingsPopup::FLAlert_Clicked from 0xca5eec to 0xca60dc (496 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'DeathMarkerSettingsPopup::FLAlert_Clicked @ 0xca60e4\n// > <???> @ 0xcb6f8\n// > <???> @ 0x14f7730\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 13:06:02 +0000\n// \n\n__int64 __fastcall DeathMarkerSettingsPopup::FLAlert_Clicked(GJGameLevel **this, FLAlertLayer *a2, char a3)\n{\n  GameLevelManager *v5; // x0\n  unsigned __int8 v6; // w21\n  GameLevelManager *v7; // x0\n  GameManager *v8; // x0\n  GameManager *v9; // x0\n  GameManager *v10; // x0\n  __int64 v11; // x1\n  __int64 v12; // x3\n  __int64 v13; // x2\n  GameManager *v14; // x0\n  GameManager *v15; // x0\n  __int64 v16; // x0\n  GameManager *v17; // x0\n  __int64 v18; // x0\n  __int64 *v19; // x20\n  __int64 v20; // x3\n  void (__fastcall *v21)(__int64 *, __int64, __int64); // x23\n  __int64 v22; // x0\n  __int64 v23[2]; // [xsp+48h] [xbp+48h] BYREF\n  void *v24; // [xsp+58h] [xbp+58h]\n  __int64 v25[2]; // [xsp+60h] [xbp+60h] BYREF\n  void *v26; // [xsp+70h] [xbp+70h]\n\n  if ( a3 )\n  {\n    v5 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2);\n    v6 = (unsigned __int8)v5;\n    if ( (_DWORD)v5 == 1 )\n    {\n      v7 = (GameLevelManager *)GameLevelManager::sharedState(v5);\n      v8 = (GameManager *)GameLevelManager::clearDeathDataInstances(v7, *(this + 132), v6);\n      v9 = *(GameManager **)(GameManager::sharedState(v8) + 544);\n      if ( v9 )\n      {\n        v10 = (GameManager *)GameManager::sharedState(v9);\n        v11 = *((_QWORD *)v10 + 68);\n        v12 = *(_QWORD *)(v11 + 14440);\n        v13 = *(_QWORD *)(v11 + 14448);\n        if ( v12 != v13 )\n        {\n          v10 = (GameManager *)(v13 + 4 * ~((unsigned __int64)(v13 - 4 - v12) >> 2));\n          *(_QWORD *)(v11 + 14448) = v10;\n        }\n        v14 = (GameManager *)(*(_QWORD *)(GameManager::sharedState(v10) + 544) + 12288LL);\n        *((_BYTE *)v14 + 2176) = 0;\n        v15 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v14) + 544) + 1944LL);\n        if ( v15 )\n        {\n          v16 = GameManager::sharedState(v15);\n          v17 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(v16 + 544) + 1944LL) + 520LL))(*(_QWORD *)(*(_QWORD *)(v16 + 544) + 1944LL));\n          v15 = *(GameManager **)(GameManager::sharedState(v17) + 544);\n          *((_QWORD *)v15 + 243) = 0;\n        }\n        v18 = GameManager::sharedState(v15);\n        v9 = (GameManager *)PlayLayer::dtLiveMarkersChanged(*(PlayLayer **)(v18 + 544));\n      }\n      v19 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v9) + 272);\n      v20 = *v19;\n      v23[0] = 0;\n      v23[1] = 0;\n      v21 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v20 + 464);\n      v24 = nullptr;\n      std::string::__init(v23, \"Death markers cleared\", 0x15u);\n      v25[0] = 0;\n      v25[1] = 0;\n      v26 = nullptr;\n      std::string::__init(v25, &byte_11B8890, 0);\n      v22 = TextAlertPopup::create((char *)v23, 150, (char *)v25, 0.5, 0.6);\n      v21(v19, v22, 1000);\n      if ( (v25[0] & 1) != 0 )\n        operator delete(v26);\n      if ( (v23[0] & 1) != 0 )\n        operator delete(v24);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; DeathMarkerSettingsPopup::FLAlert_Clicked from 0xca5eec to 0xca60dc (496 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'DeathMarkerSettingsPopup::FLAlert_Clicked @ 0xca60e4\n; > <???> @ 0xcb6f8\n; > <???> @ 0x14f7730\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 13:06:02 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xca5eec\nUXTB            W2, W2                                                 ; +0x4, 0xca5ef0\nMOV             X29, SP                                                ; +0x8, 0xca5ef4\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0xc, 0xca5ef8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xca5efc\nSTR             X23, [SP,#0x80+var_50]                                 ; +0x14, 0xca5f00\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x18, 0xca5f04\nMOV             X20, X0                                                ; +0x1c, 0xca5f08\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xca5f0c\nLDR             X3, [X3]                                               ; +0x24, 0xca5f10\nSTR             X3, [X29,#0x80+var_8]                                  ; +0x28, 0xca5f14\nCBNZ            W2, loc_CA5F44                                         ; +0x2c, 0xca5f18\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x30, 0xca5f1c\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x34, 0xca5f20\nLDR             X0, [X19]                                              ; +0x38, 0xca5f24\nCMP             X1, X0                                                 ; +0x3c, 0xca5f28\nB.NE            loc_CA60A4                                             ; +0x40, 0xca5f2c\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x44, 0xca5f30\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x48, 0xca5f34\nLDR             X23, [SP,#0x80+var_50]                                 ; +0x4c, 0xca5f38\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x50, 0xca5f3c\nRET                                                                    ; +0x54, 0xca5f40\nLDR             X2, [X1]                                               ; +0x58, 0xca5f44\nMOV             X0, X1                                                 ; +0x5c, 0xca5f48\nLDR             X1, [X2,#0x40]                                         ; +0x60, 0xca5f4c\nBLR             X1                                                     ; +0x64, 0xca5f50\nCMP             W0, #1                                                 ; +0x68, 0xca5f54\nMOV             W21, W0                                                ; +0x6c, 0xca5f58\nB.NE            loc_CA5F1C                                             ; +0x70, 0xca5f5c\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x74, 0xca5f60\nLDR             X1, [X20,#0x420]; GJGameLevel *                        ; +0x78, 0xca5f64\nMOV             W2, W21; bool                                          ; +0x7c, 0xca5f68\nBL              _ZN16GameLevelManager23clearDeathDataInstancesEP11GJGameLevelb; GameLevelManager::clearDeathDataInstances(GJGameLevel *,bool) ; +0x80, 0xca5f6c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x84, 0xca5f70\nLDR             X0, [X0,#0x220]; this                                  ; +0x88, 0xca5f74\nCBZ             X0, loc_CA5FFC                                         ; +0x8c, 0xca5f78\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x90, 0xca5f7c\nLDR             X1, [X0,#0x220]                                        ; +0x94, 0xca5f80\nLDR             X3, [X1,#0x3868]                                       ; +0x98, 0xca5f84\nLDR             X2, [X1,#0x3870]                                       ; +0x9c, 0xca5f88\nCMP             X3, X2                                                 ; +0xa0, 0xca5f8c\nB.EQ            loc_CA5FA8                                             ; +0xa4, 0xca5f90\nSUB             X0, X2, #4                                             ; +0xa8, 0xca5f94\nSUB             X0, X0, X3                                             ; +0xac, 0xca5f98\nMVN             X0, X0,LSR#2                                           ; +0xb0, 0xca5f9c\nADD             X0, X2, X0,LSL#2; this                                 ; +0xb4, 0xca5fa0\nSTR             X0, [X1,#0x3870]                                       ; +0xb8, 0xca5fa4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xbc, 0xca5fa8\nLDR             X0, [X0,#0x220]                                        ; +0xc0, 0xca5fac\nADD             X0, X0, #3,LSL#12; this                                ; +0xc4, 0xca5fb0\nSTRB            WZR, [X0,#0x880]                                       ; +0xc8, 0xca5fb4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xcc, 0xca5fb8\nLDR             X0, [X0,#0x220]                                        ; +0xd0, 0xca5fbc\nLDR             X0, [X0,#0x798]; this                                  ; +0xd4, 0xca5fc0\nCBZ             X0, loc_CA5FF0                                         ; +0xd8, 0xca5fc4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xdc, 0xca5fc8\nLDR             X0, [X0,#0x220]                                        ; +0xe0, 0xca5fcc\nLDR             X1, [X0,#0x798]                                        ; +0xe4, 0xca5fd0\nMOV             X0, X1                                                 ; +0xe8, 0xca5fd4\nLDR             X1, [X1]                                               ; +0xec, 0xca5fd8\nLDR             X1, [X1,#0x208]                                        ; +0xf0, 0xca5fdc\nBLR             X1                                                     ; +0xf4, 0xca5fe0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xf8, 0xca5fe4\nLDR             X0, [X0,#0x220]; this                                  ; +0xfc, 0xca5fe8\nSTR             XZR, [X0,#0x798]                                       ; +0x100, 0xca5fec\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x104, 0xca5ff0\nLDR             X0, [X0,#0x220]; this                                  ; +0x108, 0xca5ff4\nBL              _ZN9PlayLayer20dtLiveMarkersChangedEv; PlayLayer::dtLiveMarkersChanged(void) ; +0x10c, 0xca5ff8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x110, 0xca5ffc\nLDR             X20, [X0,#0x110]                                       ; +0x114, 0xca6000\nADD             X22, X29, #0x80+var_38                                 ; +0x118, 0xca6004\nADRP            X1, #aDeathMarkersCl@PAGE; \"Death markers cleared\"     ; +0x11c, 0xca6008\nMOV             X0, X22                                                ; +0x120, 0xca600c\nADD             X1, X1, #aDeathMarkersCl@PAGEOFF; \"Death markers cleared\" ; +0x124, 0xca6010\nLDR             X3, [X20]                                              ; +0x128, 0xca6014\nMOV             X2, #0x15                                              ; +0x12c, 0xca6018\nSTR             XZR, [X29,#0x80+var_38]                                ; +0x130, 0xca601c\nADD             X21, X29, #0x80+var_20                                 ; +0x134, 0xca6020\nSTR             XZR, [X29,#0x80+var_30]                                ; +0x138, 0xca6024\nLDR             X23, [X3,#0x1D0]                                       ; +0x13c, 0xca6028\nSTR             XZR, [X29,#0x80+var_28]                                ; +0x140, 0xca602c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x144, 0xca6030\nADRP            X1, #byte_11B8890@PAGE                                 ; +0x148, 0xca6034\nMOV             X0, X21                                                ; +0x14c, 0xca6038\nADD             X1, X1, #byte_11B8890@PAGEOFF                          ; +0x150, 0xca603c\nMOV             X2, #0                                                 ; +0x154, 0xca6040\nSTR             XZR, [X29,#0x80+var_20]                                ; +0x158, 0xca6044\nSTR             XZR, [X29,#0x80+var_18]                                ; +0x15c, 0xca6048\nSTR             XZR, [X29,#0x80+var_10]                                ; +0x160, 0xca604c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x164, 0xca6050\nLDR             S1, =0x3F19999A                                        ; +0x168, 0xca6054\nMOV             X0, X22                                                ; +0x16c, 0xca6058\nMOV             W1, #0x96                                              ; +0x170, 0xca605c\nMOV             X2, X21                                                ; +0x174, 0xca6060\nFMOV            S0, #0.5                                               ; +0x178, 0xca6064\nBL              _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0x17c, 0xca6068\nMOV             X1, X0                                                 ; +0x180, 0xca606c\nMOV             W2, #0x3E8                                             ; +0x184, 0xca6070\nMOV             X0, X20                                                ; +0x188, 0xca6074\nBLR             X23                                                    ; +0x18c, 0xca6078\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0x190, 0xca607c\nTBNZ            W0, #0, loc_CA6098                                     ; +0x194, 0xca6080\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x198, 0xca6084\nTBZ             W0, #0, loc_CA5F1C                                     ; +0x19c, 0xca6088\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0x1a0, 0xca608c\nBL              _ZdlPv; operator delete(void *)                        ; +0x1a4, 0xca6090\nB               loc_CA5F1C                                             ; +0x1a8, 0xca6094\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x1ac, 0xca6098\nBL              _ZdlPv; operator delete(void *)                        ; +0x1b0, 0xca609c\nB               loc_CA6084                                             ; +0x1b4, 0xca60a0\nBL              .__stack_chk_fail                                      ; +0x1b8, 0xca60a4\nMOV             X19, X0                                                ; +0x1bc, 0xca60a8\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x1c0, 0xca60ac\nTBZ             W0, #0, loc_CA60BC                                     ; +0x1c4, 0xca60b0\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0x1c8, 0xca60b4\nBL              _ZdlPv; operator delete(void *)                        ; +0x1cc, 0xca60b8\nMOV             X0, X19                                                ; +0x1d0, 0xca60bc\nBL              _Unwind_Resume                                         ; +0x1d4, 0xca60c0\nLDRB            W1, [X29,#0x80+var_20]                                 ; +0x1d8, 0xca60c4\nMOV             X19, X0                                                ; +0x1dc, 0xca60c8\nTBZ             W1, #0, loc_CA60AC                                     ; +0x1e0, 0xca60cc\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x1e4, 0xca60d0\nBL              _ZdlPv; operator delete(void *)                        ; +0x1e8, 0xca60d4\nB               loc_CA60AC                                             ; +0x1ec, 0xca60d8", "xrefs": ["`non-virtual thunk to'DeathMarkerSettingsPopup::FLAlert_Clicked @ 0xca60e4", "<???> @ 0xcb6f8", "<???> @ 0x14f7730"], "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"}