{"type": "func", "start": 4304185040, "end": 4304185305, "name": "DeathTrackerOptionsPopup::FLAlert_Clicked", "pseudocode": "// \n// DeathTrackerOptionsPopup::FLAlert_Clicked from 0x1008ca6d0 to 0x1008ca7d9 (265 bytes)\n// \n// 2 xrefs:\n// > sub_1008CA800 @ 0x1008ca80c\n// > <???> @ 0x100bb12d0\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 12:37:34 +0000\n// \n\nvoid __fastcall DeathTrackerOptionsPopup::FLAlert_Clicked(__int64 *a1, __int64 a2, int a3)\n{\n  __int64 v4; // rax\n  __int64 v5; // r14\n  char *v6; // rax\n  __int64 v7; // rdi\n  __int128 v8; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n  __int128 v10[2]; // [rsp+18h] [rbp-28h] BYREF\n\n  if ( a3 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 && a1[128] )\n  {\n    v4 = GameLevelManager::sharedState();\n    sub_1005548D0(v4, a1[128], 0);\n    v5 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);\n    strcpy((char *)v10, \"$Death data cleared\");\n    LOWORD(v8) = 0;\n    v6 = TextAlertPopup::create(v10, 0x96u, &v8, 0.5, 0.60000002);\n    (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v5 + 464LL))(v5, v6, 1000);\n    if ( (v8 & 1) != 0 )\n    {\n      operator delete(__p);\n      if ( (v10[0] & 1) == 0 )\n      {\nLABEL_6:\n        v7 = a1[129];\n        if ( !v7 )\n        {\nLABEL_8:\n          (*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1368))(a1, 0);\n          return;\n        }\nLABEL_7:\n        sub_1008CD070(v7, 0);\n        goto LABEL_8;\n      }\n    }\n    else if ( (v10[0] & 1) == 0 )\n    {\n      goto LABEL_6;\n    }\n    operator delete(*(void **)&v10[1]);\n    v7 = a1[129];\n    if ( !v7 )\n      goto LABEL_8;\n    goto LABEL_7;\n  }\n}", "assembly": "; \n; DeathTrackerOptionsPopup::FLAlert_Clicked from 0x1008ca6d0 to 0x1008ca7d9 (265 bytes)\n; \n; 2 xrefs:\n; > sub_1008CA800 @ 0x1008ca80c\n; > <???> @ 0x100bb12d0\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 12:37:34 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008ca6d0\nmov     rbp, rsp                                                       ; +0x1, 0x1008ca6d1\npush    r14                                                            ; +0x4, 0x1008ca6d4\npush    rbx                                                            ; +0x6, 0x1008ca6d6\nsub     rsp, 30h                                                       ; +0x7, 0x1008ca6d7\ntest    edx, edx                                                       ; +0xb, 0x1008ca6db\njz      loc_1008CA7AA                                                  ; +0xd, 0x1008ca6dd\nmov     rbx, rdi                                                       ; +0x13, 0x1008ca6e3\nmov     rax, [rsi]                                                     ; +0x16, 0x1008ca6e6\nmov     rdi, rsi                                                       ; +0x19, 0x1008ca6e9\ncall    qword ptr [rax+40h]                                            ; +0x1c, 0x1008ca6ec\ncmp     eax, 1                                                         ; +0x1f, 0x1008ca6ef\njnz     loc_1008CA7AA                                                  ; +0x22, 0x1008ca6f2\ncmp     qword ptr [rbx+400h], 0                                        ; +0x28, 0x1008ca6f8\njz      loc_1008CA7AA                                                  ; +0x30, 0x1008ca700\ncall    GameLevelManager__sharedState                                  ; +0x36, 0x1008ca706\nmov     rsi, [rbx+400h]                                                ; +0x3b, 0x1008ca70b\nmov     rdi, rax                                                       ; +0x42, 0x1008ca712\nxor     edx, edx                                                       ; +0x45, 0x1008ca715\ncall    sub_1005548D0                                                  ; +0x47, 0x1008ca717\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x4c, 0x1008ca71c\nmov     r14, [rax+110h]                                                ; +0x51, 0x1008ca721\nmov     [rbp+var_28], 24h ; '$'                                        ; +0x58, 0x1008ca728\nmovups  xmm0, xmmword ptr cs:aDeathDataClear; \"Death data cleared\"     ; +0x5c, 0x1008ca72c\nmovups  xmmword ptr [rbp+var_28+1], xmm0                               ; +0x63, 0x1008ca733\nmov     word ptr [rbp+var_28+11h], 6465h                               ; +0x67, 0x1008ca737\nmov     [rbp+var_28+13h], 0                                            ; +0x6d, 0x1008ca73d\nmov     word ptr [rbp+var_40], 0                                       ; +0x71, 0x1008ca741\nlea     rdi, [rbp+var_28]                                              ; +0x77, 0x1008ca747\nmovss   xmm0, cs:dword_100A03578                                       ; +0x7b, 0x1008ca74b\nmovss   xmm1, cs:dword_100A037D4                                       ; +0x83, 0x1008ca753\nlea     rdx, [rbp+var_40]                                              ; +0x8b, 0x1008ca75b\nmov     esi, 96h                                                       ; +0x8f, 0x1008ca75f\ncall    TextAlertPopup__create                                         ; +0x94, 0x1008ca764\nmov     rcx, [r14]                                                     ; +0x99, 0x1008ca769\nmov     rdi, r14                                                       ; +0x9c, 0x1008ca76c\nmov     rsi, rax                                                       ; +0x9f, 0x1008ca76f\nmov     edx, 3E8h                                                      ; +0xa2, 0x1008ca772\ncall    qword ptr [rcx+1D0h]                                           ; +0xa7, 0x1008ca777\ntest    byte ptr [rbp+var_40], 1                                       ; +0xad, 0x1008ca77d\njnz     short loc_1008CA7B3                                            ; +0xb1, 0x1008ca781\ntest    [rbp+var_28], 1                                                ; +0xb3, 0x1008ca783\njnz     short loc_1008CA7C2                                            ; +0xb7, 0x1008ca787\nmov     rdi, [rbx+408h]                                                ; +0xb9, 0x1008ca789\ntest    rdi, rdi                                                       ; +0xc0, 0x1008ca790\njz      short loc_1008CA79C                                            ; +0xc3, 0x1008ca793\nxor     esi, esi                                                       ; +0xc5, 0x1008ca795\ncall    sub_1008CD070                                                  ; +0xc7, 0x1008ca797\nmov     rax, [rbx]                                                     ; +0xcc, 0x1008ca79c\nmov     rdi, rbx                                                       ; +0xcf, 0x1008ca79f\nxor     esi, esi                                                       ; +0xd2, 0x1008ca7a2\ncall    qword ptr [rax+558h]                                           ; +0xd4, 0x1008ca7a4\nadd     rsp, 30h                                                       ; +0xda, 0x1008ca7aa\npop     rbx                                                            ; +0xde, 0x1008ca7ae\npop     r14                                                            ; +0xdf, 0x1008ca7af\npop     rbp                                                            ; +0xe1, 0x1008ca7b1\nretn                                                                   ; +0xe2, 0x1008ca7b2\nmov     rdi, [rbp+__p]; __p                                            ; +0xe3, 0x1008ca7b3\ncall    __ZdlPv; operator delete(void *)                               ; +0xe7, 0x1008ca7b7\ntest    [rbp+var_28], 1                                                ; +0xec, 0x1008ca7bc\njz      short loc_1008CA789                                            ; +0xf0, 0x1008ca7c0\nmov     rdi, qword ptr [rbp+var_28+10h]; __p                           ; +0xf2, 0x1008ca7c2\ncall    __ZdlPv; operator delete(void *)                               ; +0xf6, 0x1008ca7c6\nmov     rdi, [rbx+408h]                                                ; +0xfb, 0x1008ca7cb\ntest    rdi, rdi                                                       ; +0x102, 0x1008ca7d2\njnz     short loc_1008CA795                                            ; +0x105, 0x1008ca7d5\njmp     short loc_1008CA79C                                            ; +0x107, 0x1008ca7d7", "xrefs": ["sub_1008CA800 @ 0x1008ca80c", "<???> @ 0x100bb12d0"], "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"}