//
// SpriteAnimationManager::callAnimationFinished from 0x140074670 to 0x14007474c (220 bytes)
//
// 3 xrefs:
// > SpriteAnimationManager::animationFinished @ 0x14007462a
// > ??> @ 0x1406c6354
// > ??> @ 0x1406c6360
//
// 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
//
// Hidden C++ exception states: #wind=3
void SpriteAnimationManager::callAnimationFinished(SpriteAnimationManager *a1)
{
std::string *p_m_currentAnimation; // rbx
std::string *m_bigStorage; // rcx
size_t m_size; // r8
const char *v5; // rdx
__int128 Buf2; // [rsp+20h] [rbp-58h] BYREF
__int64 v7; // [rsp+30h] [rbp-48h]
__int64 v8; // [rsp+38h] [rbp-40h]
_QWORD v9[4]; // [rsp+40h] [rbp-38h] BYREF
v7 = 8;
v8 = 15;
Buf2 = 0x646573755F746F6EuLL;
p_m_currentAnimation = &a1->m_currentAnimation;
m_bigStorage = p_m_currentAnimation;
if ( p_m_currentAnimation->m_data.m_capacity > 0xF )
m_bigStorage = (std::string *)p_m_currentAnimation->m_data.m_bigStorage;
m_size = p_m_currentAnimation->m_data.m_size;
if ( m_size > 8 )
m_size = 8;
if ( !memcmp(m_bigStorage, &Buf2, m_size) && p_m_currentAnimation->m_data.m_size == 8 )
p_m_currentAnimation = &a1->m_nextAnimation;
sub_14003BDB0((__int64)v9, (__int64)p_m_currentAnimation);
v5 = (const char *)v9;
if ( v9[3] > 0xFu )
v5 = (const char *)v9[0];
a1->m_sprite->animationFinished(a1->m_sprite, v5);
sub_14003A830((__int64)v9);
}