// // PlayerObject::playDynamicSpiderRun from 0x1004021a0 to 0x100402402 (610 bytes) // // 5 xrefs: // > PlayerObject::updateMove @ 0x100400397 // > PlayerObject::stopDashing @ 0x10040211d // > PlayerObject::hitGround @ 0x10040c28f // > PlayerObject::toggleSpiderMode @ 0x10041908b // > PlayerObject::updateRobotAnimationSpeed @ 0x10041bb3c // // 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 PlayerObject::playDynamicSpiderRun(PlayerObject *a1) { double v1; // xmm0_8 SpriteAnimationManager *m_animationManager; // rax std::string *p_m_currentAnimation; // rax double v5; // xmm0_8 size_t v6; // rcx char *v7; // rsi size_t v8; // rdx bool v9; // r15 bool v10; // r14 GJSpiderSprite *v11; // rdi bool v12; // r14 _BOOL8 m_spiderAnimationEnabled; // r15 size_t v14; // rcx char *v15; // rsi size_t v16; // rdx bool v17; // r13 bool v18; // r12 GJSpiderSprite *v19; // r14 const char *v20; // rsi bool v21; // r12 GJSpiderSprite *m_spiderSprite; // rdi _DWORD __s1[5]; // [rsp+1h] [rbp-9Fh] BYREF __int128 v24; // [rsp+18h] [rbp-88h] BYREF void *v25; // [rsp+28h] [rbp-78h] __int128 v26; // [rsp+30h] [rbp-70h] BYREF void *__p; // [rsp+40h] [rbp-60h] __int128 v28; // [rsp+48h] [rbp-58h] BYREF void *v29; // [rsp+58h] [rbp-48h] size_t __n[2]; // [rsp+60h] [rbp-40h] BYREF void *__s2; // [rsp+70h] [rbp-30h] if ( !a1->m_isDashing ) { m_animationManager = a1->m_spiderSprite->m_animationManager; if ( (m_animationManager->m_currentAnimation.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( __n, m_animationManager->m_currentAnimation.m_data.m_long.longStorage, m_animationManager->m_currentAnimation.m_data.m_long.size, v1); *(_QWORD *)&v5 = LODWORD(a1->m_playerSpeed); if ( *(float *)&v5 <= 1.1 ) { LABEL_4: if ( *(float *)&v5 <= 0.89999998 ) { m_spiderSprite = a1->m_spiderSprite; LOBYTE(v28) = 8; strcpy((char *)&v28 + 1, "walk"); CCAnimatedSprite::runAnimation((__int64)m_spiderSprite, &v28, v5); if ( (v28 & 1) != 0 ) operator delete(v29); goto LABEL_30; } strcpy((char *)__s1, "walk"); v6 = LOBYTE(__n[0]) >> 1; if ( (__n[0] & 1) != 0 ) v6 = __n[1]; v7 = (char *)__n + 1; if ( (__n[0] & 1) != 0 ) v7 = (char *)__s2; v8 = 4; if ( v6 < 4 ) v8 = v6; v9 = v6 == 4; v10 = memcmp(__s1, v7, v8) == 0; v11 = a1->m_spiderSprite; LOBYTE(v26) = 6; *(_DWORD *)((char *)&v26 + 1) = 7239026; CCAnimatedSprite::runAnimation((__int64)v11, &v26, v5); v12 = v9 && v10; if ( (v26 & 1) != 0 ) operator delete(__p); if ( !v12 ) { LABEL_30: if ( (__n[0] & 1) != 0 ) operator delete(__s2); return; } LABEL_14: SpriteAnimationManager::offsetCurrentAnimation(a1->m_spiderSprite->m_animationManager, 0.1); goto LABEL_30; } } else { p_m_currentAnimation = &m_animationManager->m_currentAnimation; __s2 = p_m_currentAnimation->m_data.m_long.longStorage; *(_OWORD *)__n = *(_OWORD *)&p_m_currentAnimation->m_data.m_short.sizex2; *(_QWORD *)&v5 = LODWORD(a1->m_playerSpeed); if ( *(float *)&v5 <= 1.1 ) goto LABEL_4; } m_spiderAnimationEnabled = a1->m_spiderAnimationEnabled; strcpy((char *)__s1, "walk"); v14 = LOBYTE(__n[0]) >> 1; if ( (__n[0] & 1) != 0 ) v14 = __n[1]; v15 = (char *)__n + 1; if ( (__n[0] & 1) != 0 ) v15 = (char *)__s2; v16 = 4; if ( v14 < 4 ) v16 = v14; v17 = v14 == 4; v18 = memcmp(__s1, v15, v16) == 0; v19 = a1->m_spiderSprite; v20 = "run"; if ( m_spiderAnimationEnabled ) v20 = "run2"; LOBYTE(v24) = 2 * (m_spiderAnimationEnabled + 3); memcpy((char *)&v24 + 1, v20, m_spiderAnimationEnabled + 3); *((_BYTE *)&v24 + m_spiderAnimationEnabled + 4) = 0; CCAnimatedSprite::runAnimation((__int64)v19, &v24, v5); v21 = v17 && v18; if ( (v24 & 1) != 0 ) operator delete(v25); if ( !v21 ) goto LABEL_30; goto LABEL_14; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source