//
// AnimatedGameObject::setupAnimatedSize from 0x756914 to 0x756ad8 (452 bytes)
//
// 2 xrefs:
// > AnimatedGameObject::init @ 0x756bc4
// > ??> @ 0x56820
//
// 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
//
void AnimatedGameObject::setupAnimatedSize(AnimatedGameObject *a1, int a2)
{
float v3; // s1
float v4; // s0
float v5; // s2
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x22
float v7; // s0
float v8; // s1
cocos2d::CCPoint v9; // [xsp+30h] [xbp+30h] BYREF
if ( a2 == 1327 )
{
v7 = 35.0;
v8 = 30.0;
goto LABEL_12;
}
if ( a2 > 1327 )
{
if ( a2 != 1584 )
{
if ( a2 == 2012 )
{
a1->m_hasContentSize = 1;
cocos2d::CCPoint::CCPoint(&v9, 45.0, 45.0);
cocos2d::CCSize::operator=(&a1->m_lastSize, &v9);
v3 = 8.0;
a1->m_objectRadius = 15.0;
v4 = 8.0;
goto LABEL_10;
}
if ( a2 == 1328 )
{
a1->m_hasContentSize = 1;
cocos2d::CCPoint::CCPoint(&v9, 35.0, 40.0);
cocos2d::CCSize::operator=(&a1->m_lastSize, &v9);
v3 = 15.0;
v4 = 8.0;
goto LABEL_10;
}
goto LABEL_6;
}
v7 = 60.0;
v8 = 80.0;
LABEL_12:
a1->m_hasContentSize = 1;
cocos2d::CCPoint::CCPoint(&v9, v7, v8);
cocos2d::CCSize::operator=(&a1->m_lastSize, &v9);
v3 = 8.0;
v4 = 8.0;
goto LABEL_10;
}
if ( a2 == 918 )
{
a1->m_hasContentSize = 1;
a1->m_objectRadius = 24.0;
cocos2d::CCPoint::CCPoint(&v9, 80.0, 80.0);
cocos2d::CCSize::operator=(&a1->m_lastSize, &v9);
v3 = 48.0;
v4 = 48.0;
goto LABEL_10;
}
if ( a2 == 919 )
{
v3 = 6.0;
v4 = 25.0;
goto LABEL_10;
}
LABEL_6:
v3 = 10.0;
v4 = 10.0;
LABEL_10:
v5 = a1->m_scaleY * v3;
setContentSize = a1->setContentSize;
a1->m_width = a1->m_scaleX * v4;
a1->m_height = v5;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v9, v4, v3);
setContentSize(a1, (const cocos2d::CCSize *)&v9);
}