//
// SpriteAnimationManager::overridePrio from 0x100802e00 to 0x100802ea1 (161 bytes)
//
// 1 xrefs:
// > CCAnimatedSprite::runAnimationForced @ 0x10033c198
//
// 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:36:38 +0000
//
unsigned __int8 __fastcall SpriteAnimationManager::overridePrio(__int64 a1)
{
unsigned int v2; // eax
const void *v3; // rdi
unsigned __int64 v4; // rcx
size_t v5; // rdx
bool v6; // r14
unsigned __int8 result; // al
_QWORD __s2[4]; // [rsp+9h] [rbp-27h] BYREF
strcpy((char *)__s2, "not_used");
v2 = *(unsigned __int8 *)(a1 + 400);
v3 = (const void *)(a1 + 401);
v4 = v2 >> 1;
if ( (v2 & 1) != 0 )
{
v3 = *(const void **)(a1 + 416);
v4 = *(_QWORD *)(a1 + 408);
}
v5 = 8;
if ( v4 < 8 )
v5 = v4;
v6 = v4 == 8;
result = memcmp(v3, __s2, v5) == 0;
if ( (v6 & result) == 0 )
{
std::string::operator=((std::string *)(a1 + 424), (const std::string *)(a1 + 400));
return (unsigned __int8)std::string::assign((std::string *)(a1 + 400), "not_used");
}
return result;
}