//
// cocos2d::CCRectApplyAffineTransform from 0xace034 to 0xace224 (496 bytes)
//
// 22 xrefs:
// > GameObject::getBoundingRect @ 0x644030
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa1298
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa12b4
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa12d0
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa12ec
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa1308
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa1328
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa134c
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa1370
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa1390
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa18c8
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa18e4
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa1900
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa191c
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa1938
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa1958
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa197c
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa19a0
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0xaa19c4
// > cocos2d::extension::CCEditBox::keyboardWillShow @ 0xaa9570
// > cocos2d::CCNode::boundingBox @ 0xacc838
// > ??> @ 0xbea40
//
// 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 cocos2d::CCRectApplyAffineTransform(const cocos2d::CCRect *a1, const cocos2d::CCAffineTransform *a2)
{
cocos2d::CCRect *v2; // x8
cocos2d::CCRect *v4; // x22
float v6; // s0
float v7; // s11
float v8; // s0
float v9; // s10
float v10; // s0
float v11; // s9
float v12; // s0
float v13; // s8
float v14; // s1
float v15; // s5
float v16; // s2
float v17; // s0
float v18; // s4
float v19; // s7
float v20; // s3
float v21; // s1
float v26; // [xsp+60h] [xbp+60h]
float v27; // [xsp+64h] [xbp+64h]
float v28; // [xsp+68h] [xbp+68h]
float v29; // [xsp+6Ch] [xbp+6Ch]
float v30; // [xsp+70h] [xbp+70h]
float v31; // [xsp+74h] [xbp+74h]
float v32; // [xsp+78h] [xbp+78h]
float v33; // [xsp+7Ch] [xbp+7Ch]
cocos2d::CCPoint v34; // [xsp+80h] [xbp+80h] BYREF
cocos2d::CCRect result; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v4 = v2;
cocos2d::CCRect::getMinY((cocos2d::CCRect *)a1);
v7 = v6;
cocos2d::CCRect::getMinX((cocos2d::CCRect *)a1);
v9 = v8;
cocos2d::CCRect::getMaxX((cocos2d::CCRect *)a1);
v11 = v10;
cocos2d::CCRect::getMaxY((cocos2d::CCRect *)a1);
v13 = v12;
cocos2d::CCPoint::CCPoint(&v34, v9, v7);
cocos2d::__CCPointApplyAffineTransform(&v34, a2);
cocos2d::CCPoint::CCPoint(&v34, v11, v7);
cocos2d::__CCPointApplyAffineTransform(&v34, a2);
cocos2d::CCPoint::CCPoint(&v34, v9, v13);
cocos2d::__CCPointApplyAffineTransform(&v34, a2);
cocos2d::CCPoint::CCPoint(&v34, v11, v13);
cocos2d::__CCPointApplyAffineTransform(&v34, a2);
v14 = v28;
v15 = v28;
if ( v28 >= v26 )
v15 = v26;
v16 = v32;
v17 = v32;
if ( v32 >= v30 )
v17 = v30;
if ( v17 >= v15 )
v17 = v15;
if ( v28 <= v26 )
v14 = v26;
if ( v32 <= v30 )
v16 = v30;
if ( v14 >= v16 )
v16 = v14;
v18 = v29;
v19 = v29;
if ( v29 >= v27 )
v19 = v27;
v20 = v33;
v21 = v33;
if ( v33 >= v31 )
v21 = v31;
if ( v21 >= v19 )
v21 = v19;
if ( v29 <= v27 )
v18 = v27;
if ( v33 <= v31 )
v20 = v31;
if ( v18 >= v20 )
v20 = v18;
cocos2d::CCRect::CCRect(v4, v17, v21, v16 - v17, v20 - v21);
return result;
}