//
// AnimatedGameObject::setupAnimatedSize from 0x4e7e0c to 0x4e7f40 (308 bytes)
//
// 1 xrefs:
// > AnimatedGameObject::init @ 0x4ec0e2
//
// 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 11:51:06 +0000
//
int __fastcall AnimatedGameObject::setupAnimatedSize(AnimatedGameObject *this, int a2)
{
float v3; // s15
float v4; // s14
float v5; // r1
float v6; // r2
int v7; // r3
int (__fastcall *v8)(AnimatedGameObject *, _BYTE *); // r7
_BYTE v10[8]; // [sp+4h] [bp-10h] BYREF
if ( a2 == 1327 )
{
v5 = 35.0;
*((_BYTE *)this + 1049) = 1;
v6 = 30.0;
goto LABEL_13;
}
if ( a2 >= 1328 )
{
if ( a2 != 1584 )
{
if ( a2 != 2012 )
{
if ( a2 == 1328 )
{
*((_BYTE *)this + 1049) = 1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 35.0, 40.0);
cocos2d::CCSize::operator=((char *)this + 1052, v10);
v3 = 15.0;
v4 = 8.0;
goto LABEL_18;
}
goto LABEL_16;
}
*((_BYTE *)this + 1049) = 1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 45.0, 45.0);
cocos2d::CCSize::operator=((char *)this + 1052, v10);
*((_DWORD *)this + 191) = 1097859072;
goto LABEL_15;
}
v5 = 60.0;
v6 = 80.0;
*((_BYTE *)this + 1049) = 1;
LABEL_13:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v5, v6);
cocos2d::CCSize::operator=((char *)this + 1052, v10);
LABEL_15:
v3 = 8.0;
goto LABEL_17;
}
if ( a2 == 918 )
{
*((_DWORD *)this + 191) = 1103101952;
*((_BYTE *)this + 1049) = 1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 80.0, 80.0);
cocos2d::CCSize::operator=((char *)this + 1052, v10);
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:
v7 = *(_DWORD *)this;
*((float *)this + 162) = v4 * *((float *)this + 252);
*((float *)this + 163) = v3 * *((float *)this + 253);
v8 = *(int (__fastcall **)(AnimatedGameObject *, _BYTE *))(v7 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, v4, v3);
return v8(this, v10);
}