{"type": "func", "start": 4299623576, "end": 4299623696, "name": "EditorUI::toggleSwipe", "pseudocode": "// \n// EditorUI::toggleSwipe from 0x100470c98 to 0x100470d10 (120 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x1001632d8\n// > EditorUI::init @ 0x10047094c\n// > EditorUI::init @ 0x10046ed8c\n// \n// This function is hookable on this platform (idp: arm, 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:05:38 +0000\n// \n\n__int64 __fastcall EditorUI::toggleSwipe(__int64 a1)\n{\n  __int64 v2; // x0\n  const char *v3; // x1\n  __int64 v4; // x0\n  __n128 v5; // q0\n  __int64 v6; // x0\n\n  *(_BYTE *)(a1 + 860) ^= 1u;\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 952) + 1072LL))(*(_QWORD *)(a1 + 952));\n  if ( *(_BYTE *)(a1 + 860) )\n    v3 = \"GJ_button_02.png\";\n  else\n    v3 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v2, (__int64)v3);\n  v4 = GameManager::sharedState();\n  GameManager::setGameVariable(v4, \"0003\", *(unsigned __int8 *)(a1 + 860));\n  v6 = EditorSFXManager::sharedState(v5);\n  return EditorSFXManager::playAction(v6, 192, 189);\n}", "assembly": "; \n; EditorUI::toggleSwipe from 0x100470c98 to 0x100470d10 (120 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x1001632d8\n; > EditorUI::init @ 0x10047094c\n; > EditorUI::init @ 0x10046ed8c\n; \n; This function is hookable on this platform (idp: arm, 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:05:38 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100470c98\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100470c9c\nADD             X29, SP, #0x10                                         ; +0x8, 0x100470ca0\nMOV             X19, X0                                                ; +0xc, 0x100470ca4\nLDRB            W8, [X0,#0x35C]                                        ; +0x10, 0x100470ca8\nEOR             W8, W8, #1                                             ; +0x14, 0x100470cac\nSTRB            W8, [X0,#0x35C]                                        ; +0x18, 0x100470cb0\nLDR             X0, [X0,#0x3B8]                                        ; +0x1c, 0x100470cb4\nLDR             X8, [X0]                                               ; +0x20, 0x100470cb8\nLDR             X8, [X8,#0x430]                                        ; +0x24, 0x100470cbc\nBLR             X8                                                     ; +0x28, 0x100470cc0\nLDRB            W8, [X19,#0x35C]                                       ; +0x2c, 0x100470cc4\nADRL            X9, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x30, 0x100470cc8\nADRL            X10, aGjButton02Png; \"GJ_button_02.png\"                ; +0x38, 0x100470cd0\nCMP             W8, #0                                                 ; +0x40, 0x100470cd8\nCSEL            X1, X10, X9, NE                                        ; +0x44, 0x100470cdc\nBL              ButtonSprite__updateBGImage                            ; +0x48, 0x100470ce0\nBL              GameManager__sharedState                               ; +0x4c, 0x100470ce4\nLDRB            W2, [X19,#0x35C]                                       ; +0x50, 0x100470ce8\nADRL            X1, a0003; \"0003\"                                      ; +0x54, 0x100470cec\nBL              GameManager__setGameVariable                           ; +0x5c, 0x100470cf4\nBL              EditorSFXManager__sharedState                          ; +0x60, 0x100470cf8\nMOV             W1, #0xC0                                              ; +0x64, 0x100470cfc\nMOV             W2, #0xBD                                              ; +0x68, 0x100470d00\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x6c, 0x100470d04\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x70, 0x100470d08\nB               EditorSFXManager__playAction                           ; +0x74, 0x100470d0c", "xrefs": ["EditorUI::handleEditorAction @ 0x1001632d8", "EditorUI::init @ 0x10047094c", "EditorUI::init @ 0x10046ed8c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}