//
// PlayerObject::spiderTestJumpInternal from 0x762a10 to 0x76369c (3212 bytes)
//
// 3 xrefs:
// > PlayerObject::spiderTestJumpInternal @ 0x763328
// > PlayerObject::spiderTestJump @ 0x7636b8
// > ??> @ 0x8daa8
//
// 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:53:05 +0000
//
__int64 __fastcall PlayerObject::spiderTestJumpInternal(PlayerObject *this, unsigned __int8 a2)
{
float v4; // s8
const cocos2d::CCRect *v5; // x0
int v6; // w25
const cocos2d::CCRect *v7; // x0
float v8; // s14
float v9; // s15
float v10; // s0
int v11; // w0
int v12; // w0
float v13; // s0
__int64 v14; // x24
cocos2d::CCArray *v15; // x21
__int64 v16; // x24
int (*v17)(const void *, const void *); // x23
__int64 v18; // x21
unsigned int v19; // w23
float v20; // s12
const cocos2d::CCPoint *v21; // x0
__int64 v22; // x0
GameObject *v23; // x19
cocos2d::CCRect *v24; // x0
float v25; // s0
float v26; // s8
float v27; // s8
int v28; // w27
float v29; // s0
int v30; // w0
cocos2d::CCRect *v31; // x0
float v32; // s0
float v33; // s1
float v34; // s9
int v35; // w1
float v36; // s0
const cocos2d::CCPoint *v37; // x0
__int64 v38; // x2
int v39; // w0
GJBaseGameLayer *v40; // x0
const cocos2d::CCRect *v41; // x0
float v42; // s0
float v43; // s0
float v44; // s1
unsigned int v45; // w19
__int64 v46; // x0
const cocos2d::CCRect *v47; // x0
cocos2d::CCRect *v48; // x0
float v49; // s0
double v50; // d0
float v51; // s0
float v52; // s8
float v53; // s0
float v54; // s0
const cocos2d::CCRect *v55; // x0
float v56; // s0
__int64 v57; // x0
float v58; // s0
int v59; // w0
__int64 v60; // x0
float v61; // s1
int v62; // w0
int v63; // w0
float v64; // s0
int v65; // w0
cocos2d::CCRect *v66; // x0
float v67; // s0
float v68; // s1
float v69; // s0
float v70; // s0
double v71; // [xsp+A0h] [xbp+A0h]
int v72; // [xsp+C4h] [xbp+C4h]
cocos2d::CCArray *v73; // [xsp+C8h] [xbp+C8h]
int v74; // [xsp+D8h] [xbp+D8h]
int v75; // [xsp+DCh] [xbp+DCh]
float v76; // [xsp+E8h] [xbp+E8h] BYREF
float v77; // [xsp+ECh] [xbp+ECh]
float v78; // [xsp+F0h] [xbp+F0h] BYREF
float v79; // [xsp+F4h] [xbp+F4h]
float v80; // [xsp+F8h] [xbp+F8h] BYREF
float v81; // [xsp+FCh] [xbp+FCh]
float v82; // [xsp+100h] [xbp+100h]
float v83; // [xsp+104h] [xbp+104h]
float v84; // [xsp+108h] [xbp+108h] BYREF
float v85; // [xsp+10Ch] [xbp+10Ch]
float v86; // [xsp+110h] [xbp+110h]
float v87; // [xsp+114h] [xbp+114h]
float v88; // [xsp+118h] [xbp+118h] BYREF
float v89; // [xsp+11Ch] [xbp+11Ch]
float v90; // [xsp+120h] [xbp+120h]
float v91; // [xsp+124h] [xbp+124h]
_BYTE v92[8]; // [xsp+128h] [xbp+128h] BYREF
float v93; // [xsp+130h] [xbp+130h]
float v94; // [xsp+134h] [xbp+134h]
float v95[4]; // [xsp+138h] [xbp+138h] BYREF
__int64 v96; // [xsp+148h] [xbp+148h] BYREF
float v97; // [xsp+150h] [xbp+150h]
float v98; // [xsp+154h] [xbp+154h]
v75 = a2;
if ( *((_BYTE *)this + 2424) || *((_BYTE *)this + 2530) || *((_BYTE *)this + 1969) )
return _stack_chk_guard;
v74 = *((unsigned __int8 *)this + 2427);
if ( *((_BYTE *)this + 2427) )
{
v4 = *((float *)this + 618) * 8.0;
v7 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v80, v7);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v84, (const cocos2d::CCRect *)&v80);
if ( !*((_BYTE *)this + 2427) )
{
v6 = 0;
goto LABEL_11;
}
v6 = 0;
v72 = 1;
LABEL_66:
v9 = *(float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) + 3000.0;
v8 = 0.0;
if ( (float)(*(float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) - 3000.0) > 0.0 )
v8 = *(float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) - 3000.0;
goto LABEL_14;
}
v4 = *((float *)this + 618) * 8.0;
if ( !*(_BYTE *)(*((_QWORD *)this + 377) + 785LL) && !(unsigned __int8)PlayerObject::isInBasicMode(this) )
{
v41 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v80, v41);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v84, (const cocos2d::CCRect *)&v80);
if ( !*((_BYTE *)this + 2427) )
{
GJBaseGameLayer::getMinPortalY(*((GJBaseGameLayer **)this + 377));
v8 = v42;
GJBaseGameLayer::getMaxPortalY(*((GJBaseGameLayer **)this + 377));
v72 = 0;
v9 = v43;
if ( !*((_BYTE *)this + 2423) )
{
LABEL_64:
v6 = 1;
v44 = v9 - (float)((float)(v87 - 2.0) + v85);
v85 = (float)(v87 - 2.0) + v85;
v87 = v44;
goto LABEL_17;
}
goto LABEL_146;
}
v72 = 0;
v6 = 1;
goto LABEL_66;
}
v5 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v80, v5);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v84, (const cocos2d::CCRect *)&v80);
if ( *((_BYTE *)this + 2427) )
{
v72 = 1;
v6 = 1;
goto LABEL_66;
}
v6 = 1;
LABEL_11:
v8 = 90.0;
if ( (float)(*(float *)((*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) + 4) - 3000.0) > 90.0 )
v8 = *(float *)((*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) + 4) - 3000.0;
v72 = 1;
v9 = *(float *)((*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) + 4) + 3000.0;
LABEL_14:
if ( !*((_BYTE *)this + 2423) )
{
if ( !v6 )
{
v61 = v9 - (float)((float)(v86 - 2.0) + v84);
v84 = (float)(v86 - 2.0) + v84;
v86 = v61;
goto LABEL_17;
}
goto LABEL_64;
}
if ( v6 )
{
LABEL_146:
v6 = 1;
v69 = v85 - v8;
v85 = v8;
v87 = v69 + 2.0;
goto LABEL_17;
}
v10 = v84 - v8;
v84 = v8;
v86 = v10 + 2.0;
LABEL_17:
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v88, (const cocos2d::CCRect *)&v84);
if ( v74 )
{
v91 = v83;
v89 = v81;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v92, (const cocos2d::CCRect *)&v88);
v62 = *((unsigned __int8 *)this + 2832);
v91 = v4;
v94 = v94 + 4.0;
v89 = v89 + (float)((float)(v87 - v4) * 0.5);
if ( v62 )
{
v87 = v87 - 2.0;
v85 = v85 + 1.0;
}
else
{
v63 = *((unsigned __int8 *)this + 2426);
v87 = (float)(v83 * 0.5) + 1.0;
if ( v63 )
v64 = (float)(v81 - (float)(v83 * 0.5)) - 1.0;
else
v64 = v81 + (float)(v83 * 0.5);
v85 = v64;
}
}
else
{
v90 = v82;
v88 = v80;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v92, (const cocos2d::CCRect *)&v88);
v11 = *((unsigned __int8 *)this + 2832);
v90 = v4;
v93 = v93 + 4.0;
v88 = v88 + (float)((float)(v86 - v4) * 0.5);
if ( v11 )
{
v86 = v86 - 2.0;
v84 = v84 + 1.0;
}
else
{
v12 = *((unsigned __int8 *)this + 2426);
v86 = (float)(v82 * 0.5) + 1.0;
if ( v12 )
v13 = (float)(v80 - (float)(v82 * 0.5)) - 1.0;
else
v13 = v80 + (float)(v82 * 0.5);
v84 = v13;
}
}
v14 = *((_QWORD *)this + 377);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v96, (const cocos2d::CCRect *)&v84);
v15 = (cocos2d::CCArray *)GJBaseGameLayer::staticObjectsInRect(v14, &v96, 1);
v16 = *((_QWORD *)this + 377);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v96, (const cocos2d::CCRect *)&v88);
v73 = (cocos2d::CCArray *)GJBaseGameLayer::damagingObjectsInRect(v16, &v96, 1);
if ( *((_BYTE *)this + 2427) )
{
if ( *((_BYTE *)this + 2423) )
v17 = (int (*)(const void *, const void *))boxCompMaxX;
else
v17 = (int (*)(const void *, const void *))boxCompMinX;
}
else if ( *((_BYTE *)this + 2423) )
{
v17 = (int (*)(const void *, const void *))boxCompMax;
}
else
{
v17 = (int (*)(const void *, const void *))boxCompMin;
}
if ( !(unsigned int)cocos2d::CCArray::count(v15) && (unsigned int)cocos2d::CCArray::count(v73) || v75 )
{
v18 = *((_QWORD *)this + 377);
v75 = 1;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v96, (const cocos2d::CCRect *)v92);
v15 = (cocos2d::CCArray *)GJBaseGameLayer::staticObjectsInRect(v18, &v96, 1);
}
if ( (unsigned int)cocos2d::CCArray::count(v15) )
qsort(*(void **)(*((_QWORD *)v15 + 7) + 16LL), **((unsigned int **)v15 + 7), 8u, v17);
if ( (unsigned int)cocos2d::CCArray::count(v73) )
qsort(*(void **)(*((_QWORD *)v73 + 7) + 16LL), **((unsigned int **)v73 + 7), 8u, v17);
if ( !(unsigned int)cocos2d::CCArray::count(v15) )
{
v59 = cocos2d::CCArray::count(v73);
v35 = 0;
if ( v59 )
{
v60 = cocos2d::CCArray::objectAtIndex(v73, 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v60 + 1360LL))(v60);
if ( v6 )
v27 = *((float *)&v96 + 1);
else
v27 = *(float *)&v96;
v35 = 1;
goto LABEL_50;
}
LABEL_51:
if ( *((_BYTE *)this + 2423) )
{
if ( v6 )
v70 = v83;
else
v70 = v82;
v34 = v8 + (float)(v70 * 0.5);
}
else
{
if ( v6 )
v36 = v83;
else
v36 = v82;
v34 = v9 - (float)(v36 * 0.5);
}
LABEL_55:
if ( !v35 )
goto LABEL_107;
goto LABEL_56;
}
v19 = 0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v95, (const cocos2d::CCRect *)&v80);
v20 = 0.0;
v21 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v76, v21);
while ( 1 )
{
while ( 1 )
{
if ( v19 >= (unsigned int)cocos2d::CCArray::count(v15) )
{
v34 = v20;
v30 = *((unsigned __int8 *)this + 2832);
v27 = 0.0;
goto LABEL_49;
}
v22 = cocos2d::CCArray::objectAtIndex(v15, v19);
v23 = (GameObject *)v22;
if ( *((_BYTE *)this + 2423) )
{
v48 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 1328LL))(v22);
if ( v6 )
{
cocos2d::CCRect::getMaxY(v48);
v27 = v56 + (float)(v83 * 0.5);
}
else
{
cocos2d::CCRect::getMaxX(v48);
v27 = v49 + (float)(v82 * 0.5);
}
v28 = 0;
if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)v23 + 1800LL))(v23) != 25 )
goto LABEL_39;
}
else
{
v24 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 1328LL))(v22);
if ( v6 )
{
cocos2d::CCRect::getMinY(v24);
v26 = v83;
}
else
{
cocos2d::CCRect::getMinX(v24);
v26 = v82;
}
v27 = v25 - (float)(v26 * 0.5);
v28 = 0;
if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)v23 + 1800LL))(v23) != 25 )
goto LABEL_39;
}
(*(void (__fastcall **)(GameObject *))(*(_QWORD *)v23 + 1360LL))(v23);
if ( *((_BYTE *)this + 2427) )
PlayerObject::rotateGameplayObject(this, v23);
v28 = 0;
if ( *((unsigned __int8 *)this + 2423) != (unsigned __int8)GameObject::slopeFloorTop(v23) )
{
GameObject::slopeYPos(v23, v76);
v71 = v50;
(*(void (__fastcall **)(__int64 *__return_ptr, GameObject *))(*(_QWORD *)v23 + 1360LL))(&v96, v23);
v51 = v71 - *((float *)&v96 + 1);
if ( v6 )
{
v52 = v83;
v53 = v51 + v79;
}
else
{
v52 = v82;
v53 = v51 + v78;
}
v28 = 1;
v27 = v53 + (float)((float)(v52 * 0.5) * (float)-(int)PlayerObject::flipMod(this));
}
if ( *((_BYTE *)this + 2427) )
PlayerObject::unrotateGameplayObject(this, v23);
LABEL_39:
if ( *((_BYTE *)this + 2423) )
break;
if ( v6 )
v54 = v77;
else
v54 = v76;
if ( v27 >= (float)(v54 - 10.0) )
goto LABEL_43;
++v19;
}
if ( v6 )
v29 = v77;
else
v29 = v76;
if ( v27 > (float)(v29 + 10.0) )
goto LABEL_80;
LABEL_43:
v30 = *((unsigned __int8 *)this + 2832);
if ( *((_BYTE *)this + 2832) )
{
if ( !v28 )
goto LABEL_98;
}
else
{
if ( !*((_BYTE *)this + 2426) )
{
v66 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v23 + 1328LL))(v23);
if ( v74 )
{
cocos2d::CCRect::getMinY(v66);
v68 = v77;
}
else
{
cocos2d::CCRect::getMinX(v66);
v68 = v76;
}
if ( v68 < v67 )
goto LABEL_69;
if ( !*((_BYTE *)this + 2426) )
goto LABEL_48;
}
v31 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v23 + 1328LL))(v23);
if ( v74 )
{
cocos2d::CCRect::getMaxY(v31);
v33 = v77;
}
else
{
cocos2d::CCRect::getMaxX(v31);
v33 = v76;
}
if ( v33 <= v32 )
{
LABEL_48:
v34 = v20;
v30 = *((unsigned __int8 *)this + 2832);
goto LABEL_49;
}
}
LABEL_69:
v45 = 0;
if ( !(unsigned int)cocos2d::CCArray::count(v15) )
break;
while ( 1 )
{
v46 = cocos2d::CCArray::objectAtIndex(v15, v45);
if ( v19 != v45 )
{
if ( v6 )
{
v95[1] = v27 - (float)(v83 * 0.5);
v55 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 1328LL))(v46);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v96, v55);
if ( !v28 )
{
v98 = v98 - 4.0;
*((float *)&v96 + 1) = *((float *)&v96 + 1) + 2.0;
}
}
else
{
v95[0] = v27 - (float)(v82 * 0.5);
v47 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 1328LL))(v46);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v96, v47);
if ( !v28 )
{
v97 = v97 - 4.0;
*(float *)&v96 = *(float *)&v96 + 2.0;
}
}
if ( (unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)&v96, (const cocos2d::CCRect *)v95) )
break;
}
if ( ++v45 >= (unsigned int)cocos2d::CCArray::count(v15) )
goto LABEL_97;
}
if ( v28 )
{
if ( v20 == 0.0 )
goto LABEL_79;
if ( *((_BYTE *)this + 2423) )
{
if ( v27 <= v20 )
goto LABEL_80;
LABEL_79:
v20 = v27;
goto LABEL_80;
}
if ( v27 < v20 )
v20 = v27;
}
LABEL_80:
++v19;
}
LABEL_97:
v30 = *((unsigned __int8 *)this + 2832);
LABEL_98:
v34 = v20;
LABEL_49:
v35 = 0;
if ( !v30 )
{
LABEL_50:
if ( v27 == 0.0 )
goto LABEL_51;
v34 = v27;
goto LABEL_55;
}
if ( v20 == 0.0 )
{
v35 = 0;
if ( v27 == 0.0 )
goto LABEL_51;
v34 = v27;
}
else if ( *((_BYTE *)this + 2423) )
{
if ( v27 < v20 )
goto LABEL_107;
LABEL_116:
if ( v27 != 0.0 )
v34 = v27;
}
else if ( v27 <= v20 )
{
goto LABEL_116;
}
LABEL_107:
if ( !(unsigned int)cocos2d::CCArray::count(v73) )
goto LABEL_56;
v57 = cocos2d::CCArray::objectAtIndex(v73, 0);
(*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)v57 + 1360LL))(&v96);
if ( v6 )
v58 = *((float *)&v96 + 1);
else
v58 = *(float *)&v96;
if ( *((_BYTE *)this + 2423) )
{
if ( v34 < v58 )
goto LABEL_112;
LABEL_56:
v37 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v76, v37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, (const cocos2d::CCPoint *)&v76);
v38 = *(_QWORD *)this;
if ( v6 )
{
v79 = v34;
(*(void (__fastcall **)(PlayerObject *, float *))(v38 + 184))(this, &v78);
PlayerObject::flipGravity((__int64)this, *((_BYTE *)this + 2423) ^ 1, 1u);
v65 = PlayerObject::flipMod(this);
PlayerObject::setYVelocity((__int64)this, (double)-v65);
*((_BYTE *)this + 1976) = 0;
*((_BYTE *)this + 2365) = 0;
PlayerObject::resetCollisionLog((cocos2d::CCDictionary **)this, 1u);
*((float *)this + 653) = v79;
}
else
{
v78 = v34;
(*(void (__fastcall **)(PlayerObject *, float *))(v38 + 184))(this, &v78);
PlayerObject::flipGravity((__int64)this, *((_BYTE *)this + 2423) ^ 1, 1u);
v39 = PlayerObject::flipMod(this);
PlayerObject::setYVelocity((__int64)this, (double)-v39);
*((_BYTE *)this + 1976) = 0;
*((_BYTE *)this + 2365) = 0;
PlayerObject::resetCollisionLog((cocos2d::CCDictionary **)this, 1u);
*((float *)this + 652) = v78;
}
*((_QWORD *)this + 254) = *((_QWORD *)this + 328);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, (const cocos2d::CCPoint *)&v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, (const cocos2d::CCPoint *)&v78);
PlayerObject::playSpiderDashEffect((__int64)this, v95, (float *)&v96);
if ( v72 )
{
v40 = *((GJBaseGameLayer **)this + 377);
if ( v40 )
GJBaseGameLayer::checkCameraLimitAfterTeleport(v40, this, 60.0);
}
}
else
{
if ( v34 <= v58 )
goto LABEL_56;
LABEL_112:
v34 = v58;
if ( v75 )
goto LABEL_56;
PlayerObject::spiderTestJumpInternal(this, 1);
}
return _stack_chk_guard;
}