//
// SpecialAnimGameObject::updateSyncedAnimation from 0xaf2cec to 0xaf2e24 (312 bytes)
//
// 2 xrefs:
// > ??> @ 0xcfdf0
// > ??> @ 0x1448378
//
// 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 13:01:14 +0000
//
__int64 __fastcall SpecialAnimGameObject::updateSyncedAnimation(SpecialAnimGameObject *this, long double a2)
{
__int64 result; // x0
__int64 v4; // x2
__int64 v5; // x2
__int64 v6; // x2
EnhancedGameObject::updateSyncedAnimation(this, a2, -1);
result = *((unsigned __int8 *)this + 1419);
if ( !*((_BYTE *)this + 1419) )
{
result = *((unsigned int *)this + 257);
if ( (_DWORD)result == 2047 )
{
if ( *((_DWORD *)this + 358) == 1 )
{
v5 = *(_QWORD *)this;
*((_BYTE *)this + 1447) = 0;
*((_BYTE *)this + 1448) = 0;
(*(void (__fastcall **)(SpecialAnimGameObject *, void *))(v5 + 1584))(this, &unk_1181DB8);
result = (*(__int64 (__fastcall **)(SpecialAnimGameObject *, void *))(*(_QWORD *)this + 1592LL))(
this,
&unk_1181DB8);
*((_BYTE *)this + 1447) = 1;
*((_BYTE *)this + 1448) = 1;
return result;
}
*((_BYTE *)this + 1447) = 0;
goto LABEL_8;
}
if ( (_DWORD)result != 2055 )
{
if ( (_DWORD)result != 2046 )
return result;
result = *((unsigned int *)this + 358);
if ( (int)result > 3 || (_DWORD)result == 1 )
{
v4 = *(_QWORD *)this;
*((_BYTE *)this + 1448) = 0;
(*(void (__fastcall **)(SpecialAnimGameObject *, void *))(v4 + 1592))(this, &unk_1181DB8);
*((_BYTE *)this + 1448) = 1;
return 1;
}
LABEL_8:
*((_BYTE *)this + 1448) = 0;
return result;
}
if ( *((_DWORD *)this + 358) == 1 )
{
v6 = *(_QWORD *)this;
*((_BYTE *)this + 1447) = 0;
result = (*(__int64 (__fastcall **)(SpecialAnimGameObject *, void *))(v6 + 1584))(this, &unk_1181DB8);
*((_BYTE *)this + 1447) = 1;
}
else
{
*((_BYTE *)this + 1447) = 0;
}
}
return result;
}