{"type": "func", "start": 7274064, "end": 7274484, "name": "EditorUI::startFreeMoveTouch", "pseudocode": "// \n// EditorUI::startFreeMoveTouch from 0x6efe50 to 0x6efff4 (420 bytes)\n// \n// 1 xrefs:\n// > EditorUI::finishTouchDelay @ 0x6f00d0\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\ncocos2d::CCObject *__fastcall EditorUI::startFreeMoveTouch(EditorUI *this)\n{\n  const cocos2d::CCPoint *v1; // r9\n  cocos2d::CCDirector *v3; // r0\n  int v4; // r0\n  cocos2d::CCArray *v5; // r0\n  unsigned int v6; // r6\n  int v7; // r10\n  cocos2d::CCArray *v8; // r10\n  int v9; // r0\n  float v10; // r2\n  float v11; // r3\n  int v12; // r0\n  int v13; // r0\n  cocos2d::CCObject *result; // r0\n  cocos2d::CCObject *v15; // r5\n  _BYTE v16[8]; // [sp+4h] [bp-14h] BYREF\n  float v17[2]; // [sp+Ch] [bp-Ch] BYREF\n\n  v1 = (EditorUI *)((char *)this + 948);\n  *((_BYTE *)this + 642) = 0;\n  *((_DWORD *)this + 250) = 0;\n  v3 = (cocos2d::CCDirector *)cocos2d::CCNode::convertToNodeSpace(\n                                (cocos2d::CCNode *)v16,\n                                *(const cocos2d::CCPoint **)(*((_DWORD *)this + 236) + 2436));\n  v4 = cocos2d::CCDirector::sharedDirector(v3);\n  if ( *(_BYTE *)((*(int (__fastcall **)(int))(*(_DWORD *)v4 + 96))(v4) + 90)\n    && (*((_DWORD *)this + 249) || cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167))) )\n  {\n    EditorUI::onDuplicate(this, nullptr);\n    *((_BYTE *)this + 509) = 1;\n  }\n  v5 = *((cocos2d::CCArray **)this + 167);\n  *((_BYTE *)this + 1006) = 0;\n  v6 = cocos2d::CCArray::count(v5);\n  if ( v6 )\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (const cocos2d::CCPoint *)v16);\n    EditorUI::findSnapObject((cocos2d::CCArray **)this, (const cocos2d::CCPoint *)v17, 0.0);\n  }\n  else\n  {\n    if ( !*((_DWORD *)this + 249) )\n      goto LABEL_15;\n    v7 = *((_DWORD *)this + 236);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (const cocos2d::CCPoint *)v16);\n    v8 = LevelEditorLayer::objectsAtPosition(v7, v17);\n    while ( v6 < cocos2d::CCArray::count(v8) )\n    {\n      v9 = cocos2d::CCArray::objectAtIndex(v8, v6);\n      if ( *(_DWORD *)(v9 + 780) == *(_DWORD *)(*((_DWORD *)this + 249) + 780) )\n      {\n        *((_DWORD *)this + 250) = v9;\n        break;\n      }\n      ++v6;\n    }\n    if ( !*((_DWORD *)this + 250) && (!*((_DWORD *)this + 249) || !*((_BYTE *)this + 636)) )\n    {\nLABEL_15:\n      *((_BYTE *)this + 510) = 1;\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v1);\n      EditorUI::clickOnPosition((int)this, COERCE_FLOAT(v17), v10, v11);\n      if ( *((_BYTE *)this + 642) )\n        *((_DWORD *)this + 250) = *((_DWORD *)this + 249);\n    }\n  }\n  if ( *((_BYTE *)this + 1006)\n    && !*((_DWORD *)this + 250)\n    && cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) )\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (const cocos2d::CCPoint *)v16);\n    EditorUI::findSnapObject((cocos2d::CCArray **)this, (const cocos2d::CCPoint *)v17, 0.0);\n  }\n  v12 = *((_DWORD *)this + 250);\n  if ( v12 )\n  {\n    *((_BYTE *)this + 641) = 1;\n    v13 = (*(int (__fastcall **)(int))(*(_DWORD *)v12 + 96))(v12);\n    cocos2d::CCPoint::operator=((char *)this + 660, v13);\n  }\n  result = (cocos2d::CCObject *)cocos2d::CCPoint::operator=((char *)this + 980, v16);\n  if ( !*((_BYTE *)this + 509) )\n  {\n    result = EditorUI::createUndoObject((int)this, 5, 1);\n    v15 = result;\n    if ( *((cocos2d::CCObject **)this + 126) != result )\n    {\n      if ( result )\n        cocos2d::CCObject::retain(result);\n      result = *((cocos2d::CCObject **)this + 126);\n      if ( result )\n        result = (cocos2d::CCObject *)cocos2d::CCObject::release(result);\n      *((_DWORD *)this + 126) = v15;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::startFreeMoveTouch from 0x6efe50 to 0x6efff4 (420 bytes)\n; \n; 1 xrefs:\n; > EditorUI::finishTouchDelay @ 0x6f00d0\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; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x6efe50\nSUB             SP, SP, #0x18                                          ; +0x4, 0x6efe54\nLDR             R7, =(__stack_chk_guard_ptr - 0x6EFE66)                ; +0x6, 0x6efe56\nADD.W           R9, R0, #0x3B4                                         ; +0x8, 0x6efe58\nADD.W           R8, SP, #0x18+var_14                                   ; +0xc, 0x6efe5c\nMOV             R4, R0                                                 ; +0x10, 0x6efe60\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x12, 0x6efe62\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x14, 0x6efe64\nMOV             R2, R9                                                 ; +0x16, 0x6efe66\nLDR             R3, [R7]                                               ; +0x18, 0x6efe68\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1a, 0x6efe6a\nMOVS            R3, #0                                                 ; +0x1c, 0x6efe6c\nSTRB.W          R3, [R0,#0x282]                                        ; +0x1e, 0x6efe6e\nSTR.W           R3, [R0,#0x3E8]                                        ; +0x22, 0x6efe72\nLDR.W           R3, [R0,#0x3B0]                                        ; +0x26, 0x6efe76\nMOV             R0, R8; this                                           ; +0x2a, 0x6efe7a\nLDR.W           R1, [R3,#0x984]; cocos2d::CCPoint *                    ; +0x2c, 0x6efe7c\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x30, 0x6efe80\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x34, 0x6efe84\nLDR             R3, [R0]                                               ; +0x38, 0x6efe88\nLDR             R3, [R3,#0x60]                                         ; +0x3a, 0x6efe8a\nBLX             R3                                                     ; +0x3c, 0x6efe8c\nLDRB.W          R3, [R0,#0x5A]                                         ; +0x3e, 0x6efe8e\nCBZ             R3, loc_6EFEAC                                         ; +0x42, 0x6efe92\nLDR.W           R3, [R4,#0x3E4]                                        ; +0x44, 0x6efe94\nCMP             R3, #0                                                 ; +0x48, 0x6efe98\nBNE.W           loc_6EFFBE                                             ; +0x4a, 0x6efe9a\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0x4e, 0x6efe9e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x52, 0x6efea2\nCMP             R0, #0                                                 ; +0x56, 0x6efea6\nBNE.W           loc_6EFFBE                                             ; +0x58, 0x6efea8\nMOVS            R3, #0                                                 ; +0x5c, 0x6efeac\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0x5e, 0x6efeae\nSTRB.W          R3, [R4,#0x3EE]                                        ; +0x62, 0x6efeb2\nADD             R5, SP, #0x18+var_C                                    ; +0x66, 0x6efeb6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x68, 0x6efeb8\nMOV             R6, R0                                                 ; +0x6c, 0x6efebc\nCBZ             R0, loc_6EFED4                                         ; +0x6e, 0x6efebe\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x70, 0x6efec0\nMOV             R0, R5; this                                           ; +0x72, 0x6efec2\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x74, 0x6efec4\nMOV             R0, R4                                                 ; +0x78, 0x6efec8\nMOV             R1, R5                                                 ; +0x7a, 0x6efeca\nMOVS            R2, #0                                                 ; +0x7c, 0x6efecc\nBL              _ZN8EditorUI14findSnapObjectEN7cocos2d7CCPointEf; EditorUI::findSnapObject(cocos2d::CCPoint,float) ; +0x7e, 0x6efece\nB               loc_6EFF52                                             ; +0x82, 0x6efed2\nLDR.W           R3, [R4,#0x3E4]                                        ; +0x84, 0x6efed4\nCBZ             R3, loc_6EFF2E                                         ; +0x88, 0x6efed8\nLDR.W           R10, [R4,#0x3B0]                                       ; +0x8a, 0x6efeda\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x8e, 0x6efede\nMOV             R0, R5; this                                           ; +0x90, 0x6efee0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x92, 0x6efee2\nMOV             R1, R5                                                 ; +0x96, 0x6efee6\nMOV             R0, R10                                                ; +0x98, 0x6efee8\nBL              _ZN16LevelEditorLayer17objectsAtPositionEN7cocos2d7CCPointE; LevelEditorLayer::objectsAtPosition(cocos2d::CCPoint) ; +0x9a, 0x6efeea\nMOV             R10, R0                                                ; +0x9e, 0x6efeee\nMOV             R0, R10; this                                          ; +0xa0, 0x6efef0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa2, 0x6efef2\nCMP             R6, R0                                                 ; +0xa6, 0x6efef6\nBCS             loc_6EFF1C                                             ; +0xa8, 0x6efef8\nMOV             R0, R10; this                                          ; +0xaa, 0x6efefa\nMOV             R1, R6; unsigned int                                   ; +0xac, 0x6efefc\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xae, 0x6efefe\nLDR.W           R2, [R4,#0x3E4]                                        ; +0xb2, 0x6eff02\nLDR.W           R2, [R2,#0x30C]                                        ; +0xb6, 0x6eff06\nLDR.W           R3, [R0,#0x30C]                                        ; +0xba, 0x6eff0a\nCMP             R3, R2                                                 ; +0xbe, 0x6eff0e\nBNE             loc_6EFF18                                             ; +0xc0, 0x6eff10\nSTR.W           R0, [R4,#0x3E8]                                        ; +0xc2, 0x6eff12\nB               loc_6EFF1C                                             ; +0xc6, 0x6eff16\nADDS            R6, #1                                                 ; +0xc8, 0x6eff18\nB               loc_6EFEF0                                             ; +0xca, 0x6eff1a\nLDR.W           R3, [R4,#0x3E8]                                        ; +0xcc, 0x6eff1c\nCBNZ            R3, loc_6EFF52                                         ; +0xd0, 0x6eff20\nLDR.W           R3, [R4,#0x3E4]                                        ; +0xd2, 0x6eff22\nCBZ             R3, loc_6EFF2E                                         ; +0xd6, 0x6eff26\nLDRB.W          R3, [R4,#0x27C]                                        ; +0xd8, 0x6eff28\nCBNZ            R3, loc_6EFF52                                         ; +0xdc, 0x6eff2c\nMOVS            R3, #1                                                 ; +0xde, 0x6eff2e\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0xe0, 0x6eff30\nSTRB.W          R3, [R4,#0x1FE]                                        ; +0xe2, 0x6eff32\nMOV             R0, R5; this                                           ; +0xe6, 0x6eff36\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xe8, 0x6eff38\nMOV             R0, R4                                                 ; +0xec, 0x6eff3c\nMOV             R1, R5                                                 ; +0xee, 0x6eff3e\nBL              _ZN8EditorUI15clickOnPositionEN7cocos2d7CCPointE; EditorUI::clickOnPosition(cocos2d::CCPoint) ; +0xf0, 0x6eff40\nLDRB.W          R3, [R4,#0x282]                                        ; +0xf4, 0x6eff44\nCBZ             R3, loc_6EFF52                                         ; +0xf8, 0x6eff48\nLDR.W           R3, [R4,#0x3E4]                                        ; +0xfa, 0x6eff4a\nSTR.W           R3, [R4,#0x3E8]                                        ; +0xfe, 0x6eff4e\nLDRB.W          R3, [R4,#0x3EE]                                        ; +0x102, 0x6eff52\nCBZ             R3, loc_6EFF68                                         ; +0x106, 0x6eff56\nLDR.W           R3, [R4,#0x3E8]                                        ; +0x108, 0x6eff58\nCBNZ            R3, loc_6EFF68                                         ; +0x10c, 0x6eff5c\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0x10e, 0x6eff5e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x112, 0x6eff62\nCBNZ            R0, loc_6EFFCE                                         ; +0x116, 0x6eff66\nLDR.W           R0, [R4,#0x3E8]                                        ; +0x118, 0x6eff68\nCBZ             R0, loc_6EFF84                                         ; +0x11c, 0x6eff6c\nMOVS            R3, #1                                                 ; +0x11e, 0x6eff6e\nSTRB.W          R3, [R4,#0x281]                                        ; +0x120, 0x6eff70\nLDR             R3, [R0]                                               ; +0x124, 0x6eff74\nLDR             R3, [R3,#0x60]                                         ; +0x126, 0x6eff76\nBLX             R3                                                     ; +0x128, 0x6eff78\nMOV             R1, R0                                                 ; +0x12a, 0x6eff7a\nADD.W           R0, R4, #0x294                                         ; +0x12c, 0x6eff7c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x130, 0x6eff80\nADD.W           R0, R4, #0x3D4                                         ; +0x134, 0x6eff84\nMOV             R1, R8                                                 ; +0x138, 0x6eff88\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x13a, 0x6eff8a\nLDRB.W          R3, [R4,#0x1FD]                                        ; +0x13e, 0x6eff8e\nCBNZ            R3, loc_6EFFE2                                         ; +0x142, 0x6eff92\nMOV             R0, R4                                                 ; +0x144, 0x6eff94\nMOVS            R1, #5                                                 ; +0x146, 0x6eff96\nMOVS            R2, #1                                                 ; +0x148, 0x6eff98\nBL              _ZN8EditorUI16createUndoObjectE11UndoCommandb; EditorUI::createUndoObject(UndoCommand,bool) ; +0x14a, 0x6eff9a\nLDR.W           R3, [R4,#0x1F8]                                        ; +0x14e, 0x6eff9e\nCMP             R3, R0                                                 ; +0x152, 0x6effa2\nMOV             R5, R0                                                 ; +0x154, 0x6effa4\nBEQ             loc_6EFFE2                                             ; +0x156, 0x6effa6\nCBZ             R0, loc_6EFFAE                                         ; +0x158, 0x6effa8\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x15a, 0x6effaa\nLDR.W           R0, [R4,#0x1F8]; this                                  ; +0x15e, 0x6effae\nCBZ             R0, loc_6EFFB8                                         ; +0x162, 0x6effb2\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x164, 0x6effb4\nSTR.W           R5, [R4,#0x1F8]                                        ; +0x168, 0x6effb8\nB               loc_6EFFE2                                             ; +0x16c, 0x6effbc\nMOV             R0, R4; this                                           ; +0x16e, 0x6effbe\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x170, 0x6effc0\nBL              _ZN8EditorUI11onDuplicateEPN7cocos2d8CCObjectE; EditorUI::onDuplicate(cocos2d::CCObject *) ; +0x172, 0x6effc2\nMOVS            R3, #1                                                 ; +0x176, 0x6effc6\nSTRB.W          R3, [R4,#0x1FD]                                        ; +0x178, 0x6effc8\nB               loc_6EFEAC                                             ; +0x17c, 0x6effcc\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x17e, 0x6effce\nMOV             R0, R5; this                                           ; +0x180, 0x6effd0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x182, 0x6effd2\nMOV             R0, R4                                                 ; +0x186, 0x6effd6\nMOV             R1, R5                                                 ; +0x188, 0x6effd8\nMOVS            R2, #0                                                 ; +0x18a, 0x6effda\nBL              _ZN8EditorUI14findSnapObjectEN7cocos2d7CCPointEf; EditorUI::findSnapObject(cocos2d::CCPoint,float) ; +0x18c, 0x6effdc\nB               loc_6EFF68                                             ; +0x190, 0x6effe0\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x192, 0x6effe2\nLDR             R3, [R7]                                               ; +0x194, 0x6effe4\nCMP             R2, R3                                                 ; +0x196, 0x6effe6\nBEQ             loc_6EFFEE                                             ; +0x198, 0x6effe8\nBLX             __stack_chk_fail                                       ; +0x19a, 0x6effea\nADD             SP, SP, #0x18                                          ; +0x19e, 0x6effee\nPOP.W           {R4-R10,PC}                                            ; +0x1a0, 0x6efff0", "xrefs": ["EditorUI::finishTouchDelay @ 0x6f00d0"], "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"}