{"type": "func", "start": 13276016, "end": 13276420, "name": "DeathTrackerOptionsPopup::FLAlert_Clicked", "pseudocode": "// \n// DeathTrackerOptionsPopup::FLAlert_Clicked from 0xca9370 to 0xca9504 (404 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'DeathTrackerOptionsPopup::FLAlert_Clicked @ 0xca950c\n// > <???> @ 0x47398\n// > <???> @ 0x14f87d0\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:04 +0000\n// \n\n__int64 __fastcall DeathTrackerOptionsPopup::FLAlert_Clicked(DeathTrackerOptionsPopup *this, FLAlertLayer *a2, char a3)\n{\n  GameLevelManager *v5; // x0\n  GameLevelManager *v6; // x0\n  cocos2d::CCDirector *v7; // x0\n  __int64 *v8; // x21\n  __int64 v9; // x3\n  void (__fastcall *v10)(__int64 *, __int64, __int64); // x24\n  __int64 v11; // x0\n  DeathTrackerPopup *v12; // x0\n  __int64 v13[2]; // [xsp+48h] [xbp+48h] BYREF\n  void *v14; // [xsp+58h] [xbp+58h]\n  __int64 v15[2]; // [xsp+60h] [xbp+60h] BYREF\n  void *v16; // [xsp+70h] [xbp+70h]\n\n  if ( !a3 )\n    return _stack_chk_guard;\n  if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) != 1 )\n    return _stack_chk_guard;\n  v5 = *((GameLevelManager **)this + 128);\n  if ( !v5 )\n    return _stack_chk_guard;\n  v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);\n  v7 = (cocos2d::CCDirector *)GameLevelManager::clearDeathDataInstances(v6, *((GJGameLevel **)this + 128), 0);\n  v8 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v7) + 272);\n  v9 = *v8;\n  v13[0] = 0;\n  v13[1] = 0;\n  v10 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v9 + 464);\n  v14 = nullptr;\n  std::string::__init(v13, \"Death data cleared\", 0x12u);\n  v15[0] = 0;\n  v15[1] = 0;\n  v16 = nullptr;\n  std::string::__init(v15, &byte_11B8890, 0);\n  v11 = TextAlertPopup::create((char *)v13, 150, (char *)v15, 0.5, 0.6);\n  v10(v8, v11, 1000);\n  if ( (v15[0] & 1) != 0 )\n  {\n    operator delete(v16);\n    if ( (v13[0] & 1) == 0 )\n      goto LABEL_7;\nLABEL_11:\n    operator delete(v14);\n    goto LABEL_7;\n  }\n  if ( (v13[0] & 1) != 0 )\n    goto LABEL_11;\nLABEL_7:\n  v12 = *((DeathTrackerPopup **)this + 129);\n  if ( v12 )\n    DeathTrackerPopup::onClose(v12, nullptr);\n  (*(void (__fastcall **)(DeathTrackerOptionsPopup *, _QWORD))(*(_QWORD *)this + 1368LL))(this, 0);\n  return _stack_chk_guard;\n}", "assembly": "; \n; DeathTrackerOptionsPopup::FLAlert_Clicked from 0xca9370 to 0xca9504 (404 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'DeathTrackerOptionsPopup::FLAlert_Clicked @ 0xca950c\n; > <???> @ 0x47398\n; > <???> @ 0x14f87d0\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:04 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xca9370\nUXTB            W2, W2                                                 ; +0x4, 0xca9374\nMOV             X29, SP                                                ; +0x8, 0xca9378\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0xc, 0xca937c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xca9380\nMOV             X20, X0                                                ; +0x14, 0xca9384\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x18, 0xca9388\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x1c, 0xca938c\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xca9390\nLDR             X3, [X3]                                               ; +0x24, 0xca9394\nSTR             X3, [X29,#0x80+var_8]                                  ; +0x28, 0xca9398\nCBNZ            W2, loc_CA93C8                                         ; +0x2c, 0xca939c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x30, 0xca93a0\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x34, 0xca93a4\nLDR             X0, [X19]                                              ; +0x38, 0xca93a8\nCMP             X1, X0                                                 ; +0x3c, 0xca93ac\nB.NE            loc_CA94CC                                             ; +0x40, 0xca93b0\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x44, 0xca93b4\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x48, 0xca93b8\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x4c, 0xca93bc\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x50, 0xca93c0\nRET                                                                    ; +0x54, 0xca93c4\nLDR             X2, [X1]                                               ; +0x58, 0xca93c8\nMOV             X0, X1                                                 ; +0x5c, 0xca93cc\nLDR             X1, [X2,#0x40]                                         ; +0x60, 0xca93d0\nBLR             X1                                                     ; +0x64, 0xca93d4\nCMP             W0, #1                                                 ; +0x68, 0xca93d8\nB.NE            loc_CA93A0                                             ; +0x6c, 0xca93dc\nLDR             X0, [X20,#0x400]; this                                 ; +0x70, 0xca93e0\nCBZ             X0, loc_CA93A0                                         ; +0x74, 0xca93e4\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x78, 0xca93e8\nADD             X23, X29, #0x80+var_38                                 ; +0x7c, 0xca93ec\nLDR             X1, [X20,#0x400]; GJGameLevel *                        ; +0x80, 0xca93f0\nMOV             W2, #0; bool                                           ; +0x84, 0xca93f4\nADD             X22, X29, #0x80+var_20                                 ; +0x88, 0xca93f8\nBL              _ZN16GameLevelManager23clearDeathDataInstancesEP11GJGameLevelb; GameLevelManager::clearDeathDataInstances(GJGameLevel *,bool) ; +0x8c, 0xca93fc\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x90, 0xca9400\nLDR             X21, [X0,#0x110]                                       ; +0x94, 0xca9404\nADRP            X1, #aDeathDataClear@PAGE; \"Death data cleared\"        ; +0x98, 0xca9408\nMOV             X0, X23                                                ; +0x9c, 0xca940c\nADD             X1, X1, #aDeathDataClear@PAGEOFF; \"Death data cleared\" ; +0xa0, 0xca9410\nMOV             X2, #0x12                                              ; +0xa4, 0xca9414\nLDR             X3, [X21]                                              ; +0xa8, 0xca9418\nSTR             XZR, [X29,#0x80+var_38]                                ; +0xac, 0xca941c\nSTR             XZR, [X29,#0x80+var_30]                                ; +0xb0, 0xca9420\nLDR             X24, [X3,#0x1D0]                                       ; +0xb4, 0xca9424\nSTR             XZR, [X29,#0x80+var_28]                                ; +0xb8, 0xca9428\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xbc, 0xca942c\nADRP            X1, #byte_11B8890@PAGE                                 ; +0xc0, 0xca9430\nMOV             X0, X22                                                ; +0xc4, 0xca9434\nADD             X1, X1, #byte_11B8890@PAGEOFF                          ; +0xc8, 0xca9438\nMOV             X2, #0                                                 ; +0xcc, 0xca943c\nSTR             XZR, [X29,#0x80+var_20]                                ; +0xd0, 0xca9440\nSTR             XZR, [X29,#0x80+var_18]                                ; +0xd4, 0xca9444\nSTR             XZR, [X29,#0x80+var_10]                                ; +0xd8, 0xca9448\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xdc, 0xca944c\nLDR             S1, =0x3F19999A                                        ; +0xe0, 0xca9450\nMOV             X0, X23                                                ; +0xe4, 0xca9454\nMOV             W1, #0x96                                              ; +0xe8, 0xca9458\nMOV             X2, X22                                                ; +0xec, 0xca945c\nFMOV            S0, #0.5                                               ; +0xf0, 0xca9460\nBL              _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0xf4, 0xca9464\nMOV             X1, X0                                                 ; +0xf8, 0xca9468\nMOV             W2, #0x3E8                                             ; +0xfc, 0xca946c\nMOV             X0, X21                                                ; +0x100, 0xca9470\nBLR             X24                                                    ; +0x104, 0xca9474\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0x108, 0xca9478\nTBNZ            W0, #0, loc_CA94B0                                     ; +0x10c, 0xca947c\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x110, 0xca9480\nTBNZ            W0, #0, loc_CA94C0                                     ; +0x114, 0xca9484\nLDR             X0, [X20,#0x408]; this                                 ; +0x118, 0xca9488\nCBZ             X0, loc_CA9498                                         ; +0x11c, 0xca948c\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x120, 0xca9490\nBL              _ZN17DeathTrackerPopup7onCloseEPN7cocos2d8CCObjectE; DeathTrackerPopup::onClose(cocos2d::CCObject *) ; +0x124, 0xca9494\nLDR             X2, [X20]                                              ; +0x128, 0xca9498\nMOV             X0, X20                                                ; +0x12c, 0xca949c\nMOV             X1, #0                                                 ; +0x130, 0xca94a0\nLDR             X2, [X2,#0x558]                                        ; +0x134, 0xca94a4\nBLR             X2                                                     ; +0x138, 0xca94a8\nB               loc_CA93A0                                             ; +0x13c, 0xca94ac\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x140, 0xca94b0\nBL              _ZdlPv; operator delete(void *)                        ; +0x144, 0xca94b4\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x148, 0xca94b8\nTBZ             W0, #0, loc_CA9488                                     ; +0x14c, 0xca94bc\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0x150, 0xca94c0\nBL              _ZdlPv; operator delete(void *)                        ; +0x154, 0xca94c4\nB               loc_CA9488                                             ; +0x158, 0xca94c8\nBL              .__stack_chk_fail                                      ; +0x15c, 0xca94cc\nMOV             X19, X0                                                ; +0x160, 0xca94d0\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x164, 0xca94d4\nTBZ             W0, #0, loc_CA94E4                                     ; +0x168, 0xca94d8\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0x16c, 0xca94dc\nBL              _ZdlPv; operator delete(void *)                        ; +0x170, 0xca94e0\nMOV             X0, X19                                                ; +0x174, 0xca94e4\nBL              _Unwind_Resume                                         ; +0x178, 0xca94e8\nLDRB            W1, [X29,#0x80+var_20]                                 ; +0x17c, 0xca94ec\nMOV             X19, X0                                                ; +0x180, 0xca94f0\nTBZ             W1, #0, loc_CA94D4                                     ; +0x184, 0xca94f4\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x188, 0xca94f8\nBL              _ZdlPv; operator delete(void *)                        ; +0x18c, 0xca94fc\nB               loc_CA94D4                                             ; +0x190, 0xca9500", "xrefs": ["`non-virtual thunk to'DeathTrackerOptionsPopup::FLAlert_Clicked @ 0xca950c", "<???> @ 0x47398", "<???> @ 0x14f87d0"], "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"}