{"type": "func", "start": 5369888960, "end": 5369889322, "name": "DeathTrackerOptionsPopup::onClearData", "pseudocode": "// \n// DeathTrackerOptionsPopup::onClearData from 0x1401200c0 to 0x14012022a (362 bytes)\n// \n// 2 xrefs:\n// > DeathTrackerOptionsPopup::init @ 0x14011ffab\n// > <???> @ 0x140916544\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=1\nvoid __fastcall DeathTrackerOptionsPopup::onClearData(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  __int64 *v3; // rbx\n  __int128 v4; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v5; // [rsp+60h] [rbp-38h]\n  __int64 v6; // [rsp+68h] [rbp-30h]\n  _BYTE v7[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( *(_QWORD *)(a1 + 1008) )\n  {\n    v1 = a1 + 1000;\n    if ( !a1 )\n      v1 = 0;\n    v4 = 0;\n    *(_QWORD *)&v4 = sub_14003D460(0x70u);\n    v5 = 101;\n    v6 = 111;\n    strcpy(\n      (char *)v4,\n      \"Clear your death stats for this level? <cb>Death markers</c> are not affected. This cannot be undone.\");\n    v2 = sub_14003F4F0((__int64)v7, (__int64)&v4);\n    v3 = (__int64 *)FLAlertLayer::create(\n                      v1,\n                      (int)\"Clear Data\",\n                      v2,\n                      (__int64)\"Cancel\",\n                      (__int64)\"Clear\",\n                      1134559232,\n                      0,\n                      0,\n                      1065353216);\n    sub_14003D310((__int64)&v4);\n    (*(void (__fastcall **)(__int64 *, __int64))(*v3 + 64))(v3, 1);\n    ButtonSprite::updateBGImage(v3[77], \"GJ_button_06.png\");\n    (*(void (__fastcall **)(__int64 *))(*v3 + 1064))(v3);\n  }\n}", "assembly": "; \n; DeathTrackerOptionsPopup::onClearData from 0x1401200c0 to 0x14012022a (362 bytes)\n; \n; 2 xrefs:\n; > DeathTrackerOptionsPopup::init @ 0x14011ffab\n; > <???> @ 0x140916544\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; \npush    rbx                                                            ; +0x0, 0x1401200c0\nsub     rsp, 90h                                                       ; +0x2, 0x1401200c2\ncmp     qword ptr [rcx+3F0h], 0                                        ; +0x9, 0x1401200c9\njz      loc_140120221                                                  ; +0x11, 0x1401200d1\nlea     rbx, [rcx+3E8h]                                                ; +0x17, 0x1401200d7\nxor     eax, eax                                                       ; +0x1e, 0x1401200de\ntest    rcx, rcx                                                       ; +0x20, 0x1401200e0\ncmovz   rbx, rax                                                       ; +0x23, 0x1401200e3\nxorps   xmm0, xmm0                                                     ; +0x27, 0x1401200e7\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x2a, 0x1401200ea\nmov     [rsp+98h+var_38], rax                                          ; +0x2f, 0x1401200ef\nmov     [rsp+98h+var_30], rax                                          ; +0x34, 0x1401200f4\nmov     ecx, 70h ; 'p'                                                 ; +0x39, 0x1401200f9\ncall    sub_14003D460                                                  ; +0x3e, 0x1401200fe\nmov     rcx, rax                                                       ; +0x43, 0x140120103\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x46, 0x140120106\nmov     [rsp+98h+var_38], 65h ; 'e'                                    ; +0x4b, 0x14012010b\nmov     [rsp+98h+var_30], 6Fh ; 'o'                                    ; +0x54, 0x140120114\nmovaps  xmm0, cs:xmmword_1407316A0                                     ; +0x5d, 0x14012011d\nmovups  xmmword ptr [rax], xmm0                                        ; +0x64, 0x140120124\nmovaps  xmm1, cs:xmmword_1407316B0                                     ; +0x67, 0x140120127\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6e, 0x14012012e\nmovaps  xmm0, cs:xmmword_1407316C0                                     ; +0x72, 0x140120132\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x79, 0x140120139\nmovaps  xmm1, cs:xmmword_1407316D0                                     ; +0x7d, 0x14012013d\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x84, 0x140120144\nmovaps  xmm0, cs:xmmword_1407316E0                                     ; +0x88, 0x140120148\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x8f, 0x14012014f\nmovaps  xmm1, cs:xmmword_1407316F0                                     ; +0x93, 0x140120153\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0x9a, 0x14012015a\nmov     eax, cs:dword_140731700                                        ; +0x9e, 0x14012015e\nmov     [rcx+60h], eax                                                 ; +0xa4, 0x140120164\nmovzx   eax, cs:byte_140731704                                         ; +0xa7, 0x140120167\nmov     [rcx+64h], al                                                  ; +0xae, 0x14012016e\nmov     byte ptr [rcx+65h], 0                                          ; +0xb1, 0x140120171\nlea     rax, [rsp+98h+var_48]                                          ; +0xb5, 0x140120175\nmov     [rsp+98h+arg_0], rax                                           ; +0xba, 0x14012017a\nlea     rdx, [rsp+98h+var_48]                                          ; +0xc2, 0x140120182\nlea     rcx, [rsp+98h+var_28]                                          ; +0xc7, 0x140120187\ncall    sub_14003F4F0                                                  ; +0xcc, 0x14012018c\nmovss   xmm0, cs:flt_140835080                                         ; +0xd1, 0x140120191\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xd9, 0x140120199\nxorps   xmm1, xmm1                                                     ; +0xdf, 0x14012019f\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xe2, 0x1401201a2\nmov     [rsp+98h+var_68], 0                                            ; +0xe8, 0x1401201a8\nmovss   xmm0, cs:dword_1408359C0                                       ; +0xed, 0x1401201ad\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xf5, 0x1401201b5\nlea     rcx, aClear; \"Clear\"                                           ; +0xfb, 0x1401201bb\nmov     [rsp+98h+var_78], rcx                                          ; +0x102, 0x1401201c2\nlea     r9, aCancel; \"Cancel\"                                          ; +0x107, 0x1401201c7\nmov     r8, rax                                                        ; +0x10e, 0x1401201ce\nlea     rdx, aClearData; \"Clear Data\"                                  ; +0x111, 0x1401201d1\nmov     rcx, rbx                                                       ; +0x118, 0x1401201d8\ncall    FLAlertLayer__create                                           ; +0x11b, 0x1401201db\nmov     rbx, rax                                                       ; +0x120, 0x1401201e0\nlea     rcx, [rsp+98h+var_48]                                          ; +0x123, 0x1401201e3\ncall    sub_14003D310                                                  ; +0x128, 0x1401201e8\nmov     rcx, [rbx]                                                     ; +0x12d, 0x1401201ed\nmov     r8, [rcx+40h]                                                  ; +0x130, 0x1401201f0\nmov     edx, 1                                                         ; +0x134, 0x1401201f4\nmov     rcx, rbx                                                       ; +0x139, 0x1401201f9\ncall    r8                                                             ; +0x13c, 0x1401201fc\nlea     rdx, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x13f, 0x1401201ff\nmov     rcx, [rbx+268h]                                                ; +0x146, 0x140120206\ncall    ButtonSprite__updateBGImage                                    ; +0x14d, 0x14012020d\nmov     rcx, [rbx]                                                     ; +0x152, 0x140120212\nmov     rdx, [rcx+428h]                                                ; +0x155, 0x140120215\nmov     rcx, rbx                                                       ; +0x15c, 0x14012021c\ncall    rdx                                                            ; +0x15f, 0x14012021f\nadd     rsp, 90h                                                       ; +0x161, 0x140120221\npop     rbx                                                            ; +0x168, 0x140120228\nretn                                                                   ; +0x169, 0x140120229", "xrefs": ["DeathTrackerOptionsPopup::init @ 0x14011ffab", "<???> @ 0x140916544"], "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"}