{"type": "func", "start": 12407344, "end": 12407604, "name": "EditorUI::swipeToPosition", "pseudocode": "// \n// EditorUI::swipeToPosition from 0xbd5230 to 0xbd5334 (260 bytes)\n// \n// 4 xrefs:\n// > EditorUI::finishTouchDelay @ 0xbd53fc\n// > EditorUI::finishTouchDelay @ 0xbd541c\n// > EditorUI::ccTouchMoved @ 0xbd5e24\n// > <???> @ 0x8e8a0\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 13:03:39 +0000\n// \n\n__int64 __fastcall EditorUI::swipeToPosition(__int64 a1, const cocos2d::CCPoint *a2)\n{\n  cocos2d::CCDirector *v4; // x0\n  __int64 v6; // x0\n  _BYTE v7[8]; // [xsp+48h] [xbp+48h] BYREF\n  float v8; // [xsp+50h] [xbp+50h] BYREF\n\n  if ( *(_BYTE *)(a1 + 688) )\n    return 0;\n  v4 = (cocos2d::CCDirector *)*(unsigned __int8 *)(a1 + 860);\n  if ( !*(_BYTE *)(a1 + 860) )\n  {\n    v6 = cocos2d::CCDirector::sharedDirector(v4);\n    if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6) + 128) && !*(_BYTE *)(a1 + 1568) )\n      return 0;\n  }\n  if ( *(_DWORD *)(a1 + 1436) == 3 )\n  {\n    cocos2d::CCPoint::operator=(a1 + 1456, a2);\n  }\n  else\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, a2);\n    EditorUI::getGridSnappedPos(a1, &v8, (__int64)v7);\n    cocos2d::CCPoint::operator=(a1 + 872, v7);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, a2);\n    EditorUI::clickOnPosition(a1, &v8);\n  }\n  cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123);\n  return 1;\n}", "assembly": "; \n; EditorUI::swipeToPosition from 0xbd5230 to 0xbd5334 (260 bytes)\n; \n; 4 xrefs:\n; > EditorUI::finishTouchDelay @ 0xbd53fc\n; > EditorUI::finishTouchDelay @ 0xbd541c\n; > EditorUI::ccTouchMoved @ 0xbd5e24\n; > <???> @ 0x8e8a0\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 13:03:39 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xbd5230\nMOV             X29, SP                                                ; +0x4, 0xbd5234\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0xbd5238\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xbd523c\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x10, 0xbd5240\nMOV             X23, X1                                                ; +0x14, 0xbd5244\nMOV             X19, X0                                                ; +0x18, 0xbd5248\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x1c, 0xbd524c\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xbd5250\nLDRB            W0, [X0,#0x2B0]                                        ; +0x24, 0xbd5254\nLDR             X1, [X1]                                               ; +0x28, 0xbd5258\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x2c, 0xbd525c\nCBNZ            W0, loc_BD52F4                                         ; +0x30, 0xbd5260\nLDRB            W0, [X19,#0x35C]; this                                 ; +0x34, 0xbd5264\nCBZ             W0, loc_BD52D4                                         ; +0x38, 0xbd5268\nLDR             W0, [X19,#0x59C]                                       ; +0x3c, 0xbd526c\nCMP             W0, #3                                                 ; +0x40, 0xbd5270\nB.EQ            loc_BD5320                                             ; +0x44, 0xbd5274\nADD             X21, X29, #0x60+var_10                                 ; +0x48, 0xbd5278\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x4c, 0xbd527c\nMOV             X0, X21; this                                          ; +0x50, 0xbd5280\nADD             X22, X29, #0x60+var_18                                 ; +0x54, 0xbd5284\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x58, 0xbd5288\nMOV             X8, X22                                                ; +0x5c, 0xbd528c\nMOV             X0, X19                                                ; +0x60, 0xbd5290\nMOV             X1, X21                                                ; +0x64, 0xbd5294\nBL              _ZN8EditorUI17getGridSnappedPosEN7cocos2d7CCPointE; EditorUI::getGridSnappedPos(cocos2d::CCPoint) ; +0x68, 0xbd5298\nMOV             X1, X22                                                ; +0x6c, 0xbd529c\nADD             X0, X19, #0x368                                        ; +0x70, 0xbd52a0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x74, 0xbd52a4\nMOV             X0, X21; this                                          ; +0x78, 0xbd52a8\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x7c, 0xbd52ac\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x80, 0xbd52b0\nMOV             X0, X19                                                ; +0x84, 0xbd52b4\nMOV             X1, X21                                                ; +0x88, 0xbd52b8\nBL              _ZN8EditorUI15clickOnPositionEN7cocos2d7CCPointE; EditorUI::clickOnPosition(cocos2d::CCPoint) ; +0x8c, 0xbd52bc\nMOV             X0, X19; this                                          ; +0x90, 0xbd52c0\nMOV             W1, #0x7B ; '{'; int                                   ; +0x94, 0xbd52c4\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x98, 0xbd52c8\nMOV             W0, #1                                                 ; +0x9c, 0xbd52cc\nB               loc_BD52F8                                             ; +0xa0, 0xbd52d0\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xa4, 0xbd52d4\nLDR             X1, [X0]                                               ; +0xa8, 0xbd52d8\nLDR             X1, [X1,#0xC0]                                         ; +0xac, 0xbd52dc\nBLR             X1                                                     ; +0xb0, 0xbd52e0\nLDRB            W0, [X0,#0x80]                                         ; +0xb4, 0xbd52e4\nCBNZ            W0, loc_BD526C                                         ; +0xb8, 0xbd52e8\nLDRB            W0, [X19,#0x620]                                       ; +0xbc, 0xbd52ec\nCBNZ            W0, loc_BD526C                                         ; +0xc0, 0xbd52f0\nMOV             W0, #0                                                 ; +0xc4, 0xbd52f4\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xc8, 0xbd52f8\nLDR             X2, [X29,#0x60+var_8]                                  ; +0xcc, 0xbd52fc\nLDR             X1, [X20]                                              ; +0xd0, 0xbd5300\nCMP             X2, X1                                                 ; +0xd4, 0xbd5304\nB.NE            loc_BD5330                                             ; +0xd8, 0xbd5308\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xdc, 0xbd530c\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xe0, 0xbd5310\nLDR             X23, [SP,#0x60+var_30]                                 ; +0xe4, 0xbd5314\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xe8, 0xbd5318\nRET                                                                    ; +0xec, 0xbd531c\nADD             X0, X19, #0x5B0                                        ; +0xf0, 0xbd5320\nMOV             X1, X23                                                ; +0xf4, 0xbd5324\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xf8, 0xbd5328\nB               loc_BD52C0                                             ; +0xfc, 0xbd532c\nBL              .__stack_chk_fail                                      ; +0x100, 0xbd5330", "xrefs": ["EditorUI::finishTouchDelay @ 0xbd53fc", "EditorUI::finishTouchDelay @ 0xbd541c", "EditorUI::ccTouchMoved @ 0xbd5e24", "<???> @ 0x8e8a0"], "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"}