//
// SpecialAnimGameObject::updateSyncedAnimation from 0x1003e72f4 to 0x1003e7404 (272 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009522e8
//
// 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 11:04:26 +0000
//
__int64 __fastcall SpecialAnimGameObject::updateSyncedAnimation(__int64 a1, float a2)
{
__int64 result; // x0
int v4; // w8
int v5; // w8
int v6; // w8
int v7; // w8
result = EnhancedGameObject::updateSyncedAnimation(a1, -1, a2);
if ( (*(_BYTE *)(a1 + 1419) & 1) == 0 )
{
v4 = *(_DWORD *)(a1 + 1028);
switch ( v4 )
{
case 2055:
v7 = *(_DWORD *)(a1 + 1432);
*(_BYTE *)(a1 + 1447) = 0;
if ( v7 == 1 )
{
result = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 1584LL))(a1, &unk_10076E4D0);
*(_BYTE *)(a1 + 1447) = 1;
}
break;
case 2047:
v6 = *(_DWORD *)(a1 + 1432);
*(_WORD *)(a1 + 1447) = 0;
if ( v6 == 1 )
{
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 1584LL))(a1, &unk_10076E4D0);
result = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 1592LL))(a1, &unk_10076E4D0);
*(_WORD *)(a1 + 1447) = 257;
}
break;
case 2046:
v5 = *(_DWORD *)(a1 + 1432);
*(_BYTE *)(a1 + 1448) = 0;
if ( v5 == 1 || v5 >= 4 )
{
result = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 1592LL))(a1, &unk_10076E4D0);
*(_BYTE *)(a1 + 1448) = 1;
}
break;
}
}
return result;
}