//
// cocos2d::CCRectApplyAffineTransform from 0x7c5824 to 0x7c59b6 (402 bytes)
//
// 21 xrefs:
// > GameObject::getBoundingRect @ 0x44cc4a
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab5d0
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab5e2
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab5f4
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab606
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab618
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab62a
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab63c
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab64e
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab660
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab962
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab974
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab986
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab998
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab9aa
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab9bc
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab9ce
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab9e0
// > cocos2d::extension::CCScale9Sprite::updateWithBatchNode @ 0x7ab9f2
// > cocos2d::extension::CCEditBox::keyboardWillShow @ 0x7b07b2
// > cocos2d::CCNode::boundingBox @ 0x7c480a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:24 +0000
//
cocos2d::CCRect *__fastcall cocos2d::CCRectApplyAffineTransform(cocos2d::CCRect *a1, cocos2d::CCRect *this, float *a3)
{
float v6; // r10
float v7; // r9
float v8; // r8
float v9; // r11
float v10; // s15
float v11; // s14
float v12; // s10
float v13; // s11
float v14; // s13
float v15; // s15
float v16; // s8
float v17; // s12
float v19; // [sp+Ch] [bp-30h] BYREF
float v20; // [sp+10h] [bp-2Ch]
float v21; // [sp+14h] [bp-28h] BYREF
float v22; // [sp+18h] [bp-24h]
float v23; // [sp+1Ch] [bp-20h] BYREF
float v24; // [sp+20h] [bp-1Ch]
float v25; // [sp+24h] [bp-18h] BYREF
float v26; // [sp+28h] [bp-14h]
float v27[2]; // [sp+2Ch] [bp-10h] BYREF
v6 = COERCE_FLOAT(cocos2d::CCRect::getMinY(this));
v7 = COERCE_FLOAT(cocos2d::CCRect::getMinX(this));
v8 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(this));
v9 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(this));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v7, v6);
cocos2d::__CCPointApplyAffineTransform(&v19, v27, a3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v8, v6);
cocos2d::__CCPointApplyAffineTransform(&v21, v27, a3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v7, v9);
cocos2d::__CCPointApplyAffineTransform(&v23, v27, a3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v8, v9);
cocos2d::__CCPointApplyAffineTransform(&v25, v27, a3);
v10 = v21;
v11 = v25;
if ( v21 < v19 )
v12 = v21;
else
v12 = v19;
if ( v25 < v23 )
v13 = v25;
else
v13 = v23;
if ( v13 >= v12 )
v13 = v12;
if ( v19 >= v21 )
v10 = v19;
if ( v23 >= v25 )
v11 = v23;
v14 = v22;
if ( v10 >= v11 )
v11 = v10;
v15 = v26;
if ( v22 < v20 )
v16 = v22;
else
v16 = v20;
if ( v26 < v24 )
v17 = v26;
else
v17 = v24;
if ( v17 >= v16 )
v17 = v16;
if ( v20 >= v22 )
v14 = v20;
if ( v24 >= v26 )
v15 = v24;
if ( v14 >= v15 )
v15 = v14;
cocos2d::CCRect::CCRect(a1, v13, v17, v11 - v13, v15 - v17);
return a1;
}