{"type": "func", "start": 4304175968, "end": 4304176327, "name": "DeathMarkerSettingsPopup::FLAlert_Clicked", "pseudocode": "// \n// DeathMarkerSettingsPopup::FLAlert_Clicked from 0x1008c8360 to 0x1008c84c7 (359 bytes)\n// \n// 2 xrefs:\n// > sub_1008C84F0 @ 0x1008c84fc\n// > <???> @ 0x100bb0230\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:33 +0000\n// \n\nvoid __fastcall DeathMarkerSettingsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)\n{\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  char *v8; // rax\n  __int128 v9; // [rsp+8h] [rbp-38h] BYREF\n  void *__p; // [rsp+18h] [rbp-28h]\n  _BYTE v11[24]; // [rsp+20h] [rbp-20h] BYREF\n\n  if ( a3 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )\n  {\n    v3 = GameLevelManager::sharedState();\n    sub_1005548D0(v3, *(_QWORD *)(a1 + 1056), 1);\n    if ( *(_QWORD *)(GameManager::sharedState() + 544) )\n    {\n      v4 = GameManager::sharedState();\n      *(_QWORD *)(*(_QWORD *)(v4 + 544) + 14448LL) = *(_QWORD *)(*(_QWORD *)(v4 + 544) + 14440LL);\n      *(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 14464LL) = 0;\n      if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1944LL) )\n      {\n        v5 = GameManager::sharedState();\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(v5 + 544) + 1944LL) + 520LL))(*(_QWORD *)(*(_QWORD *)(v5 + 544) + 1944LL));\n        *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1944LL) = 0;\n      }\n      v6 = GameManager::sharedState();\n      PlayLayer::dtLiveMarkersChanged(*(_QWORD *)(v6 + 544));\n    }\n    v7 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);\n    strcpy(v11, \"*Death markers cleared\");\n    LOWORD(v9) = 0;\n    v8 = TextAlertPopup::create((__int128 *)v11, 0x96u, &v9, 0.5, 0.60000002);\n    (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v7 + 464LL))(v7, v8, 1000);\n    if ( (v9 & 1) != 0 )\n      operator delete(__p);\n    if ( (v11[0] & 1) != 0 )\n      operator delete(*(void **)&v11[16]);\n  }\n}", "assembly": "; \n; DeathMarkerSettingsPopup::FLAlert_Clicked from 0x1008c8360 to 0x1008c84c7 (359 bytes)\n; \n; 2 xrefs:\n; > sub_1008C84F0 @ 0x1008c84fc\n; > <???> @ 0x100bb0230\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:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008c8360\nmov     rbp, rsp                                                       ; +0x1, 0x1008c8361\npush    rbx                                                            ; +0x4, 0x1008c8364\nsub     rsp, 38h                                                       ; +0x5, 0x1008c8365\ntest    edx, edx                                                       ; +0x9, 0x1008c8369\njz      loc_1008C84C0                                                  ; +0xb, 0x1008c836b\nmov     rbx, rdi                                                       ; +0x11, 0x1008c8371\nmov     rax, [rsi]                                                     ; +0x14, 0x1008c8374\nmov     rdi, rsi                                                       ; +0x17, 0x1008c8377\ncall    qword ptr [rax+40h]                                            ; +0x1a, 0x1008c837a\ncmp     eax, 1                                                         ; +0x1d, 0x1008c837d\njnz     loc_1008C84C0                                                  ; +0x20, 0x1008c8380\ncall    GameLevelManager__sharedState                                  ; +0x26, 0x1008c8386\nmov     rsi, [rbx+420h]                                                ; +0x2b, 0x1008c838b\nmov     rdi, rax                                                       ; +0x32, 0x1008c8392\nmov     edx, 1                                                         ; +0x35, 0x1008c8395\ncall    sub_1005548D0                                                  ; +0x3a, 0x1008c839a\ncall    GameManager__sharedState                                       ; +0x3f, 0x1008c839f\ncmp     qword ptr [rax+220h], 0                                        ; +0x44, 0x1008c83a4\njz      loc_1008C8439                                                  ; +0x4c, 0x1008c83ac\ncall    GameManager__sharedState                                       ; +0x52, 0x1008c83b2\nmov     rax, [rax+220h]                                                ; +0x57, 0x1008c83b7\nmov     rcx, [rax+3868h]                                               ; +0x5e, 0x1008c83be\nmov     [rax+3870h], rcx                                               ; +0x65, 0x1008c83c5\ncall    GameManager__sharedState                                       ; +0x6c, 0x1008c83cc\nmov     rax, [rax+220h]                                                ; +0x71, 0x1008c83d1\nmov     byte ptr [rax+3880h], 0                                        ; +0x78, 0x1008c83d8\ncall    GameManager__sharedState                                       ; +0x7f, 0x1008c83df\nmov     rax, [rax+220h]                                                ; +0x84, 0x1008c83e4\ncmp     qword ptr [rax+798h], 0                                        ; +0x8b, 0x1008c83eb\njz      short loc_1008C8428                                            ; +0x93, 0x1008c83f3\ncall    GameManager__sharedState                                       ; +0x95, 0x1008c83f5\nmov     rax, [rax+220h]                                                ; +0x9a, 0x1008c83fa\nmov     rdi, [rax+798h]                                                ; +0xa1, 0x1008c8401\nmov     rax, [rdi]                                                     ; +0xa8, 0x1008c8408\ncall    qword ptr [rax+208h]                                           ; +0xab, 0x1008c840b\ncall    GameManager__sharedState                                       ; +0xb1, 0x1008c8411\nmov     rax, [rax+220h]                                                ; +0xb6, 0x1008c8416\nmov     qword ptr [rax+798h], 0                                        ; +0xbd, 0x1008c841d\ncall    GameManager__sharedState                                       ; +0xc8, 0x1008c8428\nmov     rdi, [rax+220h]                                                ; +0xcd, 0x1008c842d\ncall    PlayLayer__dtLiveMarkersChanged                                ; +0xd4, 0x1008c8434\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xd9, 0x1008c8439\nmov     rbx, [rax+110h]                                                ; +0xde, 0x1008c843e\nmov     [rbp+var_20], 2Ah ; '*'                                        ; +0xe5, 0x1008c8445\nmov     rax, 64657261656C6320h                                         ; +0xe9, 0x1008c8449\nmov     qword ptr [rbp+var_12], rax                                    ; +0xf3, 0x1008c8453\nmovups  xmm0, xmmword ptr cs:aDeathMarkersCl; \"Death markers cleared\"  ; +0xf7, 0x1008c8457\nmovups  xmmword ptr [rbp-1Fh], xmm0                                    ; +0xfe, 0x1008c845e\nmov     [rbp+var_12+8], 0                                              ; +0x102, 0x1008c8462\nmov     word ptr [rbp+var_38], 0                                       ; +0x106, 0x1008c8466\nlea     rdi, [rbp+var_20]                                              ; +0x10c, 0x1008c846c\nmovss   xmm0, cs:dword_100A03578                                       ; +0x110, 0x1008c8470\nmovss   xmm1, cs:dword_100A037D4                                       ; +0x118, 0x1008c8478\nlea     rdx, [rbp+var_38]                                              ; +0x120, 0x1008c8480\nmov     esi, 96h                                                       ; +0x124, 0x1008c8484\ncall    TextAlertPopup__create                                         ; +0x129, 0x1008c8489\nmov     rcx, [rbx]                                                     ; +0x12e, 0x1008c848e\nmov     rdi, rbx                                                       ; +0x131, 0x1008c8491\nmov     rsi, rax                                                       ; +0x134, 0x1008c8494\nmov     edx, 3E8h                                                      ; +0x137, 0x1008c8497\ncall    qword ptr [rcx+1D0h]                                           ; +0x13c, 0x1008c849c\ntest    byte ptr [rbp+var_38], 1                                       ; +0x142, 0x1008c84a2\njz      short loc_1008C84B1                                            ; +0x146, 0x1008c84a6\nmov     rdi, [rbp+__p]; __p                                            ; +0x148, 0x1008c84a8\ncall    __ZdlPv; operator delete(void *)                               ; +0x14c, 0x1008c84ac\ntest    [rbp+var_20], 1                                                ; +0x151, 0x1008c84b1\njz      short loc_1008C84C0                                            ; +0x155, 0x1008c84b5\nmov     rdi, qword ptr [rbp+var_12+2]; __p                             ; +0x157, 0x1008c84b7\ncall    __ZdlPv; operator delete(void *)                               ; +0x15b, 0x1008c84bb\nadd     rsp, 38h                                                       ; +0x160, 0x1008c84c0\npop     rbx                                                            ; +0x164, 0x1008c84c4\npop     rbp                                                            ; +0x165, 0x1008c84c5\nretn                                                                   ; +0x166, 0x1008c84c6", "xrefs": ["sub_1008C84F0 @ 0x1008c84fc", "<???> @ 0x100bb0230"], "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"}