{"type": "func", "start": 7274488, "end": 7274648, "name": "EditorUI::swipeToPosition", "pseudocode": "// \n// EditorUI::swipeToPosition from 0x6efff8 to 0x6f0098 (160 bytes)\n// \n// 3 xrefs:\n// > EditorUI::finishTouchDelay @ 0x6f00fa\n// > EditorUI::finishTouchDelay @ 0x6f010c\n// > EditorUI::ccTouchMoved @ 0x6f08b6\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:34 +0000\n// \n\nint __fastcall EditorUI::swipeToPosition(int a1, const cocos2d::CCPoint *a2)\n{\n  int v4; // r0\n  float v5; // r2\n  float v6; // r3\n  _BYTE v8[8]; // [sp+4h] [bp-14h] BYREF\n  float v9[2]; // [sp+Ch] [bp-Ch] BYREF\n\n  if ( *(_BYTE *)(a1 + 508) )\n    return 0;\n  if ( !*(_BYTE *)(a1 + 636) )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)a1);\n    if ( !*(_BYTE *)((*(int (__fastcall **)(int))(*(_DWORD *)v4 + 96))(v4) + 88) && !*(_BYTE *)(a1 + 1040) )\n      return 0;\n  }\n  if ( *(_DWORD *)(a1 + 940) == 3 )\n  {\n    cocos2d::CCPoint::operator=(a1 + 956, a2);\n  }\n  else\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, a2);\n    EditorUI::getGridSnappedPos((int)v8, a1, v9);\n    cocos2d::CCPoint::operator=(a1 + 648, v8);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, a2);\n    EditorUI::clickOnPosition(a1, COERCE_FLOAT(v9), v5, v6);\n  }\n  cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123);\n  return 1;\n}", "assembly": "; \n; EditorUI::swipeToPosition from 0x6efff8 to 0x6f0098 (160 bytes)\n; \n; 3 xrefs:\n; > EditorUI::finishTouchDelay @ 0x6f00fa\n; > EditorUI::finishTouchDelay @ 0x6f010c\n; > EditorUI::ccTouchMoved @ 0x6f08b6\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:34 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x6F0002)                ; +0x0, 0x6efff8\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x6efffa\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x6efffe\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x6f0000\nSUB             SP, SP, #0x18                                          ; +0xa, 0x6f0002\nMOV             R4, R0                                                 ; +0xc, 0x6f0004\nLDR             R2, [R3]                                               ; +0xe, 0x6f0006\nMOV             R7, R1                                                 ; +0x10, 0x6f0008\nMOV             R6, R3                                                 ; +0x12, 0x6f000a\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x14, 0x6f000c\nLDRB.W          R2, [R0,#0x1FC]                                        ; +0x16, 0x6f000e\nCMP             R2, #0                                                 ; +0x1a, 0x6f0012\nBNE             loc_6F008E                                             ; +0x1c, 0x6f0014\nLDRB.W          R3, [R0,#0x27C]                                        ; +0x1e, 0x6f0016\nCBNZ            R3, loc_6F0032                                         ; +0x22, 0x6f001a\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x24, 0x6f001c\nLDR             R3, [R0]                                               ; +0x28, 0x6f0020\nLDR             R3, [R3,#0x60]                                         ; +0x2a, 0x6f0022\nBLX             R3                                                     ; +0x2c, 0x6f0024\nLDRB.W          R3, [R0,#0x58]                                         ; +0x2e, 0x6f0026\nCBNZ            R3, loc_6F0032                                         ; +0x32, 0x6f002a\nLDRB.W          R3, [R4,#0x410]                                        ; +0x34, 0x6f002c\nCBZ             R3, loc_6F008E                                         ; +0x38, 0x6f0030\nLDR.W           R3, [R4,#0x3AC]                                        ; +0x3a, 0x6f0032\nCMP             R3, #3                                                 ; +0x3e, 0x6f0036\nBNE             loc_6F0046                                             ; +0x40, 0x6f0038\nADD.W           R0, R4, #0x3BC                                         ; +0x42, 0x6f003a\nMOV             R1, R7                                                 ; +0x46, 0x6f003e\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x48, 0x6f0040\nB               loc_6F0078                                             ; +0x4c, 0x6f0044\nADD             R5, SP, #0x18+var_C                                    ; +0x4e, 0x6f0046\nADD.W           R8, SP, #0x18+var_14                                   ; +0x50, 0x6f0048\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x54, 0x6f004c\nMOV             R0, R5; this                                           ; +0x56, 0x6f004e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x58, 0x6f0050\nMOV             R2, R5                                                 ; +0x5c, 0x6f0054\nMOV             R0, R8                                                 ; +0x5e, 0x6f0056\nMOV             R1, R4                                                 ; +0x60, 0x6f0058\nBL              _ZN8EditorUI17getGridSnappedPosEN7cocos2d7CCPointE; EditorUI::getGridSnappedPos(cocos2d::CCPoint) ; +0x62, 0x6f005a\nMOV             R1, R8                                                 ; +0x66, 0x6f005e\nADD.W           R0, R4, #0x288                                         ; +0x68, 0x6f0060\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x6c, 0x6f0064\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x70, 0x6f0068\nMOV             R0, R5; this                                           ; +0x72, 0x6f006a\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x74, 0x6f006c\nMOV             R0, R4                                                 ; +0x78, 0x6f0070\nMOV             R1, R5                                                 ; +0x7a, 0x6f0072\nBL              _ZN8EditorUI15clickOnPositionEN7cocos2d7CCPointE; EditorUI::clickOnPosition(cocos2d::CCPoint) ; +0x7c, 0x6f0074\nMOV             R0, R4; this                                           ; +0x80, 0x6f0078\nMOVS            R1, #0x7B ; '{'; int                                   ; +0x82, 0x6f007a\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x84, 0x6f007c\nMOVS            R0, #1                                                 ; +0x88, 0x6f0080\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x8a, 0x6f0082\nLDR             R3, [R6]                                               ; +0x8c, 0x6f0084\nCMP             R2, R3                                                 ; +0x8e, 0x6f0086\nBEQ             loc_6F0092                                             ; +0x90, 0x6f0088\nBLX             __stack_chk_fail                                       ; +0x92, 0x6f008a\nMOVS            R0, #0                                                 ; +0x96, 0x6f008e\nB               loc_6F0082                                             ; +0x98, 0x6f0090\nADD             SP, SP, #0x18                                          ; +0x9a, 0x6f0092\nPOP.W           {R4-R8,PC}                                             ; +0x9c, 0x6f0094", "xrefs": ["EditorUI::finishTouchDelay @ 0x6f00fa", "EditorUI::finishTouchDelay @ 0x6f010c", "EditorUI::ccTouchMoved @ 0x6f08b6"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}