//
// PlayerObject::playDynamicSpiderRun from 0x43b630 to 0x43b7ae (382 bytes)
//
// 5 xrefs:
// > PlayerObject::stopDashing @ 0x43bc00
// > PlayerObject::hitGround @ 0x43bfbc
// > PlayerObject::updateMove @ 0x43d7f0
// > PlayerObject::toggleSpiderMode @ 0x43e864
// > PlayerObject::updateRobotAnimationSpeed @ 0x43f338
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:22 +0000
//
int __fastcall PlayerObject::playDynamicSpiderRun(int this)
{
int v1; // r4
int v2; // r5
int v3; // r8
float v4; // s15
_BOOL4 v5; // r9
int v6; // r10
const char *v7; // r8
size_t v8; // r0
int v9; // r2
int v10; // r3
_BOOL4 v11; // r8
int v12; // r9
int v13; // r2
int v14; // r3
int v15; // r5
int v16; // r2
int v17; // r3
int v18[3]; // [sp+4h] [bp-4Ch] BYREF
int v19[3]; // [sp+10h] [bp-40h] BYREF
int v20[3]; // [sp+1Ch] [bp-34h] BYREF
int v21[3]; // [sp+28h] [bp-28h] BYREF
int v22[3]; // [sp+34h] [bp-1Ch] BYREF
int v23[3]; // [sp+40h] [bp-10h] BYREF
v1 = *(unsigned __int8 *)(this + 1996);
v2 = this;
if ( !*(_BYTE *)(this + 1996) )
{
std::string::basic_string(v18, *(_DWORD *)(*(_DWORD *)(this + 1736) + 532) + 304);
v3 = *(unsigned __int8 *)(v2 + 2463);
v4 = *(float *)(v2 + 2012);
if ( v4 <= 1.1 )
{
if ( v4 <= 0.9 )
{
v23[0] = v1;
v23[1] = v1;
v23[2] = v1;
v15 = *(_DWORD *)(v2 + 1736);
std::string::__init(v23, "walk", 4u);
CCAnimatedSprite::runAnimation(v15, (int)v23, v16, v17);
std::string::~string((int)v23);
return std::string::~string((int)v18);
}
v21[0] = v1;
v21[1] = v1;
v21[2] = v1;
std::string::__init(v21, "walk", 4u);
v11 = sub_434632((unsigned __int8 *)v21, (unsigned __int8 *)v18);
std::string::~string((int)v21);
v12 = *(_DWORD *)(v2 + 1736);
memset(v22, 0, sizeof(v22));
std::string::__init(v22, "run", 3u);
CCAnimatedSprite::runAnimation(v12, (int)v22, v13, v14);
std::string::~string((int)v22);
if ( !v11 )
return std::string::~string((int)v18);
}
else
{
v19[0] = v1;
v19[1] = v1;
v19[2] = v1;
std::string::__init(v19, "walk", 4u);
v5 = sub_434632((unsigned __int8 *)v19, (unsigned __int8 *)v18);
std::string::~string((int)v19);
v6 = *(_DWORD *)(v2 + 1736);
if ( v3 )
v7 = "run2";
else
v7 = "run";
memset(v20, 0, sizeof(v20));
v8 = strlen(v7);
std::string::__init(v20, v7, v8);
CCAnimatedSprite::runAnimation(v6, (int)v20, v9, v10);
std::string::~string((int)v20);
if ( !v5 )
return std::string::~string((int)v18);
}
SpriteAnimationManager::offsetCurrentAnimation(*(SpriteAnimationManager **)(*(_DWORD *)(v2 + 1736) + 532), 0.1);
return std::string::~string((int)v18);
}
return this;
}