//
// GJBaseGameLayer::collisionCheckObjects from 0x5ba118 to 0x5bab86 (2670 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x5bafe2
// > GJBaseGameLayer::checkCollisions @ 0x5bb0d2
//
// 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:53:41 +0000
//
void __fastcall GJBaseGameLayer::collisionCheckObjects(int a1, float a2, _DWORD *a3, int a4, float a5)
{
int v7; // r9
_DWORD *v8; // r8
cocos2d::CCRect *v9; // r6
float v10; // s16
float v11; // s17
float v12; // s18
_DWORD *v13; // r7
float v14; // s19
int v15; // r3
unsigned int v16; // r2
bool v17; // zf
int v18; // r1
_DWORD *v19; // r0
_DWORD *v20; // r2
_DWORD *v21; // r0
_DWORD *v22; // r2
int v23; // r0
int v24; // r3
char **v25; // r1
int v26; // r11
float *v27; // r10
float *v28; // r11
int v29; // r0
int v30; // r0
int canBeActivatedByPlayer; // r10
const cocos2d::CCPoint *v32; // r0
GameObject *v33; // r3
int **v34; // r0
int v35; // r1
int v36; // r10
const cocos2d::CCPoint *v37; // r0
GameObject *v38; // r3
int v39; // r2
int v40; // r10
const cocos2d::CCPoint *v41; // r0
GameObject *v42; // r3
int v43; // r2
int v44; // r2
const cocos2d::CCPoint *v45; // r0
int v46; // r3
char v47; // r10
const cocos2d::CCPoint *v48; // r0
GameObject *v49; // r3
const cocos2d::CCPoint *v50; // r0
GameObject *v51; // r3
int v52; // r10
const cocos2d::CCPoint *v53; // r0
GameObject *v54; // r1
const cocos2d::CCPoint *v55; // r0
GameObject *v56; // r1
GameObject *v57; // r0
int v58; // r2
int v59; // r3
int v60; // r2
int v61; // r3
int v62; // r2
int v63; // r3
int v64; // r2
int v65; // r3
int **v66; // r0
int v67; // r1
int v68; // r0
int v69; // r3
const cocos2d::CCPoint *v70; // r0
GameObject *v71; // r3
const cocos2d::CCPoint *v72; // r0
GameObject *v73; // r3
GameObject *v76; // [sp+18h] [bp-2Ch] BYREF
_BYTE v77[16]; // [sp+1Ch] [bp-28h] BYREF
char *v78[4]; // [sp+2Ch] [bp-18h] BYREF
v7 = 0;
v8 = (_DWORD *)(a1 + 10736);
v9 = (cocos2d::CCRect *)(*(int (__fastcall **)(float))(*(_DWORD *)LODWORD(a2) + 664))(COERCE_FLOAT(LODWORD(a2)));
v10 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(v9));
v11 = COERCE_FLOAT(cocos2d::CCRect::getMinX(v9));
v12 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(v9));
v13 = (_DWORD *)(a1 + 10732);
v14 = COERCE_FLOAT(cocos2d::CCRect::getMinY(v9));
while ( v7 < a4 )
{
v15 = *(_DWORD *)(*a3 + 4 * v7);
v16 = *(_DWORD *)(v15 + 784);
v76 = (GameObject *)v15;
if ( v16 == 7 || *(_BYTE *)(v15 + 550) || *(_BYTE *)(v15 + 834) )
goto LABEL_135;
if ( v16 == 21 )
{
LABEL_23:
v21 = (_DWORD *)(a1 + 10740);
if ( *v8 > *v13 )
{
*(_DWORD *)(*v21 + 4 * *v13) = v15;
}
else
{
v22 = *(_DWORD **)(a1 + 10744);
if ( v22 == *(_DWORD **)(a1 + 10748) )
{
std::vector::__push_back_slow_path((int)v21, &v76);
}
else
{
if ( v22 )
*v22 = v15;
*(_DWORD *)(a1 + 10744) += 4;
}
++*v8;
}
++*v13;
goto LABEL_135;
}
if ( v16 > 0x15 )
{
if ( v16 == 39 )
goto LABEL_135;
v17 = v16 == 47;
}
else
{
if ( !v16 )
goto LABEL_23;
v17 = v16 == 2;
}
if ( v17 )
{
v18 = *(_DWORD *)(a1 + 10752);
v19 = (_DWORD *)(a1 + 10760);
if ( *(_DWORD *)(a1 + 10756) > v18 )
{
*(_DWORD *)(*v19 + 4 * v18) = v15;
}
else
{
v20 = *(_DWORD **)(a1 + 10764);
if ( v20 == *(_DWORD **)(a1 + 10768) )
{
std::vector::__push_back_slow_path((int)v19, &v76);
}
else
{
if ( v20 )
*v20 = v15;
*(_DWORD *)(a1 + 10764) += 4;
}
++*(_DWORD *)(a1 + 10756);
}
++*(_DWORD *)(a1 + 10752);
}
else
{
if ( (*(int (__fastcall **)(int, float))(*(_DWORD *)v15 + 772))(v15, COERCE_FLOAT(LODWORD(a2))) )
goto LABEL_135;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v77);
v23 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 900))(v76);
v24 = *(_DWORD *)v76;
if ( v23 == 25 )
{
(*(void (__fastcall **)(char **, GameObject *, int, int))(v24 + 668))(v78, v76, 0x40000000, 0x40000000);
v25 = v78;
}
else
{
v25 = (char **)(*(int (__fastcall **)(GameObject *))(v24 + 664))(v76);
}
cocos2d::CCRect::operator=(v77, v25);
if ( *((float *)v76 + 191) <= 0.0 )
{
if ( v10 < COERCE_FLOAT(cocos2d::CCRect::getMinX((cocos2d::CCRect *)v77))
|| COERCE_FLOAT(cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v77)) < v11
|| v12 < COERCE_FLOAT(cocos2d::CCRect::getMinY((cocos2d::CCRect *)v77))
|| COERCE_FLOAT(cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v77)) < v14 )
{
goto LABEL_135;
}
}
else if ( !GJBaseGameLayer::playerCircleCollision((GJBaseGameLayer *)a1, (PlayerObject *)LODWORD(a2), v76) )
{
goto LABEL_135;
}
if ( *((_BYTE *)v76 + 636) && (!*(_BYTE *)(*(_DWORD *)(a1 + 2084) + 375) || *((float *)v76 + 191) <= 0.0) )
{
v27 = (float *)(*(int (**)(void))(*(_DWORD *)v76 + 780))();
(*(void (__fastcall **)(float))(*(_DWORD *)LODWORD(a2) + 784))(COERCE_FLOAT(LODWORD(a2)));
v28 = (float *)(*(int (__fastcall **)(float))(*(_DWORD *)LODWORD(a2) + 780))(COERCE_FLOAT(LODWORD(a2)));
v29 = OBB2D::overlaps1Way((int)v27, v28);
if ( v29 )
v29 = OBB2D::overlaps1Way((int)v28, v27);
v26 = v29;
}
else
{
v26 = 1;
}
if ( (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 900))(v76) == 25 )
{
v30 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 664))(v76);
cocos2d::CCRect::operator=(v77, v30);
}
if ( v26 && GJBaseGameLayer::canTouchObject((GJBaseGameLayer *)a1, v76) )
{
switch ( *((_DWORD *)v76 + 196) )
{
case 3:
canBeActivatedByPlayer = GJBaseGameLayer::canBeActivatedByPlayer(
(int **)a1,
(PlayerObject *)LODWORD(a2),
v76);
if ( canBeActivatedByPlayer )
{
if ( !*(_BYTE *)(LODWORD(a2) + 1959) && !*((_BYTE *)v76 + 908) )
(*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 740))(a1, 1);
v32 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v32);
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
v33 = v76;
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
if ( !*((_BYTE *)v33 + 908) )
canBeActivatedByPlayer = *((unsigned __int8 *)v33 + 1114);
GJBaseGameLayer::flipGravity(
(unsigned __int8 *)a1,
(PlayerObject *)LODWORD(a2),
1,
canBeActivatedByPlayer);
GameObject::playShineEffect(v76);
(*(void (__fastcall **)(GameObject *, float))(*(_DWORD *)v76 + 768))(v76, COERCE_FLOAT(LODWORD(a2)));
v34 = (int **)a1;
v35 = 50;
goto LABEL_70;
}
break;
case 4:
v36 = GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76);
if ( v36 )
{
if ( *(_BYTE *)(LODWORD(a2) + 1959) && !*((_BYTE *)v76 + 908) )
(*(void (__fastcall **)(int))(*(_DWORD *)a1 + 740))(a1);
v37 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v37);
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
v38 = v76;
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
if ( !*((_BYTE *)v38 + 908) )
v36 = *((unsigned __int8 *)v38 + 1114);
GJBaseGameLayer::flipGravity((unsigned __int8 *)a1, (PlayerObject *)LODWORD(a2), 0, v36);
GameObject::playShineEffect(v76);
(*(void (__fastcall **)(GameObject *, float))(*(_DWORD *)v76 + 768))(v76, COERCE_FLOAT(LODWORD(a2)));
v34 = (int **)a1;
v35 = 51;
goto LABEL_70;
}
break;
case 5:
if ( GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)LODWORD(a2), v76);
v46 = 5;
goto LABEL_83;
}
break;
case 6:
if ( GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)LODWORD(a2), v76);
v45 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v45);
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
PlayerObject::switchedToMode((char *)LODWORD(a2), 6);
PlayerObject::modeDidChange((PlayerObject *)LODWORD(a2));
goto LABEL_139;
}
break;
case 8:
case 9:
case 0x22:
case 0x2C:
GJBaseGameLayer::bumpPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76);
break;
case 0xA:
GJBaseGameLayer::gravBumpPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76);
break;
case 0xB:
case 0xC:
case 0xD:
case 0x1D:
case 0x20:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x2B:
GJBaseGameLayer::playerTouchedRing((GJBaseGameLayer *)a1, (cocos2d::CCArray **)LODWORD(a2), v76);
break;
case 0xE:
v52 = *(unsigned __int8 *)(a1 + 10612);
if ( !*(_BYTE *)(a1 + 10612)
&& GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
v72 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v72);
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
v73 = v76;
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
GJBaseGameLayer::toggleFlipped((GJBaseGameLayer *)a1, 1, *((unsigned __int8 *)v73 + 908));
GameObject::playShineEffect(v76);
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)v76 + 744))(v76, 0);
v34 = (int **)a1;
v35 = 53;
goto LABEL_142;
}
break;
case 0xF:
v52 = *(unsigned __int8 *)(a1 + 10612);
if ( !*(_BYTE *)(a1 + 10612)
&& GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
v70 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v70);
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
v71 = v76;
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
GJBaseGameLayer::toggleFlipped((GJBaseGameLayer *)a1, v52, *((unsigned __int8 *)v71 + 908));
GameObject::playShineEffect(v76);
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)v76 + 744))(v76, 0);
v34 = (int **)a1;
v35 = 54;
goto LABEL_142;
}
break;
case 0x10:
if ( GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)LODWORD(a2), v76);
GJBaseGameLayer::switchToRollMode((GJBaseGameLayer *)a1, (PlayerObject *)LODWORD(a2), v76, 0);
goto LABEL_139;
}
break;
case 0x11:
if ( GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
v48 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v48);
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
v49 = v76;
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
PlayerObject::togglePlayerScale((int *)LODWORD(a2), 0, *((unsigned __int8 *)v49 + 908));
GameObject::playShineEffect(v76);
(*(void (__fastcall **)(GameObject *, float))(*(_DWORD *)v76 + 768))(v76, COERCE_FLOAT(LODWORD(a2)));
v34 = (int **)a1;
v35 = 55;
goto LABEL_70;
}
break;
case 0x12:
if ( GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
v50 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v50);
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
v51 = v76;
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
PlayerObject::togglePlayerScale((int *)LODWORD(a2), 1, *((unsigned __int8 *)v51 + 908));
GameObject::playShineEffect(v76);
(*(void (__fastcall **)(GameObject *, float))(*(_DWORD *)v76 + 768))(v76, COERCE_FLOAT(LODWORD(a2)));
v34 = (int **)a1;
v35 = 56;
goto LABEL_70;
}
break;
case 0x13:
if ( GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)LODWORD(a2), v76);
v46 = 19;
LABEL_83:
GJBaseGameLayer::switchToFlyMode((GJBaseGameLayer *)a1, (PlayerObject *)LODWORD(a2), v76, 0, v46);
goto LABEL_139;
}
break;
case 0x14:
case 0x2D:
GJBaseGameLayer::playerTouchedTrigger(a1, (PlayerObject *)LODWORD(a2), v76);
break;
case 0x16:
if ( !*(_BYTE *)(a1 + 10784) )
{
(*(void (__fastcall **)(GameObject *, int, _DWORD))(*(_DWORD *)v76 + 648))(
v76,
a1,
*(_DWORD *)(LODWORD(a2) + 780));
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)v76 + 744))(v76, 0);
GJBaseGameLayer::destroyObject((GJBaseGameLayer *)a1, v76);
GJBaseGameLayer::logPickupItem((GJBaseGameLayer *)a1, (const char **)v76, v58, v59);
if ( !GJBaseGameLayer::hasUniqueCoin((GJBaseGameLayer *)a1, v76) )
GJBaseGameLayer::pickupItem((GJBaseGameLayer *)a1, (const char **)v76, v60, v61);
v34 = (int **)a1;
v35 = 62;
goto LABEL_70;
}
break;
case 0x17:
if ( GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
v55 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v55);
v52 = 0;
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
v56 = v76;
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
*(_BYTE *)(*(_DWORD *)(a1 + 2080) + 2136) = 1;
GJBaseGameLayer::toggleDualMode(a1, v56, 1, (PlayerObject *)LODWORD(a2), 0);
v57 = v76;
*(_BYTE *)(*(_DWORD *)(a1 + 2080) + 2136) = 0;
GameObject::playShineEffect(v57);
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)v76 + 744))(v76, 0);
v34 = (int **)a1;
v35 = 57;
goto LABEL_142;
}
break;
case 0x18:
if ( GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
{
v53 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v53);
v52 = 0;
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
v54 = v76;
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
GJBaseGameLayer::toggleDualMode(a1, v54, 0, (PlayerObject *)LODWORD(a2), 0);
GameObject::playShineEffect(v76);
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)v76 + 744))(v76, 0);
v34 = (int **)a1;
v35 = 58;
LABEL_142:
v39 = v52;
goto LABEL_143;
}
break;
case 0x19:
PlayerObject::collidedWithSlope((PlayerObject *)LODWORD(a2), a5, v76, 0);
goto LABEL_134;
case 0x1A:
v47 = *(_BYTE *)(a1 + 10614);
if ( v47 || !GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
break;
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)LODWORD(a2), v76);
v69 = 26;
goto LABEL_138;
case 0x1B:
if ( !GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
break;
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)LODWORD(a2), v76);
GJBaseGameLayer::switchToRobotMode((GJBaseGameLayer *)a1, (PlayerObject *)LODWORD(a2), v76, 0);
goto LABEL_139;
case 0x1C:
if ( !GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
break;
GJBaseGameLayer::gameEventTriggered((int **)a1, 59, 0, 0);
GJBaseGameLayer::teleportPlayer((GJBaseGameLayer *)a1, v76, (PlayerObject *)LODWORD(a2));
LABEL_134:
v68 = (*(int (__fastcall **)(float))(*(_DWORD *)LODWORD(a2) + 664))(COERCE_FLOAT(LODWORD(a2)));
cocos2d::CCRect::operator=(v9, v68);
v10 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(v9));
v11 = COERCE_FLOAT(cocos2d::CCRect::getMinX(v9));
v12 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(v9));
v14 = COERCE_FLOAT(cocos2d::CCRect::getMinY(v9));
break;
case 0x1E:
if ( GJEffectManager::hasBeenTriggered(*(GJEffectManager **)(a1 + 1524), *((_DWORD *)v76 + 195), 0) )
goto LABEL_132;
GJEffectManager::storeTriggeredID(*(GJEffectManager **)(a1 + 1524), *((_DWORD *)v76 + 195), 0);
if ( *((_DWORD *)v76 + 223) == 1268 )
{
memset(v78, 0, 12);
SpawnTriggerGameObject::updateRemapKeys((int)v76, v78);
std::__vector_base::~__vector_base(v78);
}
(*(void (__fastcall **)(GameObject *, int, _DWORD, _DWORD))(*(_DWORD *)v76 + 648))(
v76,
a1,
*(_DWORD *)(LODWORD(a2) + 780),
0);
v66 = (int **)a1;
v67 = 63;
goto LABEL_131;
case 0x1F:
if ( *(_BYTE *)(a1 + 10784) )
break;
if ( GJEffectManager::hasBeenTriggered(
*(GJEffectManager **)(a1 + 1524),
*((_DWORD *)v76 + 195),
*(unsigned __int8 *)(a1 + 10784)) )
{
goto LABEL_132;
}
GJEffectManager::storeTriggeredID(*(GJEffectManager **)(a1 + 1524), *((_DWORD *)v76 + 195), 0);
(*(void (__fastcall **)(GameObject *, int, _DWORD, _DWORD))(*(_DWORD *)v76 + 648))(
v76,
a1,
*(_DWORD *)(LODWORD(a2) + 780),
0);
GJBaseGameLayer::logPickupItem((GJBaseGameLayer *)a1, (const char **)v76, v62, v63);
if ( !GJBaseGameLayer::hasUniqueCoin((GJBaseGameLayer *)a1, v76) )
GJBaseGameLayer::pickupItem((GJBaseGameLayer *)a1, (const char **)v76, v64, v65);
v66 = (int **)a1;
v67 = 62;
LABEL_131:
GJBaseGameLayer::gameEventTriggered(v66, v67, 0, 0);
LABEL_132:
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)v76 + 744))(v76, 0);
GJBaseGameLayer::destroyObject((GJBaseGameLayer *)a1, v76);
break;
case 0x21:
if ( !GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
break;
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)LODWORD(a2), v76);
GJBaseGameLayer::switchToSpiderMode((GJBaseGameLayer *)a1, (PlayerObject *)LODWORD(a2), v76, 0);
goto LABEL_139;
case 0x28:
PlayerObject::touchedObject(a2, v76);
break;
case 0x29:
v47 = *(_BYTE *)(a1 + 10614);
if ( v47 || !GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76) )
break;
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)LODWORD(a2), v76);
v69 = 41;
LABEL_138:
GJBaseGameLayer::switchToFlyMode((GJBaseGameLayer *)a1, (PlayerObject *)LODWORD(a2), v76, v47, v69);
LABEL_139:
GameObject::playShineEffect(v76);
(*(void (__fastcall **)(GameObject *, float))(*(_DWORD *)v76 + 768))(v76, COERCE_FLOAT(LODWORD(a2)));
break;
case 0x2A:
v40 = GJBaseGameLayer::canBeActivatedByPlayer((int **)a1, (PlayerObject *)LODWORD(a2), v76);
if ( v40 )
{
if ( !*((_BYTE *)v76 + 908) )
(*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 740))(
a1,
*(unsigned __int8 *)(LODWORD(a2) + 1959) ^ 1);
v41 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v41);
cocos2d::CCPoint::operator=(LODWORD(a2) + 2024, v78);
v42 = v76;
v43 = *(unsigned __int8 *)(LODWORD(a2) + 1959);
*(_DWORD *)(LODWORD(a2) + 2100) = v76;
v44 = v43 ^ 1;
if ( !*((_BYTE *)v42 + 908) )
v40 = *((unsigned __int8 *)v42 + 1114);
GJBaseGameLayer::flipGravity((unsigned __int8 *)a1, (PlayerObject *)LODWORD(a2), v44, v40);
GameObject::playShineEffect(v76);
(*(void (__fastcall **)(GameObject *, float))(*(_DWORD *)v76 + 768))(v76, COERCE_FLOAT(LODWORD(a2)));
v34 = (int **)a1;
v35 = 52;
LABEL_70:
v39 = 0;
LABEL_143:
GJBaseGameLayer::gameEventTriggered(v34, v35, v39, v39);
}
break;
case 0x2E:
GJBaseGameLayer::playerTouchedRing((GJBaseGameLayer *)a1, (cocos2d::CCArray **)LODWORD(a2), v76);
goto LABEL_134;
default:
break;
}
}
}
LABEL_135:
++v7;
}
}