//
// SpriteAnimationManager::overridePrio from 0x140087400 to 0x1400874ca (202 bytes)
//
// 36 xrefs:
// > CCAnimatedSprite::tweenToAnimation @ 0x140044903
// > GJRobotSprite::init @ 0x1403acaca
// > GJShopLayer::init @ 0x1403b092c
// > AnimatedShopKeeper::playReactAnimation @ 0x1403b6189
// > AnimatedShopKeeper::startAnimating @ 0x1403b628f
// > AnimatedShopKeeper::animationFinished @ 0x1403b6592
// > AnimatedShopKeeper::animationFinished @ 0x1403b671a
// > AnimatedShopKeeper::animationFinished @ 0x1403b677d
// > AnimatedShopKeeper::animationFinished @ 0x1403b6925
// > AnimatedShopKeeper::animationFinished @ 0x1403b697c
// > PlayerObject::ringJump @ 0x1404f7a37
// > PlayerObject::toggleRobotMode @ 0x1404f9ca9
// > PlayerObject::toggleSpiderMode @ 0x1404fa099
// > AnimatedGameObject::init @ 0x140644a0a
// > AnimatedGameObject::updateObjectAnimation @ 0x140645606
// > AnimatedGameObject::deactivateObject @ 0x140645998
// > AnimatedGameObject::animationFinished @ 0x140645cf8
// > AnimatedGameObject::animationFinished @ 0x140645d62
// > AnimatedGameObject::animationFinished @ 0x140645ed1
// > AnimatedGameObject::animationFinished @ 0x140645f5e
// > AnimatedGameObject::animationFinished @ 0x140645fae
// > AnimatedGameObject::animationFinished @ 0x1406460ee
// > AnimatedGameObject::animationFinished @ 0x14064618a
// > AnimatedGameObject::animationFinished @ 0x1406461e4
// > AnimatedGameObject::animationFinished @ 0x140646383
// > AnimatedGameObject::animationFinished @ 0x1406464fe
// > AnimatedGameObject::animationFinished @ 0x140646634
// > AnimatedGameObject::animationFinished @ 0x1406466cb
// > AnimatedGameObject::animationFinished @ 0x140646725
// > AnimatedGameObject::animationFinished @ 0x1406468b1
// > AnimatedGameObject::animationFinished @ 0x140646baa
// > AnimatedGameObject::animationFinished @ 0x140646d17
// > AnimatedGameObject::animationFinished @ 0x140646da4
// > AnimatedGameObject::animationFinished @ 0x140646df1
// > AnimatedGameObject::playAnimation @ 0x14064709c
// > ??> @ 0x140912560
//
// 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 11:25:57 +0000
//
int __fastcall SpriteAnimationManager::overridePrio(__int64 a1)
{
const void **v1; // rbx
bool v2; // cc
const void **v4; // rcx
size_t v5; // rsi
size_t v6; // r8
int result; // eax
__int128 Buf2; // [rsp+20h] [rbp-28h] BYREF
__int64 v9; // [rsp+30h] [rbp-18h]
__int64 v10; // [rsp+38h] [rbp-10h]
v1 = (const void **)(a1 + 408);
v10 = 15;
v2 = *(_QWORD *)(a1 + 432) <= 0xFu;
v9 = 8;
Buf2 = 0x646573755F746F6EuLL;
v4 = (const void **)(a1 + 408);
if ( !v2 )
v4 = (const void **)*v1;
v5 = (size_t)v1[2];
v6 = v5;
if ( v5 > 8 )
v6 = 8;
result = memcmp(v4, &Buf2, v6);
if ( result || v5 != 8 )
{
if ( (const void **)(a1 + 440) != v1 )
{
if ( (unsigned __int64)v1[3] > 0xF )
v1 = (const void **)*v1;
sub_1400405A0((void **)(a1 + 440), v1, v5);
}
return (unsigned int)sub_1400405A0((void **)(a1 + 408), "not_used", 8u);
}
return result;
}