//
// PlayerObject::updateMove from 0x43d5d0 to 0x43e466 (3734 bytes)
//
// 1 xrefs:
// > PlayerObject::update @ 0x448d74
//
// 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:24 +0000
//
float *__fastcall PlayerObject::updateMove(PlayerObject *this, float a2)
{
int v4; // r8
double v5; // d10
double *v6; // r7
int v7; // r6
int v8; // r5
double v9; // d11
float v10; // s18
int v11; // r2
int v12; // r2
double v13; // d12
double v14; // d13
double v15; // d9
int v16; // r3
double v17; // d7
double v18; // d6
double *v19; // r1
double v20; // d7
int v21; // r3
int v22; // r9
int v23; // r2
int v24; // r3
double v25; // d7
int v26; // r8
_BOOL4 v27; // r8
int v28; // r9
int v29; // r9
float v30; // s13
float v31; // s12
float v32; // s14
double v33; // d5
int v34; // r2
float v35; // s7
double v36; // d6
double v37; // d6
double v38; // d8
double v39; // d4
double v40; // d6
double v41; // d4
double v42; // d6
double v43; // d5
double v44; // d6
double v45; // d5
double v46; // d4
double v47; // d6
double v48; // d8
double v49; // d12
double v50; // d9
float v51; // s16
int v52; // r8
PlayerObject *v53; // r0
int v54; // r1
float v55; // r0
float v56; // s14
float v57; // s14
float *result; // r0
int v59; // r0
int v60; // r1
float *v61; // r8
float v62; // s14
float v63; // s14
int v64; // r9
int v65; // r2
int v66; // r3
int v67; // r9
int v68; // r2
int v69; // r3
double v70; // d6
float v71; // r3
float v72; // s16
float v73; // s12
cocos2d **v74; // r8
float v75; // s14
float v76; // s15
float v77; // s14
float v78; // s15
float v79; // s15
double v80; // d8
float v81; // s15
int (__fastcall *v82)(PlayerObject *, _DWORD); // r5
float v83; // s15
float v84; // s14
double v85; // d7
void (__fastcall *v86)(PlayerObject *, _DWORD); // r8
float v87; // r1
PlayerObject *v88; // r0
float v89; // s14
int v90; // r0
int v91; // [sp+4h] [bp-50h]
double *v92; // [sp+8h] [bp-4Ch]
int v93[3]; // [sp+1Ch] [bp-38h] BYREF
int v94; // [sp+28h] [bp-2Ch] BYREF
int v95; // [sp+2Ch] [bp-28h]
int v96; // [sp+30h] [bp-24h]
int v97[3]; // [sp+34h] [bp-20h] BYREF
int v98; // [sp+40h] [bp-14h] BYREF
int v99; // [sp+44h] [bp-10h]
int v100; // [sp+48h] [bp-Ch]
v4 = *((unsigned __int8 *)this + 1944);
v5 = *((float *)this + 503) * *((double *)this + 195);
if ( *((_BYTE *)this + 1944) && !*((_BYTE *)this + 1420) && !*((_BYTE *)this + 1952) )
v5 = v5 * cosf(*((float *)this + 324));
v6 = (double *)((char *)this + 2200);
v7 = *((unsigned __int8 *)this + 2209);
v8 = *((unsigned __int8 *)this + 2208);
v9 = *((double *)this + 275);
v10 = 1.0;
if ( *((_BYTE *)this + 2248) )
v10 = 0.2;
if ( *((_BYTE *)this + 2209) || *((_BYTE *)this + 2208) || *((_BYTE *)this + 2297) )
v11 = 1;
else
v11 = *((unsigned __int8 *)this + 2298);
v91 = v11;
v92 = (double *)((char *)this + 2128);
if ( !*((_BYTE *)this + 2209) || *((_BYTE *)this + 2208) && !*((_BYTE *)this + 2210) )
{
if ( *((_BYTE *)this + 2248) )
{
v7 = 0;
goto LABEL_21;
}
v7 = 0;
LABEL_19:
if ( !*((_BYTE *)this + 2036) && *((unsigned __int8 *)this + 2299) != v7 )
{
if ( *((int *)this + 567) > 0 )
{
v10 = 0.2;
}
else
{
v85 = *v92 - *((double *)this + 284);
if ( v85 < 0.5 )
v10 = (v85 + v85) * 0.800000012 + 0.200000003;
}
}
if ( v7 )
goto LABEL_17;
LABEL_21:
v12 = 1;
goto LABEL_22;
}
if ( !*((_BYTE *)this + 2248) )
{
v8 = 0;
goto LABEL_19;
}
v8 = 0;
LABEL_17:
v7 = 1;
v12 = -1;
LABEL_22:
v13 = a2;
v14 = a2 * 0.5;
v15 = v14 * v10;
if ( !*((_BYTE *)this + 2297) || !v7 )
{
v16 = *((unsigned __int8 *)this + 2298);
if ( !*((_BYTE *)this + 2298) )
goto LABEL_32;
if ( !v8 )
{
v16 = 0;
goto LABEL_32;
}
}
if ( fabs(v9) < v5 * 0.949999988 )
{
v16 = 0;
}
else if ( v4 )
{
v16 = *((unsigned __int8 *)this + 1952) ^ 1;
}
else
{
v16 = 0;
}
LABEL_32:
if ( *((_BYTE *)this + 2233) || v16 )
{
v17 = 1.0;
v18 = *((double *)this + 148);
if ( v18 < 0.0 )
v17 = v18 / -15.0 * 0.300000012 + 1.0;
v19 = (double *)((char *)this + 2240);
if ( v16 )
*v19 = *v19 + (float)(a2 * 0.25) * v17;
v20 = *v19;
*((_BYTE *)this + 2233) = 1;
v5 = v5 + v20;
}
if ( v7 )
{
if ( v9 > 0.0 )
{
LABEL_43:
v15 = v15 * 1.5;
goto LABEL_44;
}
if ( !v8 )
goto LABEL_46;
}
else if ( !v8 )
{
goto LABEL_58;
}
if ( v9 < 0.0 )
goto LABEL_43;
LABEL_44:
if ( !v7 && !v8 )
{
LABEL_58:
if ( *((_BYTE *)this + 2036) )
{
v26 = *((unsigned __int8 *)this + 1957);
if ( *((_BYTE *)this + 1957) )
{
std::string::basic_string(v93, *(_DWORD *)(*((_DWORD *)this + 433) + 532) + 304);
v94 = 0;
v95 = 0;
v96 = 0;
std::string::__init(&v94, "idle01", 6u);
if ( sub_434632((unsigned __int8 *)v93, (unsigned __int8 *)&v94) )
{
v27 = 0;
}
else
{
std::string::basic_string(v97, *(_DWORD *)(*((_DWORD *)this + 433) + 532) + 304);
v98 = 0;
v99 = 0;
v100 = 0;
std::string::__init(&v98, "idle02", 6u);
v27 = !sub_434632((unsigned __int8 *)v97, (unsigned __int8 *)&v98);
std::string::~string((int)&v98);
std::string::~string((int)v97);
}
std::string::~string((int)&v94);
std::string::~string((int)v93);
if ( !v27 )
goto LABEL_71;
v28 = *((_DWORD *)this + 433);
v98 = 0;
v99 = 0;
v100 = 0;
std::string::__init(&v98, "idle01", 6u);
CCAnimatedSprite::tweenToAnimation(v28, (int)&v98, (cocos2d::CCDelayTime *)0x3E4CCCCD);
}
else
{
if ( !*((_BYTE *)this + 1958) )
goto LABEL_71;
std::string::basic_string(v93, *(_DWORD *)(*((_DWORD *)this + 434) + 532) + 304);
v94 = v26;
v95 = v26;
v96 = v26;
std::string::__init(&v94, "idle01", 6u);
if ( !sub_434632((unsigned __int8 *)v93, (unsigned __int8 *)&v94) )
{
std::string::basic_string(v97, *(_DWORD *)(*((_DWORD *)this + 434) + 532) + 304);
v98 = 0;
v99 = 0;
v100 = 0;
std::string::__init(&v98, "idle02", 6u);
v26 = !sub_434632((unsigned __int8 *)v97, (unsigned __int8 *)&v98);
std::string::~string((int)&v98);
std::string::~string((int)v97);
}
std::string::~string((int)&v94);
std::string::~string((int)v93);
if ( !v26 )
goto LABEL_71;
v29 = *((_DWORD *)this + 434);
v98 = 0;
v99 = 0;
v100 = 0;
std::string::__init(&v98, "idle01", 6u);
CCAnimatedSprite::tweenToAnimation(v29, (int)&v98, (cocos2d::CCDelayTime *)0x3E4CCCCD);
}
std::string::~string((int)&v98);
}
LABEL_71:
if ( *((_BYTE *)this + 2248) )
{
v25 = 0.200000003;
}
else
{
v30 = 0.2;
v31 = *((float *)this + 512);
v32 = v31 + 0.2;
if ( (float)(v31 + 0.2) >= 1.0 )
v32 = 1.0;
v25 = v32;
if ( !*((_BYTE *)this + 2036) )
{
if ( *((_BYTE *)this + 1953) || *((_BYTE *)this + 1955) || *((_BYTE *)this + 1954) )
{
v30 = 0.02;
}
else if ( *((_BYTE *)this + 1957) )
{
v30 = 0.1;
}
else
{
v30 = 0.1;
if ( !*((_BYTE *)this + 1958) )
v30 = 0.05;
}
}
*((float *)this + 512) = v31 + (float)(a2 * v30);
}
v21 = 1;
goto LABEL_88;
}
LABEL_46:
*((_DWORD *)this + 512) = 0;
if ( v7 && v9 > -v5 || v8 && v9 < v5 )
*v6 = v9 + v15 * (double)v12;
v21 = *((unsigned __int8 *)this + 2036);
if ( *((_BYTE *)this + 2036) )
{
if ( *((_BYTE *)this + 1957) )
{
v22 = *((_DWORD *)this + 433);
std::string::basic_string(&v98, (int)this + 2400);
CCAnimatedSprite::runAnimation(v22, (int)&v98, v23, v24);
std::string::~string((int)&v98);
LABEL_54:
v25 = 0.0500000007;
v21 = 0;
goto LABEL_88;
}
v21 = *((unsigned __int8 *)this + 1958);
if ( *((_BYTE *)this + 1958) )
{
PlayerObject::playDynamicSpiderRun((int)this);
goto LABEL_54;
}
}
v25 = 0.0500000007;
LABEL_88:
v33 = *v6;
if ( fabs(*v6) < 0.5 )
*((_BYTE *)this + 2356) = 0;
if ( *((_BYTE *)this + 2356) )
{
v21 = 1;
}
else if ( *((_BYTE *)this + 2296) )
{
v21 = 1;
}
if ( (*((_BYTE *)this + 2224) || *((_BYTE *)this + 2356) || *((_BYTE *)this + 2296)) && !*((_BYTE *)this + 2248) )
{
if ( *((_BYTE *)this + 2064) )
{
v25 = 0.0500000007;
}
else
{
v25 = 0.200000003;
if ( v91 )
v25 = 0.0500000007;
}
}
else if ( *((_BYTE *)this + 2232) && !*((_BYTE *)this + 2248) )
{
v25 = 0.100000001;
}
v34 = *((unsigned __int8 *)this + 2297);
if ( *((_BYTE *)this + 2297) || *((_BYTE *)this + 2298) )
{
*((_BYTE *)this + 2299) = v34;
if ( v34 )
{
v35 = -1.0;
if ( !v7 )
{
LABEL_114:
if ( !*((_DWORD *)this + 350) )
goto LABEL_121;
v36 = fabsf(*((float *)this + 357) * 57.296);
if ( v36 > 80.0 )
{
v36 = 80.0;
goto LABEL_122;
}
if ( v36 > 40.0 )
{
if ( v36 > 80.0 )
v36 = 80.0;
}
else
{
LABEL_121:
v36 = 40.0;
}
LABEL_122:
v37 = (v36 - 40.0) / 40.0;
v38 = v14 * (v37 * 0.5 + 0.5) * 0.400000006;
if ( *((_BYTE *)this + 1953) )
v38 = v38 * 0.699999988;
if ( v34 && v33 > 0.0 )
{
LABEL_128:
v39 = v37 * 0.699999988 + 1.35000002;
if ( *((_BYTE *)this + 1953) )
{
v40 = 0.25;
}
else if ( *((_BYTE *)this + 1955) )
{
v40 = 0.280000001;
}
else
{
if ( !*((_BYTE *)this + 1958) )
{
LABEL_135:
if ( *((_BYTE *)this + 2248) )
v39 = v39 * 4.0;
if ( v34 && !v8 || *((_BYTE *)this + 2298) && !v7 )
v39 = v39 * 0.800000012;
v41 = v15 * v39;
if ( fabs(v41) > fabs(v38) )
v38 = v41;
goto LABEL_147;
}
v40 = 0.200000003;
}
v39 = v39 - v40;
goto LABEL_135;
}
if ( *((_BYTE *)this + 2298) )
{
if ( v33 < 0.0 )
goto LABEL_128;
if ( (!v34 || !v8) && !v7 )
{
LABEL_147:
if ( *((_BYTE *)this + 1944)
&& !*((_BYTE *)this + 2264)
&& *((int *)this + 567) > 0
&& !*((_BYTE *)this + 1952) )
{
*v6 = v33 * 0.800000012;
}
v21 = 0;
*v6 = *v6 + v38 * v35;
goto LABEL_153;
}
}
else if ( !v34 || !v8 )
{
goto LABEL_147;
}
v38 = v38 + v15;
goto LABEL_147;
}
}
else
{
v35 = 1.0;
}
if ( !*((_BYTE *)this + 2298) || v8 )
goto LABEL_153;
goto LABEL_114;
}
LABEL_153:
if ( !*((_BYTE *)this + 2232) )
goto LABEL_162;
if ( *((_BYTE *)this + 2248) )
{
if ( v21 )
{
v42 = *v6;
v43 = -(v25 * *v6) * v13;
goto LABEL_174;
}
goto LABEL_165;
}
if ( !v34 && !*((_BYTE *)this + 2298) )
{
if ( *((_BYTE *)this + 2299) )
{
if ( *v6 <= 0.0 )
goto LABEL_167;
}
else if ( *v6 >= 0.0 )
{
goto LABEL_167;
}
*((_BYTE *)this + 2232) = 0;
LABEL_162:
if ( v21 )
goto LABEL_163;
goto LABEL_165;
}
LABEL_167:
if ( v21 )
{
v42 = *v6;
v43 = -(v25 * *v6) * v13;
goto LABEL_169;
}
LABEL_165:
v44 = *v6;
v45 = fabs(*v6);
if ( v45 <= v5 )
{
if ( *((_BYTE *)this + 2320) && (v45 < 0.00999999978 || v9 > 0.0 && v44 < 0.0 || v9 < 0.0 && v44 > 0.0) )
goto LABEL_188;
goto LABEL_189;
}
LABEL_163:
v42 = *v6;
v43 = -(v25 * *v6) * v13;
if ( *((_BYTE *)this + 2248) )
{
LABEL_174:
v46 = 0.150000006;
goto LABEL_175;
}
LABEL_169:
v46 = 0.150000006;
if ( !*((_BYTE *)this + 2296) )
v46 = 1.0;
LABEL_175:
v47 = v42 + v43 * v46;
*v6 = v47;
if ( fabs(v47) < 0.00999999978 || *((_BYTE *)this + 2320) && (v9 > 0.0 && v47 < 0.0 || v9 < 0.0 && v47 > 0.0) )
{
*v6 = 0.0;
LABEL_188:
*((_BYTE *)this + 2224) = 0;
*((_BYTE *)this + 2356) = 0;
*((_BYTE *)this + 2232) = 0;
*((_BYTE *)this + 2296) = 0;
}
LABEL_189:
if ( *((_BYTE *)this + 2224) )
{
v48 = *((float *)this + 557);
v49 = -(v25 * v48) * v13;
if ( *((_BYTE *)this + 2248) )
{
v50 = 0.150000006;
}
else
{
v50 = 1.0;
if ( *((_BYTE *)this + 2296) )
v50 = 0.150000006;
}
v51 = v48 + v49 * v50;
*((float *)this + 557) = v51;
if ( fabsf(v51) < 1.0 )
*((_BYTE *)this + 2224) = 0;
}
if ( *((_BYTE *)this + 1996) )
{
*v6 = v5;
goto LABEL_213;
}
v52 = *((unsigned __int8 *)this + 1962);
if ( !v7 )
{
if ( !v8 || !*((_BYTE *)this + 1962) )
goto LABEL_206;
LABEL_204:
v53 = this;
v54 = 0;
goto LABEL_205;
}
if ( !*((_BYTE *)this + 1962) )
{
v53 = this;
v54 = 1;
LABEL_205:
PlayerObject::doReversePlayer(v53, v54);
goto LABEL_206;
}
if ( v8 )
goto LABEL_204;
LABEL_206:
if ( *((unsigned __int8 *)this + 1962) == v52 )
goto LABEL_213;
PlayerObject::exitPlatformerAnimateJump((cocos2d::CCNode **)this);
if ( !PlayerObject::isInNormalMode(this) || *((_BYTE *)this + 1480) )
{
if ( *((_BYTE *)this + 1953) || *((_BYTE *)this + 1954) )
{
v86 = *(void (__fastcall **)(PlayerObject *, _DWORD))(*(_DWORD *)this + 180);
LODWORD(v87) = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 184))(this) ^ 0x80000000;
v88 = this;
LABEL_305:
v86(v88, LODWORD(v87));
}
}
else
{
v55 = COERCE_FLOAT((*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 184))(this));
v56 = v55;
if ( *((_BYTE *)this + 1944) )
v56 = v55 - *((double *)this + 227) * 57.2957802;
v57 = fabsf(v56);
if ( v57 > 45.0 && v57 < 135.0 || v57 > 225.0 && v57 < 315.0 )
{
v86 = *(void (__fastcall **)(PlayerObject *, _DWORD))(*(_DWORD *)this + 180);
v89 = COERCE_FLOAT((*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 184))(this));
v88 = this;
v87 = v89 + 180.0;
goto LABEL_305;
}
}
LABEL_213:
result = (float *)PlayerObject::isInNormalMode(this);
if ( !result || *v6 == 0.0 || *((_BYTE *)this + 1480) || !v91 || fabs(*((double *)this + 241)) <= 1.0 )
{
if ( !*((_BYTE *)this + 1944) && !*((_BYTE *)this + 1945) )
{
if ( result )
{
if ( !v91 && !*((_BYTE *)this + 2036) && !*((_BYTE *)this + 1480) )
{
v59 = (int)(*(float (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 184))(this);
v60 = v59 % 90;
result = (float *)(v59 / 90);
if ( v60 )
{
v90 = PlayerObject::convertToClosestRotation(this, 0.0);
result = PlayerObject::updateRotation((float *)this, a2, *(float *)&v90);
}
}
}
}
}
else
{
PlayerObject::runRotateAction(this, 1, 10);
result = (float *)PlayerObject::exitPlatformerAnimateJump((cocos2d::CCNode **)this);
}
v61 = (float *)((char *)this + 2372);
if ( v7 || v8 || !*((_BYTE *)this + 2036) )
{
v62 = *v92;
*v61 = v62;
}
else if ( *v92 - *v61 > *((float *)this + 594) )
{
result = (float *)rand();
*((float *)this + 594) = (float)(vcvts_n_f32_s32((unsigned int)result, 0x1Fu) * 10.0) + 5.0;
v63 = *v92;
*v61 = v63;
if ( *((_BYTE *)this + 1957) )
{
v64 = *((_DWORD *)this + 433);
v98 = 0;
v99 = 0;
v100 = 0;
std::string::__init(&v98, "idle02", 6u);
CCAnimatedSprite::runAnimation(v64, (int)&v98, v65, v66);
}
else
{
if ( !*((_BYTE *)this + 1958) )
goto LABEL_237;
v67 = *((_DWORD *)this + 434);
v98 = 0;
v99 = 0;
v100 = 0;
std::string::__init(&v98, "idle02", 6u);
CCAnimatedSprite::runAnimation(v67, (int)&v98, v68, v69);
}
result = (float *)std::string::~string((int)&v98);
}
LABEL_237:
if ( !*((_BYTE *)this + 1955) || *((_BYTE *)this + 1481) || *((_BYTE *)this + 1996) )
goto LABEL_290;
v70 = *v6;
LODWORD(v71) = *((unsigned __int8 *)this + 2248);
v72 = -1.0;
if ( !*((_BYTE *)this + 1963) )
v72 = 1.0;
if ( *((_BYTE *)this + 2248) )
{
v74 = (cocos2d **)((char *)this + 1992);
if ( v70 >= 0.0 || (v75 = *(float *)v74, *(float *)v74 <= 0.0) )
{
if ( v70 <= 0.0 )
{
LABEL_251:
v75 = *(float *)v74;
if ( *(float *)v74 <= 0.0 )
{
if ( *(float *)v74 >= 0.0 )
{
v76 = 0.1;
goto LABEL_260;
}
goto LABEL_256;
}
goto LABEL_252;
}
}
else
{
if ( v7 )
goto LABEL_259;
if ( v70 <= 0.0 )
{
LABEL_252:
if ( v70 <= v75 )
{
if ( v75 >= 0.0 )
{
v76 = 0.1;
LABEL_261:
if ( v70 > v75 && v8 )
{
if ( !v7 )
{
v76 = 0.3;
goto LABEL_276;
}
goto LABEL_272;
}
LABEL_263:
if ( v75 >= 0.0 || v70 >= v75 )
{
if ( v7 )
goto LABEL_273;
LABEL_268:
if ( !v8 )
{
LODWORD(v71) = *((unsigned __int8 *)this + 2297);
if ( !*((_BYTE *)this + 2297) && v70 >= v75 )
{
LODWORD(v71) = *((unsigned __int8 *)this + 2298);
if ( *((_BYTE *)this + 2298) || v70 > v75 )
goto LABEL_276;
if ( v75 <= 0.0 )
{
if ( v75 >= 0.0 )
{
LABEL_286:
v73 = COERCE_FLOAT(cocos2d::clampf(*v74, -5.0, 5.0, v71));
*(float *)v74 = v73;
goto LABEL_287;
}
v79 = (float)(a2 * v76) * 0.5;
if ( (float)-v75 <= v79 )
v79 = -v75;
v77 = v75 + v79;
}
else
{
v78 = (float)(a2 * v76) * 0.5;
if ( v75 <= v78 )
v78 = v75;
v77 = v75 - v78;
}
LABEL_285:
*(float *)v74 = v77;
goto LABEL_286;
}
LABEL_273:
v77 = v75 - (float)(a2 * v76);
goto LABEL_285;
}
LABEL_276:
v77 = v75 + (float)(a2 * v76);
goto LABEL_285;
}
if ( !v7 )
goto LABEL_268;
LABEL_272:
v76 = 0.3;
goto LABEL_273;
}
LABEL_256:
v76 = 0.1;
if ( v70 < v75 )
v76 = 0.2;
LABEL_260:
v75 = *(float *)v74;
if ( *(float *)v74 <= 0.0 )
goto LABEL_263;
goto LABEL_261;
}
LABEL_259:
v76 = 0.2;
goto LABEL_260;
}
}
if ( *(float *)v74 < 0.0 && v8 )
goto LABEL_259;
goto LABEL_251;
}
v73 = v70;
LABEL_287:
v80 = (float)((float)((float)((float)(v73 * a2) * (float)PlayerObject::flipMod(this)) * v72) * 2.8);
if ( *((_BYTE *)this + 1944) )
{
v81 = *((double *)this + 227);
v80 = v80 / cosf(v81);
}
v82 = *(int (__fastcall **)(PlayerObject *, _DWORD))(*(_DWORD *)this + 180);
v83 = COERCE_FLOAT((*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 184))(this)) + v80;
result = (float *)v82(this, LODWORD(v83));
LABEL_290:
if ( !*((_BYTE *)this + 2248) )
{
v84 = *v6;
*((float *)this + 498) = v84;
}
return result;
}