{"type": "func", "start": 5369833824, "end": 5369833986, "name": "EditorUI::onStickyToggle", "pseudocode": "// \n// EditorUI::onStickyToggle from 0x140112960 to 0x140112a02 (162 bytes)\n// \n// 3 xrefs:\n// > EditorUI::init @ 0x1400e0750\n// > <???> @ 0x1406c9048\n// > <???> @ 0x1406c9054\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorUI::onStickyToggle(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_1406C2ED8 )\n  {\n    v4 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  GameManager::toggleGameVariable((GameManager *)a1, \"0180\");\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v5 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  a1->m_linkControlsDisabled = GameManager::getGameVariable(v3, \"0180\");\n  EditorUI::updateButtons(a1);\n}", "assembly": "; \n; EditorUI::onStickyToggle from 0x140112960 to 0x140112a02 (162 bytes)\n; \n; 3 xrefs:\n; > EditorUI::init @ 0x1400e0750\n; > <???> @ 0x1406c9048\n; > <???> @ 0x1406c9054\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140112960\nsub     rsp, 20h                                                       ; +0x2, 0x140112962\nmov     rbx, rcx                                                       ; +0x6, 0x140112966\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x9, 0x140112969\njnz     short loc_14011299B                                            ; +0x11, 0x140112971\nmov     ecx, 668h; Size                                                ; +0x13, 0x140112973\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x140112978\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x14011297d\nmov     rcx, rax                                                       ; +0x22, 0x140112982\ncall    sub_14017AB00                                                  ; +0x25, 0x140112985\nnop                                                                    ; +0x2a, 0x14011298a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2b, 0x14011298b\nmov     rdx, [rax]                                                     ; +0x32, 0x140112992\nmov     rcx, rax                                                       ; +0x35, 0x140112995\ncall    qword ptr [rdx+48h]                                            ; +0x38, 0x140112998\nlea     rdx, a0180; \"0180\"                                             ; +0x3b, 0x14011299b\ncall    GameManager__toggleGameVariable                                ; +0x42, 0x1401129a2\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x47, 0x1401129a7\ntest    rcx, rcx                                                       ; +0x4e, 0x1401129ae\njnz     short loc_1401129E3                                            ; +0x51, 0x1401129b1\nmov     ecx, 668h; Size                                                ; +0x53, 0x1401129b3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x58, 0x1401129b8\nmov     [rsp+28h+arg_0], rax                                           ; +0x5d, 0x1401129bd\nmov     rcx, rax                                                       ; +0x62, 0x1401129c2\ncall    sub_14017AB00                                                  ; +0x65, 0x1401129c5\nnop                                                                    ; +0x6a, 0x1401129ca\nmov     cs:qword_1406C2ED8, rax                                        ; +0x6b, 0x1401129cb\nmov     r8, [rax]                                                      ; +0x72, 0x1401129d2\nmov     rcx, rax                                                       ; +0x75, 0x1401129d5\ncall    qword ptr [r8+48h]                                             ; +0x78, 0x1401129d8\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x7c, 0x1401129dc\nlea     rdx, a0180; \"0180\"                                             ; +0x83, 0x1401129e3\ncall    GameManager__getGameVariable                                   ; +0x8a, 0x1401129ea\nmov     [rbx+324h], al                                                 ; +0x8f, 0x1401129ef\nmov     rcx, rbx                                                       ; +0x95, 0x1401129f5\nadd     rsp, 20h                                                       ; +0x98, 0x1401129f8\npop     rbx                                                            ; +0x9c, 0x1401129fc\njmp     EditorUI__updateButtons                                        ; +0x9d, 0x1401129fd", "xrefs": ["EditorUI::init @ 0x1400e0750", "<???> @ 0x1406c9048", "<???> @ 0x1406c9054"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}