// // AnimatedGameObject::playAnimation from 0x899dd4 to 0x899fd8 (516 bytes) // // 3 xrefs: // > PlayLayer::loadActiveSaveObjects @ 0x6f67fc // > GJBaseGameLayer::playAnimationCommand @ 0x9a07c4 // > @ 0xa9c18 // // 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:56:11 +0000 // __int64 __fastcall AnimatedGameObject::playAnimation(AnimatedGameObject *this, AnimatedGameObject *a2) { unsigned int v3; // w22 size_t v4; // x2 __int64 *v6; // x0 char *v7; // x1 int v8; // w0 __int64 v9; // x20 float TweenTime; // s8 __int64 v11; // x20 __int64 v12; // [xsp+40h] [xbp+40h] BYREF size_t v13; // [xsp+48h] [xbp+48h] void *v14; // [xsp+50h] [xbp+50h] __int64 v15; // [xsp+58h] [xbp+58h] BYREF size_t v16; // [xsp+60h] [xbp+60h] void *v17; // [xsp+68h] [xbp+68h] __int64 v18; // [xsp+70h] [xbp+70h] BYREF size_t v19; // [xsp+78h] [xbp+78h] void *v20; // [xsp+80h] [xbp+80h] v3 = (unsigned int)a2; AnimatedGameObject::animationForID((AnimatedGameObject *)(unsigned int)a2, *((_DWORD *)this + 257), &v12); if ( (v12 & 1) != 0 ) { v4 = v13; if ( !v13 ) { LABEL_3: operator delete(v14); return _stack_chk_guard; } v6 = (__int64 *)((char *)this + 1496); *((_DWORD *)this + 381) = v3; if ( (__int64 *)((char *)this + 1496) != &v12 ) { v7 = (char *)v14; goto LABEL_8; } } else { LODWORD(v4) = (int)(unsigned __int8)v12 >> 1; if ( !(_DWORD)v4 ) return _stack_chk_guard; v6 = (__int64 *)((char *)this + 1496); *((_DWORD *)this + 381) = v3; if ( (__int64 *)((char *)this + 1496) != &v12 ) { v4 = (int)v4; v7 = (char *)&v12 + 1; LABEL_8: std::string::assign(v6, v7, v4); } } v8 = *((unsigned __int8 *)this + 773); *((_BYTE *)this + 1489) = 1; if ( v8 && (TweenTime = AnimatedGameObject::getTweenTime((AnimatedGameObject *)v3), TweenTime > 0.0) ) { v15 = 0; v16 = 0; v17 = nullptr; v11 = *((_QWORD *)this + 183); if ( (v12 & 1) != 0 ) { std::string::__init(&v15, v14, v13); } else { v17 = v14; v15 = v12; v16 = v13; } CCAnimatedSprite::tweenToAnimation(v11, (__int64)&v15, TweenTime); if ( (v15 & 1) != 0 ) operator delete(v17); } else { v18 = 0; v19 = 0; v20 = nullptr; v9 = *((_QWORD *)this + 183); if ( (v12 & 1) != 0 ) { std::string::__init(&v18, v14, v13); } else { v18 = v12; v19 = v13; v20 = v14; } CCAnimatedSprite::runAnimationForced(v9, (char *)&v18); if ( (v18 & 1) != 0 ) operator delete(v20); } if ( (v12 & 1) != 0 ) goto LABEL_3; return _stack_chk_guard; }