{"type": "func", "start": 3822604, "end": 3824192, "name": "EditorUI::ccTouchEnded", "pseudocode": "// \n// EditorUI::ccTouchEnded from 0x3a540c to 0x3a5a40 (1588 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorUI::ccTouchEnded @ 0x3a5a5c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorUI::ccTouchEnded(EditorUI *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  int m_nId; // r2\n  void *m_rotationControl; // r0\n  LevelEditorLayer *m_editorLayer; // r3\n  GameManager *v9; // r0\n  _BOOL4 GameVariable; // r8\n  float v11; // r0\n  _BOOL4 v12; // r10\n  float v13; // r0\n  int v14; // r2\n  GameManager *v15; // r0\n  GameObject *m_snapObject; // r1\n  unsigned int v17; // r7\n  cocos2d::CCPoint v18; // r2\n  cocos2d::CCPoint v19; // r2\n  int v20; // r2\n  bool v21; // r3\n  const cocos2d::CCPoint *v22; // r0\n  int v23; // r2\n  bool v24; // r3\n  int v25; // r2\n  bool v26; // r3\n  void *m_scaleControl; // r8\n  void (__fastcall *v28)(void *, cocos2d::CCRect *); // r10\n  int v29; // r0\n  cocos2d::CCPoint *v30; // r0\n  const cocos2d::CCPoint *v31; // r0\n  _BOOL4 m_noSnapUndo; // r5\n  UndoObject *m_undoObject; // r1\n  UndoObject *v34; // r0\n  bool m_swipeSelected; // r3\n  cocos2d::CCLayer *m_objectLayer; // r8\n  float x; // r1\n  float v38; // s15\n  float y; // r2\n  LevelEditorLayer *v40; // r5\n  cocos2d::CCPoint v41; // r1\n  cocos2d::CCArray *v42; // r0\n  GameObject *v43; // r5\n  cocos2d::CCObject *v44; // r1\n  cocos2d::CCArray *v45; // r1\n  EditorUI *v46; // r0\n  float v47; // r0\n  LevelEditorLayer *v48; // r7\n  cocos2d::CCPoint v49; // r1\n  cocos2d::CCArray *v50; // r0\n  GameObject *CycledObject; // r5\n  cocos2d::CCObject *v52; // r1\n  GameObject *Object; // r0\n  cocos2d::CCPoint v54; // r1\n  GameObject *v55; // r0\n  int v56; // r2\n  bool v57; // r3\n  _BOOL4 m_canActivateControls; // r6\n  cocos2d::CCArray *m_snapPositions; // r0\n  int v60; // r2\n  bool v61; // r3\n  GameObject *v62; // r10\n  cocos2d::CCPoint v63; // r2\n  GJTransformControl *m_transformControl; // r8\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10\n  int v66; // r0\n  cocos2d::CCPoint v67; // [sp+4h] [bp-70h]\n  GameObject *v68; // [sp+14h] [bp-60h]\n  cocos2d::CCPoint v69; // [sp+1Ch] [bp-58h] BYREF\n  cocos2d::CCPoint v70; // [sp+24h] [bp-50h] BYREF\n  cocos2d::CCPoint v71; // [sp+2Ch] [bp-48h] BYREF\n  cocos2d::CCPoint v72; // [sp+34h] [bp-40h] BYREF\n  cocos2d::CCPoint v73; // [sp+3Ch] [bp-38h] BYREF\n  cocos2d::CCPoint v74; // [sp+44h] [bp-30h] BYREF\n  cocos2d::CCRect v75; // [sp+4Ch] [bp-28h] BYREF\n  cocos2d::CCRect v76; // [sp+5Ch] [bp-18h] BYREF\n  cocos2d::CCRect v77; // 0:r1.12,12:^0.4\n\n  a1->m_canActivateControls = 0;\n  cocos2d::CCNode::stopActionByTag(a1, 123);\n  m_nId = a2->m_nId;\n  if ( a1->m_rotationTouchID == m_nId )\n  {\n    m_rotationControl = a1->m_rotationControl;\n    a1->m_rotationTouchID = -1;\nLABEL_9:\n    (*(void (__fastcall **)(void *, cocos2d::CCTouch *, cocos2d::CCEvent *))(*(_DWORD *)m_rotationControl + 448))(\n      m_rotationControl,\n      a2,\n      a3);\n    return;\n  }\n  if ( a1->m_scaleTouchID == m_nId )\n  {\n    m_rotationControl = a1->m_scaleControl;\n    a1->m_scaleTouchID = -1;\n    goto LABEL_9;\n  }\n  if ( a1->m_transformTouchID == m_nId )\n  {\n    m_rotationControl = a1->m_transformControl;\n    a1->m_transformTouchID = -1;\n    goto LABEL_9;\n  }\n  m_editorLayer = a1->m_editorLayer;\n  if ( m_editorLayer->m_playbackMode == Playing )\n  {\n    m_rotationControl = m_editorLayer->m_uiLayer;\n    goto LABEL_9;\n  }\n  if ( a1->m_touchID == m_nId )\n  {\n    v9 = GameManager::sharedState();\n    GameVariable = GameManager::getGameVariable(v9, \"0059\");\n    EditorUI::getTouchPoint(&v69, a1, a2, a3);\n    v11 = cocos2d::ccpDistance(&a1->m_swipeStart, &v69);\n    v12 = GameVariable && v11 < 8.0;\n    v13 = cocos2d::ccpDistance(&a1->m_lastTouchPoint, &v69);\n    if ( GameVariable )\n      GameVariable = v13 < 8.0;\n    a1->m_touchID = -1;\n    if ( a1->m_snapObjectExists && a1->m_continuousSnap && a1->m_snapObject )\n    {\n      cocos2d::CCPoint::CCPoint(&v70, (const cocos2d::CCPoint *)&flt_AC5D38);\n      EditorUI::getTouchPoint(&v71, a1, a2, a3);\n      cocos2d::CCNode::convertToNodeSpace(&v72, a1->m_editorLayer->m_objectLayer, &v71);\n      v15 = GameManager::sharedState();\n      if ( GameManager::getGameVariable(v15, \"0008\") )\n      {\n        m_snapObject = a1->m_snapObject;\n        if ( m_snapObject )\n        {\n          if ( EditorUI::shouldSnap(a1, m_snapObject) )\n          {\n            v17 = cocos2d::CCPoint::equals(&v71, &a1->m_swipeStart);\n            if ( !v17 )\n            {\n              cocos2d::CCPoint::CCPoint(&v76.origin, &v72);\n              LODWORD(v18.x) = &v76;\n              EditorUI::getGridSnappedPos(&v73, a1, v18);\n              EditorUI::getRelativeOffset(&v75.origin, a1, a1->m_snapObject);\n              v68 = a1->m_snapObject;\n              cocos2d::CCPoint::CCPoint(&v76.origin, &v73);\n              LODWORD(v19.y) = v68;\n              LODWORD(v19.x) = &v75;\n              EditorUI::applySpecialOffset(&v74, a1, v19, (GameObject *)&v76, v67);\n              cocos2d::CCPoint::operator+(&v76, &v73, &v74);\n              cocos2d::CCPoint::operator=((PlayerObject *)&v73, COERCE_FLOAT(&v76), v20, v21);\n              v22 = a1->m_snapObject->getPosition(a1->m_snapObject);\n              cocos2d::CCPoint::CCPoint(&v75.origin, v22);\n              a1->m_snapObject->setPosition(a1->m_snapObject, &v73);\n              cocos2d::CCPoint::operator-(&v76, &v73, &v75);\n              cocos2d::CCPoint::operator=((PlayerObject *)&v70, COERCE_FLOAT(&v76), v23, v24);\n              if ( cocos2d::CCArray::count(a1->m_selectedObjects) )\n              {\n                while ( v17 < cocos2d::CCArray::count(a1->m_selectedObjects) )\n                {\n                  v62 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v17);\n                  if ( v62->m_uniqueID != a1->m_snapObject->m_uniqueID )\n                  {\n                    cocos2d::CCPoint::CCPoint(&v76.origin, &v70);\n                    LODWORD(v63.x) = &v76;\n                    EditorUI::moveObject(a1, v62, v63);\n                  }\n                  ++v17;\n                }\n              }\n              cocos2d::CCPoint::operator+(&v76, &a1->m_pivotPoint, &v70);\n              cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_pivotPoint, COERCE_FLOAT(&v76), v25, v26);\n              if ( ((int (__fastcall *)(GJRotationControl *))a1->m_rotationControl->isVisible)(a1->m_rotationControl) )\n              {\n                m_scaleControl = a1->m_rotationControl;\n              }\n              else\n              {\n                if ( !((int (__fastcall *)(GJScaleControl *))a1->m_scaleControl->isVisible)(a1->m_scaleControl) )\n                {\n                  if ( ((int (__fastcall *)(GJTransformControl *))a1->m_transformControl->isVisible)(a1->m_transformControl) )\n                  {\n                    m_transformControl = a1->m_transformControl;\n                    setPosition = m_transformControl->setPosition;\n                    v66 = (int)m_transformControl->getPosition(m_transformControl);\n                    cocos2d::CCPoint::operator+(&v76, v66, &v70);\n                    setPosition(m_transformControl, &v76.origin);\n                    GJTransformControl::refreshControl(a1->m_transformControl);\n                  }\n                  goto LABEL_27;\n                }\n                m_scaleControl = a1->m_scaleControl;\n              }\n              v28 = *(void (__fastcall **)(void *, cocos2d::CCRect *))(*(_DWORD *)m_scaleControl + 92);\n              v29 = (*(int (__fastcall **)(void *))(*(_DWORD *)m_scaleControl + 96))(m_scaleControl);\n              cocos2d::CCPoint::operator+(&v76, v29, &v70);\n              v28(m_scaleControl, &v76);\n            }\n          }\n        }\n      }\nLABEL_27:\n      v30 = (cocos2d::CCPoint *)a1->m_snapObject->getPosition(a1->m_snapObject);\n      if ( cocos2d::CCPoint::equals(v30, &a1->m_snapPosition) )\n        a1->m_noSnapUndo = 1;\n      v31 = a1->m_snapObject->getPosition(a1->m_snapObject);\n      cocos2d::CCPoint::operator-(&v76, v31, &a1->m_snapPosition);\n      m_noSnapUndo = a1->m_noSnapUndo;\n      if ( !a1->m_noSnapUndo )\n      {\n        m_undoObject = a1->m_undoObject;\n        if ( m_undoObject )\n        {\n          LevelEditorLayer::addToUndoList(a1->m_editorLayer, m_undoObject, a1->m_noSnapUndo);\n          v34 = a1->m_undoObject;\n          if ( v34 )\n          {\n            cocos2d::CCObject::release(v34);\n            a1->m_undoObject = (UndoObject *)m_noSnapUndo;\n          }\n        }\n      }\n      EditorUI::tryUpdateTimeMarkers(a1);\n      goto LABEL_65;\n    }\n    if ( !a1->m_swipeActive || v12 )\n    {\n      if ( a1->m_isDraggingCamera )\n      {\n        m_swipeSelected = 0;\n        a1->m_isDraggingCamera = 0;\n      }\n      else\n      {\n        EditorUI::getTouchPoint(&v76.origin, a1, a2, a3);\n        v47 = cocos2d::ccpDistance(&a1->m_swipeStart, &v76.origin);\n        m_swipeSelected = a1->m_swipeSelected;\n        if ( !m_swipeSelected || v47 < 20.0 )\n        {\n          if ( a1->m_selectedMode != 3 )\n          {\n            m_swipeSelected = a1->m_swipeModeTriggered;\n            if ( !m_swipeSelected )\n            {\n              cocos2d::CCPoint::CCPoint(&v76.origin, &a1->m_swipeStart);\n              LODWORD(v54.x) = &v76;\n              EditorUI::clickOnPosition(a1, v54);\n            }\n            goto LABEL_65;\n          }\n          cocos2d::CCNode::convertToNodeSpace(&v75.origin, a1->m_editorLayer->m_objectLayer, &a1->m_swipeStart);\n          if ( !a1->m_snapObject || !(m_swipeSelected = a1->m_editingObject) )\n          {\n            v48 = a1->m_editorLayer;\n            cocos2d::CCPoint::CCPoint(&v76.origin, &v75.origin);\n            LODWORD(v49.x) = &v76;\n            v50 = LevelEditorLayer::objectsAtPosition(v48, v49);\n            CycledObject = EditorUI::getCycledObject(a1, v50, 0);\n            if ( CycledObject )\n            {\n              EditorUI::createUndoSelectObject(a1, 0);\n              if ( a1->m_swipeActive )\n              {\n                if ( GameVariable )\n                {\n                  if ( a1->m_selectedObject )\n                  {\n                    EditorUI::deselectObject(a1);\n                  }\n                  else\n                  {\n                    Object = (GameObject *)cocos2d::CCArray::lastObject(a1->m_selectedObjects);\n                    if ( Object )\n                    {\n                      GameObject::deselectObject(Object);\n                      cocos2d::CCArray::removeLastObject(a1->m_selectedObjects, 1);\n                    }\n                  }\n                }\n                v45 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)CycledObject, v52);\n                v46 = a1;\n                goto LABEL_62;\n              }\n              EditorUI::selectObject(a1, CycledObject, 0);\n            }\n          }\n        }\n      }\n    }\n    else\n    {\n      m_objectLayer = a1->m_editorLayer->m_objectLayer;\n      cocos2d::CCNode::convertToNodeSpace(&v73, m_objectLayer, &a1->m_swipeStart);\n      cocos2d::CCNode::convertToNodeSpace(&v74, m_objectLayer, &a1->m_swipeEnd);\n      if ( v73.x > v74.x )\n        x = v74.x;\n      else\n        x = v73.x;\n      v38 = fabsf(v73.x - v74.x);\n      if ( v73.y > v74.y )\n        y = v74.y;\n      else\n        y = v73.y;\n      cocos2d::CCRect::CCRect(&v75, x, y, v38, fabsf(v73.y - v74.y));\n      EditorUI::getTouchPoint(&v76.origin, a1, a2, a3);\n      if ( cocos2d::ccpDistance(&a1->m_swipeStart, &v76.origin) >= 8.0 )\n      {\n        cocos2d::CCRect::CCRect(&v76, &v75);\n        LODWORD(v77.origin.x) = &v76;\n        EditorUI::selectObjectsInRect(a1, v77);\n      }\n      else\n      {\n        v40 = a1->m_editorLayer;\n        cocos2d::CCPoint::CCPoint(&v76.origin, &v74);\n        LODWORD(v41.x) = &v76;\n        v42 = LevelEditorLayer::objectsAtPosition(v40, v41);\n        v43 = EditorUI::getCycledObject(a1, v42, 0);\n        if ( v43 )\n        {\n          EditorUI::createUndoSelectObject(a1, 0);\n          v45 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)v43, v44);\n          v46 = a1;\nLABEL_62:\n          EditorUI::selectObjects(v46, v45, 0);\n        }\n      }\n    }\nLABEL_65:\n    v55 = a1->m_snapObject;\n    if ( v55 )\n    {\n      if ( a1->m_snapObjectExists && a1->m_continuousSnap )\n      {\n        if ( v55->m_isSelected )\n          ((void (__fastcall *)(GameObject *, int))v55->selectObject)(v55, 65280);\n        else\n          GameObject::deselectObject(v55);\n      }\n      m_swipeSelected = 0;\n      a1->m_snapObject = nullptr;\n    }\n    a1->m_swipeSelected = 0;\n    a1->m_swipeActive = 0;\n    a1->m_snapObjectExists = 0;\n    a1->m_noSnapUndo = 0;\n    cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_createPosition, COERCE_FLOAT(&flt_AC5D38), v14, m_swipeSelected);\n    a1->m_continuousSnap = 0;\n    a1->m_editingObject = 0;\n    cocos2d::CCPoint::operator=(\n      (PlayerObject *)&a1->m_swipePosition,\n      COERCE_FLOAT((EditorUI *)&a1->m_swipeStart),\n      v56,\n      v57);\n    a1->m_continueSwipe = 0;\n    m_canActivateControls = a1->m_canActivateControls;\n    EditorUI::updateButtons(a1);\n    m_snapPositions = a1->m_snapPositions;\n    ++a1->m_cycledObjectIndex;\n    cocos2d::CCArray::removeAllObjects(m_snapPositions);\n    if ( m_canActivateControls )\n    {\n      EditorUI::updateSpecialUIElements(a1);\n      a1->updateTransformControl(a1);\n      a1->m_canActivateControls = 0;\n    }\n    cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_lastTouchPoint, COERCE_FLOAT(&v69), v60, v61);\n  }\n}", "assembly": "; \n; EditorUI::ccTouchEnded from 0x3a540c to 0x3a5a40 (1588 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorUI::ccTouchEnded @ 0x3a5a5c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x3a540c\nSUB             SP, SP, #0x74; float                                   ; +0x4, 0x3a5410\nLDR.W           R6, =(__stack_chk_guard_ptr - 0x3A5420)                ; +0x6, 0x3a5412\nMOV             R4, R0                                                 ; +0xa, 0x3a5416\nMOV             R5, R1                                                 ; +0xc, 0x3a5418\nMOVS            R1, #0x7B ; '{'; int                                   ; +0xe, 0x3a541a\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3a541c\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x3a541e\nMOV             R7, R2                                                 ; +0x14, 0x3a5420\nLDR             R3, [R6]                                               ; +0x16, 0x3a5422\nSTR             R3, [SP,#0x74+var_8]                                   ; +0x18, 0x3a5424\nMOVS            R3, #0                                                 ; +0x1a, 0x3a5426\nSTRB.W          R3, [R0,#0x210]                                        ; +0x1c, 0x3a5428\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x20, 0x3a542c\nLDR             R2, [R5,#0x34]                                         ; +0x24, 0x3a5430\nLDR.W           R3, [R4,#0x1F0]                                        ; +0x26, 0x3a5432\nSTR             R6, [SP,#0x74+var_68]                                  ; +0x2a, 0x3a5436\nCMP             R3, R2                                                 ; +0x2c, 0x3a5438\nBNE             loc_3A544A                                             ; +0x2e, 0x3a543a\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x30, 0x3a543c\nLDR.W           R0, [R4,#0x204]                                        ; +0x34, 0x3a5440\nSTR.W           R3, [R4,#0x1F0]                                        ; +0x38, 0x3a5444\nB               loc_3A5488                                             ; +0x3c, 0x3a5448\nLDR.W           R3, [R4,#0x1F4]                                        ; +0x3e, 0x3a544a\nCMP             R3, R2                                                 ; +0x42, 0x3a544e\nBNE             loc_3A5460                                             ; +0x44, 0x3a5450\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x46, 0x3a5452\nLDR.W           R0, [R4,#0x214]                                        ; +0x4a, 0x3a5456\nSTR.W           R3, [R4,#0x1F4]                                        ; +0x4e, 0x3a545a\nB               loc_3A5488                                             ; +0x52, 0x3a545e\nLDR.W           R3, [R4,#0x1FC]                                        ; +0x54, 0x3a5460\nCMP             R3, R2                                                 ; +0x58, 0x3a5464\nBNE             loc_3A5476                                             ; +0x5a, 0x3a5466\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x5c, 0x3a5468\nLDR.W           R0, [R4,#0x218]                                        ; +0x60, 0x3a546c\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x64, 0x3a5470\nB               loc_3A5488                                             ; +0x68, 0x3a5474\nLDR.W           R3, [R4,#0x340]                                        ; +0x6a, 0x3a5476\nLDR.W           R1, [R3,#0x60C]                                        ; +0x6e, 0x3a547a\nCMP             R1, #1                                                 ; +0x72, 0x3a547e\nBNE             loc_3A5496                                             ; +0x74, 0x3a5480\nADD.W           R3, R3, #0x2C80                                        ; +0x76, 0x3a5482\nLDR             R0, [R3]                                               ; +0x7a, 0x3a5486\nLDR             R3, [R0]                                               ; +0x7c, 0x3a5488\nMOV             R1, R5                                                 ; +0x7e, 0x3a548a\nMOV             R2, R7                                                 ; +0x80, 0x3a548c\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x82, 0x3a548e\nBLX             R3                                                     ; +0x86, 0x3a5492\nB               loc_3A5A2C                                             ; +0x88, 0x3a5494\nLDR.W           R3, [R4,#0x1F8]                                        ; +0x8a, 0x3a5496\nCMP             R3, R2                                                 ; +0x8e, 0x3a549a\nBNE.W           loc_3A5A2C                                             ; +0x90, 0x3a549c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x94, 0x3a54a0\nLDR.W           R1, =(a0059 - 0x3A54B4); \"0059\"                        ; +0x98, 0x3a54a4\nADD.W           R11, SP, #0x74+var_58                                  ; +0x9c, 0x3a54a8\nADD.W           R6, R4, #0x344                                         ; +0xa0, 0x3a54ac\nADD             R1, PC; \"0059\"                                         ; +0xa4, 0x3a54b0\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0xa6, 0x3a54b2\nMOV             R1, R4                                                 ; +0xaa, 0x3a54b6\nMOV             R2, R5                                                 ; +0xac, 0x3a54b8\nMOV             R3, R7                                                 ; +0xae, 0x3a54ba\nMOV             R8, R0                                                 ; +0xb0, 0x3a54bc\nMOV             R0, R11                                                ; +0xb2, 0x3a54be\nBL              _ZN8EditorUI13getTouchPointEPN7cocos2d7CCTouchEPNS0_7CCEventE; EditorUI::getTouchPoint(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0xb4, 0x3a54c0\nMOV             R0, R6; this                                           ; +0xb8, 0x3a54c4\nMOV             R1, R11; cocos2d::CCPoint *                            ; +0xba, 0x3a54c6\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0xbc, 0x3a54c8\nVMOV            S14, R0                                                ; +0xc0, 0x3a54cc\nCMP.W           R8, #0                                                 ; +0xc4, 0x3a54d0\nBEQ             loc_3A54EE                                             ; +0xc8, 0x3a54d4\nVMOV.F32        S15, #8.0                                              ; +0xca, 0x3a54d6\nVCMPE.F32       S14, S15                                               ; +0xce, 0x3a54da\nVMRS            APSR_nzcv, FPSCR                                       ; +0xd2, 0x3a54de\nITE MI                                                                 ; +0xd6, 0x3a54e2\nMOVMI.W         R10, #1                                                ; +0xd8, 0x3a54e4\nMOVPL.W         R10, #0                                                ; +0xdc, 0x3a54e8\nB               loc_3A54F0                                             ; +0xe0, 0x3a54ec\nMOV             R10, R8                                                ; +0xe2, 0x3a54ee\nADD.W           R9, R4, #0x35C                                         ; +0xe4, 0x3a54f0\nMOV             R1, R11; cocos2d::CCPoint *                            ; +0xe8, 0x3a54f4\nMOV             R0, R9; this                                           ; +0xea, 0x3a54f6\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0xec, 0x3a54f8\nVMOV            S14, R0                                                ; +0xf0, 0x3a54fc\nCMP.W           R8, #0                                                 ; +0xf4, 0x3a5500\nBEQ             loc_3A551C                                             ; +0xf8, 0x3a5504\nVMOV.F32        S15, #8.0                                              ; +0xfa, 0x3a5506\nVCMPE.F32       S14, S15                                               ; +0xfe, 0x3a550a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x102, 0x3a550e\nITE MI                                                                 ; +0x106, 0x3a5512\nMOVMI.W         R8, #1                                                 ; +0x108, 0x3a5514\nMOVPL.W         R8, #0                                                 ; +0x10c, 0x3a5518\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x110, 0x3a551c\nSTR.W           R3, [R4,#0x1F8]                                        ; +0x114, 0x3a5520\nLDRB.W          R3, [R4,#0x245]                                        ; +0x118, 0x3a5524\nCMP             R3, #0                                                 ; +0x11c, 0x3a5528\nBEQ.W           loc_3A56F4                                             ; +0x11e, 0x3a552a\nLDRB.W          R3, [R4,#0x243]                                        ; +0x122, 0x3a552e\nCMP             R3, #0                                                 ; +0x126, 0x3a5532\nBEQ.W           loc_3A56F4                                             ; +0x128, 0x3a5534\nLDR.W           R3, [R4,#0x378]                                        ; +0x12c, 0x3a5538\nCMP             R3, #0                                                 ; +0x130, 0x3a553c\nBEQ.W           loc_3A56F4                                             ; +0x132, 0x3a553e\nADD.W           R8, SP, #0x74+var_50                                   ; +0x136, 0x3a5542\nLDR.W           R1, =(flt_AC5D38 - 0x3A5556)                           ; +0x13a, 0x3a5546\nADD.W           R10, SP, #0x74+var_48                                  ; +0x13e, 0x3a554a\nADD.W           R11, SP, #0x74+var_40                                  ; +0x142, 0x3a554e\nADD             R1, PC; flt_AC5D38 ; cocos2d::CCPoint *                ; +0x146, 0x3a5552\nMOV             R0, R8; this                                           ; +0x148, 0x3a5554\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x14a, 0x3a5556\nMOV             R0, R10                                                ; +0x14e, 0x3a555a\nMOV             R1, R4                                                 ; +0x150, 0x3a555c\nMOV             R2, R5                                                 ; +0x152, 0x3a555e\nMOV             R3, R7                                                 ; +0x154, 0x3a5560\nBL              _ZN8EditorUI13getTouchPointEPN7cocos2d7CCTouchEPNS0_7CCEventE; EditorUI::getTouchPoint(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x156, 0x3a5562\nLDR.W           R3, [R4,#0x340]                                        ; +0x15a, 0x3a5566\nMOV             R0, R11; this                                          ; +0x15e, 0x3a556a\nMOV             R2, R10                                                ; +0x160, 0x3a556c\nLDR.W           R1, [R3,#0x9F0]; cocos2d::CCPoint *                    ; +0x162, 0x3a556e\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x166, 0x3a5572\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x16a, 0x3a5576\nLDR.W           R1, =(a0008 - 0x3A5582); \"0008\"                        ; +0x16e, 0x3a557a\nADD             R1, PC; \"0008\"                                         ; +0x172, 0x3a557e\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x174, 0x3a5580\nCMP             R0, #0                                                 ; +0x178, 0x3a5584\nBEQ.W           loc_3A5698                                             ; +0x17a, 0x3a5586\nLDR.W           R1, [R4,#0x378]; GameObject *                          ; +0x17e, 0x3a558a\nCMP             R1, #0                                                 ; +0x182, 0x3a558e\nBEQ.W           loc_3A5698                                             ; +0x184, 0x3a5590\nMOV             R0, R4; this                                           ; +0x188, 0x3a5594\nBL              _ZN8EditorUI10shouldSnapEP10GameObject; EditorUI::shouldSnap(GameObject *) ; +0x18a, 0x3a5596\nCMP             R0, #0                                                 ; +0x18e, 0x3a559a\nBEQ             loc_3A5698                                             ; +0x190, 0x3a559c\nMOV             R0, R10; this                                          ; +0x192, 0x3a559e\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0x194, 0x3a55a0\nBL              _ZNK7cocos2d7CCPoint6equalsERKS0_; cocos2d::CCPoint::equals(cocos2d::CCPoint const&) ; +0x196, 0x3a55a2\nMOV             R7, R0                                                 ; +0x19a, 0x3a55a6\nCMP             R0, #0                                                 ; +0x19c, 0x3a55a8\nBNE             loc_3A5698                                             ; +0x19e, 0x3a55aa\nADD             R5, SP, #0x74+var_18                                   ; +0x1a0, 0x3a55ac\nADD.W           R10, SP, #0x74+var_38                                  ; +0x1a2, 0x3a55ae\nMOV             R1, R11; cocos2d::CCPoint *                            ; +0x1a6, 0x3a55b2\nADD.W           R11, SP, #0x74+var_28                                  ; +0x1a8, 0x3a55b4\nMOV             R0, R5; this                                           ; +0x1ac, 0x3a55b8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1ae, 0x3a55ba\nMOV             R0, R10                                                ; +0x1b2, 0x3a55be\nMOV             R1, R4                                                 ; +0x1b4, 0x3a55c0\nMOV             R2, R5                                                 ; +0x1b6, 0x3a55c2\nBL              _ZN8EditorUI17getGridSnappedPosEN7cocos2d7CCPointE; EditorUI::getGridSnappedPos(cocos2d::CCPoint) ; +0x1b8, 0x3a55c4\nLDR.W           R2, [R4,#0x378]                                        ; +0x1bc, 0x3a55c8\nMOV             R0, R11; this                                          ; +0x1c0, 0x3a55cc\nMOV             R1, R4; GameObject *                                   ; +0x1c2, 0x3a55ce\nBL              _ZN8EditorUI17getRelativeOffsetEP10GameObject; EditorUI::getRelativeOffset(GameObject *) ; +0x1c4, 0x3a55d0\nLDR.W           R3, [R4,#0x378]                                        ; +0x1c8, 0x3a55d4\nMOV             R1, R10; cocos2d::CCPoint *                            ; +0x1cc, 0x3a55d8\nMOV             R0, R5; this                                           ; +0x1ce, 0x3a55da\nSTR             R3, [SP,#0x74+var_60]                                  ; +0x1d0, 0x3a55dc\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1d2, 0x3a55de\nADD.W           R12, SP, #0x74+var_30                                  ; +0x1d6, 0x3a55e2\nLDR             R3, [SP,#0x74+var_60]                                  ; +0x1da, 0x3a55e6\nMOV             R1, R4                                                 ; +0x1dc, 0x3a55e8\nMOV             R2, R11                                                ; +0x1de, 0x3a55ea\nMOV             R0, R12                                                ; +0x1e0, 0x3a55ec\nSTR             R5, [SP,#0x74+var_74]                                  ; +0x1e2, 0x3a55ee\nSTR.W           R12, [SP,#0x74+var_64]                                 ; +0x1e4, 0x3a55f0\nBL              _ZN8EditorUI18applySpecialOffsetEN7cocos2d7CCPointEP10GameObjectS1_; EditorUI::applySpecialOffset(cocos2d::CCPoint,GameObject *,cocos2d::CCPoint) ; +0x1e8, 0x3a55f4\nLDR.W           R12, [SP,#0x74+var_64]                                 ; +0x1ec, 0x3a55f8\nMOV             R0, R5                                                 ; +0x1f0, 0x3a55fc\nMOV             R1, R10                                                ; +0x1f2, 0x3a55fe\nMOV             R2, R12                                                ; +0x1f4, 0x3a5600\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x1f6, 0x3a5602\nMOV             R1, R5                                                 ; +0x1fa, 0x3a5606\nMOV             R0, R10                                                ; +0x1fc, 0x3a5608\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x1fe, 0x3a560a\nLDR.W           R0, [R4,#0x378]                                        ; +0x202, 0x3a560e\nLDR             R3, [R0]                                               ; +0x206, 0x3a5612\nLDR             R3, [R3,#0x60]                                         ; +0x208, 0x3a5614\nBLX             R3                                                     ; +0x20a, 0x3a5616\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x20c, 0x3a5618\nMOV             R0, R11; this                                          ; +0x20e, 0x3a561a\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x210, 0x3a561c\nLDR.W           R0, [R4,#0x378]                                        ; +0x214, 0x3a5620\nMOV             R1, R10                                                ; +0x218, 0x3a5624\nLDR             R3, [R0]                                               ; +0x21a, 0x3a5626\nLDR             R3, [R3,#0x5C]                                         ; +0x21c, 0x3a5628\nBLX             R3                                                     ; +0x21e, 0x3a562a\nMOV             R0, R5                                                 ; +0x220, 0x3a562c\nMOV             R1, R10                                                ; +0x222, 0x3a562e\nMOV             R2, R11                                                ; +0x224, 0x3a5630\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x226, 0x3a5632\nMOV             R0, R8                                                 ; +0x22a, 0x3a5636\nMOV             R1, R5                                                 ; +0x22c, 0x3a5638\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x22e, 0x3a563a\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x232, 0x3a563e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x236, 0x3a5642\nCMP             R0, #0                                                 ; +0x23a, 0x3a5646\nBNE.W           loc_3A59CC                                             ; +0x23c, 0x3a5648\nADD.W           R8, R4, #0x208                                         ; +0x240, 0x3a564c\nADD             R7, SP, #0x74+var_50                                   ; +0x244, 0x3a5650\nMOV             R0, R5                                                 ; +0x246, 0x3a5652\nMOV             R1, R8                                                 ; +0x248, 0x3a5654\nMOV             R2, R7                                                 ; +0x24a, 0x3a5656\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x24c, 0x3a5658\nMOV             R0, R8                                                 ; +0x250, 0x3a565c\nMOV             R1, R5                                                 ; +0x252, 0x3a565e\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x254, 0x3a5660\nLDR.W           R0, [R4,#0x204]                                        ; +0x258, 0x3a5664\nLDR             R3, [R0]                                               ; +0x25c, 0x3a5668\nLDR.W           R3, [R3,#0xA8]                                         ; +0x25e, 0x3a566a\nBLX             R3                                                     ; +0x262, 0x3a566e\nCMP             R0, #0                                                 ; +0x264, 0x3a5670\nBEQ.W           loc_3A59DA                                             ; +0x266, 0x3a5672\nLDR.W           R8, [R4,#0x204]                                        ; +0x26a, 0x3a5676\nLDR.W           R3, [R8]                                               ; +0x26e, 0x3a567a\nMOV             R0, R8                                                 ; +0x272, 0x3a567e\nLDR.W           R10, [R3,#0x5C]                                        ; +0x274, 0x3a5680\nLDR             R3, [R3,#0x60]                                         ; +0x278, 0x3a5684\nBLX             R3                                                     ; +0x27a, 0x3a5686\nMOV             R2, R7                                                 ; +0x27c, 0x3a5688\nMOV             R1, R0                                                 ; +0x27e, 0x3a568a\nMOV             R0, R5                                                 ; +0x280, 0x3a568c\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x282, 0x3a568e\nMOV             R0, R8                                                 ; +0x286, 0x3a5692\nMOV             R1, R5                                                 ; +0x288, 0x3a5694\nBLX             R10                                                    ; +0x28a, 0x3a5696\nLDR.W           R0, [R4,#0x378]                                        ; +0x28c, 0x3a5698\nADD.W           R5, R4, #0x258                                         ; +0x290, 0x3a569c\nLDR             R3, [R0]                                               ; +0x294, 0x3a56a0\nLDR             R3, [R3,#0x60]                                         ; +0x296, 0x3a56a2\nBLX             R3                                                     ; +0x298, 0x3a56a4\nMOV             R1, R5; cocos2d::CCPoint *                             ; +0x29a, 0x3a56a6\nBL              _ZNK7cocos2d7CCPoint6equalsERKS0_; cocos2d::CCPoint::equals(cocos2d::CCPoint const&) ; +0x29c, 0x3a56a8\nCBZ             R0, loc_3A56B4                                         ; +0x2a0, 0x3a56ac\nMOVS            R3, #1                                                 ; +0x2a2, 0x3a56ae\nSTRB.W          R3, [R4,#0x1E9]                                        ; +0x2a4, 0x3a56b0\nLDR.W           R0, [R4,#0x378]                                        ; +0x2a8, 0x3a56b4\nLDR             R3, [R0]                                               ; +0x2ac, 0x3a56b8\nLDR             R3, [R3,#0x60]                                         ; +0x2ae, 0x3a56ba\nBLX             R3                                                     ; +0x2b0, 0x3a56bc\nMOV             R2, R5                                                 ; +0x2b2, 0x3a56be\nMOV             R1, R0                                                 ; +0x2b4, 0x3a56c0\nADD             R0, SP, #0x74+var_18                                   ; +0x2b6, 0x3a56c2\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x2b8, 0x3a56c4\nLDRB.W          R5, [R4,#0x1E9]                                        ; +0x2bc, 0x3a56c8\nCBNZ            R5, loc_3A56EC                                         ; +0x2c0, 0x3a56cc\nLDR.W           R1, [R4,#0x1E4]; UndoObject *                          ; +0x2c2, 0x3a56ce\nCBZ             R1, loc_3A56EC                                         ; +0x2c6, 0x3a56d2\nLDR.W           R0, [R4,#0x340]; this                                  ; +0x2c8, 0x3a56d4\nMOV             R2, R5; bool                                           ; +0x2cc, 0x3a56d8\nBL              _ZN16LevelEditorLayer13addToUndoListEP10UndoObjectb; LevelEditorLayer::addToUndoList(UndoObject *,bool) ; +0x2ce, 0x3a56da\nLDR.W           R0, [R4,#0x1E4]; this                                  ; +0x2d2, 0x3a56de\nCBZ             R0, loc_3A56EC                                         ; +0x2d6, 0x3a56e2\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x2d8, 0x3a56e4\nSTR.W           R5, [R4,#0x1E4]                                        ; +0x2dc, 0x3a56e8\nMOV             R0, R4; this                                           ; +0x2e0, 0x3a56ec\nBL              _ZN8EditorUI20tryUpdateTimeMarkersEv; EditorUI::tryUpdateTimeMarkers(void) ; +0x2e2, 0x3a56ee\nB               loc_3A58EE                                             ; +0x2e6, 0x3a56f2\nLDRB.W          R3, [R4,#0x241]                                        ; +0x2e8, 0x3a56f4\nCMP             R3, #0                                                 ; +0x2ec, 0x3a56f8\nBEQ             loc_3A57FA                                             ; +0x2ee, 0x3a56fa\nCMP.W           R10, #0                                                ; +0x2f0, 0x3a56fc\nBNE             loc_3A57FA                                             ; +0x2f4, 0x3a5700\nLDR.W           R3, [R4,#0x340]                                        ; +0x2f6, 0x3a5702\nADD             R0, SP, #0x74+var_38; this                             ; +0x2fa, 0x3a5706\nMOV             R2, R6                                                 ; +0x2fc, 0x3a5708\nADD.W           R11, SP, #0x74+var_28                                  ; +0x2fe, 0x3a570a\nLDR.W           R8, [R3,#0x9F0]                                        ; +0x302, 0x3a570e\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x306, 0x3a5712\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x308, 0x3a5714\nADD.W           R12, SP, #0x74+var_30                                  ; +0x30c, 0x3a5718\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x310, 0x3a571c\nADD.W           R2, R4, #0x34C                                         ; +0x312, 0x3a571e\nMOV             R0, R12; this                                          ; +0x316, 0x3a5722\nSTR.W           R12, [SP,#0x74+var_64]                                 ; +0x318, 0x3a5724\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x31c, 0x3a5728\nVLDR            S12, [SP,#0x74+var_30]                                 ; +0x320, 0x3a572c\nADD.W           R8, SP, #0x74+var_18                                   ; +0x324, 0x3a5730\nMOV             R0, R11; this                                          ; +0x328, 0x3a5734\nVLDR            S15, [SP,#0x74+var_38]                                 ; +0x32a, 0x3a5736\nVLDR            S14, [SP,#0x74+var_34]                                 ; +0x32e, 0x3a573a\nVLDR            S13, [SP,#0x74+var_2C]                                 ; +0x332, 0x3a573e\nVCMPE.F32       S15, S12                                               ; +0x336, 0x3a5742\nVMRS            APSR_nzcv, FPSCR                                       ; +0x33a, 0x3a5746\nITE LE                                                                 ; +0x33e, 0x3a574a\nVMOVLE          R1, S15                                                ; +0x340, 0x3a574c\nVMOVGT          R1, S12; float                                         ; +0x344, 0x3a5750\nVSUB.F32        S15, S15, S12                                          ; +0x348, 0x3a5754\nVSUB.F32        S12, S14, S13                                          ; +0x34c, 0x3a5758\nVCMPE.F32       S14, S13                                               ; +0x350, 0x3a575c\nVABS.F32        S15, S15                                               ; +0x354, 0x3a5760\nVMRS            APSR_nzcv, FPSCR                                       ; +0x358, 0x3a5764\nITE LE                                                                 ; +0x35c, 0x3a5768\nVMOVLE          R2, S14                                                ; +0x35e, 0x3a576a\nVMOVGT          R2, S13; float                                         ; +0x362, 0x3a576e\nVABS.F32        S12, S12                                               ; +0x366, 0x3a5772\nVMOV            R3, S15; float                                         ; +0x36a, 0x3a5776\nVSTR            S12, [SP,#0x74+var_74]                                 ; +0x36e, 0x3a577a\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x372, 0x3a577e\nMOV             R0, R8                                                 ; +0x376, 0x3a5782\nMOV             R1, R4                                                 ; +0x378, 0x3a5784\nMOV             R2, R5                                                 ; +0x37a, 0x3a5786\nMOV             R3, R7                                                 ; +0x37c, 0x3a5788\nBL              _ZN8EditorUI13getTouchPointEPN7cocos2d7CCTouchEPNS0_7CCEventE; EditorUI::getTouchPoint(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x37e, 0x3a578a\nMOV             R0, R6; this                                           ; +0x382, 0x3a578e\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x384, 0x3a5790\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0x386, 0x3a5792\nVMOV.F32        S15, #8.0                                              ; +0x38a, 0x3a5796\nLDR.W           R12, [SP,#0x74+var_64]                                 ; +0x38e, 0x3a579a\nVMOV            S14, R0                                                ; +0x392, 0x3a579e\nVCMPE.F32       S14, S15                                               ; +0x396, 0x3a57a2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x39a, 0x3a57a6\nBPL             loc_3A57E8                                             ; +0x39e, 0x3a57aa\nLDR.W           R5, [R4,#0x340]                                        ; +0x3a0, 0x3a57ac\nMOV             R1, R12; cocos2d::CCPoint *                            ; +0x3a4, 0x3a57b0\nMOV             R0, R8; this                                           ; +0x3a6, 0x3a57b2\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x3a8, 0x3a57b4\nMOV             R1, R8                                                 ; +0x3ac, 0x3a57b8\nMOV             R0, R5                                                 ; +0x3ae, 0x3a57ba\nBL              _ZN16LevelEditorLayer17objectsAtPositionEN7cocos2d7CCPointE; LevelEditorLayer::objectsAtPosition(cocos2d::CCPoint) ; +0x3b0, 0x3a57bc\nMOV             R2, R10; bool                                          ; +0x3b4, 0x3a57c0\nMOV             R1, R0; cocos2d::CCArray *                             ; +0x3b6, 0x3a57c2\nMOV             R0, R4; this                                           ; +0x3b8, 0x3a57c4\nBL              _ZN8EditorUI15getCycledObjectEPN7cocos2d7CCArrayEb; EditorUI::getCycledObject(cocos2d::CCArray *,bool) ; +0x3ba, 0x3a57c6\nMOV             R5, R0                                                 ; +0x3be, 0x3a57ca\nCMP             R0, #0                                                 ; +0x3c0, 0x3a57cc\nBEQ.W           loc_3A58EE                                             ; +0x3c2, 0x3a57ce\nMOV             R1, R10; bool                                          ; +0x3c6, 0x3a57d2\nMOV             R0, R4; this                                           ; +0x3c8, 0x3a57d4\nBL              _ZN8EditorUI22createUndoSelectObjectEb; EditorUI::createUndoSelectObject(bool) ; +0x3ca, 0x3a57d6\nMOV             R0, R5; this                                           ; +0x3ce, 0x3a57da\nBL              _ZN7cocos2d7CCArray16createWithObjectEPNS_8CCObjectE; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x3d0, 0x3a57dc\nMOV             R2, R10                                                ; +0x3d4, 0x3a57e0\nMOV             R1, R0                                                 ; +0x3d6, 0x3a57e2\nMOV             R0, R4                                                 ; +0x3d8, 0x3a57e4\nB               loc_3A58D2                                             ; +0x3da, 0x3a57e6\nMOV             R1, R11; cocos2d::CCRect *                             ; +0x3dc, 0x3a57e8\nMOV             R0, R8; this                                           ; +0x3de, 0x3a57ea\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x3e0, 0x3a57ec\nMOV             R0, R4                                                 ; +0x3e4, 0x3a57f0\nMOV             R1, R8                                                 ; +0x3e6, 0x3a57f2\nBL              _ZN8EditorUI19selectObjectsInRectEN7cocos2d6CCRectE; EditorUI::selectObjectsInRect(cocos2d::CCRect) ; +0x3e8, 0x3a57f4\nB               loc_3A58EE                                             ; +0x3ec, 0x3a57f8\nLDRB.W          R3, [R4,#0x37C]                                        ; +0x3ee, 0x3a57fa\nCBZ             R3, loc_3A5808                                         ; +0x3f2, 0x3a57fe\nMOVS            R3, #0                                                 ; +0x3f4, 0x3a5800\nSTRB.W          R3, [R4,#0x37C]                                        ; +0x3f6, 0x3a5802\nB               loc_3A58EE                                             ; +0x3fa, 0x3a5806\nADD.W           R10, SP, #0x74+var_18                                  ; +0x3fc, 0x3a5808\nMOV             R3, R7                                                 ; +0x400, 0x3a580c\nMOV             R1, R4                                                 ; +0x402, 0x3a580e\nMOV             R2, R5                                                 ; +0x404, 0x3a5810\nMOV             R0, R10                                                ; +0x406, 0x3a5812\nBL              _ZN8EditorUI13getTouchPointEPN7cocos2d7CCTouchEPNS0_7CCEventE; EditorUI::getTouchPoint(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x408, 0x3a5814\nMOV             R0, R6; this                                           ; +0x40c, 0x3a5818\nMOV             R1, R10; cocos2d::CCPoint *                            ; +0x40e, 0x3a581a\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0x410, 0x3a581c\nLDRB.W          R3, [R4,#0x242]                                        ; +0x414, 0x3a5820\nVMOV            S14, R0                                                ; +0x418, 0x3a5824\nCBZ             R3, loc_3A5838                                         ; +0x41c, 0x3a5828\nVMOV.F32        S15, #20.0                                             ; +0x41e, 0x3a582a\nVCMPE.F32       S14, S15                                               ; +0x422, 0x3a582e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x426, 0x3a5832\nBPL             loc_3A58EE                                             ; +0x42a, 0x3a5836\nLDR.W           R3, [R4,#0x33C]                                        ; +0x42c, 0x3a5838\nCMP             R3, #3                                                 ; +0x430, 0x3a583c\nBNE             loc_3A58D8                                             ; +0x432, 0x3a583e\nLDR.W           R3, [R4,#0x340]                                        ; +0x434, 0x3a5840\nADD             R5, SP, #0x74+var_28                                   ; +0x438, 0x3a5844\nMOV             R2, R6                                                 ; +0x43a, 0x3a5846\nMOV             R0, R5; this                                           ; +0x43c, 0x3a5848\nLDR.W           R1, [R3,#0x9F0]; cocos2d::CCPoint *                    ; +0x43e, 0x3a584a\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x442, 0x3a584e\nLDR.W           R3, [R4,#0x378]                                        ; +0x446, 0x3a5852\nCBZ             R3, loc_3A5860                                         ; +0x44a, 0x3a5856\nLDRB.W          R3, [R4,#0x1EA]                                        ; +0x44c, 0x3a5858\nCMP             R3, #0                                                 ; +0x450, 0x3a585c\nBNE             loc_3A58EE                                             ; +0x452, 0x3a585e\nLDR.W           R7, [R4,#0x340]                                        ; +0x454, 0x3a5860\nMOV             R1, R5; cocos2d::CCPoint *                             ; +0x458, 0x3a5864\nMOV             R0, R10; this                                          ; +0x45a, 0x3a5866\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x45c, 0x3a5868\nMOV             R1, R10                                                ; +0x460, 0x3a586c\nMOV             R0, R7                                                 ; +0x462, 0x3a586e\nBL              _ZN16LevelEditorLayer17objectsAtPositionEN7cocos2d7CCPointE; LevelEditorLayer::objectsAtPosition(cocos2d::CCPoint) ; +0x464, 0x3a5870\nMOVS            R2, #0; bool                                           ; +0x468, 0x3a5874\nMOV             R1, R0; cocos2d::CCArray *                             ; +0x46a, 0x3a5876\nMOV             R0, R4; this                                           ; +0x46c, 0x3a5878\nBL              _ZN8EditorUI15getCycledObjectEPN7cocos2d7CCArrayEb; EditorUI::getCycledObject(cocos2d::CCArray *,bool) ; +0x46e, 0x3a587a\nMOV             R5, R0                                                 ; +0x472, 0x3a587e\nCBZ             R0, loc_3A58EE                                         ; +0x474, 0x3a5880\nMOV             R0, R4; this                                           ; +0x476, 0x3a5882\nMOVS            R1, #0; bool                                           ; +0x478, 0x3a5884\nBL              _ZN8EditorUI22createUndoSelectObjectEb; EditorUI::createUndoSelectObject(bool) ; +0x47a, 0x3a5886\nLDRB.W          R2, [R4,#0x241]; bool                                  ; +0x47e, 0x3a588a\nCBNZ            R2, loc_3A589A                                         ; +0x482, 0x3a588e\nMOV             R0, R4; this                                           ; +0x484, 0x3a5890\nMOV             R1, R5; GameObject *                                   ; +0x486, 0x3a5892\nBL              _ZN8EditorUI12selectObjectEP10GameObjectb; EditorUI::selectObject(GameObject *,bool) ; +0x488, 0x3a5894\nB               loc_3A58EE                                             ; +0x48c, 0x3a5898\nCMP.W           R8, #0                                                 ; +0x48e, 0x3a589a\nBEQ             loc_3A58C6                                             ; +0x492, 0x3a589e\nLDR.W           R3, [R4,#0x374]                                        ; +0x494, 0x3a58a0\nCBZ             R3, loc_3A58AE                                         ; +0x498, 0x3a58a4\nMOV             R0, R4; this                                           ; +0x49a, 0x3a58a6\nBL              _ZN8EditorUI14deselectObjectEv; EditorUI::deselectObject(void) ; +0x49c, 0x3a58a8\nB               loc_3A58C6                                             ; +0x4a0, 0x3a58ac\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x4a2, 0x3a58ae\nBL              _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0x4a6, 0x3a58b2\nCBZ             R0, loc_3A58C6                                         ; +0x4aa, 0x3a58b6\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0x4ac, 0x3a58b8\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x4b0, 0x3a58bc\nMOVS            R1, #1; bool                                           ; +0x4b4, 0x3a58c0\nBL              _ZN7cocos2d7CCArray16removeLastObjectEb; cocos2d::CCArray::removeLastObject(bool) ; +0x4b6, 0x3a58c2\nMOV             R0, R5; this                                           ; +0x4ba, 0x3a58c6\nBL              _ZN7cocos2d7CCArray16createWithObjectEPNS_8CCObjectE; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x4bc, 0x3a58c8\nMOVS            R2, #0; bool                                           ; +0x4c0, 0x3a58cc\nMOV             R1, R0; cocos2d::CCArray *                             ; +0x4c2, 0x3a58ce\nMOV             R0, R4; this                                           ; +0x4c4, 0x3a58d0\nBL              _ZN8EditorUI13selectObjectsEPN7cocos2d7CCArrayEb; EditorUI::selectObjects(cocos2d::CCArray *,bool) ; +0x4c6, 0x3a58d2\nB               loc_3A58EE                                             ; +0x4ca, 0x3a58d6\nLDRB.W          R3, [R4,#0x3A8]                                        ; +0x4cc, 0x3a58d8\nCBNZ            R3, loc_3A58EE                                         ; +0x4d0, 0x3a58dc\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0x4d2, 0x3a58de\nMOV             R0, R10; this                                          ; +0x4d4, 0x3a58e0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x4d6, 0x3a58e2\nMOV             R0, R4                                                 ; +0x4da, 0x3a58e6\nMOV             R1, R10                                                ; +0x4dc, 0x3a58e8\nBL              _ZN8EditorUI15clickOnPositionEN7cocos2d7CCPointE; EditorUI::clickOnPosition(cocos2d::CCPoint) ; +0x4de, 0x3a58ea\nLDR.W           R0, [R4,#0x378]; this                                  ; +0x4e2, 0x3a58ee\nCBZ             R0, loc_3A592C                                         ; +0x4e6, 0x3a58f2\nLDRB.W          R3, [R4,#0x245]                                        ; +0x4e8, 0x3a58f4\nCBZ             R3, loc_3A5926                                         ; +0x4ec, 0x3a58f8\nLDRB.W          R3, [R4,#0x243]                                        ; +0x4ee, 0x3a58fa\nCBZ             R3, loc_3A5926                                         ; +0x4f2, 0x3a58fe\nLDRB.W          R3, [R0,#0x3D5]                                        ; +0x4f4, 0x3a5900\nCBZ             R3, loc_3A5922                                         ; +0x4f8, 0x3a5904\nLDR             R5, =(word_9AA83C - 0x3A590E)                          ; +0x4fa, 0x3a5906\nLDR             R2, [R0]                                               ; +0x4fc, 0x3a5908\nADD             R5, PC; word_9AA83C                                    ; +0x4fe, 0x3a590a\nLDRB            R1, [R5,#(byte_9AA843 - 0x9AA83C)]                     ; +0x500, 0x3a590c\nLDRB            R3, [R5,#(byte_9AA842 - 0x9AA83C)]                     ; +0x502, 0x3a590e\nLDR.W           R2, [R2,#0x2F4]                                        ; +0x504, 0x3a5910\nORR.W           R3, R3, R1,LSL#8                                       ; +0x508, 0x3a5914\nLDRB            R1, [R5,#(byte_9AA844 - 0x9AA83C)]                     ; +0x50c, 0x3a5918\nORR.W           R1, R3, R1,LSL#16                                      ; +0x50e, 0x3a591a\nBLX             R2                                                     ; +0x512, 0x3a591e\nB               loc_3A5926                                             ; +0x514, 0x3a5920\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0x516, 0x3a5922\nMOVS            R3, #0                                                 ; +0x51a, 0x3a5926\nSTR.W           R3, [R4,#0x378]                                        ; +0x51c, 0x3a5928\nLDR             R1, =(flt_AC5D38 - 0x3A593C)                           ; +0x520, 0x3a592c\nMOVS            R5, #0                                                 ; +0x522, 0x3a592e\nADD.W           R0, R4, #0x24C                                         ; +0x524, 0x3a5930\nSTRB.W          R5, [R4,#0x242]                                        ; +0x528, 0x3a5934\nADD             R1, PC; flt_AC5D38                                     ; +0x52c, 0x3a5938\nSTRB.W          R5, [R4,#0x241]                                        ; +0x52e, 0x3a593a\nSTRB.W          R5, [R4,#0x245]                                        ; +0x532, 0x3a593e\nSTRB.W          R5, [R4,#0x1E9]                                        ; +0x536, 0x3a5942\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x53a, 0x3a5946\nMOV             R1, R6                                                 ; +0x53e, 0x3a594a\nSTRB.W          R5, [R4,#0x243]                                        ; +0x540, 0x3a594c\nADD.W           R0, R4, #0x354                                         ; +0x544, 0x3a5950\nSTRB.W          R5, [R4,#0x1EA]                                        ; +0x548, 0x3a5954\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x54c, 0x3a5958\nMOV             R0, R4; this                                           ; +0x550, 0x3a595c\nSTRB.W          R5, [R4,#0x37D]                                        ; +0x552, 0x3a595e\nLDRB.W          R6, [R4,#0x210]                                        ; +0x556, 0x3a5962\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x55a, 0x3a5966\nLDR.W           R3, [R4,#0x388]                                        ; +0x55e, 0x3a596a\nLDR.W           R0, [R4,#0x254]; this                                  ; +0x562, 0x3a596e\nADDS            R3, #1                                                 ; +0x566, 0x3a5972\nSTR.W           R3, [R4,#0x388]                                        ; +0x568, 0x3a5974\nBL              _ZN7cocos2d7CCArray16removeAllObjectsEv; cocos2d::CCArray::removeAllObjects(void) ; +0x56c, 0x3a5978\nCBZ             R6, loc_3A5992                                         ; +0x570, 0x3a597c\nMOV             R0, R4; this                                           ; +0x572, 0x3a597e\nBL              _ZN8EditorUI23updateSpecialUIElementsEv; EditorUI::updateSpecialUIElements(void) ; +0x574, 0x3a5980\nLDR             R3, [R4]                                               ; +0x578, 0x3a5984\nMOV             R0, R4                                                 ; +0x57a, 0x3a5986\nLDR.W           R3, [R3,#0x244]                                        ; +0x57c, 0x3a5988\nBLX             R3                                                     ; +0x580, 0x3a598c\nSTRB.W          R5, [R4,#0x210]                                        ; +0x582, 0x3a598e\nMOV             R0, R9                                                 ; +0x586, 0x3a5992\nADD             R1, SP, #0x74+var_58                                   ; +0x588, 0x3a5994\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x58a, 0x3a5996\nB               loc_3A5A2C                                             ; +0x58e, 0x3a599a\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x590, 0x3a599c\nMOV             R1, R7; unsigned int                                   ; +0x594, 0x3a59a0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x596, 0x3a59a2\nLDR.W           R3, [R4,#0x378]                                        ; +0x59a, 0x3a59a6\nLDR.W           R3, [R3,#0x304]                                        ; +0x59e, 0x3a59aa\nLDR.W           R2, [R0,#0x304]                                        ; +0x5a2, 0x3a59ae\nMOV             R10, R0                                                ; +0x5a6, 0x3a59b2\nCMP             R2, R3                                                 ; +0x5a8, 0x3a59b4\nBEQ             loc_3A59CA                                             ; +0x5aa, 0x3a59b6\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x5ac, 0x3a59b8\nMOV             R0, R5; this                                           ; +0x5ae, 0x3a59ba\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x5b0, 0x3a59bc\nMOV             R0, R4                                                 ; +0x5b4, 0x3a59c0\nMOV             R1, R10                                                ; +0x5b6, 0x3a59c2\nMOV             R2, R5                                                 ; +0x5b8, 0x3a59c4\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x5ba, 0x3a59c6\nADDS            R7, #1                                                 ; +0x5be, 0x3a59ca\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x5c0, 0x3a59cc\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5c4, 0x3a59d0\nCMP             R7, R0                                                 ; +0x5c8, 0x3a59d4\nBCC             loc_3A599C                                             ; +0x5ca, 0x3a59d6\nB               loc_3A564C                                             ; +0x5cc, 0x3a59d8\nLDR.W           R0, [R4,#0x214]                                        ; +0x5ce, 0x3a59da\nLDR             R3, [R0]                                               ; +0x5d2, 0x3a59de\nLDR.W           R3, [R3,#0xA8]                                         ; +0x5d4, 0x3a59e0\nBLX             R3                                                     ; +0x5d8, 0x3a59e4\nCBZ             R0, loc_3A59EE                                         ; +0x5da, 0x3a59e6\nLDR.W           R8, [R4,#0x214]                                        ; +0x5dc, 0x3a59e8\nB               loc_3A567A                                             ; +0x5e0, 0x3a59ec\nLDR.W           R0, [R4,#0x218]                                        ; +0x5e2, 0x3a59ee\nLDR             R3, [R0]                                               ; +0x5e6, 0x3a59f2\nLDR.W           R3, [R3,#0xA8]                                         ; +0x5e8, 0x3a59f4\nBLX             R3                                                     ; +0x5ec, 0x3a59f8\nCMP             R0, #0                                                 ; +0x5ee, 0x3a59fa\nBEQ.W           loc_3A5698                                             ; +0x5f0, 0x3a59fc\nLDR.W           R8, [R4,#0x218]                                        ; +0x5f4, 0x3a5a00\nLDR.W           R3, [R8]                                               ; +0x5f8, 0x3a5a04\nMOV             R0, R8                                                 ; +0x5fc, 0x3a5a08\nLDR.W           R10, [R3,#0x5C]                                        ; +0x5fe, 0x3a5a0a\nLDR             R3, [R3,#0x60]                                         ; +0x602, 0x3a5a0e\nBLX             R3                                                     ; +0x604, 0x3a5a10\nMOV             R2, R7                                                 ; +0x606, 0x3a5a12\nMOV             R1, R0                                                 ; +0x608, 0x3a5a14\nMOV             R0, R5                                                 ; +0x60a, 0x3a5a16\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x60c, 0x3a5a18\nMOV             R0, R8                                                 ; +0x610, 0x3a5a1c\nMOV             R1, R5                                                 ; +0x612, 0x3a5a1e\nBLX             R10                                                    ; +0x614, 0x3a5a20\nLDR.W           R0, [R4,#0x218]; this                                  ; +0x616, 0x3a5a22\nBL              _ZN18GJTransformControl14refreshControlEv; GJTransformControl::refreshControl(void) ; +0x61a, 0x3a5a26\nB               loc_3A5698                                             ; +0x61e, 0x3a5a2a\nLDR             R3, [SP,#0x74+var_68]                                  ; +0x620, 0x3a5a2c\nLDR             R2, [SP,#0x74+var_8]                                   ; +0x622, 0x3a5a2e\nLDR             R3, [R3]                                               ; +0x624, 0x3a5a30\nCMP             R2, R3                                                 ; +0x626, 0x3a5a32\nBEQ             loc_3A5A3A                                             ; +0x628, 0x3a5a34\nBLX             __stack_chk_fail                                       ; +0x62a, 0x3a5a36\nADD             SP, SP, #0x74 ; 't'                                    ; +0x62e, 0x3a5a3a\nPOP.W           {R4-R11,PC}                                            ; +0x630, 0x3a5a3c", "xrefs": ["`non-virtual thunk to'EditorUI::ccTouchEnded @ 0x3a5a5c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}