//
// SpriteAnimationManager::stopAnimations from 0x100803000 to 0x1008030ca (202 bytes)
//
// 10 xrefs:
// > AnimatedGameObject::init @ 0x100196b8f
// > AnimatedGameObject::updateObjectAnimation @ 0x10019775e
// > AnimatedGameObject::deactivateObject @ 0x100197a01
// > AnimatedShopKeeper::create @ 0x10030ff0a
// > AnimatedShopKeeper::init @ 0x100313ebc
// > CCAnimatedSprite::tweenToAnimation @ 0x10033c33d
// > PlayerObject::ringJump @ 0x10040214f
// > PlayerObject::toggleRobotMode @ 0x100405834
// > PlayerObject::toggleSpiderMode @ 0x100405ca7
// > GJRobotSprite::init @ 0x1006ad7a0
//
// 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
//
void __fastcall SpriteAnimationManager::stopAnimations(__int64 a1)
{
unsigned int v2; // eax
const void *v3; // rdi
unsigned __int64 v4; // rcx
size_t v5; // rdx
__int64 v6; // rax
__int64 v7; // rdi
__int64 v8; // rdi
_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;
if ( ((v4 == 8) & (memcmp(v3, __s2, v5) == 0)) == 0 )
{
std::string::operator=((std::string *)(a1 + 424), (const std::string *)(a1 + 400));
std::string::assign((std::string *)(a1 + 400), "not_used");
}
v6 = *(_QWORD *)(a1 + 320);
v7 = *(_QWORD *)(v6 + 672);
if ( v7 )
{
cocos2d::CCNode::stopAllActions(v7);
v6 = *(_QWORD *)(a1 + 320);
}
v8 = *(_QWORD *)(v6 + 664);
if ( v8 )
cocos2d::CCNode::stopAllActions(v8);
}