//
// EnhancedGameObject::setupAnimationVariables from 0x100247a10 to 0x100247b4e (318 bytes)
//
// 5 xrefs:
// > SetupAnimSettingsPopup::updateAnimSettings @ 0x10006278a
// > SetupAnimSettingsPopup::updateAnimSettings @ 0x1000627c2
// > SetupAnimSettingsPopup::onClose @ 0x1000627fc
// > SetupAnimSettingsPopup::onClose @ 0x100062832
// > EnhancedGameObject::saveActiveColors @ 0x10069da5a
//
// This function is hookable on this platform (idp: pc, 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:27:20 +0000
//
char __fastcall EnhancedGameObject::setupAnimationVariables(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rsi
__int64 v5; // rax
__int64 v6; // rdi
__int64 v7; // rax
__int64 v8; // rdx
__int16 v9; // ax
__int64 v10; // rax
__int64 v11; // rax
int v12; // xmm0_4
float v13; // xmm0_4
float v14; // xmm1_4
char v15; // al
int v16; // ecx
char result; // al
if ( *(_DWORD *)(a1 + 1028) != 2065 )
{
GameManager::sharedState(a1, a2, a3);
v4 = *(int *)(a1 + 1028);
v6 = *(_QWORD *)(v5 + 400);
v7 = cocos2d::CCDictionary::objectForKey_1(v6);
if ( v7 )
v9 = *(_WORD *)(v7 + 56);
else
v9 = 1;
*(_WORD *)(a1 + 1384) = v9;
GameManager::sharedState(v6, v4, v8);
v11 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v10 + 392));
if ( v11 )
v12 = *(_DWORD *)(v11 + 56);
else
v12 = 1065353216;
*(_DWORD *)(a1 + 1380) = v12;
}
v13 = *(float *)(a1 + 1372);
if ( *(_BYTE *)(a1 + 1416) == 1 )
{
v14 = *(float *)(a1 + 1412);
if ( v14 != 0.0 )
v13 = fabs(v14);
}
*(float *)(a1 + 1380) = *(float *)(a1 + 1380) / v13;
if ( !(unsigned __int8)GameObject::usesFreezeAnimation(a1) )
{
*(_BYTE *)(a1 + 1376) = 0;
goto LABEL_16;
}
v15 = *(_BYTE *)(a1 + 1418);
*(_BYTE *)(a1 + 1376) = v15 ^ 1;
if ( v15 )
LABEL_16:
*(_BYTE *)(a1 + 774) = 0;
v16 = *(_DWORD *)(a1 + 1028);
*(_BYTE *)(a1 + 1377) = v16 == 1855;
result = 1;
if ( v16 > 2891 )
{
if ( (unsigned int)(v16 - 2892) < 2 )
goto LABEL_23;
goto LABEL_21;
}
if ( (unsigned int)(v16 - 1839) >= 4 && v16 != 1591 && v16 != 1593 )
LABEL_21:
result = 0;
LABEL_23:
*(_BYTE *)(a1 + 1378) = result;
return result;
}