{"type": "func", "start": 4301298560, "end": 4301298769, "name": "EditorUI::swipeToPosition", "pseudocode": "// \n// EditorUI::swipeToPosition from 0x100609b80 to 0x100609c51 (209 bytes)\n// \n// 3 xrefs:\n// > EditorUI::finishTouchDelay @ 0x100609d46\n// > EditorUI::finishTouchDelay @ 0x100609d64\n// > EditorUI::ccTouchMoved @ 0x10060a62b\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:34:32 +0000\n// \n\nchar __fastcall EditorUI::swipeToPosition(__int64 a1, _QWORD *a2, double a3, double a4, __m128 a5)\n{\n  __int64 v6; // rax\n  __int64 v7; // [rsp-38h] [rbp-38h] BYREF\n  _QWORD v8[6]; // [rsp-30h] [rbp-30h] BYREF\n\n  if ( *(_BYTE *)(a1 + 688) )\n    return 0;\n  if ( !*(_BYTE *)(a1 + 860) )\n  {\n    v6 = cocos2d::CCDirector::sharedDirector();\n    if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6) + 128)\n      && *(_BYTE *)(a1 + 1568) != 1 )\n    {\n      return 0;\n    }\n  }\n  if ( *(_DWORD *)(a1 + 1436) == 3 )\n  {\n    sub_100278300((_QWORD *)(a1 + 1456), a2);\n  }\n  else\n  {\n    sub_1002782D0(&v7, a2);\n    EditorUI::getGridSnappedPos((__int64)v8, a1, (unsigned int *)&v7, a3, a4, a5);\n    sub_100278300((_QWORD *)(a1 + 872), v8);\n    sub_1002782D0(v8, a2);\n    EditorUI::clickOnPosition(a1, (__int64)v8);\n  }\n  cocos2d::CCNode::stopActionByTag(a1, 123);\n  return 1;\n}", "assembly": "; \n; EditorUI::swipeToPosition from 0x100609b80 to 0x100609c51 (209 bytes)\n; \n; 3 xrefs:\n; > EditorUI::finishTouchDelay @ 0x100609d46\n; > EditorUI::finishTouchDelay @ 0x100609d64\n; > EditorUI::ccTouchMoved @ 0x10060a62b\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:34:32 +0000\n; \ncmp     byte ptr [rdi+2B0h], 0                                         ; +0x0, 0x100609b80\njz      short loc_100609B8C                                            ; +0x7, 0x100609b87\nxor     eax, eax                                                       ; +0x9, 0x100609b89\nretn                                                                   ; +0xb, 0x100609b8b\npush    rbp                                                            ; +0xc, 0x100609b8c\nmov     rbp, rsp                                                       ; +0xd, 0x100609b8d\npush    r15                                                            ; +0x10, 0x100609b90\npush    r14                                                            ; +0x12, 0x100609b92\npush    r12                                                            ; +0x14, 0x100609b94\npush    rbx                                                            ; +0x16, 0x100609b96\nsub     rsp, 10h                                                       ; +0x17, 0x100609b97\nmov     rbx, rdi                                                       ; +0x1b, 0x100609b9b\ncmp     byte ptr [rdi+35Ch], 0                                         ; +0x1e, 0x100609b9e\njnz     short loc_100609BD0                                            ; +0x25, 0x100609ba5\nmov     r14, rsi                                                       ; +0x27, 0x100609ba7\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x2a, 0x100609baa\nmov     rcx, [rax]                                                     ; +0x2f, 0x100609baf\nmov     rdi, rax                                                       ; +0x32, 0x100609bb2\ncall    qword ptr [rcx+0C0h]                                           ; +0x35, 0x100609bb5\nmov     rsi, r14                                                       ; +0x3b, 0x100609bbb\ncmp     byte ptr [rax+80h], 0                                          ; +0x3e, 0x100609bbe\njnz     short loc_100609BD0                                            ; +0x45, 0x100609bc5\ncmp     byte ptr [rbx+620h], 1                                         ; +0x47, 0x100609bc7\njnz     short loc_100609C4D                                            ; +0x4e, 0x100609bce\ncmp     dword ptr [rbx+59Ch], 3                                        ; +0x50, 0x100609bd0\njnz     short loc_100609BE7                                            ; +0x57, 0x100609bd7\nlea     rdi, [rbx+5B0h]                                                ; +0x59, 0x100609bd9\ncall    sub_100278300                                                  ; +0x60, 0x100609be0\njmp     short loc_100609C31                                            ; +0x65, 0x100609be5\nlea     r14, [rbp-30h]                                                 ; +0x67, 0x100609be7\nmov     rdi, r14                                                       ; +0x6b, 0x100609beb\nmov     r15, rsi                                                       ; +0x6e, 0x100609bee\ncall    sub_1002782D0                                                  ; +0x71, 0x100609bf1\nlea     r12, [rbp-28h]                                                 ; +0x76, 0x100609bf6\nmov     rdi, r12                                                       ; +0x7a, 0x100609bfa\nmov     rsi, rbx                                                       ; +0x7d, 0x100609bfd\nmov     rdx, r14                                                       ; +0x80, 0x100609c00\ncall    EditorUI__getGridSnappedPos                                    ; +0x83, 0x100609c03\nlea     rdi, [rbx+368h]                                                ; +0x88, 0x100609c08\nmov     rsi, r12                                                       ; +0x8f, 0x100609c0f\ncall    sub_100278300                                                  ; +0x92, 0x100609c12\nlea     r14, [rbp-28h]                                                 ; +0x97, 0x100609c17\nmov     rdi, r14                                                       ; +0x9b, 0x100609c1b\nmov     rsi, r15                                                       ; +0x9e, 0x100609c1e\ncall    sub_1002782D0                                                  ; +0xa1, 0x100609c21\nmov     rdi, rbx                                                       ; +0xa6, 0x100609c26\nmov     rsi, r14                                                       ; +0xa9, 0x100609c29\ncall    EditorUI__clickOnPosition                                      ; +0xac, 0x100609c2c\nmov     rdi, rbx                                                       ; +0xb1, 0x100609c31\nmov     esi, 7Bh ; '{'                                                 ; +0xb4, 0x100609c34\ncall    cocos2d__CCNode__stopActionByTag                               ; +0xb9, 0x100609c39\nmov     al, 1                                                          ; +0xbe, 0x100609c3e\nadd     rsp, 10h                                                       ; +0xc0, 0x100609c40\npop     rbx                                                            ; +0xc4, 0x100609c44\npop     r12                                                            ; +0xc5, 0x100609c45\npop     r14                                                            ; +0xc7, 0x100609c47\npop     r15                                                            ; +0xc9, 0x100609c49\npop     rbp                                                            ; +0xcb, 0x100609c4b\nretn                                                                   ; +0xcc, 0x100609c4c\nxor     eax, eax                                                       ; +0xcd, 0x100609c4d\njmp     short loc_100609C40                                            ; +0xcf, 0x100609c4f", "xrefs": ["EditorUI::finishTouchDelay @ 0x100609d46", "EditorUI::finishTouchDelay @ 0x100609d64", "EditorUI::ccTouchMoved @ 0x10060a62b"], "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"}