// // AnimatedGameObject::updateObjectAnimation from 0x1001b70d0 to 0x1001b7263 (403 bytes) // // 3 xrefs: // > LevelEditorLayer::updatePreviewAnim @ 0x1000f4302 // > AnimatedGameObject::activateObject @ 0x1001b72c1 // > AnimatedGameObject::resetObject @ 0x1001b8f82 // // 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 // void __fastcall AnimatedGameObject::updateObjectAnimation(AnimatedGameObject *a1) { double v1; // xmm0_8 CCAnimatedSprite *m_animatedSprite; // rax SpriteAnimationManager *m_animationManager; // r14 std::uint8_t sizex2; // cl std::string *v5; // rax std::size_t size; // rdx char *longStorage; // rsi SpriteAnimationManager *v8; // rbx int v9; // eax std::string *p_m_currentAnim; // rax __int128 v11; // [rsp+0h] [rbp-50h] BYREF void *__p; // [rsp+10h] [rbp-40h] __int128 v13; // [rsp+20h] [rbp-30h] BYREF void *v14; // [rsp+30h] [rbp-20h] SpriteAnimationManager::stopAnimations(a1->m_animatedSprite->m_animationManager); if ( a1->m_isActivated && (!a1->m_editorEnabled || GameManager::sharedState()->m_levelEditorLayer->m_previewAnimations) ) { m_animatedSprite = a1->m_animatedSprite; m_animationManager = m_animatedSprite->m_animationManager; if ( a1->m_playingAnimation ) { sizex2 = a1->m_currentAnimation.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) { size = a1->m_currentAnimation.m_data.m_long.size; if ( size ) { longStorage = a1->m_currentAnimation.m_data.m_long.longStorage; goto LABEL_19; } } else if ( sizex2 ) { v14 = a1->m_currentAnimation.m_data.m_long.longStorage; v13 = *(_OWORD *)&a1->m_currentAnimation.m_data.m_short.sizex2; goto LABEL_20; } if ( (m_animatedSprite->m_currentAnim.m_data.m_short.sizex2 & 1) == 0 ) { p_m_currentAnim = &m_animatedSprite->m_currentAnim; v14 = p_m_currentAnim->m_data.m_long.longStorage; v13 = *(_OWORD *)&p_m_currentAnim->m_data.m_short.sizex2; goto LABEL_20; } size = m_animatedSprite->m_currentAnim.m_data.m_long.size; longStorage = m_animatedSprite->m_currentAnim.m_data.m_long.longStorage; LABEL_19: sub_100006B70(&v13, longStorage, size, v1); LABEL_20: SpriteAnimationManager::runAnimation(m_animationManager, &v13); if ( (v13 & 1) != 0 ) operator delete(v14); return; } if ( (m_animatedSprite->m_currentAnim.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( &v11, m_animatedSprite->m_currentAnim.m_data.m_long.longStorage, m_animatedSprite->m_currentAnim.m_data.m_long.size, v1); } else { v5 = &m_animatedSprite->m_currentAnim; __p = v5->m_data.m_long.longStorage; v11 = *(_OWORD *)&v5->m_data.m_short.sizex2; } SpriteAnimationManager::runAnimation(m_animationManager, &v11); if ( (v11 & 1) != 0 ) operator delete(__p); v8 = a1->m_animatedSprite->m_animationManager; v9 = rand(); SpriteAnimationManager::offsetCurrentAnimation(v8, (float)v9 * 4.6566129e-10); } }