//
// SpecialAnimGameObject::updateSyncedAnimation from 0x65e124 to 0x65e1dc (184 bytes)
//
// 0 xrefs:
//
// 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:55:35 +0000
//
signed int __fastcall SpecialAnimGameObject::updateSyncedAnimation(SpecialAnimGameObject *this, float a2, int a3)
{
signed int result; // r0
char v5; // r3
int v6; // r2
int v7; // r2
int v8; // r6
int v9; // r5
result = EnhancedGameObject::updateSyncedAnimation((signed int)this, a2, -1);
v5 = *((_BYTE *)this + 1239);
if ( !v5 )
{
v6 = *((_DWORD *)this + 223);
switch ( v6 )
{
case 2047:
v8 = *((_DWORD *)this + 313);
*((_BYTE *)this + 1267) = 0;
*((_BYTE *)this + 1268) = 0;
if ( v8 == 1 )
{
(*(void (__fastcall **)(SpecialAnimGameObject *, void *))(*(_DWORD *)this + 792))(this, &unk_BEF163);
result = (*(int (__fastcall **)(SpecialAnimGameObject *, void *))(*(_DWORD *)this + 796))(this, &unk_BEF163);
*((_BYTE *)this + 1267) = 1;
*((_BYTE *)this + 1268) = 1;
}
break;
case 2055:
v9 = *((_DWORD *)this + 313);
*((_BYTE *)this + 1267) = 0;
if ( v9 == 1 )
{
result = (*(int (__fastcall **)(SpecialAnimGameObject *, void *))(*(_DWORD *)this + 792))(this, &unk_BEF163);
*((_BYTE *)this + 1267) = 1;
}
break;
case 2046:
v7 = *((_DWORD *)this + 313);
if ( v7 == 1 || v7 > 3 )
{
*((_BYTE *)this + 1268) = 0;
result = (*(int (__fastcall **)(SpecialAnimGameObject *, void *))(*(_DWORD *)this + 796))(this, &unk_BEF163);
v5 = 1;
}
*((_BYTE *)this + 1268) = v5;
break;
}
}
return result;
}