{"type": "func", "start": 5369889328, "end": 5369889709, "name": "DeathTrackerOptionsPopup::FLAlert_Clicked", "pseudocode": "// \n// DeathTrackerOptionsPopup::FLAlert_Clicked from 0x140120230 to 0x1401203ad (381 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140731750\n// > <???> @ 0x140916550\n// \n// This function is hookable on this platform (idp: pc, 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:26:56 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall DeathTrackerOptionsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)\n{\n  __int64 v4; // rcx\n  __int64 v5; // rcx\n  __int64 *v6; // rdi\n  __int64 v7; // rbx\n  __int64 v8; // rdx\n  __int64 v9; // r8\n  __int64 v10; // rax\n  __int64 v11; // rcx\n  __int128 v12; // [rsp+38h] [rbp-50h] BYREF\n  __int64 v13; // [rsp+48h] [rbp-40h]\n  __int64 v14; // [rsp+50h] [rbp-38h]\n  __int128 v15; // [rsp+58h] [rbp-30h] BYREF\n  __int64 v16; // [rsp+68h] [rbp-20h]\n  __int64 v17; // [rsp+70h] [rbp-18h]\n  void *v18; // [rsp+A8h] [rbp+20h]\n\n  if ( a3 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1 && *(_QWORD *)(a1 + 8) )\n  {\n    v4 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v18 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v18);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v4 = *(_QWORD *)&qword_14090BFB0;\n    }\n    GameLevelManager::clearDeathDataInstances(v4, *(_QWORD *)(a1 + 8), 0);\n    v6 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v5) + 272);\n    v15 = 0;\n    v16 = 0;\n    v17 = 15;\n    LOBYTE(v15) = 0;\n    v12 = 0;\n    *(_QWORD *)&v12 = sub_14003D460(0x20u);\n    v13 = 18;\n    v14 = 31;\n    strcpy((char *)v12, \"Death data cleared\");\n    v7 = *v6;\n    v10 = TextAlertPopup::create(&v12, v8, v9, 150, &v15);\n    (*(void (__fastcall **)(__int64 *, __int64, __int64))(v7 + 456))(v6, v10, 1000);\n    v11 = *(_QWORD *)(a1 + 16);\n    if ( v11 )\n      DeathTrackerPopup::onClose(v11);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 1000) + 1104LL))(a1 - 1000, 0);\n  }\n}", "assembly": "; \n; DeathTrackerOptionsPopup::FLAlert_Clicked from 0x140120230 to 0x1401203ad (381 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140731750\n; > <???> @ 0x140916550\n; \n; This function is hookable on this platform (idp: pc, 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:26:56 +0000\n; \ntest    r8b, r8b                                                       ; +0x0, 0x140120230\njz      locret_1401203AC                                               ; +0x3, 0x140120233\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x140120239\nmov     [rsp+arg_8], rsi                                               ; +0xe, 0x14012023e\npush    rdi                                                            ; +0x13, 0x140120243\nsub     rsp, 80h                                                       ; +0x14, 0x140120244\nmov     rsi, rcx                                                       ; +0x1b, 0x14012024b\nmov     rax, [rdx]                                                     ; +0x1e, 0x14012024e\nmov     rcx, rdx                                                       ; +0x21, 0x140120251\ncall    qword ptr [rax+38h]                                            ; +0x24, 0x140120254\ncmp     eax, 1                                                         ; +0x27, 0x140120257\njnz     loc_140120398                                                  ; +0x2a, 0x14012025a\ncmp     qword ptr [rsi+8], 0                                           ; +0x30, 0x140120260\njz      loc_140120398                                                  ; +0x35, 0x140120265\nmov     rcx, cs:qword_14090BFB0                                        ; +0x3b, 0x14012026b\ntest    rcx, rcx                                                       ; +0x42, 0x140120272\njnz     short loc_1401202AC                                            ; +0x45, 0x140120275\nmov     ecx, 690h; Size                                                ; +0x47, 0x140120277\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4c, 0x14012027c\nmov     [rsp+88h+arg_18], rax                                          ; +0x51, 0x140120281\nmov     rcx, rax                                                       ; +0x59, 0x140120289\ncall    GameLevelManager__GameLevelManager                             ; +0x5c, 0x14012028c\nnop                                                                    ; +0x61, 0x140120291\nmov     cs:qword_14090BFB0, rax                                        ; +0x62, 0x140120292\nmov     rcx, [rax]                                                     ; +0x69, 0x140120299\nmov     rdx, [rcx+48h]                                                 ; +0x6c, 0x14012029c\nmov     rcx, rax                                                       ; +0x70, 0x1401202a0\ncall    rdx                                                            ; +0x73, 0x1401202a3\nmov     rcx, cs:qword_14090BFB0                                        ; +0x75, 0x1401202a5\nxor     r8d, r8d                                                       ; +0x7c, 0x1401202ac\nmov     rdx, [rsi+8]                                                   ; +0x7f, 0x1401202af\ncall    GameLevelManager__clearDeathDataInstances                      ; +0x83, 0x1401202b3\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x88, 0x1401202b8\nmov     rdi, [rax+110h]                                                ; +0x8e, 0x1401202be\nlea     rax, [rsp+88h+var_30]                                          ; +0x95, 0x1401202c5\nmov     [rsp+88h+arg_18], rax                                          ; +0x9a, 0x1401202ca\nxorps   xmm0, xmm0                                                     ; +0xa2, 0x1401202d2\nmovups  [rsp+88h+var_30], xmm0                                         ; +0xa5, 0x1401202d5\nxor     eax, eax                                                       ; +0xaa, 0x1401202da\nmov     [rsp+88h+var_20], rax                                          ; +0xac, 0x1401202dc\nmov     [rsp+88h+var_18], 0Fh                                          ; +0xb1, 0x1401202e1\nmov     byte ptr [rsp+88h+var_30], al                                  ; +0xba, 0x1401202ea\nmovups  [rsp+88h+var_50], xmm0                                         ; +0xbe, 0x1401202ee\nmov     [rsp+88h+var_40], rax                                          ; +0xc3, 0x1401202f3\nmov     [rsp+88h+var_38], rax                                          ; +0xc8, 0x1401202f8\nmov     ecx, 20h ; ' '                                                 ; +0xcd, 0x1401202fd\ncall    sub_14003D460                                                  ; +0xd2, 0x140120302\nmov     qword ptr [rsp+88h+var_50], rax                                ; +0xd7, 0x140120307\nmov     [rsp+88h+var_40], 12h                                          ; +0xdc, 0x14012030c\nmov     [rsp+88h+var_38], 1Fh                                          ; +0xe5, 0x140120315\nmovups  xmm0, cs:xmmword_140731730                                     ; +0xee, 0x14012031e\nmovups  xmmword ptr [rax], xmm0                                        ; +0xf5, 0x140120325\nmovzx   ecx, cs:word_140731740                                         ; +0xf8, 0x140120328\nmov     [rax+10h], cx                                                  ; +0xff, 0x14012032f\nmov     byte ptr [rax+12h], 0                                          ; +0x103, 0x140120333\nmov     rbx, [rdi]                                                     ; +0x107, 0x140120337\nlea     rax, [rsp+88h+var_30]                                          ; +0x10a, 0x14012033a\nmov     [rsp+88h+var_68], rax                                          ; +0x10f, 0x14012033f\nmov     r9d, 96h                                                       ; +0x114, 0x140120344\nmovss   xmm2, cs:dword_140834F64                                       ; +0x11a, 0x14012034a\nmovss   xmm1, cs:dword_140834F20                                       ; +0x122, 0x140120352\nlea     rcx, [rsp+88h+var_50]                                          ; +0x12a, 0x14012035a\ncall    TextAlertPopup__create                                         ; +0x12f, 0x14012035f\nmov     rdx, rax                                                       ; +0x134, 0x140120364\nmov     r8d, 3E8h                                                      ; +0x137, 0x140120367\nmov     rcx, rdi                                                       ; +0x13d, 0x14012036d\ncall    qword ptr [rbx+1C8h]                                           ; +0x140, 0x140120370\nmov     rcx, [rsi+10h]                                                 ; +0x146, 0x140120376\ntest    rcx, rcx                                                       ; +0x14a, 0x14012037a\njz      short loc_140120386                                            ; +0x14d, 0x14012037d\nxor     edx, edx                                                       ; +0x14f, 0x14012037f\ncall    DeathTrackerPopup__onClose                                     ; +0x151, 0x140120381\nlea     rcx, [rsi-3E8h]                                                ; +0x156, 0x140120386\nmov     rax, [rcx]                                                     ; +0x15d, 0x14012038d\nxor     edx, edx                                                       ; +0x160, 0x140120390\ncall    qword ptr [rax+450h]                                           ; +0x162, 0x140120392\nlea     r11, [rsp+88h+var_8]                                           ; +0x168, 0x140120398\nmov     rbx, [r11+10h]                                                 ; +0x170, 0x1401203a0\nmov     rsi, [r11+18h]                                                 ; +0x174, 0x1401203a4\nmov     rsp, r11                                                       ; +0x178, 0x1401203a8\npop     rdi                                                            ; +0x17b, 0x1401203ab\nretn                                                                   ; +0x17c, 0x1401203ac", "xrefs": ["<???> @ 0x140731750", "<???> @ 0x140916550"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}