//
// cocos2d::CCAffineTransformInvert from 0x180006160 to 0x180006212 (178 bytes)
//
// 4 xrefs:
// > cocos2d::CCNode::parentToNodeTransform @ 0x180004483
// > cocos2d::CCNode::worldToNodeTransform @ 0x1800058de
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad8a0
//
// 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 *__fastcall cocos2d::CCAffineTransformInvert(
cocos2d *this,
struct cocos2d::CCAffineTransform *retstr,
const struct cocos2d::CCAffineTransform *a3)
{
float d; // xmm5_4
float c; // xmm4_4
float ty; // xmm2_4
float tx; // xmm3_4
float v8; // xmm6_4
float v9; // xmm0_4
float v10; // xmm1_4
float v11; // xmm2_4
d = retstr->d;
c = retstr->c;
ty = retstr->ty;
tx = retstr->tx;
v8 = 1.0 / (float)((float)(retstr->a * d) - (float)(retstr->b * c));
*(float *)this = d * v8;
*((float *)this + 1) = (float)-v8 * retstr->b;
v9 = retstr->a * v8;
*((float *)this + 2) = (float)-v8 * c;
v10 = ty;
v11 = ty * retstr->a;
*((float *)this + 3) = v9;
*((float *)this + 5) = (float)((float)(tx * retstr->b) - v11) * v8;
*((float *)this + 4) = (float)((float)(v10 * c) - (float)(tx * d)) * v8;
return this;
}