//
// cocos2d::CCAffineTransformInvert from 0x5bef56 to 0x5befd0 (122 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::parentToNodeTransform @ 0x5bd446
// > cocos2d::CCNode::worldToNodeTransform @ 0x5bd4a4
//
// 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::CCAffineTransformInvert(
cocos2d::CCAffineTransform *__return_ptr retstr,
const cocos2d::CCAffineTransform *a2)
{
float b; // s11
float c; // s12
float d; // s10
float v6; // s14
b = a2->b;
c = a2->c;
d = a2->d;
v6 = 1.0 / (float)((float)(a2->a * d) - (float)(b * c));
cocos2d::__CCAffineTransformMake(
retstr,
v6 * d,
(float)-v6 * b,
(float)-v6 * c,
v6 * a2->a,
v6 * (float)((float)(c * a2->ty) - (float)(d * a2->tx)),
v6 * (float)((float)(b * a2->tx) - (float)(a2->a * a2->ty)));
return retstr;
}