{"type": "func", "start": 5370491872, "end": 5370492085, "name": "EditorUI::toggleSwipe", "pseudocode": "// \n// EditorUI::toggleSwipe from 0x1401b33e0 to 0x1401b34b5 (213 bytes)\n// \n// 4 xrefs:\n// > EditorUI::init @ 0x1401ac30c\n// > EditorUI::handleEditorAction @ 0x1401c2939\n// > EditorUI::init @ 0x1401aa597\n// > <???> @ 0x14091a018\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:56 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall EditorUI::toggleSwipe(__int64 a1)\n{\n  __int64 v2; // rax\n  const char *v3; // rdx\n  __int64 v4; // rcx\n  _QWORD *v5; // rdi\n  int v6; // ebx\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  *(_BYTE *)(a1 + 908) = *(_BYTE *)(a1 + 908) == 0;\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 952LL))(*(_QWORD *)(a1 + 1000));\n  v3 = \"GJ_button_01.png\";\n  if ( *(_BYTE *)(a1 + 908) )\n    v3 = \"GJ_button_02.png\";\n  ButtonSprite::updateBGImage(v2, v3);\n  v4 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v7 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v4 = qword_14090BFD0;\n  }\n  GameManager::setGameVariable(v4, \"0003\", *(unsigned __int8 *)(a1 + 908));\n  v5 = (_QWORD *)EditorSFXManager::sharedState();\n  v6 = 192;\n  if ( !EditorSFXManager::hasSoundsForAction(v5, 192) )\n    v6 = 189;\n  EditorSFXManager::playAction((__int64)v5, v6);\n}", "assembly": "; \n; EditorUI::toggleSwipe from 0x1401b33e0 to 0x1401b34b5 (213 bytes)\n; \n; 4 xrefs:\n; > EditorUI::init @ 0x1401ac30c\n; > EditorUI::handleEditorAction @ 0x1401c2939\n; > EditorUI::init @ 0x1401aa597\n; > <???> @ 0x14091a018\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:56 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401b33e0\npush    rdi                                                            ; +0x5, 0x1401b33e5\nsub     rsp, 20h                                                       ; +0x6, 0x1401b33e6\nmov     rbx, rcx                                                       ; +0xa, 0x1401b33ea\ncmp     byte ptr [rcx+38Ch], 0                                         ; +0xd, 0x1401b33ed\nsetz    al                                                             ; +0x14, 0x1401b33f4\nmov     [rcx+38Ch], al                                                 ; +0x17, 0x1401b33f7\nmov     rcx, [rcx+3E8h]                                                ; +0x1d, 0x1401b33fd\nmov     rax, [rcx]                                                     ; +0x24, 0x1401b3404\ncall    qword ptr [rax+3B8h]                                           ; +0x27, 0x1401b3407\nlea     rcx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x2d, 0x1401b340d\nlea     rdx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x34, 0x1401b3414\ncmp     byte ptr [rbx+38Ch], 0                                         ; +0x3b, 0x1401b341b\ncmovnz  rdx, rcx                                                       ; +0x42, 0x1401b3422\nmov     rcx, rax                                                       ; +0x46, 0x1401b3426\ncall    ButtonSprite__updateBGImage                                    ; +0x49, 0x1401b3429\nmov     rcx, cs:qword_14090BFD0                                        ; +0x4e, 0x1401b342e\ntest    rcx, rcx                                                       ; +0x55, 0x1401b3435\njnz     short loc_1401B346C                                            ; +0x58, 0x1401b3438\nmov     ecx, 6E8h; Size                                                ; +0x5a, 0x1401b343a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5f, 0x1401b343f\nmov     [rsp+28h+arg_0], rax                                           ; +0x64, 0x1401b3444\nmov     rcx, rax                                                       ; +0x69, 0x1401b3449\ncall    GameManager__GameManager                                       ; +0x6c, 0x1401b344c\nnop                                                                    ; +0x71, 0x1401b3451\nmov     cs:qword_14090BFD0, rax                                        ; +0x72, 0x1401b3452\nmov     rcx, [rax]                                                     ; +0x79, 0x1401b3459\nmov     rdx, [rcx+48h]                                                 ; +0x7c, 0x1401b345c\nmov     rcx, rax                                                       ; +0x80, 0x1401b3460\ncall    rdx                                                            ; +0x83, 0x1401b3463\nmov     rcx, cs:qword_14090BFD0                                        ; +0x85, 0x1401b3465\nmovzx   r8d, byte ptr [rbx+38Ch]                                       ; +0x8c, 0x1401b346c\nlea     rdx, a0003; \"0003\"                                             ; +0x94, 0x1401b3474\ncall    GameManager__setGameVariable                                   ; +0x9b, 0x1401b347b\ncall    EditorSFXManager__sharedState                                  ; +0xa0, 0x1401b3480\nmov     rdi, rax                                                       ; +0xa5, 0x1401b3485\nmov     ebx, 0C0h                                                      ; +0xa8, 0x1401b3488\nmov     edx, ebx                                                       ; +0xad, 0x1401b348d\nmov     rcx, rax                                                       ; +0xaf, 0x1401b348f\ncall    EditorSFXManager__hasSoundsForAction                           ; +0xb2, 0x1401b3492\nmov     ecx, 0BDh                                                      ; +0xb7, 0x1401b3497\ntest    al, al                                                         ; +0xbc, 0x1401b349c\ncmovz   ebx, ecx                                                       ; +0xbe, 0x1401b349e\nmov     edx, ebx                                                       ; +0xc1, 0x1401b34a1\nmov     rcx, rdi                                                       ; +0xc3, 0x1401b34a3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc6, 0x1401b34a6\nadd     rsp, 20h                                                       ; +0xcb, 0x1401b34ab\npop     rdi                                                            ; +0xcf, 0x1401b34af\njmp     EditorSFXManager__playAction                                   ; +0xd0, 0x1401b34b0", "xrefs": ["EditorUI::init @ 0x1401ac30c", "EditorUI::handleEditorAction @ 0x1401c2939", "EditorUI::init @ 0x1401aa597", "<???> @ 0x14091a018"], "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"}