//
// GameObject::getObjectRect from 0x356f88 to 0x357078 (240 bytes)
//
// 0 xrefs:
//
// 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
//
const cocos2d::CCRect *GameObject::getObjectRect(GameObject *a1)
{
GameObject *v1; // r1
float v2; // r2
float v3; // r3
GameObject *v5; // r4
float v6; // s16
float v7; // s17
float m_scaleX; // s14
float m_scaleY; // s15
const cocos2d::CCPoint *BoxOffset; // r0
float height; // r2
cocos2d::CCSize v13; // [sp+Ch] [bp-24h] BYREF
cocos2d::CCPoint v14; // [sp+14h] [bp-1Ch] BYREF
float v15[2]; // [sp+1Ch] [bp-14h] BYREF
cocos2d::CCPoint v16; // [sp+24h] [bp-Ch] BYREF
v5 = v1;
v6 = v3;
v7 = v2;
m_scaleX = v1->m_scaleX;
m_scaleY = v1->m_scaleY;
if ( v1->m_isMirroredByScale )
{
m_scaleX = fabsf(m_scaleX);
m_scaleY = fabsf(m_scaleY);
}
cocos2d::CCSize::CCSize(&v13, v1->m_width * m_scaleX, v1->m_height * m_scaleY);
v13.width = v13.width * v7;
v13.height = v13.height * v6;
BoxOffset = GameObject::getBoxOffset(v5);
cocos2d::CCPoint::CCPoint(&v14, BoxOffset);
if ( v5->m_isRotationAligned )
{
height = v13.height;
v13.height = v13.width;
v13.width = height;
}
v5->getRealPosition(&v16, v5);
cocos2d::CCPoint::operator+(v15, &v16, &v14);
cocos2d::CCRect::CCRect(
(cocos2d::CCRect *)a1,
v15[0] - (float)(v13.width * 0.5),
v15[1] - (float)(v13.height * 0.5),
v13.width,
v13.height);
return (const cocos2d::CCRect *)a1;
}