// // cocos2d::CCNode::nodeToParentTransformFast from 0x5bd9c4 to 0x5bdc2c (616 bytes) // // 0 xrefs: // // 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 // cocos2d::CCAffineTransform *cocos2d::CCNode::nodeToParentTransformFast( cocos2d::CCAffineTransform *__return_ptr retstr, cocos2d::CCNode *a2) { cocos2d::CCAffineTransform *p_m_sTransform; // r5 float x; // s17 float y; // s18 float m_fRotationX; // s15 float m_fRotationY; // s16 int v9; // s15 float v10; // s20 int v11; // r6 float v12; // s21 float v13; // s16 float v14; // s10 float m_fScaleX; // s12 float m_fScaleY; // s11 int v17; // r9 float v18; // s14 float v19; // s15 float b; // r1 float c; // r2 float d; // r3 float ty; // r1 float v24; // r10 float v25; // r0 float v26; // r1 float v27; // r2 float v28; // r3 float v29; // r1 float v30; // r1 float v31; // r2 float v32; // r3 float v33; // r1 float v34; // r1 float v35; // r2 float v36; // r3 float v37; // r1 float a; // r0 float v39; // r1 float v40; // r2 float v41; // r3 float *p_tx; // r5 float v43; // r1 float v45; // s14 cocos2d::CCAffineTransform v46; // [sp+10h] [bp-38h] BYREF cocos2d::CCAffineTransform v47; // [sp+2Ch] [bp-1Ch] BYREF p_m_sTransform = &a2->m_sTransform; if ( a2->m_bTransformDirty ) { x = a2->m_obPosition.x; y = a2->m_obPosition.y; if ( a2->m_bIgnoreAnchorPointForPosition ) { x = x + a2->m_obAnchorPointInPoints.x; y = y + a2->m_obAnchorPointInPoints.y; } m_fRotationX = a2->m_fRotationX; m_fRotationY = a2->m_fRotationY; if ( m_fRotationX == 0.0 && m_fRotationY == 0.0 ) { v13 = 1.0; v14 = 0.0; v12 = 0.0; v10 = 1.0; } else { v9 = (int)(float)-m_fRotationX; v10 = COERCE_FLOAT(isin(v9 + 90)); v11 = (int)(float)-m_fRotationY; v12 = COERCE_FLOAT(isin(v9)); v13 = COERCE_FLOAT(isin(v11 + 90)); v14 = COERCE_FLOAT(isin(v11)); } m_fScaleX = a2->m_fScaleX; m_fScaleY = a2->m_fScaleY; if ( a2->m_fSkewX == 0.0 && a2->m_fSkewY == 0.0 ) { v18 = a2->m_obAnchorPointInPoints.x; v19 = a2->m_obAnchorPointInPoints.y; if ( v18 != 0.0 || v19 != 0.0 ) { v45 = -v18; x = x + (float)((float)((float)(v12 * v19) * m_fScaleY) + (float)((float)(v13 * v45) * m_fScaleX)); y = y + (float)((float)((float)-(float)(v19 * v10) * m_fScaleY) + (float)((float)(v14 * v45) * m_fScaleX)); } v17 = 0; } else { v17 = 1; } cocos2d::__CCAffineTransformMake( &v46, v13 * m_fScaleX, v14 * m_fScaleX, -(float)(v12 * m_fScaleY), v10 * m_fScaleY, x, y); b = v46.b; c = v46.c; d = v46.d; p_m_sTransform->a = v46.a; p_m_sTransform->b = b; p_m_sTransform->c = c; p_m_sTransform->d = d; ty = v46.ty; p_m_sTransform->tx = v46.tx; p_m_sTransform->ty = ty; if ( v17 ) { v24 = tanf(a2->m_fSkewY * 0.017453); v25 = tanf(a2->m_fSkewX * 0.017453); cocos2d::__CCAffineTransformMake(&v47, 1.0, v24, v25, 1.0, 0.0, 0.0); cocos2d::CCAffineTransformConcat(&v46, &v47, p_m_sTransform); v26 = v46.b; v27 = v46.c; v28 = v46.d; p_m_sTransform->a = v46.a; p_m_sTransform->b = v26; p_m_sTransform->c = v27; p_m_sTransform->d = v28; v29 = v46.ty; p_m_sTransform->tx = v46.tx; p_m_sTransform->ty = v29; if ( !cocos2d::CCPoint::equals(&a2->m_obAnchorPointInPoints, &stru_AC8864) ) { cocos2d::CCAffineTransformTranslate( &v46, p_m_sTransform, COERCE_FLOAT(LODWORD(a2->m_obAnchorPointInPoints.x) ^ 0x80000000), COERCE_FLOAT(LODWORD(a2->m_obAnchorPointInPoints.y) ^ 0x80000000)); v30 = v46.b; v31 = v46.c; v32 = v46.d; p_m_sTransform->a = v46.a; p_m_sTransform->b = v30; p_m_sTransform->c = v31; p_m_sTransform->d = v32; v33 = v46.ty; p_m_sTransform->tx = v46.tx; p_m_sTransform->ty = v33; } } if ( a2->m_bAdditionalTransformDirty ) { cocos2d::CCAffineTransformConcat(&v46, p_m_sTransform, &a2->m_sAdditionalTransform); v34 = v46.b; v35 = v46.c; v36 = v46.d; p_m_sTransform->a = v46.a; p_m_sTransform->b = v34; p_m_sTransform->c = v35; p_m_sTransform->d = v36; v37 = v46.ty; p_m_sTransform->tx = v46.tx; p_m_sTransform->ty = v37; a2->m_bAdditionalTransformDirty = 0; } a2->m_bTransformDirty = 0; } a = p_m_sTransform->a; v39 = p_m_sTransform->b; v40 = p_m_sTransform->c; v41 = p_m_sTransform->d; p_tx = &p_m_sTransform->tx; retstr->a = a; retstr->b = v39; retstr->c = v40; retstr->d = v41; v43 = p_tx[1]; retstr->tx = *p_tx; retstr->ty = v43; return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source