//
// cocos2d::CCRectApplyAffineTransform from 0x1800063a0 to 0x180006553 (435 bytes)
//
// 3 xrefs:
// > cocos2d::CCNode::boundingBox @ 0x180002d2c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad8b8
//
// 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::CCRect *__fastcall cocos2d::CCRectApplyAffineTransform(
cocos2d::CCRect *this,
cocos2d::CCRect *retstr,
const struct cocos2d::CCAffineTransform *a3,
const struct cocos2d::CCAffineTransform *a4)
{
const struct cocos2d::CCPoint *v7; // rax
const struct cocos2d::CCPoint *v8; // rax
const struct cocos2d::CCPoint *v9; // rax
const struct cocos2d::CCPoint *v10; // rax
float v11; // xmm5_4
float v12; // xmm1_4
float v13; // xmm3_4
float v14; // xmm0_4
float v15; // xmm2_4
float v16; // xmm4_4
float v17; // xmm0_4
float v18; // xmm1_4
float v20; // [rsp+30h] [rbp-68h] BYREF
float v21; // [rsp+34h] [rbp-64h]
float v22; // [rsp+38h] [rbp-60h] BYREF
float v23; // [rsp+3Ch] [rbp-5Ch]
_BYTE v24[48]; // [rsp+40h] [rbp-58h] BYREF
float v25; // [rsp+A0h] [rbp+8h] BYREF
float v26; // [rsp+A4h] [rbp+Ch]
float v27; // [rsp+B8h] [rbp+20h] BYREF
float v28; // [rsp+BCh] [rbp+24h]
cocos2d::CCRect::getMinY(retstr);
cocos2d::CCRect::getMinX(retstr);
cocos2d::CCRect::getMaxX(retstr);
cocos2d::CCRect::getMaxY(retstr);
v7 = (const struct cocos2d::CCPoint *)kmVec2Fill(v24);
cocos2d::__CCPointApplyAffineTransform((cocos2d *)&v25, v7, a3);
v8 = (const struct cocos2d::CCPoint *)kmVec2Fill(v24);
cocos2d::__CCPointApplyAffineTransform((cocos2d *)&v27, v8, a3);
v9 = (const struct cocos2d::CCPoint *)kmVec2Fill(v24);
cocos2d::__CCPointApplyAffineTransform((cocos2d *)&v20, v9, a3);
v10 = (const struct cocos2d::CCPoint *)kmVec2Fill(v24);
cocos2d::__CCPointApplyAffineTransform((cocos2d *)&v22, v10, a3);
v11 = fminf(v25, v27);
v12 = fminf(v20, v22);
if ( v12 <= v11 )
v11 = v12;
v13 = fmaxf(v25, v27);
v14 = fmaxf(v20, v22);
if ( v13 <= v14 )
v13 = v14;
v15 = fminf(v26, v28);
v16 = fminf(v21, v23);
if ( v16 <= v15 )
v15 = v16;
v17 = fmaxf(v26, v28);
v18 = fmaxf(v21, v23);
if ( v17 <= v18 )
v17 = v18;
cocos2d::CCRect::CCRect(this, v11, v15, v13 - v11, v17 - v15);
return this;
}