//
// PlayerObject::updateMove from 0x7577d8 to 0x7589fc (4644 bytes)
//
// 2 xrefs:
// > PlayerObject::update @ 0x7698ec
// > ??> @ 0xb0368
//
// 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:52:58 +0000
//
__int64 __fastcall PlayerObject::updateMove(PlayerObject *this, float a2)
{
int v3; // w26
double v5; // d8
int v6; // w0
double v7; // d0
double v8; // d11
float v9; // s12
int v10; // w22
unsigned int v11; // w20
unsigned int v12; // w24
double v13; // d12
int v14; // w27
double v15; // d9
int v16; // w22
double v17; // d13
double v18; // d12
_BOOL4 v19; // w28
unsigned int v20; // w23
int v21; // w1
_BOOL4 v22; // w25
double v23; // d1
double v24; // d2
double v25; // d1
char v26; // w0
__int64 v27; // x26
__int64 v28; // x0
__int64 v29; // x1
int v30; // w26
double v31; // d1
int v32; // w0
unsigned int v33; // w1
unsigned int v34; // w2
float v35; // s4
double v36; // d4
double v37; // d2
double v38; // d2
double v39; // d3
bool v40; // cc
double v41; // d13
double v42; // d2
double v43; // d2
bool v44; // nf
bool v45; // cc
double v46; // d2
double v47; // d0
double v48; // d1
float v49; // s9
float v50; // s8
cocos2d *v51; // x0
double v52; // d1
float v53; // s0
double v54; // d8
float v55; // s0
void (__fastcall *v56)(PlayerObject *, float); // x20
float v57; // s0
float v58; // s0
int v60; // w26
__int64 v61; // x0
__int64 v62; // x1
__int64 v63; // x0
__int64 v64; // x1
_BOOL4 v65; // w26
__int64 v66; // x0
__int64 v67; // x1
__int64 v68; // x0
__int64 v69; // x1
__int64 v70; // x27
double v71; // d1
float v72; // s3
float v73; // s2
float v74; // s0
double v75; // d3
double v76; // d0
int v77; // w0
unsigned int v78; // w25
float v79; // s0
float v80; // s0
void (__fastcall *v81)(PlayerObject *, float); // x25
float v82; // s0
float v83; // s9
int v84; // w0
int v85; // w1
float v86; // s2
__int64 v87; // x24
float v88; // s0
void (__fastcall *v89)(PlayerObject *, float); // x25
float v90; // s0
float v91; // s0
float v92; // s3
double v93; // d2
double v94; // d4
int v95; // w2
__int64 v96; // x27
__int64 v97; // x24
float v98; // s3
float v99; // s3
__int64 v100; // [xsp+A8h] [xbp+A8h] BYREF
__int64 v101; // [xsp+B0h] [xbp+B0h]
void *v102; // [xsp+B8h] [xbp+B8h]
__int64 v103; // [xsp+C0h] [xbp+C0h] BYREF
__int64 v104; // [xsp+C8h] [xbp+C8h]
void *v105; // [xsp+D0h] [xbp+D0h]
__int64 v106; // [xsp+D8h] [xbp+D8h] BYREF
__int64 v107; // [xsp+E0h] [xbp+E0h]
void *v108; // [xsp+E8h] [xbp+E8h]
__int64 v109; // [xsp+F0h] [xbp+F0h] BYREF
__int64 v110; // [xsp+F8h] [xbp+F8h]
void *v111; // [xsp+100h] [xbp+100h]
v3 = *((unsigned __int8 *)this + 2408);
v5 = *((float *)this + 619) * *((double *)this + 241);
if ( *((_BYTE *)this + 2408) && !*((_BYTE *)this + 1676) && !*((_BYTE *)this + 2416) )
v5 = v5 * cosf(*((float *)this + 380));
v6 = *((unsigned __int8 *)this + 2760);
v7 = *((double *)this + 339);
v8 = v7;
if ( *((_BYTE *)this + 2760) )
v9 = 0.2;
else
v9 = 1.0;
v10 = *((unsigned __int8 *)this + 2721);
v11 = *((unsigned __int8 *)this + 2720);
if ( !*((_BYTE *)this + 2721) )
{
v12 = 1;
if ( !*((_BYTE *)this + 2720) && !*((_BYTE *)this + 2809) )
v12 = *((unsigned __int8 *)this + 2810);
LABEL_7:
if ( *((_BYTE *)this + 2760) )
{
v13 = v9;
v14 = *((unsigned __int8 *)this + 2500);
goto LABEL_9;
}
goto LABEL_112;
}
if ( !*((_BYTE *)this + 2720) )
{
v12 = 1;
goto LABEL_7;
}
if ( *((_BYTE *)this + 2722) )
{
v14 = *((unsigned __int8 *)this + 2500);
if ( *((_BYTE *)this + 2760) )
{
v12 = 1;
v11 = 0;
v13 = v9;
goto LABEL_10;
}
if ( *((_BYTE *)this + 2500) )
{
v13 = v9;
v12 = 1;
v11 = 0;
goto LABEL_10;
}
v11 = 0;
v12 = 1;
goto LABEL_113;
}
if ( *((_BYTE *)this + 2760) )
{
v13 = v9;
v14 = *((unsigned __int8 *)this + 2500);
v12 = 1;
goto LABEL_109;
}
v12 = 1;
v10 = 0;
LABEL_112:
v14 = *((unsigned __int8 *)this + 2500);
if ( *((_BYTE *)this + 2500) )
{
LABEL_159:
v13 = v9;
goto LABEL_9;
}
LABEL_113:
if ( *((unsigned __int8 *)this + 2811) != v10 )
{
if ( *((int *)this + 695) > 0 )
{
v13 = 0.200000003;
v14 = 0;
goto LABEL_9;
}
v71 = *((double *)this + 328) - *((double *)this + 348);
if ( v71 < 0.5 )
{
v14 = 0;
v9 = (v71 + v71) * 0.800000012 + 0.200000003;
goto LABEL_159;
}
}
v13 = v9;
v14 = 0;
LABEL_9:
if ( !v10 )
{
LABEL_109:
v15 = a2;
v16 = v11;
v19 = 0;
v20 = 0;
v21 = 1;
v17 = a2 * 0.5;
v18 = v17 * v13;
goto LABEL_18;
}
LABEL_10:
v15 = a2;
v16 = *((unsigned __int8 *)this + 2809);
v17 = a2 * 0.5;
v18 = v17 * v13;
if ( *((_BYTE *)this + 2809) )
{
v19 = v7 > 0.0;
v20 = 1;
v21 = -1;
v22 = v19;
goto LABEL_12;
}
v16 = 1;
v21 = -1;
v20 = 1;
v19 = v7 > 0.0;
LABEL_18:
if ( !v11 || !*((_BYTE *)this + 2810) )
{
v22 = v7 > 0.0;
goto LABEL_21;
}
v11 = 1;
v22 = v7 > 0.0;
LABEL_12:
if ( fabs(v7) >= v5 * 0.949999988 && v3 && !*((_BYTE *)this + 2416) )
{
v23 = *((double *)this + 172);
if ( v23 < 0.0 )
v24 = v23 / -15.0 * 0.300000012 + 1.0;
else
v24 = 1.0;
v25 = *((double *)this + 344) + v24 * (float)(a2 * 0.25);
*((double *)this + 344) = v25;
goto LABEL_23;
}
LABEL_21:
if ( *((_BYTE *)this + 2745) )
{
v25 = *((double *)this + 344);
LABEL_23:
v5 = v5 + v25;
*((_BYTE *)this + 2745) = 1;
}
if ( v19 || v11 && v7 < 0.0 )
v18 = v18 * 1.5;
if ( !v16 )
{
if ( v14 )
{
v60 = *((unsigned __int8 *)this + 2421);
if ( *((_BYTE *)this + 2421) )
{
v61 = *(_QWORD *)(*((_QWORD *)this + 267) + 648LL);
v100 = 0;
v101 = 0;
v102 = nullptr;
if ( (*(_BYTE *)(v61 + 400) & 1) != 0 )
{
std::string::__init(&v100, *(void **)(v61 + 416), *(_QWORD *)(v61 + 408));
}
else
{
v62 = *(_QWORD *)(v61 + 408);
v100 = *(_QWORD *)(v61 + 400);
v101 = v62;
v102 = *(void **)(v61 + 416);
}
v103 = 0;
v104 = 0;
v105 = nullptr;
std::string::__init(&v103, "idle01", 6u);
if ( sub_74D8D4((__int64)&v100, (__int64)&v103) )
{
v65 = 0;
}
else
{
v63 = *(_QWORD *)(*((_QWORD *)this + 267) + 648LL);
v106 = 0;
v107 = 0;
v108 = nullptr;
if ( (*(_BYTE *)(v63 + 400) & 1) != 0 )
{
std::string::__init(&v106, *(void **)(v63 + 416), *(_QWORD *)(v63 + 408));
}
else
{
v64 = *(_QWORD *)(v63 + 408);
v106 = *(_QWORD *)(v63 + 400);
v107 = v64;
v108 = *(void **)(v63 + 416);
}
v109 = 0;
v110 = 0;
v111 = nullptr;
std::string::__init(&v109, "idle02", 6u);
v65 = !sub_74D8D4((__int64)&v106, (__int64)&v109);
if ( (v109 & 1) != 0 )
operator delete(v111);
if ( (v106 & 1) != 0 )
operator delete(v108);
}
if ( (v103 & 1) != 0 )
operator delete(v105);
if ( (v100 & 1) != 0 )
operator delete(v102);
if ( v65 )
{
v96 = *((_QWORD *)this + 267);
v109 = 0;
v110 = 0;
v111 = nullptr;
std::string::__init(&v109, "idle01", 6u);
CCAnimatedSprite::tweenToAnimation(v96, (__int64)&v109, 0.2);
if ( (v109 & 1) != 0 )
operator delete(v111);
}
goto LABEL_263;
}
if ( *((_BYTE *)this + 2422) )
{
v66 = *(_QWORD *)(*((_QWORD *)this + 268) + 648LL);
v100 = 0;
v101 = 0;
v102 = nullptr;
if ( (*(_BYTE *)(v66 + 400) & 1) != 0 )
{
std::string::__init(&v100, *(void **)(v66 + 416), *(_QWORD *)(v66 + 408));
}
else
{
v67 = *(_QWORD *)(v66 + 408);
v100 = *(_QWORD *)(v66 + 400);
v101 = v67;
v102 = *(void **)(v66 + 416);
}
v103 = 0;
v104 = 0;
v105 = nullptr;
std::string::__init(&v103, "idle01", 6u);
if ( !sub_74D8D4((__int64)&v100, (__int64)&v103) )
{
v68 = *(_QWORD *)(*((_QWORD *)this + 268) + 648LL);
v106 = 0;
v107 = 0;
v108 = nullptr;
if ( (*(_BYTE *)(v68 + 400) & 1) != 0 )
{
std::string::__init(&v106, *(void **)(v68 + 416), *(_QWORD *)(v68 + 408));
}
else
{
v69 = *(_QWORD *)(v68 + 408);
v106 = *(_QWORD *)(v68 + 400);
v107 = v69;
v108 = *(void **)(v68 + 416);
}
v109 = 0;
v110 = 0;
v111 = nullptr;
std::string::__init(&v109, "idle02", 6u);
v60 = !sub_74D8D4((__int64)&v106, (__int64)&v109);
if ( (v109 & 1) != 0 )
operator delete(v111);
if ( (v106 & 1) != 0 )
operator delete(v108);
}
if ( (v103 & 1) != 0 )
operator delete(v105);
if ( (v100 & 1) != 0 )
operator delete(v102);
if ( !v60 )
{
LABEL_263:
v7 = *((double *)this + 339);
if ( !*((_BYTE *)this + 2760) )
goto LABEL_169;
goto LABEL_146;
}
v70 = *((_QWORD *)this + 268);
v109 = 0;
v110 = 0;
v111 = nullptr;
std::string::__init(&v109, "idle01", 6u);
CCAnimatedSprite::tweenToAnimation(v70, (__int64)&v109, 0.2);
if ( (v109 & 1) != 0 )
operator delete(v111);
v7 = *((double *)this + 339);
v6 = *((unsigned __int8 *)this + 2760);
}
}
if ( !v6 )
{
LABEL_169:
v72 = *((float *)this + 628);
v73 = 0.2;
if ( (float)(v72 + 0.2) < 1.0 )
v31 = (float)(v72 + 0.2);
else
v31 = 1.0;
if ( !*((_BYTE *)this + 2500) )
{
if ( *((_BYTE *)this + 2417) || *((_BYTE *)this + 2419) || *((_BYTE *)this + 2418) )
{
v73 = 0.02;
}
else if ( *((_BYTE *)this + 2421) || *((_BYTE *)this + 2422) )
{
v73 = 0.1;
}
else
{
v73 = 0.05;
}
}
v30 = 1;
*((float *)this + 628) = v72 + (float)(a2 * v73);
goto LABEL_147;
}
LABEL_146:
v31 = 0.200000003;
v30 = 1;
goto LABEL_147;
}
*((_DWORD *)this + 628) = 0;
if ( v20 && v7 > -v5 )
{
*((double *)this + 339) = v7 + (double)v21 * v18;
}
else if ( v5 > v7 && v11 )
{
*((double *)this + 339) = v7 + (double)v21 * v18;
}
if ( !v14 )
{
LABEL_37:
v7 = *((double *)this + 339);
v30 = 0;
v31 = 0.0500000007;
if ( fabs(v7) >= 0.5 )
goto LABEL_38;
LABEL_148:
*((_BYTE *)this + 2868) = 0;
goto LABEL_149;
}
if ( *((_BYTE *)this + 2421) )
{
v26 = *((_BYTE *)this + 2944);
v109 = 0;
v110 = 0;
v111 = nullptr;
v27 = *((_QWORD *)this + 267);
if ( (v26 & 1) != 0 )
{
std::string::__init(&v109, *((void **)this + 370), *((_QWORD *)this + 369));
}
else
{
v28 = *((_QWORD *)this + 368);
v29 = *((_QWORD *)this + 369);
v111 = *((void **)this + 370);
v109 = v28;
v110 = v29;
}
CCAnimatedSprite::runAnimation(v27, (char *)&v109);
if ( (v109 & 1) != 0 )
operator delete(v111);
goto LABEL_37;
}
if ( !*((_BYTE *)this + 2422) )
goto LABEL_37;
v30 = 0;
PlayerObject::playDynamicSpiderRun(this);
v7 = *((double *)this + 339);
v31 = 0.0500000007;
LABEL_147:
if ( fabs(v7) < 0.5 )
goto LABEL_148;
LABEL_38:
if ( *((_BYTE *)this + 2868) )
{
LABEL_39:
v30 = 1;
goto LABEL_40;
}
LABEL_149:
if ( *((_BYTE *)this + 2808) )
goto LABEL_39;
if ( *((_BYTE *)this + 2736) )
{
LABEL_40:
if ( *((_BYTE *)this + 2760) )
{
v32 = *((unsigned __int8 *)this + 2744);
}
else if ( v12 || *((_BYTE *)this + 2528) )
{
v32 = *((unsigned __int8 *)this + 2744);
v31 = 0.0500000007;
}
else
{
v32 = *((unsigned __int8 *)this + 2744);
v31 = 0.200000003;
}
goto LABEL_42;
}
v32 = *((unsigned __int8 *)this + 2744);
if ( *((_BYTE *)this + 2744) )
{
if ( !*((_BYTE *)this + 2760) )
{
v33 = *((unsigned __int8 *)this + 2809);
v31 = 0.100000001;
if ( !*((_BYTE *)this + 2809) )
goto LABEL_43;
goto LABEL_154;
}
v32 = *((unsigned __int8 *)this + 2760);
}
LABEL_42:
v33 = *((unsigned __int8 *)this + 2809);
if ( !*((_BYTE *)this + 2809) )
{
LABEL_43:
v34 = *((unsigned __int8 *)this + 2810);
if ( !*((_BYTE *)this + 2810) )
goto LABEL_178;
*((_BYTE *)this + 2811) = 0;
v35 = 1.0;
LABEL_45:
if ( v11 < v34 )
{
v36 = v35;
goto LABEL_47;
}
LABEL_178:
if ( !v32 || *((_BYTE *)this + 2760) || v33 || v34 )
goto LABEL_74;
v44 = v7 < 0.0;
v45 = v7 <= 0.0;
if ( *((_BYTE *)this + 2811) )
goto LABEL_72;
goto LABEL_284;
}
LABEL_154:
*((_BYTE *)this + 2811) = 1;
if ( v20 )
{
v34 = *((unsigned __int8 *)this + 2810);
v35 = -1.0;
goto LABEL_45;
}
v36 = -1.0;
LABEL_47:
if ( *((_QWORD *)this + 207) )
{
v37 = fabsf(*((float *)this + 422) * 57.296);
if ( v37 > 80.0 )
goto LABEL_215;
if ( v37 > 40.0 )
{
if ( v37 <= 80.0 )
{
v38 = (v37 - 40.0) / 40.0;
v39 = v38 * 0.5 + 0.5;
goto LABEL_52;
}
LABEL_215:
v40 = v7 <= 0.0;
v38 = 1.0;
v41 = v17 * 1.0 * 0.400000006;
if ( *((_BYTE *)this + 2417) )
goto LABEL_53;
goto LABEL_216;
}
}
v39 = 0.5;
v38 = 0.0;
LABEL_52:
v40 = v7 <= 0.0;
v41 = v17 * v39 * 0.400000006;
if ( *((_BYTE *)this + 2417) )
{
LABEL_53:
v41 = v41 * 0.699999988;
if ( v40 || !v33 )
{
v95 = *((unsigned __int8 *)this + 2810);
if ( v7 >= 0.0 || !*((_BYTE *)this + 2810) )
goto LABEL_309;
}
v42 = v38 * 0.699999988 + 1.35000002 - 0.25;
goto LABEL_56;
}
LABEL_216:
if ( v40 || !v33 )
{
v95 = *((unsigned __int8 *)this + 2810);
if ( v7 >= 0.0 || !*((_BYTE *)this + 2810) )
{
LABEL_309:
if ( v11 && v33 )
{
v41 = v41 + v18;
}
else if ( v20 && v95 )
{
v41 = v41 + v18;
}
goto LABEL_62;
}
}
v42 = v38 * 0.699999988 + 1.35000002;
if ( *((_BYTE *)this + 2419) )
{
v42 = v42 - 0.280000001;
}
else if ( *((_BYTE *)this + 2422) )
{
v42 = v42 - 0.200000003;
}
LABEL_56:
if ( *((_BYTE *)this + 2760) )
v42 = v42 * 4.0;
if ( v33 > v11 || *((unsigned __int8 *)this + 2810) > v20 )
v42 = v42 * 0.800000012;
v43 = v18 * v42;
if ( fabs(v43) > fabs(v41) )
v41 = v43;
LABEL_62:
if ( *((_BYTE *)this + 2408) && !*((_BYTE *)this + 2776) && *((int *)this + 695) > 0 && !*((_BYTE *)this + 2416) )
v7 = v7 * 0.800000012;
v7 = v7 + v41 * v36;
*((double *)this + 339) = v7;
if ( !v32 )
goto LABEL_75;
if ( *((_BYTE *)this + 2760) )
goto LABEL_75;
if ( v33 )
goto LABEL_75;
v30 = 0;
if ( *((_BYTE *)this + 2810) )
goto LABEL_75;
v44 = v7 < 0.0;
v45 = v7 <= 0.0;
if ( *((_BYTE *)this + 2811) )
{
LABEL_72:
if ( !v45 )
*((_BYTE *)this + 2744) = 0;
goto LABEL_74;
}
LABEL_284:
if ( v44 )
*((_BYTE *)this + 2744) = 0;
LABEL_74:
if ( v30 )
{
LABEL_185:
if ( *((_BYTE *)this + 2760) || *((_BYTE *)this + 2808) )
v75 = 0.150000006;
else
v75 = 1.0;
v76 = v7 + v15 * (-v31 * v7) * v75;
*((double *)this + 339) = v76;
if ( fabs(v76) < 0.00999999978 || *((_BYTE *)this + 2832) && (v76 < 0.0 && v22 || v76 > 0.0 && v8 < 0.0) )
{
v77 = *((unsigned __int8 *)this + 2460);
*((_BYTE *)this + 2736) = 0;
*((_BYTE *)this + 2868) = 0;
*((_BYTE *)this + 2744) = 0;
*((_BYTE *)this + 2808) = 0;
*((_QWORD *)this + 339) = 0;
if ( v77 )
goto LABEL_82;
goto LABEL_195;
}
goto LABEL_77;
}
LABEL_75:
v46 = fabs(v7);
if ( v5 < v46 )
goto LABEL_185;
if ( *((_BYTE *)this + 2832) && (v46 < 0.00999999978 || v7 < 0.0 && v22 || v7 > 0.0 && v8 < 0.0) )
{
*((_BYTE *)this + 2736) = 0;
*((_BYTE *)this + 2868) = 0;
*((_BYTE *)this + 2744) = 0;
*((_BYTE *)this + 2808) = 0;
goto LABEL_81;
}
LABEL_77:
if ( !*((_BYTE *)this + 2736) )
goto LABEL_81;
v47 = *((float *)this + 685);
v48 = v15 * (v47 * -v31);
if ( *((_BYTE *)this + 2760) || *((_BYTE *)this + 2808) )
{
v49 = v47 + v48 * 0.150000006;
*((float *)this + 685) = v49;
if ( fabsf(v49) >= 1.0 )
goto LABEL_81;
}
else
{
v83 = v47 + v48 * 1.0;
*((float *)this + 685) = v83;
if ( fabsf(v83) >= 1.0 )
goto LABEL_81;
}
*((_BYTE *)this + 2736) = 0;
LABEL_81:
if ( *((_BYTE *)this + 2460) )
{
LABEL_82:
*((double *)this + 339) = v5;
goto LABEL_83;
}
LABEL_195:
v78 = *((unsigned __int8 *)this + 2426);
if ( v78 < v20 )
{
PlayerObject::doReversePlayer(this, 1u);
}
else
{
if ( !v11 || !*((_BYTE *)this + 2426) )
goto LABEL_83;
PlayerObject::doReversePlayer(this, 0);
}
if ( *((unsigned __int8 *)this + 2426) != v78 )
{
PlayerObject::exitPlatformerAnimateJump((cocos2d::CCNode **)this);
if ( !(unsigned __int8)PlayerObject::isInNormalMode(this) || *((_BYTE *)this + 1784) )
{
if ( *((_BYTE *)this + 2417) || *((_BYTE *)this + 2418) )
{
v89 = *(void (__fastcall **)(PlayerObject *, float))(*(_QWORD *)this + 360LL);
v90 = (*(float (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 368LL))(this);
v89(this, -v90);
}
}
else
{
(*(void (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 368LL))(this);
if ( *((_BYTE *)this + 2408) )
v79 = v79 - *((double *)this + 285) * 57.2957802;
v80 = fabsf(v79);
if ( v80 > 45.0 && v80 < 135.0 || v80 > 225.0 && v80 < 315.0 )
{
v81 = *(void (__fastcall **)(PlayerObject *, float))(*(_QWORD *)this + 360LL);
v82 = (*(float (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 368LL))(this);
v81(this, v82 + 180.0);
}
}
}
LABEL_83:
if ( (unsigned __int8)PlayerObject::isInNormalMode(this) )
{
if ( *((double *)this + 339) == 0.0
|| *((unsigned __int8 *)this + 1784) >= v12
|| fabs(*((double *)this + 299)) <= 1.0 )
{
if ( !*((_BYTE *)this + 2408)
&& !__PAIR64__(*((unsigned __int8 *)this + 2409), v12)
&& !*((_BYTE *)this + 2500)
&& !*((_BYTE *)this + 1784)
&& (int)(*(float (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 368LL))(this) % 90 )
{
v88 = PlayerObject::convertToClosestRotation(this, 0.0);
PlayerObject::updateRotation(this, a2, v88);
}
}
else
{
PlayerObject::runRotateAction(this);
PlayerObject::exitPlatformerAnimateJump((cocos2d::CCNode **)this);
}
}
if ( v16 || !*((_BYTE *)this + 2500) )
{
v74 = *((double *)this + 328);
*((float *)this + 724) = v74;
}
else if ( *((double *)this + 328) - *((float *)this + 724) > *((float *)this + 725) )
{
v84 = rand();
v85 = *((unsigned __int8 *)this + 2421);
v86 = *((double *)this + 328);
*((float *)this + 724) = v86;
*((float *)this + 725) = (float)((float)((float)v84 * 4.6566e-10) * 10.0) + 5.0;
if ( v85 )
{
v97 = *((_QWORD *)this + 267);
v109 = 0;
v110 = 0;
v111 = nullptr;
std::string::__init(&v109, "idle02", 6u);
CCAnimatedSprite::runAnimation(v97, (char *)&v109);
}
else
{
if ( !*((_BYTE *)this + 2422) )
goto LABEL_92;
v87 = *((_QWORD *)this + 268);
v109 = 0;
v110 = 0;
v111 = nullptr;
std::string::__init(&v109, "idle02", 6u);
CCAnimatedSprite::runAnimation(v87, (char *)&v109);
}
if ( (v109 & 1) != 0 )
operator delete(v111);
}
LABEL_92:
if ( !*((_BYTE *)this + 2419) || *((_BYTE *)this + 1785) || *((_BYTE *)this + 2460) )
goto LABEL_102;
if ( *((_BYTE *)this + 2427) )
v50 = -1.0;
else
v50 = 1.0;
v51 = (cocos2d *)*((unsigned __int8 *)this + 2760);
v52 = *((double *)this + 339);
if ( *((_BYTE *)this + 2760) )
{
v91 = *((float *)this + 614);
if ( v52 < 0.0 && v20 && v91 > 0.0 || v52 > 0.0 && v11 && v91 < 0.0 )
goto LABEL_270;
if ( v91 <= 0.0 )
{
if ( v91 >= 0.0 )
{
v92 = 0.1;
goto LABEL_271;
}
v93 = v91;
v94 = v91;
if ( v52 < v91 )
{
LABEL_270:
v92 = 0.2;
LABEL_271:
if ( v91 <= 0.0 )
{
LABEL_305:
if ( v91 >= 0.0 )
goto LABEL_276;
v94 = v91;
LABEL_302:
if ( v52 < v94 )
{
if ( v20 )
{
v92 = 0.3;
goto LABEL_277;
}
LABEL_287:
if ( !v11 )
{
v51 = (cocos2d *)*((unsigned __int8 *)this + 2809);
if ( *((_BYTE *)this + 2809) || v52 < v91 )
goto LABEL_277;
v51 = (cocos2d *)*((unsigned __int8 *)this + 2810);
if ( !*((_BYTE *)this + 2810) && v52 <= v91 )
{
if ( v91 <= 0.0 )
{
if ( v91 < 0.0 )
{
v99 = (float)(a2 * v92) * 0.5;
if ( (float)-v91 <= v99 )
v99 = -v91;
v91 = v91 + v99;
*((float *)this + 614) = v91;
}
}
else
{
v98 = (float)(a2 * v92) * 0.5;
if ( v98 >= v91 )
v98 = *((float *)this + 614);
v91 = v91 - v98;
*((float *)this + 614) = v91;
}
goto LABEL_278;
}
}
v91 = v91 + (float)(a2 * v92);
*((float *)this + 614) = v91;
goto LABEL_278;
}
LABEL_276:
if ( v20 )
{
LABEL_277:
v91 = v91 - (float)(a2 * v92);
*((float *)this + 614) = v91;
LABEL_278:
cocos2d::clampf(v51, v91, -5.0, 5.0);
*((float *)this + 614) = v53;
goto LABEL_99;
}
goto LABEL_287;
}
v93 = v91;
LABEL_273:
if ( v52 > v93 && v11 )
{
v92 = 0.3;
goto LABEL_276;
}
goto LABEL_305;
}
}
else
{
v93 = v91;
v94 = v91;
if ( v52 > v91 )
goto LABEL_323;
if ( v91 >= 0.0 )
{
LABEL_282:
v92 = 0.1;
goto LABEL_273;
}
if ( v52 < v93 )
{
LABEL_323:
v92 = 0.2;
goto LABEL_273;
}
}
if ( v91 <= 0.0 )
{
v92 = 0.1;
goto LABEL_302;
}
goto LABEL_282;
}
v53 = v52;
LABEL_99:
v54 = (float)((float)(v50 * (float)((float)(v53 * a2) * (float)(int)PlayerObject::flipMod(this))) * 2.8);
if ( *((_BYTE *)this + 2408) )
{
v55 = *((double *)this + 285);
v54 = v54 / cosf(v55);
}
v56 = *(void (__fastcall **)(PlayerObject *, float))(*(_QWORD *)this + 360LL);
v57 = (*(float (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 368LL))(this) + v54;
v56(this, v57);
LABEL_102:
if ( !*((_BYTE *)this + 2760) )
{
v58 = *((double *)this + 339);
*((float *)this + 614) = v58;
}
return _stack_chk_guard;
}