//
// AnimatedGameObject::setupAnimatedSize from 0x3e8038 to 0x3e816c (308 bytes)
//
// 1 xrefs:
// > AnimatedGameObject::init @ 0x3e826a
//
// 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; // s15
float v4; // s14
float v5; // r1
float v6; // r2
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r7
cocos2d::CCPoint v8; // [sp+4h] [bp-10h] BYREF
if ( a2 == 1327 )
{
v5 = 35.0;
a1->m_hasContentSize = 1;
v6 = 30.0;
goto LABEL_13;
}
if ( a2 >= 1328 )
{
if ( a2 != 1584 )
{
if ( a2 != 2012 )
{
if ( a2 == 1328 )
{
a1->m_hasContentSize = 1;
cocos2d::CCPoint::CCPoint(&v8, 35.0, 40.0);
cocos2d::CCSize::operator=(&a1->m_lastSize, &v8);
v3 = 15.0;
v4 = 8.0;
goto LABEL_18;
}
goto LABEL_16;
}
a1->m_hasContentSize = 1;
cocos2d::CCPoint::CCPoint(&v8, 45.0, 45.0);
cocos2d::CCSize::operator=(&a1->m_lastSize, &v8);
a1->m_objectRadius = 15.0;
goto LABEL_15;
}
v5 = 60.0;
v6 = 80.0;
a1->m_hasContentSize = 1;
LABEL_13:
cocos2d::CCPoint::CCPoint(&v8, v5, v6);
cocos2d::CCSize::operator=(&a1->m_lastSize, &v8);
LABEL_15:
v3 = 8.0;
goto LABEL_17;
}
if ( a2 == 918 )
{
a1->m_objectRadius = 24.0;
a1->m_hasContentSize = 1;
cocos2d::CCPoint::CCPoint(&v8, 80.0, 80.0);
cocos2d::CCSize::operator=(&a1->m_lastSize, &v8);
v3 = 48.0;
LABEL_17:
v4 = v3;
goto LABEL_18;
}
if ( a2 != 919 )
{
LABEL_16:
v3 = 10.0;
goto LABEL_17;
}
v3 = 6.0;
v4 = 25.0;
LABEL_18:
setContentSize = a1->setContentSize;
a1->m_width = v4 * a1->m_scaleX;
a1->m_height = v3 * a1->m_scaleY;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v8, v4, v3);
setContentSize(a1, (const cocos2d::CCSize *)&v8);
}