{"type": "func", "start": 4294999632, "end": 4294999753, "name": "EditorUI::toggleSwipe", "pseudocode": "// \n// EditorUI::toggleSwipe from 0x100007e50 to 0x100007ec9 (121 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060c87d\n// > EditorUI::init @ 0x100005beb\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:18:48 +0000\n// \n\n__int64 __fastcall EditorUI::toggleSwipe(__int64 a1)\n{\n  __int64 v2; // rax\n  const char *v3; // rsi\n  __int64 v4; // rdi\n  __int64 v5; // rdx\n  __int64 v6; // rax\n  __int64 v7; // rax\n\n  *(_BYTE *)(a1 + 860) ^= 1u;\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 952) + 1072LL))(*(_QWORD *)(a1 + 952));\n  v3 = \"GJ_button_01.png\";\n  if ( *(_BYTE *)(a1 + 860) )\n    v3 = \"GJ_button_02.png\";\n  v4 = v2;\n  ButtonSprite::updateBGImage(v2, v3);\n  v6 = GameManager::sharedState(v4, v3, v5);\n  GameManager::setGameVariable(v6, \"0003\", *(unsigned __int8 *)(a1 + 860));\n  v7 = EditorSFXManager::sharedState();\n  return EditorSFXManager::playAction(v7, 192, 189);\n}", "assembly": "; \n; EditorUI::toggleSwipe from 0x100007e50 to 0x100007ec9 (121 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060c87d\n; > EditorUI::init @ 0x100005beb\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:18:48 +0000\n; \npush    rbp                                                            ; +0x0, 0x100007e50\nmov     rbp, rsp                                                       ; +0x1, 0x100007e51\npush    rbx                                                            ; +0x4, 0x100007e54\npush    rax                                                            ; +0x5, 0x100007e55\nmov     rbx, rdi                                                       ; +0x6, 0x100007e56\nxor     byte ptr [rdi+35Ch], 1                                         ; +0x9, 0x100007e59\nmov     rdi, [rdi+3B8h]                                                ; +0x10, 0x100007e60\nmov     rax, [rdi]                                                     ; +0x17, 0x100007e67\ncall    qword ptr [rax+430h]                                           ; +0x1a, 0x100007e6a\nlea     rcx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x20, 0x100007e70\nlea     rsi, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x27, 0x100007e77\ncmp     byte ptr [rbx+35Ch], 0                                         ; +0x2e, 0x100007e7e\ncmovnz  rsi, rcx                                                       ; +0x35, 0x100007e85\nmov     rdi, rax                                                       ; +0x39, 0x100007e89\ncall    ButtonSprite__updateBGImage                                    ; +0x3c, 0x100007e8c\ncall    GameManager__sharedState                                       ; +0x41, 0x100007e91\nmovzx   edx, byte ptr [rbx+35Ch]                                       ; +0x46, 0x100007e96\nlea     rsi, a0003; \"0003\"                                             ; +0x4d, 0x100007e9d\nmov     rdi, rax                                                       ; +0x54, 0x100007ea4\ncall    GameManager__setGameVariable                                   ; +0x57, 0x100007ea7\ncall    EditorSFXManager__sharedState                                  ; +0x5c, 0x100007eac\nmov     rdi, rax                                                       ; +0x61, 0x100007eb1\nmov     esi, 0C0h                                                      ; +0x64, 0x100007eb4\nmov     edx, 0BDh                                                      ; +0x69, 0x100007eb9\nadd     rsp, 8                                                         ; +0x6e, 0x100007ebe\npop     rbx                                                            ; +0x72, 0x100007ec2\npop     rbp                                                            ; +0x73, 0x100007ec3\njmp     EditorSFXManager__playAction                                   ; +0x74, 0x100007ec4", "xrefs": ["EditorUI::handleEditorAction @ 0x10060c87d", "EditorUI::init @ 0x100005beb"], "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"}