//
// cocos2d::CCAffineTransformInvert from 0x100225b60 to 0x100225bd9 (121 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::parentToNodeTransform @ 0x100261026
// > cocos2d::CCNode::worldToNodeTransform @ 0x1002611b4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:27:05 +0000
//
__int64 __fastcall cocos2d::CCAffineTransformInvert(__int64 a1, __m128 *a2)
{
__m128 v2; // xmm0
__m128 v4; // xmm1
__m128 v5; // xmm3
__m128 inserted; // xmm1
v2 = *a2;
v4 = (__m128)0x3F800000u;
v4.f32[0] = 1.0
/ (float)((float)(_mm_shuffle_ps(v2, v2, 255).f32[0] * COERCE_FLOAT(*a2))
- (float)(_mm_movehdup_ps(*a2).f32[0] * a2->f32[2]));
v5 = _mm_moveldup_ps(v4);
inserted = _mm_insert_ps(v4, _mm_xor_ps((__m128)xmmword_100A035F0, v4), 16);
*(__m128 *)a1 = _mm_mul_ps(_mm_shuffle_ps(*a2, *a2, 39), _mm_shuffle_ps(inserted, inserted, 20));
_mm_storel_ps(
(double *)(a1 + 16),
_mm_mul_ps(
v5,
_mm_sub_ps(
_mm_mul_ps(_mm_shuffle_ps((__m128)a2[1].u64[0], (__m128)a2[1].u64[0], 225), _mm_shuffle_ps(v2, v2, 230)),
_mm_mul_ps(_mm_shuffle_ps(v2, v2, 227), (__m128)a2[1].u64[0]))));
return a1;
}