//
// AnimatedGameObject::setupAnimatedSize from 0x87282c to 0x8729f0 (452 bytes)
//
// 2 xrefs:
// > AnimatedGameObject::init @ 0x887dac
// > ??> @ 0x77758
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:55:46 +0000
//
__int64 __fastcall AnimatedGameObject::setupAnimatedSize(AnimatedGameObject *this, int a2)
{
float v3; // s1
float v4; // s0
__int64 v5; // x1
float v6; // s2
void (__fastcall *v7)(AnimatedGameObject *, _BYTE *); // x22
float v9; // s0
float v10; // s1
_BYTE v11[8]; // [xsp+30h] [xbp+30h] BYREF
if ( a2 == 1327 )
{
v9 = 35.0;
v10 = 30.0;
goto LABEL_12;
}
if ( a2 > 1327 )
{
if ( a2 != 1584 )
{
if ( a2 == 2012 )
{
*((_BYTE *)this + 1213) = 1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 45.0, 45.0);
cocos2d::CCSize::operator=((char *)this + 1216, v11);
v3 = 8.0;
*((float *)this + 225) = 15.0;
v4 = 8.0;
goto LABEL_10;
}
if ( a2 == 1328 )
{
*((_BYTE *)this + 1213) = 1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 35.0, 40.0);
cocos2d::CCSize::operator=((char *)this + 1216, v11);
v3 = 15.0;
v4 = 8.0;
goto LABEL_10;
}
goto LABEL_6;
}
v9 = 60.0;
v10 = 80.0;
LABEL_12:
*((_BYTE *)this + 1213) = 1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v9, v10);
cocos2d::CCSize::operator=((char *)this + 1216, v11);
v3 = 8.0;
v4 = 8.0;
goto LABEL_10;
}
if ( a2 == 918 )
{
*((_BYTE *)this + 1213) = 1;
*((float *)this + 225) = 24.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 80.0, 80.0);
cocos2d::CCSize::operator=((char *)this + 1216, v11);
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 = *(_QWORD *)this;
v6 = *((float *)this + 289) * v3;
*((float *)this + 191) = *((float *)this + 288) * v4;
*((float *)this + 192) = v6;
v7 = *(void (__fastcall **)(AnimatedGameObject *, _BYTE *))(v5 + 320);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v11, v4, v3);
v7(this, v11);
return _stack_chk_guard;
}