//
// GJBaseGameLayer::collisionCheckObjects from 0x9e8530 to 0x9e95c4 (4244 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x9e9a6c
// > GJBaseGameLayer::checkCollisions @ 0x9e9d50
// > ??> @ 0xe2ac8
//
// 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:59:01 +0000
//
__int64 __fastcall GJBaseGameLayer::collisionCheckObjects(__int64 a1, __int64 a2, _QWORD *a3, int a4, float a5)
{
cocos2d::CCRect *v9; // x25
float v10; // s0
float v11; // s8
float v12; // s0
float v13; // s9
float v14; // s0
float v15; // s10
float v16; // s0
float v17; // s11
__int64 v18; // x19
__int64 v19; // x0
int v20; // w1
int v21; // w2
int v22; // w1
_QWORD *v23; // x3
int v24; // w2
int v25; // w1
_QWORD *v26; // x3
__int64 v28; // x0
GameObject *v29; // x0
__int64 v30; // x0
float v31; // s0
float v32; // s0
float v33; // s0
float v34; // s0
__int64 v35; // x0
__int64 v36; // x0
float v37; // s0
float v38; // s0
float v39; // s0
float v40; // s0
unsigned __int8 v41; // w3
GameObject *v42; // x0
const cocos2d::CCPoint *v43; // x0
GameObject *v44; // x0
unsigned __int8 v45; // w3
GameObject *v46; // x2
GJBaseGameLayer *v47; // x0
PlayerObject *v48; // x1
int v49; // w4
GameObject *v50; // x0
const cocos2d::CCPoint *v51; // x0
GameObject *v52; // x1
const cocos2d::CCPoint *v53; // x0
GameObject *v54; // x1
GameObject *v55; // x0
const cocos2d::CCPoint *v56; // x0
GameObject *v57; // x2
const cocos2d::CCPoint *v58; // x0
GameObject *v59; // x2
const cocos2d::CCPoint *v60; // x0
GameObject *v61; // x2
const cocos2d::CCPoint *v62; // x0
GameObject *v63; // x2
const cocos2d::CCPoint *v64; // x0
unsigned __int8 v65; // w3
GameObject *v66; // x0
const cocos2d::CCPoint *v67; // x0
GameObject *v68; // x0
unsigned __int8 v69; // w3
unsigned __int8 canBeActivatedByPlayer; // w3
GameObject *v71; // x0
const cocos2d::CCPoint *v72; // x0
GameObject *v73; // x0
unsigned __int8 v74; // w3
float *v75; // [xsp+98h] [xbp+98h]
float *v76; // [xsp+A0h] [xbp+A0h]
unsigned __int8 v77; // [xsp+A0h] [xbp+A0h]
unsigned __int8 v78; // [xsp+A0h] [xbp+A0h]
unsigned __int8 v79; // [xsp+A0h] [xbp+A0h]
unsigned __int8 v80; // [xsp+A0h] [xbp+A0h]
unsigned __int8 v81; // [xsp+A0h] [xbp+A0h]
unsigned __int8 v82; // [xsp+A0h] [xbp+A0h]
GameObject *v84; // [xsp+B8h] [xbp+B8h] BYREF
_BYTE v85[16]; // [xsp+C0h] [xbp+C0h] BYREF
void *v86; // [xsp+D0h] [xbp+D0h] BYREF
char *v87; // [xsp+D8h] [xbp+D8h]
__int64 v88; // [xsp+E0h] [xbp+E0h]
v9 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1328LL))(a2);
cocos2d::CCRect::getMaxX(v9);
v11 = v10;
cocos2d::CCRect::getMinX(v9);
v13 = v12;
cocos2d::CCRect::getMaxY(v9);
v15 = v14;
cocos2d::CCRect::getMinY(v9);
v17 = v16;
if ( a4 > 0 )
{
v18 = 0;
while ( 1 )
{
v19 = *(_QWORD *)(*a3 + v18);
v84 = (GameObject *)v19;
v20 = *(_DWORD *)(v19 + 920);
if ( v20 == 7 || *(_BYTE *)(v19 + 650) || *(_BYTE *)(v19 + 970) )
goto LABEL_4;
switch ( v20 )
{
case 0:
case 21:
v24 = *(_DWORD *)(a1 + 12456);
v25 = *(_DWORD *)(a1 + 12452);
if ( v24 > v25 )
{
*(_QWORD *)(*(_QWORD *)(a1 + 12464) + 8LL * v25) = v19;
v25 = *(_DWORD *)(a1 + 12452);
}
else
{
v26 = *(_QWORD **)(a1 + 12472);
if ( v26 == *(_QWORD **)(a1 + 12480) )
{
std::vector::__push_back_slow_path(a1 + 12464, &v84);
v24 = *(_DWORD *)(a1 + 12456);
v25 = *(_DWORD *)(a1 + 12452);
}
else
{
if ( v26 )
{
*v26 = v19;
v26 = *(_QWORD **)(a1 + 12472);
v24 = *(_DWORD *)(a1 + 12456);
v25 = *(_DWORD *)(a1 + 12452);
}
*(_QWORD *)(a1 + 12472) = v26 + 1;
}
*(_DWORD *)(a1 + 12456) = v24 + 1;
}
*(_DWORD *)(a1 + 12452) = v25 + 1;
goto LABEL_4;
case 2:
case 47:
v21 = *(_DWORD *)(a1 + 12492);
v22 = *(_DWORD *)(a1 + 12488);
if ( v21 > v22 )
{
*(_QWORD *)(*(_QWORD *)(a1 + 12496) + 8LL * v22) = v19;
v22 = *(_DWORD *)(a1 + 12488);
}
else
{
v23 = *(_QWORD **)(a1 + 12504);
if ( v23 == *(_QWORD **)(a1 + 12512) )
{
std::vector::__push_back_slow_path(a1 + 12496, &v84);
v21 = *(_DWORD *)(a1 + 12492);
v22 = *(_DWORD *)(a1 + 12488);
}
else
{
if ( v23 )
{
*v23 = v19;
v23 = *(_QWORD **)(a1 + 12504);
v21 = *(_DWORD *)(a1 + 12492);
v22 = *(_DWORD *)(a1 + 12488);
}
*(_QWORD *)(a1 + 12504) = v23 + 1;
}
*(_DWORD *)(a1 + 12492) = v21 + 1;
}
*(_DWORD *)(a1 + 12488) = v22 + 1;
goto LABEL_4;
case 39:
goto LABEL_4;
default:
if ( (*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)v19 + 1544LL))(v19, a2) )
goto LABEL_4;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v85);
if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 1800LL))(v84) == 25 )
{
(*(void (__fastcall **)(GameObject *, float, float))(*(_QWORD *)v84 + 1336LL))(v84, 2.0, 2.0);
cocos2d::CCRect::operator=(v85, &v86);
}
else
{
v28 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 1328LL))(v84);
cocos2d::CCRect::operator=(v85, v28);
}
if ( *((float *)v84 + 225) <= 0.0 )
{
cocos2d::CCRect::getMinX((cocos2d::CCRect *)v85);
if ( v31 > v11 )
goto LABEL_4;
cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v85);
if ( v32 < v13 )
goto LABEL_4;
cocos2d::CCRect::getMinY((cocos2d::CCRect *)v85);
if ( v33 > v15 )
goto LABEL_4;
cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v85);
if ( v34 < v17 )
goto LABEL_4;
}
else if ( !GJBaseGameLayer::playerCircleCollision((GJBaseGameLayer *)a1, (GameObject *)a2, v84) )
{
goto LABEL_4;
}
v29 = v84;
if ( *((_BYTE *)v84 + 744) && (!*(_BYTE *)(*(_QWORD *)(a1 + 3272) + 455LL) || *((float *)v84 + 225) <= 0.0) )
{
v76 = (float *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 1560LL))(v84);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 1568LL))(a2);
v75 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1560LL))(a2);
if ( !OBB2D::overlaps1Way((__int64)v76, v75) || !OBB2D::overlaps1Way((__int64)v75, v76) )
{
if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 1800LL))(v84) == 25 )
{
v30 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 1328LL))(v84);
cocos2d::CCRect::operator=(v85, v30);
}
goto LABEL_4;
}
v29 = v84;
}
if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)v29 + 1800LL))(v29) == 25 )
{
v35 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 1328LL))(v84);
cocos2d::CCRect::operator=(v85, v35);
}
if ( (unsigned __int8)GJBaseGameLayer::canTouchObject((GJBaseGameLayer *)a1, v84) )
{
switch ( *((_DWORD *)v84 + 230) )
{
case 3:
canBeActivatedByPlayer = GJBaseGameLayer::canBeActivatedByPlayer(
(__int64 **)a1,
(PlayerObject *)a2,
v84);
if ( canBeActivatedByPlayer )
{
if ( *(_BYTE *)(a2 + 2423) )
{
v71 = v84;
}
else
{
v71 = v84;
if ( !*((_BYTE *)v84 + 1044) )
{
v82 = canBeActivatedByPlayer;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1480LL))(a1, 1);
v71 = v84;
canBeActivatedByPlayer = v82;
}
}
v81 = canBeActivatedByPlayer;
v72 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v71 + 192LL))(v71);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v72);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
v73 = v84;
*(_QWORD *)(a2 + 2592) = v84;
v74 = v81;
if ( !*((_BYTE *)v73 + 1044) )
v74 = *((_BYTE *)v73 + 1294);
GJBaseGameLayer::flipGravity(a1, (PlayerObject *)a2, 1u, v74);
GameObject::playShineEffect(v84);
(*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)v84 + 1536LL))(v84, a2);
GJBaseGameLayer::gameEventTriggered(a1, 0x32u, 0, 0);
}
break;
case 4:
v65 = GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84);
if ( v65 )
{
if ( *(_BYTE *)(a2 + 2423) )
{
v66 = v84;
if ( !*((_BYTE *)v84 + 1044) )
{
v80 = v65;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1480LL))(a1, 0);
v66 = v84;
v65 = v80;
}
}
else
{
v66 = v84;
}
v79 = v65;
v67 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v66 + 192LL))(v66);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v67);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
v68 = v84;
*(_QWORD *)(a2 + 2592) = v84;
v69 = v79;
if ( !*((_BYTE *)v68 + 1044) )
v69 = *((_BYTE *)v68 + 1294);
GJBaseGameLayer::flipGravity(a1, (PlayerObject *)a2, 0, v69);
GameObject::playShineEffect(v84);
(*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)v84 + 1536LL))(v84, a2);
GJBaseGameLayer::gameEventTriggered(a1, 0x33u, 0, 0);
}
break;
case 5:
if ( (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)a2, v84);
v47 = (GJBaseGameLayer *)a1;
v48 = (PlayerObject *)a2;
v46 = v84;
v49 = 5;
goto LABEL_62;
}
break;
case 6:
if ( (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)a2, v84);
v64 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 192LL))(v84);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v64);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
*(_QWORD *)(a2 + 2592) = v84;
PlayerObject::switchedToMode((PlayerObject *)a2, 6);
PlayerObject::modeDidChange((PlayerObject *)a2);
goto LABEL_63;
}
break;
case 8:
case 9:
case 0x22:
case 0x2C:
GJBaseGameLayer::bumpPlayer((GJBaseGameLayer *)a1, (PlayerObject *)a2, v84);
break;
case 0xA:
GJBaseGameLayer::gravBumpPlayer((__int64 **)a1, (PlayerObject *)a2, v84);
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 **)a2, v84);
break;
case 0xE:
if ( !*(_BYTE *)(a1 + 12236)
&& (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
v62 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 192LL))(v84);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v62);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
v63 = v84;
*(_QWORD *)(a2 + 2592) = v84;
GJBaseGameLayer::toggleFlipped(a1, 1u, *((_BYTE *)v63 + 1044));
GameObject::playShineEffect(v84);
(*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)v84 + 1488LL))(v84, 0.0);
GJBaseGameLayer::gameEventTriggered(a1, 0x35u, 0, 0);
}
break;
case 0xF:
if ( !*(_BYTE *)(a1 + 12236)
&& (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
v60 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 192LL))(v84);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v60);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
v61 = v84;
*(_QWORD *)(a2 + 2592) = v84;
GJBaseGameLayer::toggleFlipped(a1, 0, *((_BYTE *)v61 + 1044));
GameObject::playShineEffect(v84);
(*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)v84 + 1488LL))(v84, 0.0);
GJBaseGameLayer::gameEventTriggered(a1, 0x36u, 0, 0);
}
break;
case 0x10:
if ( (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)a2, v84);
GJBaseGameLayer::switchToRollMode((GJBaseGameLayer *)a1, (PlayerObject *)a2, v84);
goto LABEL_63;
}
break;
case 0x11:
if ( (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
v58 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 192LL))(v84);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v58);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
v59 = v84;
*(_QWORD *)(a2 + 2592) = v84;
PlayerObject::togglePlayerScale((PlayerObject *)a2, 0, *((_BYTE *)v59 + 1044));
GameObject::playShineEffect(v84);
(*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)v84 + 1536LL))(v84, a2);
GJBaseGameLayer::gameEventTriggered(a1, 0x37u, 0, 0);
}
break;
case 0x12:
if ( (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
v56 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 192LL))(v84);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v56);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
v57 = v84;
*(_QWORD *)(a2 + 2592) = v84;
PlayerObject::togglePlayerScale((PlayerObject *)a2, 1, *((_BYTE *)v57 + 1044));
GameObject::playShineEffect(v84);
(*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)v84 + 1536LL))(v84, a2);
GJBaseGameLayer::gameEventTriggered(a1, 0x38u, 0, 0);
}
break;
case 0x13:
if ( (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)a2, v84);
v47 = (GJBaseGameLayer *)a1;
v48 = (PlayerObject *)a2;
v46 = v84;
v49 = 19;
goto LABEL_62;
}
break;
case 0x14:
case 0x2D:
GJBaseGameLayer::playerTouchedTrigger((GJBaseGameLayer *)a1, (PlayerObject *)a2, v84);
break;
case 0x16:
if ( !*(_BYTE *)(a1 + 12544) )
{
(*(void (__fastcall **)(GameObject *, __int64, _QWORD, _QWORD))(*(_QWORD *)v84 + 1296LL))(
v84,
a1,
*(unsigned int *)(a2 + 916),
0);
(*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)v84 + 1488LL))(v84, 0.0);
GJBaseGameLayer::destroyObject((GJBaseGameLayer *)a1, v84);
GJBaseGameLayer::logPickupItem((GJBaseGameLayer *)a1, v84);
if ( !GJBaseGameLayer::hasUniqueCoin((GJBaseGameLayer *)a1, v84) )
GJBaseGameLayer::pickupItem((GJBaseGameLayer *)a1, v84);
GJBaseGameLayer::gameEventTriggered(a1, 0x3Eu, 0, 0);
}
break;
case 0x17:
if ( (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
v53 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 192LL))(v84);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v53);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
v54 = v84;
*(_QWORD *)(a2 + 2592) = v84;
*(_BYTE *)(*(_QWORD *)(a1 + 3264) + 2632LL) = 1;
GJBaseGameLayer::toggleDualMode((GJBaseGameLayer *)a1, v54, 1u, (PlayerObject *)a2, 0);
v55 = v84;
*(_BYTE *)(*(_QWORD *)(a1 + 3264) + 2632LL) = 0;
GameObject::playShineEffect(v55);
(*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)v84 + 1488LL))(v84, 0.0);
GJBaseGameLayer::gameEventTriggered(a1, 0x39u, 0, 0);
}
break;
case 0x18:
if ( (unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
v51 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v84 + 192LL))(v84);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v51);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
v52 = v84;
*(_QWORD *)(a2 + 2592) = v84;
GJBaseGameLayer::toggleDualMode((GJBaseGameLayer *)a1, v52, 0, (PlayerObject *)a2, 0);
GameObject::playShineEffect(v84);
(*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)v84 + 1488LL))(v84, 0.0);
GJBaseGameLayer::gameEventTriggered(a1, 0x3Au, 0, 0);
}
break;
case 0x19:
PlayerObject::collidedWithSlope((PlayerObject *)a2, a5, v84, 0);
goto LABEL_52;
case 0x1A:
if ( *(_BYTE *)(a1 + 12238)
|| !(unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
break;
}
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)a2, v84);
v47 = (GJBaseGameLayer *)a1;
v48 = (PlayerObject *)a2;
v46 = v84;
v49 = 26;
goto LABEL_62;
case 0x1B:
if ( !(unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
break;
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)a2, v84);
GJBaseGameLayer::switchToRobotMode((GJBaseGameLayer *)a1, (PlayerObject *)a2, v84);
goto LABEL_63;
case 0x1C:
if ( !(unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
break;
GJBaseGameLayer::gameEventTriggered(a1, 0x3Bu, 0, 0);
GJBaseGameLayer::teleportPlayer((GJBaseGameLayer *)a1, v84, (PlayerObject *)a2);
LABEL_52:
v36 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1328LL))(a2);
cocos2d::CCRect::operator=(v9, v36);
cocos2d::CCRect::getMaxX(v9);
v11 = v37;
cocos2d::CCRect::getMinX(v9);
v13 = v38;
cocos2d::CCRect::getMaxY(v9);
v15 = v39;
cocos2d::CCRect::getMinY(v9);
v17 = v40;
break;
case 0x1E:
if ( !(unsigned __int8)GJEffectManager::hasBeenTriggered(
*(GJEffectManager **)(a1 + 2152),
*((_DWORD *)v84 + 229),
0) )
{
GJEffectManager::storeTriggeredID(*(GJEffectManager **)(a1 + 2152), *((_DWORD *)v84 + 229), 0);
v50 = v84;
if ( *((_DWORD *)v84 + 257) == 1268 )
{
v86 = nullptr;
v87 = nullptr;
v88 = 0;
SpawnTriggerGameObject::updateRemapKeys((__int64)v84, (char **)&v86);
if ( v86 )
{
if ( v86 != v87 )
v87 += 4 * ~((unsigned __int64)(v87 - 4 - (_BYTE *)v86) >> 2);
operator delete(v86);
}
v50 = v84;
}
(*(void (__fastcall **)(GameObject *, __int64, _QWORD, _QWORD))(*(_QWORD *)v50 + 1296LL))(
v50,
a1,
*(unsigned int *)(a2 + 916),
0);
GJBaseGameLayer::gameEventTriggered(a1, 0x3Fu, 0, 0);
}
goto LABEL_69;
case 0x1F:
if ( *(_BYTE *)(a1 + 12544) )
break;
if ( !(unsigned __int8)GJEffectManager::hasBeenTriggered(
*(GJEffectManager **)(a1 + 2152),
*((_DWORD *)v84 + 229),
0) )
{
GJEffectManager::storeTriggeredID(*(GJEffectManager **)(a1 + 2152), *((_DWORD *)v84 + 229), 0);
(*(void (__fastcall **)(GameObject *, __int64, _QWORD, _QWORD))(*(_QWORD *)v84 + 1296LL))(
v84,
a1,
*(unsigned int *)(a2 + 916),
0);
GJBaseGameLayer::logPickupItem((GJBaseGameLayer *)a1, v84);
if ( !GJBaseGameLayer::hasUniqueCoin((GJBaseGameLayer *)a1, v84) )
GJBaseGameLayer::pickupItem((GJBaseGameLayer *)a1, v84);
GJBaseGameLayer::gameEventTriggered(a1, 0x3Eu, 0, 0);
}
LABEL_69:
(*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)v84 + 1488LL))(v84, 0.0);
GJBaseGameLayer::destroyObject((GJBaseGameLayer *)a1, v84);
break;
case 0x21:
if ( !(unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
break;
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)a2, v84);
GJBaseGameLayer::switchToSpiderMode((GJBaseGameLayer *)a1, (PlayerObject *)a2, v84);
goto LABEL_63;
case 0x28:
PlayerObject::touchedObject((PlayerObject *)a2, v84);
break;
case 0x29:
if ( *(_BYTE *)(a1 + 12238)
|| !(unsigned __int8)GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84) )
{
break;
}
GJBaseGameLayer::playerWillSwitchMode(a1, (PlayerObject *)a2, v84);
v46 = v84;
v47 = (GJBaseGameLayer *)a1;
v48 = (PlayerObject *)a2;
v49 = 41;
LABEL_62:
GJBaseGameLayer::switchToFlyMode(v47, v48, v46, 0, v49);
LABEL_63:
GameObject::playShineEffect(v84);
(*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)v84 + 1536LL))(v84, a2);
break;
case 0x2A:
v41 = GJBaseGameLayer::canBeActivatedByPlayer((__int64 **)a1, (PlayerObject *)a2, v84);
if ( v41 )
{
v42 = v84;
if ( !*((_BYTE *)v84 + 1044) )
{
v77 = v41;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1480LL))(
a1,
*(unsigned __int8 *)(a2 + 2423) ^ 1u);
v42 = v84;
v41 = v77;
}
v78 = v41;
v43 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v42 + 192LL))(v42);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v43);
cocos2d::CCPoint::operator=(a2 + 2488, &v86);
v44 = v84;
*(_QWORD *)(a2 + 2592) = v84;
v45 = v78;
if ( !*((_BYTE *)v44 + 1044) )
v45 = *((_BYTE *)v44 + 1294);
GJBaseGameLayer::flipGravity(a1, (PlayerObject *)a2, *(_BYTE *)(a2 + 2423) ^ 1, v45);
GameObject::playShineEffect(v84);
(*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)v84 + 1536LL))(v84, a2);
GJBaseGameLayer::gameEventTriggered(a1, 0x34u, 0, 0);
}
break;
case 0x2E:
GJBaseGameLayer::playerTouchedRing((GJBaseGameLayer *)a1, (cocos2d::CCArray **)a2, v84);
goto LABEL_52;
default:
break;
}
}
LABEL_4:
v18 += 8;
if ( v18 == 8 * ((unsigned int)(a4 - 1) + 1LL) )
return _stack_chk_guard;
break;
}
}
}
return _stack_chk_guard;
}