//
// PlayerObject::spiderTestJumpY from 0x10040fc20 to 0x100410ab2 (3730 bytes)
//
// 0 xrefs:
//
// 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::spiderTestJumpY(PlayerObject *a1, bool a2)
{
GJBaseGameLayer *m_gameLayer; // r14
unsigned __int64 *v4; // rax
double v5; // xmm0_8
float *v6; // rax
float v7; // xmm0_4
__m128 *v8; // r12
cocos2d::CCArray *v10; // r15
cocos2d::CCArray *v11; // r13
int (__cdecl *v12)(const void *, const void *); // rcx
int (__cdecl *v13)(const void *, const void *); // rcx
double *v14; // rsi
double v15; // xmm0_8
unsigned int v16; // r12d
__int64 v17; // r13
bool m_isUpsideDown; // r14
unsigned int *v19; // rdi
double v20; // xmm0_8
float v21; // xmm1_4
double v22; // xmm0_8
bool m_isGoingLeft; // al
__int64 v24; // rax
double v25; // xmm0_8
__int64 v26; // rax
double v27; // xmm0_8
unsigned int v28; // r13d
__int64 v29; // rax
unsigned __int64 *v30; // rax
int v31; // eax
__int64 v32; // rax
char v33; // al
float v34; // xmm0_4
__int64 v35; // rax
__int32 v36; // xmm0_4
_BOOL8 v37; // rcx
bool v38; // r12
double *v39; // rax
__m128d v40; // xmm0
double v41; // xmm1_8
__m128d v42; // xmm3
float v43; // xmm0_4
float v44; // xmm1_4
CCCircleWave *v45; // r14
__int64 v46; // rax
__int16 v47; // cx
PlayLayer *m_playLayer; // rax
CCCircleWaveDelegate *v49; // rcx
GameManager *v50; // rax
CCCircleWave *v51; // r15
__int64 v52; // rax
__int16 v53; // cx
PlayLayer *v54; // rax
CCCircleWaveDelegate *v55; // rcx
GameManager *v56; // rax
CCCircleWave *v57; // r15
__int64 v58; // rax
__int16 v59; // cx
PlayLayer *v60; // rax
CCCircleWaveDelegate *v61; // rcx
GameManager *v62; // rax
cocos2d::CCScaleTo *v63; // rax
cocos2d::CCEaseElasticOut *v64; // r14
cocos2d::CCSprite *v65; // r14
__int64 v66; // xmm0_8
GameManager *v67; // rax
__m128 v68; // xmm0
__m128 v69; // xmm0
float *v70; // rax
cocos2d::ccColor3B *v71; // rsi
cocos2d::CCArray *v72; // r15
cocos2d::CCSpriteFrameCache *v73; // r13
cocos2d::CCString *v74; // rax
const char *CString; // rax
cocos2d::CCSpriteFrame *v76; // rax
cocos2d::CCSpriteFrameCache *v77; // r13
cocos2d::CCString *v78; // rax
const char *v79; // rax
cocos2d::CCSpriteFrame *v80; // rax
cocos2d::CCSpriteFrameCache *v81; // r13
cocos2d::CCString *v82; // rax
const char *v83; // rax
cocos2d::CCSpriteFrame *v84; // rax
cocos2d::CCSpriteFrameCache *v85; // r13
cocos2d::CCString *v86; // rax
const char *v87; // rax
cocos2d::CCSpriteFrame *v88; // rax
cocos2d::CCSpriteFrameCache *v89; // r13
cocos2d::CCString *v90; // rax
const char *v91; // rax
cocos2d::CCSpriteFrame *v92; // rax
cocos2d::CCSpriteFrameCache *v93; // r13
cocos2d::CCString *v94; // rax
const char *v95; // rax
cocos2d::CCSpriteFrame *v96; // rax
cocos2d::CCSpriteFrameCache *v97; // r13
cocos2d::CCString *v98; // rax
const char *v99; // rax
cocos2d::CCSpriteFrame *v100; // rax
cocos2d::CCSpriteFrameCache *v101; // r13
cocos2d::CCString *v102; // rax
const char *v103; // rax
cocos2d::CCSpriteFrame *v104; // rax
cocos2d::CCAnimation *v105; // rax
cocos2d::CCAnimate *v106; // r15
cocos2d::CCCallFunc *v107; // rax
cocos2d::CCSequence *v108; // rax
GJBaseGameLayer *v109; // rdi
char v110; // [rsp-C8h] [rbp-C8h]
char v111; // [rsp-C8h] [rbp-C8h]
char v112; // [rsp-C8h] [rbp-C8h]
char v113; // [rsp-C8h] [rbp-C8h]
char v114; // [rsp-C8h] [rbp-C8h]
char v115; // [rsp-C8h] [rbp-C8h]
char v116; // [rsp-C8h] [rbp-C8h]
char v117; // [rsp-C8h] [rbp-C8h]
__m128 v118; // [rsp-C0h] [rbp-C0h] BYREF
__m128 v119; // [rsp-B0h] [rbp-B0h] BYREF
float v120; // [rsp-A0h] [rbp-A0h]
float v121; // [rsp-9Ch] [rbp-9Ch]
__m128 v122; // [rsp-98h] [rbp-98h] BYREF
__int64 v123; // [rsp-88h] [rbp-88h] BYREF
cocos2d::CCArray *v124; // [rsp-80h] [rbp-80h]
__m128 v125; // [rsp-78h] [rbp-78h] BYREF
__m128 v126; // [rsp-68h] [rbp-68h] BYREF
__m128 v127; // [rsp-58h] [rbp-58h]
__m128 v128; // [rsp-44h] [rbp-44h] BYREF
int v129; // [rsp-34h] [rbp-34h]
__int64 v130; // [rsp-8h] [rbp-8h] BYREF
cocos2d::CCRect v131; // 0:xmm0_8.8,8:xmm1_8.8
if ( a1->m_isDead || a1->m_isLocked || a1->m_maybeReducedEffects )
return;
v127.i32[0] = a2;
m_gameLayer = a1->m_gameLayer;
v4 = (unsigned __int64 *)((__int64 (__fastcall *)(PlayerObject *))a1->getObjectRect)(a1);
sub_10028D180(&v122, v4);
v5 = sub_10028D180(&v125, (unsigned __int64 *)&v122);
v120 = *(float *)((__int64 (__fastcall *)(PlayerObject *, double))a1->getPosition)(a1, v5);
v6 = (float *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1);
if ( a1->m_isUpsideDown )
v7 = (float)(v125.f32[2] + -2.0) + v125.f32[0];
else
v7 = v125.f32[0] + -2998.0;
v121 = *v6;
v125.f32[0] = v7;
v125.i32[2] = 1161527296;
v8 = &v119;
sub_10028D180(&v119, (unsigned __int64 *)&v125);
v119.i32[3] = v122.i32[3];
v119.i32[1] = v122.i32[1];
sub_10028D180(&v118, (unsigned __int64 *)&v119);
v118.f32[3] = v118.f32[3] + 4.0;
v119.f32[3] = a1->m_vehicleSize * 8.0;
v119.f32[1] = (float)((float)(v125.f32[3] - v119.f32[3]) * 0.5) + v119.f32[1];
v131.size.height = 0.0;
v131.size.width = (float)(v122.f32[3] * 0.5) + 1.0;
v125.f32[3] = v131.size.width;
v125.f32[1] = (float)(v122.f32[3] * 0.5) + v125.f32[1];
*(double *)&v131.origin = sub_10028D180(&v128, (unsigned __int64 *)&v125);
v10 = GJBaseGameLayer::staticObjectsInRect(m_gameLayer, v131, (unsigned __int8)&v130 - 60);
*(double *)&v131.origin = sub_10028D180(&v128, (unsigned __int64 *)&v119);
v11 = GJBaseGameLayer::damagingObjectsInRect(m_gameLayer, v131, (unsigned __int8)&v130 - 60);
if ( !(unsigned int)sub_100720070(v10) )
{
v31 = sub_100720070(v11);
LOBYTE(v8) = 1;
if ( !(v127.i8[0] | (v31 != 0)) )
goto LABEL_10;
goto LABEL_9;
}
LOBYTE(v8) = 1;
if ( v127.i8[0] )
{
LABEL_9:
*(double *)&v131.origin = sub_10028D180(&v128, (unsigned __int64 *)&v118);
v10 = GJBaseGameLayer::staticObjectsInRect(m_gameLayer, v131, (unsigned __int8)&v130 - 60);
LODWORD(v8) = 0;
}
LABEL_10:
if ( (unsigned int)sub_100720070(v10) )
{
v12 = (int (__cdecl *)(const void *, const void *))sub_1003FA2E0;
if ( a1->m_isUpsideDown )
v12 = (int (__cdecl *)(const void *, const void *))sub_1003FA280;
qsort(v10->data->arr, v10->data->num, 8u, v12);
}
if ( (unsigned int)sub_100720070(v11) )
{
v13 = (int (__cdecl *)(const void *, const void *))sub_1003FA2E0;
if ( a1->m_isUpsideDown )
v13 = (int (__cdecl *)(const void *, const void *))sub_1003FA280;
qsort(v11->data->arr, v11->data->num, 8u, v13);
}
if ( !(unsigned int)sub_100720070(v10) )
{
if ( (unsigned int)sub_100720070(v11) )
{
v32 = sub_1007200C0(v11, 0);
(*(void (__fastcall **)(__m128 *, __int64))(*(_QWORD *)v32 + 1344LL))(&v128, v32);
v21 = v128.f32[0];
v33 = 1;
if ( v128.f32[0] == 0.0 )
goto LABEL_47;
}
else
{
v33 = 0;
v34 = v122.f32[2] * 0.5;
if ( !a1->m_isUpsideDown )
goto LABEL_52;
LABEL_48:
v21 = (float)(v120 + 3000.0) - v34;
}
LABEL_49:
v127.f32[0] = v21;
if ( !v33 )
goto LABEL_53;
goto LABEL_60;
}
v14 = (double *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1);
v15 = sub_10028CC60(&v123, v14);
if ( !(unsigned int)sub_100720070(v10) )
{
v21 = 0.0;
goto LABEL_46;
}
v124 = v11;
v129 = (int)v8;
v16 = 0;
do
{
v17 = sub_1007200C0(v10, v16);
m_isUpsideDown = a1->m_isUpsideDown;
v19 = (unsigned int *)(*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v17 + 1312LL))(v17, v15);
if ( m_isUpsideDown )
{
v20 = sub_10028D270(v19);
v21 = (float)(v122.f32[2] * -0.5) + *(float *)&v20;
*(_QWORD *)&v15 = (unsigned int)v123;
if ( !a1->m_isUpsideDown )
goto LABEL_24;
}
else
{
v22 = sub_10028D230((float *)v19);
v21 = (float)(v122.f32[3] * 0.5) + *(float *)&v22;
*(_QWORD *)&v15 = (unsigned int)v123;
if ( !a1->m_isUpsideDown )
{
LABEL_24:
*(float *)&v15 = *(float *)&v15 + 10.0;
if ( *(float *)&v15 < v21 )
goto LABEL_21;
goto LABEL_28;
}
}
*(float *)&v15 = *(float *)&v15 + -10.0;
if ( v21 < *(float *)&v15 )
goto LABEL_21;
LABEL_28:
m_isGoingLeft = a1->m_isGoingLeft;
v127.f32[0] = v21;
if ( m_isGoingLeft )
goto LABEL_31;
v24 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 1312LL))(v17);
v25 = sub_10028D2C0(v24);
if ( *(float *)&v25 <= *((float *)&v123 + 1) )
{
m_isGoingLeft = a1->m_isGoingLeft;
v21 = v127.f32[0];
LABEL_31:
if ( !m_isGoingLeft )
goto LABEL_90;
v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 1312LL))(v17);
v27 = sub_10028D280(v26);
if ( *((float *)&v123 + 1) <= *(float *)&v27 )
{
LABEL_44:
LOBYTE(v8) = v129;
v11 = v124;
v21 = v127.f32[0];
goto LABEL_46;
}
}
sub_10028D180(&v128, (unsigned __int64 *)&v122);
v128.f32[0] = (float)(v122.f32[2] * -0.5) + v127.f32[0];
if ( !(unsigned int)sub_100720070(v10) )
goto LABEL_44;
v28 = 0;
while ( 1 )
{
v29 = sub_1007200C0(v10, v28);
if ( v16 != v28 )
{
v30 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 1312LL))(v29);
sub_10028D180(&v126, v30);
*(_QWORD *)&v15 = v126.u32[0];
v126.f32[2] = v126.f32[2] + -4.0;
*(float *)&v15 = v126.f32[0] + 2.0;
v126.f32[0] = v126.f32[0] + 2.0;
if ( sub_10028D320(v126.f32, v128.f32) )
break;
}
if ( ++v28 >= (unsigned int)sub_100720070(v10) )
goto LABEL_44;
}
LABEL_21:
++v16;
}
while ( v16 < (unsigned int)sub_100720070(v10) );
v21 = 0.0;
LABEL_90:
LOBYTE(v8) = v129;
v11 = v124;
LABEL_46:
v33 = 0;
if ( v21 != 0.0 )
goto LABEL_49;
LABEL_47:
v34 = v122.f32[2] * 0.5;
if ( a1->m_isUpsideDown )
goto LABEL_48;
LABEL_52:
v127.f32[0] = (float)(v121 + -3000.0) + v34;
if ( !v33 )
{
LABEL_53:
if ( (unsigned int)sub_100720070(v11) )
{
v35 = sub_1007200C0(v11, 0);
(*(void (__fastcall **)(__m128 *, __int64))(*(_QWORD *)v35 + 1344LL))(&v128, v35);
v36 = v128.i32[0];
v37 = v128.f32[0] > v127.f32[0];
if ( a1->m_isUpsideDown )
LOBYTE(v37) = v127.f32[0] > v128.f32[0];
v38 = v37 & (unsigned __int8)v8;
if ( !v37 )
v36 = v127.i32[0];
v127.i32[0] = v36;
if ( v38 )
{
PlayerObject::spiderTestJump(a1, 1);
return;
}
}
}
LABEL_60:
v39 = (double *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1);
sub_10028CC60(&v128, v39);
sub_10028CBE0(v126.f32, v127.f32[0], v128.f32[1]);
((void (__fastcall *)(PlayerObject *, __m128 *))a1->setPosition)(a1, &v126);
PlayerObject::flipGravity(a1, !a1->m_isUpsideDown, 1);
if ( a1->m_isUpsideDown )
v40 = (__m128d)0x3FF0000000000000uLL;
else
v40 = (__m128d)0xBFF0000000000000LL;
v41 = _mm_cvtepi32_pd(_mm_cvttpd_epi32(v40)).f64[0];
if ( v40.f64[0] != v41 )
{
v40.f64[0] = (v40.f64[0] - v41) * 1000.0;
v42 = _mm_or_pd(_mm_and_pd((__m128d)xmmword_100816590, v40), (__m128d)xmmword_100816960);
v42.f64[0] = v42.f64[0] + v40.f64[0];
v40.f64[0] = _mm_round_sd((__m128d)0LL, v42, 11).f64[0] / 1000.0 + v41;
}
a1->m_yVelocity = v40.f64[0];
a1->m_isOnGround3 = 0;
a1->m_jumpBuffered = 0;
cocos2d::CCDictionary::removeAllObjects(a1->m_collisionLogTop);
cocos2d::CCDictionary::removeAllObjects(a1->m_collisionLogBottom);
cocos2d::CCDictionary::removeAllObjects(a1->m_collisionLogLeft);
cocos2d::CCDictionary::removeAllObjects(a1->m_collisionLogRight);
*(_OWORD *)&a1->m_lastCollisionBottom = -1;
*(_QWORD *)&a1->m_unk50C = -1;
v43 = v126.f32[0];
LODWORD(a1->m_position.x) = v126.i32[0];
a1->m_lastSpiderFlipTime = a1->m_totalTime;
if ( a1->m_playEffects && !a1->m_isHidden )
{
if ( a1->m_isGoingLeft )
v44 = -7.5;
else
v44 = 7.5;
v128.f32[0] = v128.f32[0] + v44;
v126.f32[0] = v43 + v44;
if ( !GameManager::sharedState()->m_performanceMode )
{
v126.f32[0] = v126.f32[0] + 6.0;
v45 = CCCircleWave::create((float)(a1->m_vehicleSize * 10.0) * 1.3, 1.0, 0.15000001, 0, 0);
v46 = 3 * !a1->m_swapColors;
v47 = *(_WORD *)(&a1->m_playerColor1.r + v46);
v45->m_color.b = *(&a1->m_playerColor1.b + v46);
*(_WORD *)&v45->m_color.r = v47;
((void (__fastcall *)(CCCircleWave *, __m128 *))v45->setPosition)(v45, &v128);
((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_parentLayer->addChild_0)(
a1->m_parentLayer,
v45,
0);
m_playLayer = GameManager::sharedState()->m_playLayer;
v49 = &m_playLayer->CCCircleWaveDelegate;
if ( !m_playLayer )
v49 = nullptr;
v45->m_delegate = v49;
v50 = GameManager::sharedState();
PlayLayer::addCircle(v50->m_playLayer, v45);
v45->m_opacityMod = 0.42000002;
v51 = CCCircleWave::create((float)(a1->m_vehicleSize * 20.0) * 1.3, 2.0, 0.25, 0, 0);
v52 = 3 * !a1->m_swapColors;
v53 = *(_WORD *)(&a1->m_playerColor1.r + v52);
v51->m_color.b = *(&a1->m_playerColor1.b + v52);
*(_WORD *)&v51->m_color.r = v53;
((void (__fastcall *)(CCCircleWave *, __m128 *))v51->setPosition)(v51, &v126);
((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_parentLayer->addChild_0)(
a1->m_parentLayer,
v51,
0);
v54 = GameManager::sharedState()->m_playLayer;
v55 = &v54->CCCircleWaveDelegate;
if ( !v54 )
v55 = nullptr;
v51->m_delegate = v55;
v56 = GameManager::sharedState();
PlayLayer::addCircle(v56->m_playLayer, v51);
v51->m_opacityMod = 0.84000003;
v57 = CCCircleWave::create(10.0 * a1->m_vehicleSize, (float)(a1->m_vehicleSize * 30.0) * 1.5, 0.25, 0, 0);
v58 = 3 * !a1->m_swapColors;
v59 = *(_WORD *)(&a1->m_playerColor1.r + v58);
v57->m_color.b = *(&a1->m_playerColor1.b + v58);
*(_WORD *)&v57->m_color.r = v59;
((void (__fastcall *)(CCCircleWave *, __m128 *))v57->setPosition)(v57, &v126);
((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_parentLayer->addChild_0)(
a1->m_parentLayer,
v57,
0);
v60 = GameManager::sharedState()->m_playLayer;
v61 = &v60->CCCircleWaveDelegate;
if ( !v60 )
v61 = nullptr;
v57->m_delegate = v61;
v62 = GameManager::sharedState();
PlayLayer::addCircle(v62->m_playLayer, v57);
v57->m_circleMode = Outline;
}
a1->m_flashMainColor.b = -1;
*(_WORD *)&a1->m_flashMainColor.r = -1;
a1->m_flashSecondColor.b = -1;
*(_WORD *)&a1->m_flashSecondColor.r = -1;
((void (__fastcall *)(PlayerObject *, cocos2d::ccColor3B *))a1->setColor)(a1, &a1->m_flashMainColor);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_iconSpriteSecondary->setColor)(
a1->m_iconSpriteSecondary,
&a1->m_flashSecondColor);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_vehicleSpriteSecondary->setColor)(
a1->m_vehicleSpriteSecondary,
&a1->m_flashSecondColor);
GJRobotSprite::updateColor02(
a1->m_robotSprite,
(cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_flashSecondColor.r | (a1->m_flashSecondColor.b << 16)));
GJRobotSprite::updateColor02(
a1->m_spiderSprite,
(cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_flashSecondColor.r | (a1->m_flashSecondColor.b << 16)));
a1->m_flashTime = a1->m_totalTime;
*(_QWORD *)&a1->m_flashDuration = 0x3D4CCCCD3E99999ALL;
cocos2d::CCNode::stopActionByTag(a1->m_spiderSprite, 10);
((void (__fastcall *)(GJSpiderSprite *, float))a1->m_spiderSprite->setScale)(a1->m_spiderSprite, 0.40000001);
v63 = cocos2d::CCScaleTo::create_1(0.44999999, 1.0);
v64 = cocos2d::CCEaseElasticOut::create(v63, 0.34999999);
((void (__fastcall *)(cocos2d::CCEaseElasticOut *, __int64))v64->setTag)(v64, 10);
cocos2d::CCNode::runAction(a1->m_spiderSprite, v64);
if ( a1->m_playEffects )
{
v65 = cocos2d::CCSprite::createWithSpriteFrameName("spiderDash_002.png");
v66 = 0;
if ( !a1->m_isUpsideDown )
v66 = 1127481344;
((void (__fastcall *)(cocos2d::CCSprite *, double))v65->setRotation)(v65, *(double *)&v66);
v67 = GameManager::sharedState();
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v67->m_playLayer->m_objectLayer->addChild_0)(
v67->m_playLayer->m_objectLayer,
v65,
40);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v65->setBlendFunc)(v65, 0x100000302LL);
v68 = (__m128)v128.u32[0];
v68.f32[0] = v128.f32[0] - v126.f32[0];
v69 = _mm_and_ps(v68, (__m128)xmmword_100815500);
v69.f32[0] = v69.f32[0] + 30.0;
v127 = v69;
v70 = (float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v65->getContentSize)(v65);
((void (__fastcall *)(cocos2d::CCSprite *, float))v65->setScaleX)(v65, v127.f32[0] / *v70);
sub_10028CBE0((float *)&v123, (float)((float)(v126.f32[0] - v128.f32[0]) * 0.5) + v128.f32[0], v128.f32[1]);
((void (__fastcall *)(cocos2d::CCSprite *, __int64 *))v65->setPosition)(v65, &v123);
v71 = &a1->m_playerColor1 + !a1->m_swapColors;
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))v65->setColor)(v65, v71);
v72 = (cocos2d::CCArray *)sub_10071F9E0(v65, v71);
v73 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v74 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v110);
CString = cocos2d::CCString::getCString(v74);
v76 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v73, CString);
sub_10071FCD0(v72, v76);
v77 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v78 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v111);
v79 = cocos2d::CCString::getCString(v78);
v80 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v77, v79);
sub_10071FCD0(v72, v80);
v81 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v82 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v112);
v83 = cocos2d::CCString::getCString(v82);
v84 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v81, v83);
sub_10071FCD0(v72, v84);
v85 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v86 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v113);
v87 = cocos2d::CCString::getCString(v86);
v88 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v85, v87);
sub_10071FCD0(v72, v88);
v89 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v90 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v114);
v91 = cocos2d::CCString::getCString(v90);
v92 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v89, v91);
sub_10071FCD0(v72, v92);
v93 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v94 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v115);
v95 = cocos2d::CCString::getCString(v94);
v96 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v93, v95);
sub_10071FCD0(v72, v96);
v97 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v98 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v116);
v99 = cocos2d::CCString::getCString(v98);
v100 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v97, v99);
sub_10071FCD0(v72, v100);
v101 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v102 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v117);
v103 = cocos2d::CCString::getCString(v102);
v104 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v101, v103);
sub_10071FCD0(v72, v104);
v105 = cocos2d::CCAnimation::createWithSpriteFrames(v72, 0.039999999);
v106 = cocos2d::CCAnimate::create(v105);
v107 = cocos2d::CCCallFunc::create(v65, (cocos2d::SEL_CallFunc)0x209uLL);
v108 = sub_1003B5760(v106, v107, 0);
cocos2d::CCNode::runAction(v65, v108);
}
}
if ( !a1->m_isHidden && (!a1->m_isSpider || !a1->m_isPlatformer) )
cocos2d::CCParticleSystem::resetSystem(a1->m_playerGroundParticles);
v109 = a1->m_gameLayer;
if ( v109 )
GJBaseGameLayer::checkCameraLimitAfterTeleport(v109, a1, 60.0);
}