{"type": "func", "start": 5370499104, "end": 5370499269, "name": "EditorUI::onStickyToggle", "pseudocode": "// \n// EditorUI::onStickyToggle from 0x1401b5020 to 0x1401b50c5 (165 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x1401aae95\n// > <???> @ 0x14091a168\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:27:57 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall EditorUI::onStickyToggle(__int64 a1)\n{\n  __int64 v2; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_14090BFD0 )\n  {\n    v4 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n  }\n  GameManager::toggleGameVariable(a1, \"0180\");\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v5 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  *(_BYTE *)(a1 + 916) = GameManager::getGameVariable(v2, \"0180\");\n  return EditorUI::updateButtons(a1);\n}", "assembly": "; \n; EditorUI::onStickyToggle from 0x1401b5020 to 0x1401b50c5 (165 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x1401aae95\n; > <???> @ 0x14091a168\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:27:57 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401b5020\nsub     rsp, 20h                                                       ; +0x2, 0x1401b5022\nmov     rbx, rcx                                                       ; +0x6, 0x1401b5026\ncmp     cs:qword_14090BFD0, 0                                          ; +0x9, 0x1401b5029\njnz     short loc_1401B505B                                            ; +0x11, 0x1401b5031\nmov     ecx, 6E8h; Size                                                ; +0x13, 0x1401b5033\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x1401b5038\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x1401b503d\nmov     rcx, rax                                                       ; +0x22, 0x1401b5042\ncall    GameManager__GameManager                                       ; +0x25, 0x1401b5045\nnop                                                                    ; +0x2a, 0x1401b504a\nmov     cs:qword_14090BFD0, rax                                        ; +0x2b, 0x1401b504b\nmov     rdx, [rax]                                                     ; +0x32, 0x1401b5052\nmov     rcx, rax                                                       ; +0x35, 0x1401b5055\ncall    qword ptr [rdx+48h]                                            ; +0x38, 0x1401b5058\nlea     rdx, a0180; \"0180\"                                             ; +0x3b, 0x1401b505b\ncall    GameManager__toggleGameVariable                                ; +0x42, 0x1401b5062\nmov     rcx, cs:qword_14090BFD0                                        ; +0x47, 0x1401b5067\ntest    rcx, rcx                                                       ; +0x4e, 0x1401b506e\njnz     short loc_1401B50A6                                            ; +0x51, 0x1401b5071\nmov     ecx, 6E8h; Size                                                ; +0x53, 0x1401b5073\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x58, 0x1401b5078\nmov     [rsp+28h+arg_0], rax                                           ; +0x5d, 0x1401b507d\nmov     rcx, rax                                                       ; +0x62, 0x1401b5082\ncall    GameManager__GameManager                                       ; +0x65, 0x1401b5085\nnop                                                                    ; +0x6a, 0x1401b508a\nmov     cs:qword_14090BFD0, rax                                        ; +0x6b, 0x1401b508b\nmov     rcx, [rax]                                                     ; +0x72, 0x1401b5092\nmov     r8, [rcx+48h]                                                  ; +0x75, 0x1401b5095\nmov     rcx, rax                                                       ; +0x79, 0x1401b5099\ncall    r8                                                             ; +0x7c, 0x1401b509c\nmov     rcx, cs:qword_14090BFD0                                        ; +0x7f, 0x1401b509f\nlea     rdx, a0180; \"0180\"                                             ; +0x86, 0x1401b50a6\ncall    GameManager__getGameVariable                                   ; +0x8d, 0x1401b50ad\nmov     [rbx+394h], al                                                 ; +0x92, 0x1401b50b2\nmov     rcx, rbx                                                       ; +0x98, 0x1401b50b8\nadd     rsp, 20h                                                       ; +0x9b, 0x1401b50bb\npop     rbx                                                            ; +0x9f, 0x1401b50bf\njmp     EditorUI__updateButtons                                        ; +0xa0, 0x1401b50c0", "xrefs": ["EditorUI::init @ 0x1401aae95", "<???> @ 0x14091a168"], "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"}