// // cocos2d::CCNode::nodeToParentTransform from 0x1800037f0 to 0x180003c58 (1128 bytes) // // 90 xrefs: // > @ 0x1800e56e8 // > @ 0x1800e5d48 // > @ 0x1800e60b8 // > @ 0x1800e6a18 // > @ 0x1800e6f20 // > @ 0x1800eb6e8 // > @ 0x1800ebb88 // > @ 0x1800ec060 // > @ 0x1800ec588 // > @ 0x1800ecbe0 // > @ 0x1800ed1f8 // > @ 0x1800ed6b8 // > @ 0x1800edbf0 // > @ 0x1800ee158 // > @ 0x1800ee730 // > @ 0x1800eebf0 // > @ 0x1800eef78 // > @ 0x1800ef2f8 // > @ 0x1800ef680 // > @ 0x1800efa00 // > @ 0x1800efd80 // > @ 0x1800f0120 // > @ 0x1800f04c0 // > @ 0x1800f0860 // > @ 0x1800f0c00 // > @ 0x1800f0fa0 // > @ 0x1800f1340 // > @ 0x1800f16e0 // > @ 0x1800f1a80 // > @ 0x1800f1e10 // > @ 0x1800f2198 // > @ 0x1800f2520 // > @ 0x1800f28a8 // > @ 0x1800f2c30 // > @ 0x1800f2fb8 // > @ 0x1800f3340 // > @ 0x1800f36c8 // > @ 0x1800f3a48 // > @ 0x1800f3dd8 // > @ 0x1800f4170 // > @ 0x1800f4508 // > @ 0x1800f48a0 // > @ 0x1800f4c38 // > @ 0x1800f4fd0 // > @ 0x1800f5380 // > @ 0x1800f5708 // > @ 0x1800f5a98 // > @ 0x1800f5e28 // > @ 0x1800f61b8 // > @ 0x1800f6548 // > @ 0x1800f68d8 // > @ 0x1800f6c68 // > @ 0x1800f7000 // > @ 0x1800f7568 // > @ 0x1800f7990 // > @ 0x1800f7dd8 // > @ 0x1800f8220 // > @ 0x1800f8668 // > @ 0x1800f8ac8 // > @ 0x1800f8f28 // > @ 0x1800f9378 // > @ 0x1800f9740 // > @ 0x1800f9b58 // > @ 0x1800f9f68 // > @ 0x1800fa398 // > @ 0x1800faa08 // > @ 0x1800fb078 // > @ 0x1800fb6e8 // > @ 0x1800fbd58 // > @ 0x1800fc3c8 // > @ 0x1800fca38 // > @ 0x1800fd0a8 // > @ 0x1800fd718 // > @ 0x1800fdd88 // > @ 0x1800fe3f8 // > @ 0x1800fea68 // > @ 0x1800ff2b0 // > @ 0x1800ffd50 // > @ 0x180103a98 // > @ 0x180103f88 // > @ 0x1801054c0 // > @ 0x180105898 // > @ 0x180105cf0 // > @ 0x180106158 // > @ 0x180106a90 // > @ 0x180131078 // > @ 0x1801310d8 // > @ 0x1801310e8 // > @ 0x1801438a8 // > @ 0x1801ad2e8 // // 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 // struct cocos2d::CCAffineTransform *__fastcall cocos2d::CCNode::nodeToParentTransform( cocos2d::CCNode *this, struct cocos2d::CCAffineTransform *retstr) { float v4; // xmm2_4 float v5; // xmm0_4 float v6; // xmm0_4 bool v7; // zf float x; // xmm9_4 float y; // xmm10_4 float m_fRotationX; // xmm1_4 float v11; // xmm12_4 float v12; // xmm6_4 float v13; // xmm13_4 float v14; // xmm8_4 float m_fRotationY; // xmm8_4 float v16; // xmm6_4 float v17; // xmm0_4 float v18; // xmm8_4 float v19; // xmm5_4 char v20; // bp float v21; // xmm0_4 struct cocos2d::CCAffineTransform *v22; // rax const struct cocos2d::CCAffineTransform *v23; // r9 cocos2d::CCAffineTransform *p_m_sTransform; // rdi __int64 v25; // xmm0_8 float v26; // xmm6_4 float v27; // xmm0_4 struct cocos2d::CCAffineTransform *v28; // rdx const struct cocos2d::CCAffineTransform *v29; // r9 struct cocos2d::CCAffineTransform *v30; // rax __int64 v31; // xmm0_8 const struct cocos2d::CCAffineTransform *v32; // r8 struct cocos2d::CCAffineTransform *v33; // rax __int64 v34; // xmm0_8 struct cocos2d::CCAffineTransform *v35; // rax __int64 v36; // xmm0_8 float v38; // [rsp+20h] [rbp-118h] _BYTE v39[24]; // [rsp+40h] [rbp-F8h] BYREF struct cocos2d::CCAffineTransform v40; // [rsp+58h] [rbp-E0h] BYREF if ( this->m_bTransformDirty ) { v7 = !this->m_bIgnoreAnchorPointForPosition; x = this->m_obPosition.x; y = this->m_obPosition.y; this->m_fTransformX = x; this->m_fTransformY = y; if ( !v7 ) { x = x + this->m_obAnchorPointInPoints.x; y = y + this->m_obAnchorPointInPoints.y; } m_fRotationX = this->m_fRotationX; v11 = 1.0; v12 = 0.0; v13 = 1.0; v14 = 0.0; if ( m_fRotationX != 0.0 || this->m_fRotationY != 0.0 ) { m_fRotationY = this->m_fRotationY; v16 = -(float)(m_fRotationX * 0.017453292); if ( m_fRotationX == m_fRotationY ) { v11 = cosf(v16); v17 = sinf(v16); v12 = v17; v13 = v11; } else { v18 = -(float)(m_fRotationY * 0.017453292); v11 = cosf(v16); v12 = sinf(v16); v13 = cosf(v18); v17 = sinf(v18); } v14 = v17; } if ( this->m_fSkewX == 0.0 && this->m_fSkewY == 0.0 ) { v19 = this->m_obAnchorPointInPoints.x; v20 = 0; if ( v19 != 0.0 || this->m_obAnchorPointInPoints.y != 0.0 ) { v21 = -this->m_obAnchorPointInPoints.y; y = y + (float)((float)((float)(v21 * v11) * this->m_fScaleY) - (float)((float)(v19 * v14) * this->m_fScaleX)); x = x + (float)((float)((float)((float)-v19 * v13) * this->m_fScaleX) - (float)((float)(v21 * v12) * this->m_fScaleY)); } } else { v20 = 1; } v22 = cocos2d::__CCAffineTransformMake( (cocos2d *)&v40, retstr, this->m_fScaleX * v14, (float)-v12 * this->m_fScaleY, this->m_fScaleY * v11, x, y); p_m_sTransform = &this->m_sTransform; v25 = *(_QWORD *)&v22->tx; *(_OWORD *)&this->m_sTransform.a = *(_OWORD *)&v22->a; *(_QWORD *)&this->m_sTransform.tx = v25; if ( v20 ) { v26 = tanf(this->m_fSkewX * 0.017453292); v27 = tanf(this->m_fSkewY * 0.017453292); v40 = *cocos2d::__CCAffineTransformMake((cocos2d *)v39, v28, v27, v26, 1.0, 0.0, 0.0); v30 = cocos2d::CCAffineTransformConcat((cocos2d *)v39, &v40, &this->m_sTransform, v29); v31 = *(_QWORD *)&v30->tx; *(_OWORD *)&p_m_sTransform->a = *(_OWORD *)&v30->a; *(_QWORD *)&this->m_sTransform.tx = v31; if ( !cocos2d::CCSize::equals((cocos2d::CCSize *)&this->m_obAnchorPointInPoints, &unk_1801A82E0) ) { v33 = cocos2d::CCAffineTransformTranslate( (cocos2d *)v39, &this->m_sTransform, v32, -this->m_obAnchorPointInPoints.y, v38); v34 = *(_QWORD *)&v33->tx; *(_OWORD *)&p_m_sTransform->a = *(_OWORD *)&v33->a; *(_QWORD *)&this->m_sTransform.tx = v34; } } if ( this->m_bAdditionalTransformDirty ) { v35 = cocos2d::CCAffineTransformConcat((cocos2d *)v39, &this->m_sTransform, &this->m_sAdditionalTransform, v23); v36 = *(_QWORD *)&v35->tx; *(_OWORD *)&p_m_sTransform->a = *(_OWORD *)&v35->a; this->m_bAdditionalTransformDirty = 0; *(_QWORD *)&this->m_sTransform.tx = v36; } *(_WORD *)&this->m_bTransformDirty = 0; } else if ( this->m_bPositionDirty ) { v4 = this->m_obPosition.y; v5 = this->m_obPosition.x - this->m_fTransformX; this->m_fTransformX = this->m_obPosition.x; this->m_bPositionDirty = 0; this->m_sTransform.tx = v5 + this->m_sTransform.tx; v6 = v4 - this->m_fTransformY; this->m_fTransformY = v4; this->m_sTransform.ty = v6 + this->m_sTransform.ty; } *(_OWORD *)&retstr->a = *(_OWORD *)&this->m_sTransform.a; *(_QWORD *)&retstr->tx = *(_QWORD *)&this->m_sTransform.tx; return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source