//
// SpriteAnimationManager::callAnimationFinished from 0x6afc20 to 0x6afd38 (280 bytes)
//
// 3 xrefs:
// > ??> @ 0x95860
// > SpriteAnimationManager::animationFinished @ 0x6af658
// > ??> @ 0x15440b0
//
// This function is hookable on this platform (idp: arm, 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:50:50 +0000
//
__int64 __fastcall SpriteAnimationManager::callAnimationFinished(SpriteAnimationManager *this)
{
char *v1; // x19
__int64 v3; // x0
__int64 v4; // x1
char *v5; // x1
__int64 v7; // [xsp+38h] [xbp+38h] BYREF
__int64 v8; // [xsp+40h] [xbp+40h]
void *v9; // [xsp+48h] [xbp+48h]
char v10; // [xsp+50h] [xbp+50h] BYREF
char v11[9]; // [xsp+51h] [xbp+51h] BYREF
__int16 v12; // [xsp+5Ah] [xbp+5Ah]
int v13; // [xsp+5Ch] [xbp+5Ch]
__int64 v14; // [xsp+60h] [xbp+60h]
v1 = (char *)this + 400;
v11[8] = 0;
v12 = 0;
v13 = 0;
v14 = 0;
v10 = 16;
strcpy(v11, "not_use");
v7 = 0;
if ( sub_6AF58C((__int64)this + 400, (__int64)&v10) )
v1 = (char *)this + 424;
v8 = 0;
v9 = nullptr;
if ( (*v1 & 1) != 0 )
{
std::string::__init(&v7, *((void **)v1 + 2), *((_QWORD *)v1 + 1));
}
else
{
v3 = *(_QWORD *)v1;
v4 = *((_QWORD *)v1 + 1);
v9 = *((void **)v1 + 2);
v7 = v3;
v8 = v4;
}
v5 = (char *)&v7 + 1;
if ( (v7 & 1) != 0 )
v5 = (char *)v9;
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 40) + 1240LL))(*((_QWORD *)this + 40), v5);
if ( (v7 & 1) != 0 )
operator delete(v9);
return _stack_chk_guard;
}