//
// SpriteAnimationManager::overridePrio from 0x100723ee0 to 0x100723f81 (161 bytes)
//
// 1 xrefs:
// > CCAnimatedSprite::runAnimationForced @ 0x100350a88
//
// 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 SpriteAnimationManager::overridePrio(SpriteAnimationManager *a1)
{
unsigned int sizex2; // eax
std::array *p_shortStorage; // rdi
std::size_t size; // rcx
size_t v5; // rdx
_QWORD __s2[4]; // [rsp+9h] [rbp-27h] BYREF
strcpy((char *)__s2, "not_used");
sizex2 = a1->m_currentAnimation.m_data.m_short.sizex2;
p_shortStorage = &a1->m_currentAnimation.m_data.m_short.shortStorage;
size = sizex2 >> 1;
if ( (sizex2 & 1) != 0 )
{
p_shortStorage = (std::array *)a1->m_currentAnimation.m_data.m_long.longStorage;
size = a1->m_currentAnimation.m_data.m_long.size;
}
v5 = 8;
if ( size < 8 )
v5 = size;
if ( ((size == 8) & (memcmp(p_shortStorage, __s2, v5) == 0)) == 0 )
{
std::string::operator=((std::string *)&a1->m_nextAnimation, (const std::string *)&a1->m_currentAnimation);
std::string::assign((std::string *)&a1->m_currentAnimation, "not_used");
}
}