{"type": "func", "start": 5370543536, "end": 5370543746, "name": "EditorUI::swipeToPosition", "pseudocode": "// \n// EditorUI::swipeToPosition from 0x1401bfdb0 to 0x1401bfe82 (210 bytes)\n// \n// 4 xrefs:\n// > EditorUI::finishTouchDelay @ 0x1401bff15\n// > EditorUI::finishTouchDelay @ 0x1401bff36\n// > EditorUI::ccTouchMoved @ 0x1401c0be1\n// > <???> @ 0x14091a66c\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:28:02 +0000\n// \n\nchar __fastcall EditorUI::swipeToPosition(__int64 a1, const struct cocos2d::CCPoint *a2)\n{\n  __int64 v4; // rax\n  float *v5; // rax\n  __int64 GridSnappedPos; // rax\n  __int64 v7; // rax\n  char v9; // [rsp+30h] [rbp+8h] BYREF\n  char v10; // [rsp+40h] [rbp+18h] BYREF\n\n  if ( *(_BYTE *)(a1 + 736) )\n    return 0;\n  if ( !*(_BYTE *)(a1 + 908) )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector(a1);\n    if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 176LL))(v4) + 152) && !*(_BYTE *)(a1 + 1640) )\n      return 0;\n  }\n  if ( *(_DWORD *)(a1 + 1508) == 3 )\n  {\n    cocos2d::CCPoint::operator=(a1 + 1528, a2);\n  }\n  else\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, a2);\n    GridSnappedPos = EditorUI::getGridSnappedPos(a1, (__int64)&v10, v5);\n    cocos2d::CCPoint::operator=(a1 + 920, GridSnappedPos);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, a2);\n    EditorUI::clickOnPosition(a1, v7);\n  }\n  cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123);\n  return 1;\n}", "assembly": "; \n; EditorUI::swipeToPosition from 0x1401bfdb0 to 0x1401bfe82 (210 bytes)\n; \n; 4 xrefs:\n; > EditorUI::finishTouchDelay @ 0x1401bff15\n; > EditorUI::finishTouchDelay @ 0x1401bff36\n; > EditorUI::ccTouchMoved @ 0x1401c0be1\n; > <???> @ 0x14091a66c\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:28:02 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401bfdb0\npush    rdi                                                            ; +0x5, 0x1401bfdb5\nsub     rsp, 20h                                                       ; +0x6, 0x1401bfdb6\ncmp     byte ptr [rcx+2E0h], 0                                         ; +0xa, 0x1401bfdba\nmov     rdi, rdx                                                       ; +0x11, 0x1401bfdc1\nmov     rbx, rcx                                                       ; +0x14, 0x1401bfdc4\njnz     loc_1401BFE75                                                  ; +0x17, 0x1401bfdc7\ncmp     byte ptr [rcx+38Ch], 0                                         ; +0x1d, 0x1401bfdcd\njnz     short loc_1401BFDFB                                            ; +0x24, 0x1401bfdd4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x26, 0x1401bfdd6\nmov     rcx, rax                                                       ; +0x2c, 0x1401bfddc\nmov     r8, [rax]                                                      ; +0x2f, 0x1401bfddf\ncall    qword ptr [r8+0B0h]                                            ; +0x32, 0x1401bfde2\ncmp     byte ptr [rax+98h], 0                                          ; +0x39, 0x1401bfde9\njnz     short loc_1401BFDFB                                            ; +0x40, 0x1401bfdf0\ncmp     byte ptr [rbx+668h], 0                                         ; +0x42, 0x1401bfdf2\njz      short loc_1401BFE75                                            ; +0x49, 0x1401bfdf9\ncmp     dword ptr [rbx+5E4h], 3                                        ; +0x4b, 0x1401bfdfb\nmov     rdx, rdi                                                       ; +0x52, 0x1401bfe02\njnz     short loc_1401BFE16                                            ; +0x55, 0x1401bfe05\nlea     rcx, [rbx+5F8h]                                                ; +0x57, 0x1401bfe07\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x5e, 0x1401bfe0e\njmp     short loc_1401BFE5A                                            ; +0x64, 0x1401bfe14\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x66, 0x1401bfe16\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x6b, 0x1401bfe1b\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x71, 0x1401bfe21\nmov     rcx, rbx                                                       ; +0x76, 0x1401bfe26\nmov     r8, rax                                                        ; +0x79, 0x1401bfe29\ncall    EditorUI__getGridSnappedPos                                    ; +0x7c, 0x1401bfe2c\nmov     rdx, rax                                                       ; +0x81, 0x1401bfe31\nlea     rcx, [rbx+398h]                                                ; +0x84, 0x1401bfe34\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x8b, 0x1401bfe3b\nmov     rdx, rdi                                                       ; +0x91, 0x1401bfe41\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x94, 0x1401bfe44\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x99, 0x1401bfe49\nmov     rdx, rax                                                       ; +0x9f, 0x1401bfe4f\nmov     rcx, rbx                                                       ; +0xa2, 0x1401bfe52\ncall    EditorUI__clickOnPosition                                      ; +0xa5, 0x1401bfe55\nmov     edx, 7Bh ; '{'                                                 ; +0xaa, 0x1401bfe5a\nmov     rcx, rbx                                                       ; +0xaf, 0x1401bfe5f\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0xb2, 0x1401bfe62\nmov     al, 1                                                          ; +0xb8, 0x1401bfe68\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xba, 0x1401bfe6a\nadd     rsp, 20h                                                       ; +0xbf, 0x1401bfe6f\npop     rdi                                                            ; +0xc3, 0x1401bfe73\nretn                                                                   ; +0xc4, 0x1401bfe74\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc5, 0x1401bfe75\nxor     al, al                                                         ; +0xca, 0x1401bfe7a\nadd     rsp, 20h                                                       ; +0xcc, 0x1401bfe7c\npop     rdi                                                            ; +0xd0, 0x1401bfe80\nretn                                                                   ; +0xd1, 0x1401bfe81", "xrefs": ["EditorUI::finishTouchDelay @ 0x1401bff15", "EditorUI::finishTouchDelay @ 0x1401bff36", "EditorUI::ccTouchMoved @ 0x1401c0be1", "<???> @ 0x14091a66c"], "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"}