// // GJTransformControl::ccTouchEnded from 0x14012cc10 to 0x14012ce07 (503 bytes) // // 4 xrefs: // > @ 0x140552c70 // > @ 0x140670c1c // > @ 0x140670c2c // > @ 0x1406c9c78 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJTransformControl::ccTouchEnded(GJTransformControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { char v5; // di __int16 a_low; // ax bool v7; // zf struct cocos2d::CCObject *v8; // rax __int64 v9; // rdi struct cocos2d::CCPoint v10; // rax struct cocos2d::CCObject *v11; // rax struct cocos2d::CCObject *v12; // rax __int64 v13; // rax __int64 v14; // rcx struct cocos2d::CCObject *v15; // rax __int64 v16; // rbx cocos2d::CCArray *v17; // rax cocos2d::CCArray *v18; // rdi EditorUI *v19; // rax cocos2d::CCPoint v20; // [rsp+20h] [rbp-28h] BYREF _BYTE v21[32]; // [rsp+28h] [rbp-20h] BYREF cocos2d::CCPoint v22; // [rsp+50h] [rbp+8h] BYREF cocos2d::CCPoint v23; // [rsp+58h] [rbp+10h] BYREF char v24; // [rsp+68h] [rbp+20h] BYREF v5 = 0; cocos2d::CCPoint::CCPoint(&v22); if ( LODWORD(a1->m_obContentSize.height) == a2->m_nId ) { a_low = LOWORD(a1->m_sAdditionalTransform.a); if ( a_low == 1 ) { v7 = *(_QWORD *)&a1->m_sAdditionalTransform.b == 0; a1->m_obContentSize.height = NAN; if ( !v7 ) { v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_sInverse.ty, 0); v9 = **(_QWORD **)&a1->m_sAdditionalTransform.b; v8->__vftable[2].getTag(v8); v10 = cocos2d::CCNode::convertToWorldSpace((GJTransformControl *)((char *)a1 - 320), &v23); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCPoint))(v9 + 104))( *(_QWORD *)&a1->m_sAdditionalTransform.b, v10); v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_sInverse.ty, 0); v11->__vftable[2].encodeWithCoder(v11, (DS_Dictionary *)&dword_1406C1AA8); v5 = 1; v12 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_obAnchorPoint.y, 0); v13 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v12->__vftable[2].getTag)(v12); cocos2d::CCPoint::operator=(&v22, v13); LABEL_9: GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 1); LOWORD(a1->m_sAdditionalTransform.a) = 0; GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 0); if ( v5 ) { v15 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_obAnchorPoint.y, 0); v15->__vftable[2].getTag(v15); cocos2d::CCPoint::CCPoint(&v23); cocos2d::CCPoint::operator-(&v22, &v24, &v23); v16 = *(_QWORD *)&a1->m_sAdditionalTransform.b; cocos2d::CCPoint::CCPoint(&v20); v18 = v17; v19 = (EditorUI *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 120LL))(v16); EditorUI::checkDiffAfterTransformAnchor(v19, (cocos2d::CCPoint)v21, v18); GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 1); GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 0); } return; } } else if ( a_low ) { v14 = *(_QWORD *)&a1->m_sAdditionalTransform.b; a1->m_obContentSize.height = NAN; if ( v14 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 88LL))(v14); } if ( (unsigned __int16)(LOWORD(a1->m_sAdditionalTransform.a) - 10) > 1u ) { LOWORD(a1->m_sAdditionalTransform.a) = 0; GJTransformControl::updateButtons((GJTransformControl *)((char *)a1 - 320), 0, 0); return; } goto LABEL_9; } }