{"type": "func", "start": 5369880880, "end": 5369881191, "name": "DeathMarkerSettingsPopup::onToggleLabels", "pseudocode": "// \n// DeathMarkerSettingsPopup::onToggleLabels from 0x14011e130 to 0x14011e267 (311 bytes)\n// \n// 2 xrefs:\n// > DeathMarkerSettingsPopup::init @ 0x14011cf58\n// > <???> @ 0x14091649c\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:55 +0000\n// \n\n// Hidden C++ exception states: #wind=6\n__int64 __fastcall DeathMarkerSettingsPopup::onToggleLabels(__int64 a1)\n{\n  unsigned __int8 v1; // bl\n  __int64 result; // rax\n  __int64 v3; // rcx\n  __int64 v4; // rcx\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  void *v8; // [rsp+40h] [rbp+18h]\n  void *v9; // [rsp+40h] [rbp+18h]\n  void *v10; // [rsp+40h] [rbp+18h]\n\n  if ( !qword_14090BFD0 )\n  {\n    v8 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n  }\n  v1 = GameManager::toggleGameVariable(a1, \"0208\");\n  result = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v9 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    result = qword_14090BFD0;\n  }\n  v3 = *(_QWORD *)(result + 560);\n  if ( v3 )\n  {\n    v4 = *(_QWORD *)(v3 + 2176);\n    if ( v4 )\n    {\n      v5 = *(_QWORD *)(v4 + 440);\n      if ( v5 )\n      {\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, v1 ^ 1u);\n        result = qword_14090BFD0;\n      }\n    }\n    if ( !result )\n    {\n      v10 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      result = qword_14090BFD0;\n    }\n    result = *(_QWORD *)(result + 560);\n    v6 = *(_QWORD *)(result + 2184);\n    if ( v6 )\n    {\n      v7 = *(_QWORD *)(v6 + 440);\n      if ( v7 )\n        return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 336LL))(v7, v1 ^ 1u);\n    }\n  }\n  return result;\n}", "assembly": "; \n; DeathMarkerSettingsPopup::onToggleLabels from 0x14011e130 to 0x14011e267 (311 bytes)\n; \n; 2 xrefs:\n; > DeathMarkerSettingsPopup::init @ 0x14011cf58\n; > <???> @ 0x14091649c\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:55 +0000\n; \npush    rbx                                                            ; +0x0, 0x14011e130\nsub     rsp, 20h                                                       ; +0x2, 0x14011e132\ncmp     cs:qword_14090BFD0, 0                                          ; +0x6, 0x14011e136\njnz     short loc_14011E16B                                            ; +0xe, 0x14011e13e\nmov     ecx, 6E8h; Size                                                ; +0x10, 0x14011e140\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x14011e145\nmov     [rsp+28h+arg_10], rax                                          ; +0x1a, 0x14011e14a\nmov     rcx, rax                                                       ; +0x1f, 0x14011e14f\ncall    GameManager__GameManager                                       ; +0x22, 0x14011e152\nnop                                                                    ; +0x27, 0x14011e157\nmov     cs:qword_14090BFD0, rax                                        ; +0x28, 0x14011e158\nmov     rcx, [rax]                                                     ; +0x2f, 0x14011e15f\nmov     rdx, [rcx+48h]                                                 ; +0x32, 0x14011e162\nmov     rcx, rax                                                       ; +0x36, 0x14011e166\ncall    rdx                                                            ; +0x39, 0x14011e169\nlea     rdx, a0208; \"0208\"                                             ; +0x3b, 0x14011e16b\ncall    GameManager__toggleGameVariable                                ; +0x42, 0x14011e172\nmovzx   ebx, al                                                        ; +0x47, 0x14011e177\nmov     rax, cs:qword_14090BFD0                                        ; +0x4a, 0x14011e17a\ntest    rax, rax                                                       ; +0x51, 0x14011e181\njnz     short loc_14011E1B8                                            ; +0x54, 0x14011e184\nmov     ecx, 6E8h; Size                                                ; +0x56, 0x14011e186\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5b, 0x14011e18b\nmov     [rsp+28h+arg_10], rax                                          ; +0x60, 0x14011e190\nmov     rcx, rax                                                       ; +0x65, 0x14011e195\ncall    GameManager__GameManager                                       ; +0x68, 0x14011e198\nnop                                                                    ; +0x6d, 0x14011e19d\nmov     cs:qword_14090BFD0, rax                                        ; +0x6e, 0x14011e19e\nmov     rcx, [rax]                                                     ; +0x75, 0x14011e1a5\nmov     rdx, [rcx+48h]                                                 ; +0x78, 0x14011e1a8\nmov     rcx, rax                                                       ; +0x7c, 0x14011e1ac\ncall    rdx                                                            ; +0x7f, 0x14011e1af\nmov     rax, cs:qword_14090BFD0                                        ; +0x81, 0x14011e1b1\nmov     rcx, [rax+230h]                                                ; +0x88, 0x14011e1b8\ntest    rcx, rcx                                                       ; +0x8f, 0x14011e1bf\njz      loc_14011E261                                                  ; +0x92, 0x14011e1c2\nmov     rcx, [rcx+880h]                                                ; +0x98, 0x14011e1c8\ntest    rcx, rcx                                                       ; +0x9f, 0x14011e1cf\njz      short loc_14011E1F6                                            ; +0xa2, 0x14011e1d2\nmov     rcx, [rcx+1B8h]                                                ; +0xa4, 0x14011e1d4\ntest    rcx, rcx                                                       ; +0xab, 0x14011e1db\njz      short loc_14011E1F6                                            ; +0xae, 0x14011e1de\nmovzx   edx, bl                                                        ; +0xb0, 0x14011e1e0\nxor     dl, 1                                                          ; +0xb3, 0x14011e1e3\nmov     rax, [rcx]                                                     ; +0xb6, 0x14011e1e6\ncall    qword ptr [rax+150h]                                           ; +0xb9, 0x14011e1e9\nmov     rax, cs:qword_14090BFD0                                        ; +0xbf, 0x14011e1ef\ntest    rax, rax                                                       ; +0xc6, 0x14011e1f6\njnz     short loc_14011E22D                                            ; +0xc9, 0x14011e1f9\nmov     ecx, 6E8h; Size                                                ; +0xcb, 0x14011e1fb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xd0, 0x14011e200\nmov     [rsp+28h+arg_10], rax                                          ; +0xd5, 0x14011e205\nmov     rcx, rax                                                       ; +0xda, 0x14011e20a\ncall    GameManager__GameManager                                       ; +0xdd, 0x14011e20d\nnop                                                                    ; +0xe2, 0x14011e212\nmov     cs:qword_14090BFD0, rax                                        ; +0xe3, 0x14011e213\nmov     rcx, [rax]                                                     ; +0xea, 0x14011e21a\nmov     rdx, [rcx+48h]                                                 ; +0xed, 0x14011e21d\nmov     rcx, rax                                                       ; +0xf1, 0x14011e221\ncall    rdx                                                            ; +0xf4, 0x14011e224\nmov     rax, cs:qword_14090BFD0                                        ; +0xf6, 0x14011e226\nmov     rax, [rax+230h]                                                ; +0xfd, 0x14011e22d\nmov     rcx, [rax+888h]                                                ; +0x104, 0x14011e234\ntest    rcx, rcx                                                       ; +0x10b, 0x14011e23b\njz      short loc_14011E261                                            ; +0x10e, 0x14011e23e\nmov     rcx, [rcx+1B8h]                                                ; +0x110, 0x14011e240\ntest    rcx, rcx                                                       ; +0x117, 0x14011e247\njz      short loc_14011E261                                            ; +0x11a, 0x14011e24a\nxor     bl, 1                                                          ; +0x11c, 0x14011e24c\nmov     rax, [rcx]                                                     ; +0x11f, 0x14011e24f\nmovzx   edx, bl                                                        ; +0x122, 0x14011e252\nadd     rsp, 20h                                                       ; +0x125, 0x14011e255\npop     rbx                                                            ; +0x129, 0x14011e259\njmp     qword ptr [rax+150h]                                           ; +0x12a, 0x14011e25a\nadd     rsp, 20h                                                       ; +0x131, 0x14011e261\npop     rbx                                                            ; +0x135, 0x14011e265\nretn                                                                   ; +0x136, 0x14011e266", "xrefs": ["DeathMarkerSettingsPopup::init @ 0x14011cf58", "<???> @ 0x14091649c"], "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"}