//
// CCAnimatedSprite::tweenToAnimationFinished from 0x68d320 to 0x68d3f8 (216 bytes)
//
// 3 xrefs:
// > ??> @ 0x68470
// > CCAnimatedSprite::tweenToAnimation @ 0x68d1e4
// > ??> @ 0x15428b8
//
// 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:33 +0000
//
__int64 __fastcall CCAnimatedSprite::tweenToAnimationFinished(CCAnimatedSprite *this)
{
char *v1; // x20
char v3; // w0
__int64 v4; // x0
__int64 v5; // x1
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
__int64 v8; // [xsp+38h] [xbp+38h]
void *v9; // [xsp+40h] [xbp+40h]
v1 = (char *)this + 624;
v7 = 0;
v3 = *((_BYTE *)this + 624);
v8 = 0;
v9 = nullptr;
if ( (v3 & 1) != 0 )
{
std::string::__init(&v7, *((void **)v1 + 2), *((_QWORD *)v1 + 1));
}
else
{
v4 = *(_QWORD *)v1;
v5 = *((_QWORD *)v1 + 1);
v9 = *((void **)v1 + 2);
v7 = v4;
v8 = v5;
}
CCAnimatedSprite::runAnimation((__int64)this, (char *)&v7);
if ( (v7 & 1) != 0 )
operator delete(v9);
std::string::assign((__int64 *)v1, &byte_11B8890, 0);
return _stack_chk_guard;
}