//
// PlayerObject::animationFinished from 0x75c640 to 0x75c9a4 (868 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'PlayerObject::animationFinished @ 0x75c9a8
// > ??> @ 0xa6288
// > ??> @ 0x14339c0
//
// 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:53:01 +0000
//
__int64 __fastcall PlayerObject::animationFinished(PlayerObject *this, char *a2)
{
size_t v4; // x0
_BOOL4 v5; // w24
__int64 v6; // x21
size_t v8; // x0
_BOOL4 v9; // w24
__int64 v10; // x22
__int64 v11; // x22
size_t v12; // x0
_BOOL4 v13; // w21
__int64 v14; // x21
__int64 v15; // x21
__int64 v16; // [xsp+48h] [xbp+48h] BYREF
__int64 v17; // [xsp+50h] [xbp+50h]
void *v18; // [xsp+58h] [xbp+58h]
__int64 v19; // [xsp+60h] [xbp+60h] BYREF
__int64 v20; // [xsp+68h] [xbp+68h]
void *v21; // [xsp+70h] [xbp+70h]
v16 = 0;
v17 = 0;
v18 = nullptr;
v4 = strlen(a2);
std::string::__init(&v16, a2, v4);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "jump_start", 0xAu);
v5 = sub_74D8D4((__int64)&v16, (__int64)&v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
if ( (v16 & 1) != 0 )
operator delete(v18);
if ( v5 )
{
v6 = *((_QWORD *)this + 267);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "jump_loop", 9u);
CCAnimatedSprite::runAnimation(v6, (char *)&v19);
goto LABEL_7;
}
v16 = 0;
v17 = 0;
v18 = nullptr;
v8 = strlen(a2);
std::string::__init(&v16, a2, v8);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "fall_start", 0xAu);
v9 = sub_74D8D4((__int64)&v16, (__int64)&v19);
if ( (v19 & 1) == 0 )
{
if ( (v16 & 1) == 0 )
goto LABEL_12;
LABEL_24:
operator delete(v18);
if ( v9 )
goto LABEL_13;
goto LABEL_16;
}
operator delete(v21);
if ( (v16 & 1) != 0 )
goto LABEL_24;
LABEL_12:
if ( v9 )
{
LABEL_13:
v10 = *((_QWORD *)this + 267);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "fall_loop", 9u);
CCAnimatedSprite::runAnimation(v10, (char *)&v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
v11 = *((_QWORD *)this + 268);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "fall_loop", 9u);
CCAnimatedSprite::runAnimation(v11, (char *)&v19);
goto LABEL_7;
}
LABEL_16:
v16 = 0;
v17 = 0;
v18 = nullptr;
v12 = strlen(a2);
std::string::__init(&v16, a2, v12);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "idle02", 6u);
v13 = sub_74D8D4((__int64)&v16, (__int64)&v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
if ( (v16 & 1) != 0 )
{
operator delete(v18);
if ( !v13 )
return _stack_chk_guard;
}
else if ( !v13 )
{
return _stack_chk_guard;
}
if ( *((_BYTE *)this + 2421) )
{
v15 = *((_QWORD *)this + 267);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "idle01", 6u);
CCAnimatedSprite::runAnimation(v15, (char *)&v19);
}
else
{
if ( !*((_BYTE *)this + 2422) )
return _stack_chk_guard;
v14 = *((_QWORD *)this + 268);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "idle01", 6u);
CCAnimatedSprite::runAnimation(v14, (char *)&v19);
}
LABEL_7:
if ( (v19 & 1) != 0 )
operator delete(v21);
return _stack_chk_guard;
}