// // GJTransformControl::ccTouchBegan from 0x1003fbc5c to 0x1003fbdfc (416 bytes) // // 2 xrefs: // > sub_1003FBDFC @ 0x1003fbe00 // > @ 0x1008146c8 // // 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 // bool __fastcall GJTransformControl::ccTouchBegan(GJTransformControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { bool v3; // w20 int v7; // w24 int v8; // w20 bool v9; // zf __int64 *v10; // x1 cocos2d::CCNode *v11; // x0 int m_transformButtonType; // w8 __int64 v13; // x0 float32x2_t *v14; // x0 __int64 v15; // x0 double *v16; // x0 __int64 v17; // x0 double *v18; // x0 double v19; // d0 GJTransformControlDelegate *m_delegate; // x0 float32x2_t v21[2]; // [xsp+8h] [xbp-68h] BYREF __int64 v22; // [xsp+18h] [xbp-58h] BYREF float32x2_t v23; // [xsp+20h] [xbp-50h] BYREF char v24; // [xsp+28h] [xbp-48h] BYREF char v25; // [xsp+30h] [xbp-40h] BYREF cocos2d::CCPoint v26; // [xsp+38h] [xbp-38h] BYREF if ( a1->m_touchID != -1 ) return 0; cocos2d::CCTouch::getLocation(a2); cocos2d::CCNode::convertToNodeSpace(a1->m_mainNodeParent, &v26); cocos2d::CCNode::convertToNodeSpace(a1, &v26); sub_1000229B0(&v23); v7 = 1; while ( 1 ) { v8 = v7 - 1; v9 = v7 == 1 || v7 == 12; v10 = (__int64 *)(v9 ? &v24 : &v25); sub_1000229B8(&v22, v10); v11 = (cocos2d::CCNode *)sub_10024A388((__int64)a1->m_warpSprites, v7 - 1); cocos2d::CCNode::boundingBox(v11); if ( sub_100022C60((float *)v21, (float *)&v22) ) break; ++v7; if ( v8 == 11 ) goto LABEL_15; } a1->m_transformButtonType = v7; sub_1000229D0(&v23, (double *)&v22); LABEL_15: m_transformButtonType = a1->m_transformButtonType; v3 = a1->m_transformButtonType != 0; if ( a1->m_transformButtonType ) { a1->m_touchID = a2->m_nId; v13 = sub_10024A388((__int64)a1->m_warpSprites, m_transformButtonType - 1); v14 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 192LL))(v13); sub_1000229F0(v14, &v23, v21); sub_1000229D0(&a1->m_cursorDifference, (double *)v21); v15 = sub_10024A388((__int64)a1->m_warpSprites, 6u); v16 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 192LL))(v15); sub_1000229D0(&a1->m_topRightPosition, v16); v17 = sub_10024A388((__int64)a1->m_warpSprites, 7u); v18 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17); v19 = sub_1000229D0(&a1->m_bottomLeftPosition, v18); m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(GJTransformControlDelegate *, double))m_delegate->transformChangeBegin)(m_delegate, v19); if ( a1->m_transformButtonType == 12 ) a1->m_rotationX = a1->m_rotationY; } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source