{"type": "func", "start": 5369902896, "end": 5369903106, "name": "EditorUI::triggerSwipeMode", "pseudocode": "// \n// EditorUI::triggerSwipeMode from 0x140123730 to 0x140123802 (210 bytes)\n// \n// 2 xrefs:\n// > EditorUI::ccTouchBegan @ 0x140123e0f\n// > <???> @ 0x1406c99b4\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::triggerSwipeMode(EditorUI *a1)\n{\n  bool v1; // zf\n  CCCircleWave *v3; // rbx\n  CCCircleWave_vtbl *v4; // r8\n\n  v1 = a1->m_selectedMode == 3;\n  a1->m_swipeModeTriggered = 1;\n  if ( v1 )\n  {\n    a1->m_swipeActive = 1;\n    cocos2d::CCPoint::operator=(&a1->m_swipeEnd, &a1->m_swipeStart);\n    if ( !a1->m_continuousSnap )\n    {\n      a1->m_snapObject = nullptr;\n      a1->m_snapObjectExists = 0;\n    }\n  }\n  v3 = CCCircleWave::create(1.0, 30.0, 0.2, 0, 0);\n  v4 = v3->__vftable;\n  *(_WORD *)&v3->m_color.r = -1;\n  v3->m_color.b = -1;\n  v4->setPosition_0(v3, &a1->m_swipeStart);\n  a1->addChild_0(a1, v3, 0);\n  v3->m_circleMode = Outline;\n}", "assembly": "; \n; EditorUI::triggerSwipeMode from 0x140123730 to 0x140123802 (210 bytes)\n; \n; 2 xrefs:\n; > EditorUI::ccTouchBegan @ 0x140123e0f\n; > <???> @ 0x1406c99b4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140123730\npush    rdi                                                            ; +0x5, 0x140123735\nsub     rsp, 30h                                                       ; +0x6, 0x140123736\ncmp     dword ptr [rcx+4F8h], 3                                        ; +0xa, 0x14012373a\nmov     rdi, rcx                                                       ; +0x11, 0x140123741\nmov     byte ptr [rcx+580h], 1                                         ; +0x14, 0x140123744\njnz     short loc_140123783                                            ; +0x1b, 0x14012374b\nmov     byte ptr [rcx+31Dh], 1                                         ; +0x1d, 0x14012374d\nlea     rdx, [rcx+508h]                                                ; +0x24, 0x140123754\nadd     rcx, 510h                                                      ; +0x2b, 0x14012375b\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x32, 0x140123762\ncmp     byte ptr [rdi+31Fh], 0                                         ; +0x38, 0x140123768\njnz     short loc_140123783                                            ; +0x3f, 0x14012376f\nmov     qword ptr [rdi+540h], 0                                        ; +0x41, 0x140123771\nmov     byte ptr [rdi+321h], 0                                         ; +0x4c, 0x14012377c\nmovss   xmm2, cs:dword_140622A74                                       ; +0x53, 0x140123783\nxor     r9d, r9d                                                       ; +0x5b, 0x14012378b\nmovss   xmm1, cs:dword_140623164                                       ; +0x5e, 0x14012378e\nmovss   xmm0, cs:flt_140622C24                                         ; +0x66, 0x140123796\nmov     [rsp+38h+var_18], 0                                            ; +0x6e, 0x14012379e\ncall    CCCircleWave__create                                           ; +0x73, 0x1401237a3\nmovzx   ecx, cs:word_140529A48                                         ; +0x78, 0x1401237a8\nlea     rdx, [rdi+508h]                                                ; +0x7f, 0x1401237af\nmov     rbx, rax                                                       ; +0x86, 0x1401237b6\nmov     r8, [rax]                                                      ; +0x89, 0x1401237b9\nmov     [rax+154h], cx                                                 ; +0x8c, 0x1401237bc\nmovzx   ecx, cs:byte_140529A4A                                         ; +0x93, 0x1401237c3\nmov     [rax+156h], cl                                                 ; +0x9a, 0x1401237ca\nmov     rcx, rax                                                       ; +0xa0, 0x1401237d0\ncall    qword ptr [r8+0B8h]                                            ; +0xa3, 0x1401237d3\nmov     r9, [rdi]                                                      ; +0xaa, 0x1401237da\nxor     r8d, r8d                                                       ; +0xad, 0x1401237dd\nmov     rdx, rbx                                                       ; +0xb0, 0x1401237e0\nmov     rcx, rdi                                                       ; +0xb3, 0x1401237e3\ncall    qword ptr [r9+1B8h]                                            ; +0xb6, 0x1401237e6\nmov     dword ptr [rbx+160h], 1                                        ; +0xbd, 0x1401237ed\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc7, 0x1401237f7\nadd     rsp, 30h                                                       ; +0xcc, 0x1401237fc\npop     rdi                                                            ; +0xd0, 0x140123800\nretn                                                                   ; +0xd1, 0x140123801", "xrefs": ["EditorUI::ccTouchBegan @ 0x140123e0f", "<???> @ 0x1406c99b4"], "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"}