//
// AnimatedGameObject::setupAnimatedSize from 0x1001b65f0 to 0x1001b67aa (442 bytes)
//
// 1 xrefs:
// > AnimatedGameObject::init @ 0x1001b655b
//
// 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 __fastcall AnimatedGameObject::setupAnimatedSize(AnimatedGameObject *a1, int a2)
{
__m128 v2; // xmm0
float v3; // xmm0_4
float v4; // xmm1_4
_BYTE v5[24]; // [rsp+8h] [rbp-18h] BYREF
v2 = (__m128)xmmword_100817030;
if ( a2 > 1327 )
{
switch ( a2 )
{
case 1328:
a1->m_hasContentSize = 1;
sub_10028CBE0(v5, 35.0, 40.0);
sub_10028D020(&a1->m_lastSize, v5);
v2 = (__m128)0x4170000041000000uLL;
break;
case 1584:
a1->m_hasContentSize = 1;
v3 = 60.0;
v4 = 80.0;
goto LABEL_14;
case 2012:
a1->m_hasContentSize = 1;
sub_10028CBE0(v5, 45.0, 45.0);
sub_10028D020(&a1->m_lastSize, v5);
a1->m_objectRadius = 15.0;
LABEL_15:
v2 = (__m128)xmmword_100817050;
break;
}
}
else
{
switch ( a2 )
{
case 918:
a1->m_objectRadius = 24.0;
a1->m_hasContentSize = 1;
sub_10028CBE0(v5, 80.0, 80.0);
sub_10028D020(&a1->m_lastSize, v5);
v2 = (__m128)xmmword_100817070;
break;
case 919:
v2 = (__m128)0x40C0000041C80000uLL;
break;
case 1327:
a1->m_hasContentSize = 1;
v3 = 35.0;
v4 = 30.0;
LABEL_14:
sub_10028CBE0(v5, v3, v4);
sub_10028D020(&a1->m_lastSize, v5);
goto LABEL_15;
}
}
_mm_storel_ps((double *)&a1->m_width, _mm_mul_ps((__m128)*(unsigned __int64 *)&a1->m_scaleX, v2));
sub_10028CBF0(v5, v2.f32[0], _mm_movehdup_ps(v2).f32[0]);
((void (__fastcall *)(AnimatedGameObject *, _BYTE *))a1->setContentSize)(a1, v5);
}