{"type": "func", "start": 4295015808, "end": 4295015906, "name": "EditorUI::toggleSwipe", "pseudocode": "// \n// EditorUI::toggleSwipe from 0x10000bd80 to 0x10000bde2 (98 bytes)\n// \n// 2 xrefs:\n// > EditorUI::keyDown @ 0x100050b63\n// > EditorUI::init @ 0x10000995c\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 __fastcall EditorUI::toggleSwipe(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  ButtonSprite *v2; // rax\n  const char *v3; // rsi\n  GameManager *v4; // rax\n\n  a1->m_swipeEnabled ^= 1u;\n  v2 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))a1->m_swipeBtn->getNormalImage)(\n                         a1->m_swipeBtn,\n                         a2);\n  v3 = \"GJ_button_01.png\";\n  if ( a1->m_swipeEnabled )\n    v3 = \"GJ_button_02.png\";\n  ButtonSprite::updateBGImage(v2, v3);\n  v4 = GameManager::sharedState();\n  GameManager::setGameVariable(v4, \"0003\", a1->m_swipeEnabled);\n}", "assembly": "; \n; EditorUI::toggleSwipe from 0x10000bd80 to 0x10000bde2 (98 bytes)\n; \n; 2 xrefs:\n; > EditorUI::keyDown @ 0x100050b63\n; > EditorUI::init @ 0x10000995c\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    rbp                                                            ; +0x0, 0x10000bd80\nmov     rbp, rsp                                                       ; +0x1, 0x10000bd81\npush    rbx                                                            ; +0x4, 0x10000bd84\npush    rax                                                            ; +0x5, 0x10000bd85\nmov     rbx, rdi                                                       ; +0x6, 0x10000bd86\nxor     byte ptr [rdi+304h], 1                                         ; +0x9, 0x10000bd89\nmov     rdi, [rdi+358h]                                                ; +0x10, 0x10000bd90\nmov     rax, [rdi]                                                     ; +0x17, 0x10000bd97\ncall    qword ptr [rax+420h]                                           ; +0x1a, 0x10000bd9a\nlea     rcx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x20, 0x10000bda0\nlea     rsi, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x27, 0x10000bda7\ncmp     byte ptr [rbx+304h], 0                                         ; +0x2e, 0x10000bdae\ncmovnz  rsi, rcx                                                       ; +0x35, 0x10000bdb5\nmov     rdi, rax                                                       ; +0x39, 0x10000bdb9\ncall    ButtonSprite__updateBGImage                                    ; +0x3c, 0x10000bdbc\ncall    GameManager__sharedState                                       ; +0x41, 0x10000bdc1\nmovzx   edx, byte ptr [rbx+304h]                                       ; +0x46, 0x10000bdc6\nlea     rsi, a0003; \"0003\"                                             ; +0x4d, 0x10000bdcd\nmov     rdi, rax                                                       ; +0x54, 0x10000bdd4\nadd     rsp, 8                                                         ; +0x57, 0x10000bdd7\npop     rbx                                                            ; +0x5b, 0x10000bddb\npop     rbp                                                            ; +0x5c, 0x10000bddc\njmp     GameManager__setGameVariable                                   ; +0x5d, 0x10000bddd", "xrefs": ["EditorUI::keyDown @ 0x100050b63", "EditorUI::init @ 0x10000995c"], "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"}