//
// PlayerObject::ringJump from 0x140398c00 to 0x140399d44 (4420 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::playerTouchedRing @ 0x140217f2d
// > PlayerObject::pushButton @ 0x140398123
// > PlayerObject::pushButton @ 0x140398172
// > PlayerObject::pushButton @ 0x14039818e
// > ??> @ 0x1406d6554
//
// 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
//
// Hidden C++ exception states: #wind=27
void PlayerObject::ringJump(PlayerObject *a1, RingObject *a2, bool a3)
{
int m_uniqueID; // r8d
unsigned __int64 v6; // r9
std::_Vector_val>, std::_Iterator_base0>>>::pointer Myfirst; // rdx
std::_List_unchecked_const_iterator>, std::_Iterator_base0>::_Nodeptr Ptr; // rcx
bool m_hasNoEffects; // r13
GameObjectType v10; // r15d
GameObjectType v11; // eax
GameObjectType v12; // r14d
bool v13; // bl
GJBaseGameLayer *m_gameLayer; // rcx
GameObjectType v15; // eax
GJBaseGameLayer *v16; // rcx
GJGameEvent v17; // eax
GJBaseGameLayer *v18; // rcx
TriggerEffectDelegate *v19; // rcx
TriggerEffectDelegate_vtbl *v20; // rax
int m_controlID; // edx
int v22; // r8d
void *v23; // rcx
void *v24; // rcx
bool m_isUpsideDown; // bl
bool v26; // dl
GJBaseGameLayer *v27; // rcx
GJGameEvent v28; // edx
__int64 v29; // rcx
__int64 v30; // rcx
__int64 v31; // rax
GJBaseGameLayer *v32; // rcx
bool v33; // al
GameObjectType v34; // eax
int v35; // r8d
float v36; // xmm9_4
float m_yStart; // xmm6_4
int v38; // r8d
__int64 v39; // rcx
__int64 v40; // rcx
__int64 v41; // rax
GJBaseGameLayer *v42; // rcx
bool v43; // al
int v44; // ecx
const cocos2d::CCPoint *v45; // rax
double v46; // xmm0_8
__int64 v47; // rcx
__int64 v48; // rcx
__int64 v49; // rax
GJBaseGameLayer *v50; // rcx
bool v51; // al
GJSpiderSprite *m_spiderSprite; // rbx
SpriteAnimationManager *m_animationManager; // rbx
cocos2d::CCNode *m_paSprite; // rcx
cocos2d::CCNode *m_fbfSprite; // rcx
bool v56; // dl
int v57; // ecx
int v58; // eax
float v59; // xmm0_4
__int64 v60; // rax
char b; // r14
__int16 v62; // bx
__int64 v63; // rax
ColorActionSprite *ColorSprite; // rax
cocos2d::CCSprite *m_colorSprite; // rcx
cocos2d::CCRGBAProtocol *v66; // rcx
__int64 v67; // rax
float v68; // xmm6_4
CCCircleWave *v69; // r15
CCCircleWave_vtbl *v70; // rbx
const cocos2d::CCPoint *v71; // rax
cocos2d::CCObject *m_target; // rcx
CCCircleWave_vtbl *v73; // rbx
__int64 v74; // rax
__int64 v75; // rdx
CCCircleWaveDelegate *v76; // rcx
CCCircleWaveDelegate *v77; // rax
void *Block[2]; // [rsp+48h] [rbp-49h] BYREF
__int64 v79; // [rsp+58h] [rbp-39h]
void *v80[2]; // [rsp+60h] [rbp-31h] BYREF
__int64 v81; // [rsp+70h] [rbp-21h]
__int64 v82; // [rsp+78h] [rbp-19h]
void *v83; // [rsp+F8h] [rbp+67h]
void *v84; // [rsp+F8h] [rbp+67h]
void *v85; // [rsp+F8h] [rbp+67h]
void *v86; // [rsp+F8h] [rbp+67h]
void *v87; // [rsp+F8h] [rbp+67h]
void *v88; // [rsp+F8h] [rbp+67h]
void *v89; // [rsp+F8h] [rbp+67h]
void *v90; // [rsp+F8h] [rbp+67h]
void *v91; // [rsp+F8h] [rbp+67h]
void *v92; // [rsp+F8h] [rbp+67h]
void *v93; // [rsp+F8h] [rbp+67h]
void *v94; // [rsp+F8h] [rbp+67h]
int v95; // [rsp+108h] [rbp+77h] BYREF
LOBYTE(v95) = a3;
if ( a1->m_isDead || !a2 )
return;
m_uniqueID = a2->m_uniqueID;
v6 = (0x100000001B3LL
* (HIBYTE(m_uniqueID)
^ (0x100000001B3LL
* (BYTE2(m_uniqueID)
^ (0x100000001B3LL
* ((0x100000001B3LL * ((unsigned __int8)m_uniqueID ^ 0xCBF29CE484222325uLL)) ^ BYTE1(m_uniqueID)))))))
& a1->m_ringRelatedSet._Mask;
Myfirst = a1->m_ringRelatedSet._Vec._Mypair._Myval2._Myfirst;
Ptr = Myfirst[2 * v6 + 1]._Ptr;
if ( Ptr == a1->m_ringRelatedSet._List._Mypair._Myval2._Myhead )
goto LABEL_8;
if ( m_uniqueID != *((_DWORD *)Ptr + 4) )
{
while ( Ptr != Myfirst[2 * v6]._Ptr )
{
Ptr = *((std::_List_unchecked_const_iterator>, std::_Iterator_base0>::_Nodeptr *)Ptr
+ 1);
if ( m_uniqueID == *((_DWORD *)Ptr + 4) )
goto LABEL_9;
}
LABEL_8:
Ptr = nullptr;
}
LABEL_9:
if ( Ptr )
return;
m_hasNoEffects = a2->m_hasNoEffects;
v10 = a2->getType(a2);
v11 = a2->getType(a2);
v12 = v11;
v13 = v10 != CustomRing && v11 != (GravityTogglePortal|NormalGravityPortal);
if ( !a1->m_stateRingJump2
|| a1->m_isDashing
|| !a1->m_stateJumpBuffered
|| (a1->m_touchedRing || !v13)
&& (a1->m_touchedCustomRing || v10 != CustomRing)
&& (a1->m_touchedGravityPortal || v11 != (GravityTogglePortal|NormalGravityPortal)) )
{
return;
}
if ( a2->m_isReverse )
PlayerObject::reversePlayer(a1, a2);
a1->m_ringJumpRelated = 1;
v95 = a2->m_uniqueID;
sub_140060D70((__int64)&a1->m_ringRelatedSet, (__int64)Block, (unsigned __int8 *)&v95);
m_gameLayer = a1->m_gameLayer;
if ( m_gameLayer )
{
GJBaseGameLayer::gameEventTriggered(m_gameLayer, OrbActivated, 0, a1->m_uniqueID);
v15 = a2->getType(a2);
v17 = GJBaseGameLayer::objectTypeToGameEvent(v16, v15);
v18 = a1->m_gameLayer;
if ( v18 )
GJBaseGameLayer::gameEventTriggered(v18, v17, 0, a1->m_uniqueID);
}
if ( v10 == CustomRing )
{
a1->m_touchedCustomRing = 1;
}
else if ( v12 == (GravityTogglePortal|NormalGravityPortal) )
{
a1->m_touchedGravityPortal = 1;
}
else
{
a1->m_touchedRing = 1;
}
cocos2d::CCArray::removeObject(a1->m_touchingRings, a2, 1);
if ( v13 )
a1->m_padRingRelated = 1;
if ( a2->getType(a2) == CustomRing )
{
v19 = &a1->m_gameLayer->TriggerEffectDelegate;
v20 = v19->__vftable;
m_controlID = a2->m_controlID;
v22 = a2->m_uniqueID;
if ( a2->m_isSpawnOnly )
{
*(_OWORD *)Block = 0;
v79 = 0;
((void (__fastcall *)(TriggerEffectDelegate *, _QWORD, _QWORD))v20->spawnGroup)(
v19,
(unsigned int)a2->m_targetGroupID,
0);
v23 = Block[0];
if ( Block[0] )
{
if ( (unsigned __int64)(4 * ((signed __int64)(v79 - (unsigned __int64)Block[0]) >> 2)) >= 0x1000 )
{
v23 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v23 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v23);
*(_OWORD *)Block = 0;
v79 = 0;
}
}
else
{
*(_OWORD *)v80 = 0;
v81 = 0;
v20->toggleGroupTriggered(
v19,
a2->m_targetGroupID,
a2->m_activateGroup,
(const std::vector *)v80,
v22,
m_controlID);
v24 = v80[0];
if ( v80[0] )
{
if ( (unsigned __int64)(4 * ((signed __int64)(v81 - (unsigned __int64)v80[0]) >> 2)) >= 0x1000 )
{
v24 = *((void **)v80[0] - 1);
if ( (unsigned __int64)((char *)v80[0] - (char *)v24 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v24);
*(_OWORD *)v80 = 0;
v81 = 0;
}
}
if ( a1->m_enable22Changes )
a1->m_stateRingJump = 0;
goto LABEL_183;
}
if ( a2->getType(a2) != (GravityTogglePortal|NormalGravityPortal) )
{
if ( a2->getType(a2) == (GravityTogglePortal|0x1) )
{
if ( !a1->m_isSideways )
goto LABEL_55;
m_isUpsideDown = a1->m_isUpsideDown;
if ( GameObject::isFacingLeft(a2) != m_isUpsideDown )
{
LABEL_56:
PlayerObject::flipGravity(a1, !m_isUpsideDown, 1);
goto LABEL_57;
}
if ( !a1->m_isSideways )
{
LABEL_55:
m_isUpsideDown = a1->m_isUpsideDown;
if ( GameObject::isFacingDown(a2) != m_isUpsideDown )
goto LABEL_56;
}
LABEL_57:
PlayerObject::spiderTestJump(a1, v26);
goto LABEL_183;
}
if ( a2->getType(a2) == DashRing )
{
v27 = a1->m_gameLayer;
if ( !v27 )
{
LABEL_76:
PlayerObject::startDashing(a1, (DashRingObject *)a2);
goto LABEL_183;
}
v28 = DashOrb;
LABEL_75:
GJBaseGameLayer::gameEventTriggered(v27, v28, 0, a1->m_uniqueID);
goto LABEL_76;
}
if ( a2->getType(a2) == GravityDashRing )
{
if ( a1->m_playEffects )
{
v29 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v83 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v83);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v29 = qword_1406C2ED8;
}
GJBaseGameLayer::flipGravity(*(GJBaseGameLayer **)(v29 + 520), a1, !a1->m_isUpsideDown, 1);
v30 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v84 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v84);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v30 = qword_1406C2ED8;
}
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v30 + 520) + 1280LL))(
*(_QWORD *)(v30 + 520),
a1->m_isUpsideDown);
}
else
{
v31 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v85 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v85);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v31 = qword_1406C2ED8;
}
v32 = *(GJBaseGameLayer **)(v31 + 528);
v33 = a1->m_isUpsideDown;
if ( v32 )
GJBaseGameLayer::flipGravity(v32, a1, !v33, 1);
else
PlayerObject::flipGravity(a1, !v33, 1);
}
v27 = a1->m_gameLayer;
if ( !v27 )
goto LABEL_76;
v28 = GravityDashOrb;
goto LABEL_75;
}
v34 = a2->getType(a2);
a1->m_stateRingJump = 0;
if ( v34 == DropRing )
{
v56 = a1->m_isUpsideDown;
v57 = -1;
v58 = -1;
if ( !v56 )
v58 = 1;
v59 = (float)v58 * -15.0;
if ( a1->m_isShip || a1->m_isBird || a1->m_isDart || a1->m_isSwing )
{
if ( !v56 )
v57 = 1;
v59 = (float)v57 * -14.0;
if ( a1->m_isBird )
v59 = v59 * 0.80000001;
}
else if ( !a1->m_isRobot && a1->m_isSpider )
{
v59 = v59 * 1.1;
}
PlayerObject::setYVelocity(a1, v59, v35);
if ( a1->m_isBall )
{
PlayerObject::runBallRotation2(a1);
}
else if ( !a1->m_isLocked && !a1->m_isDashing )
{
*(_WORD *)&a1->m_isRotating = 0;
a1->m_isBallRotating = 0;
a1->m_rotationSpeed = 0.0;
PlayerObject::runNormalRotation(a1, 0, 1.0);
}
PlayerObject::activateStreak(a1);
a1->m_hasEverHitRing = 1;
a1->m_isAccelerating = 1;
if ( a1->m_isBall || a1->m_isSwing )
a1->m_jumpBuffered = 0;
goto LABEL_183;
}
a1->m_maybeIsBoosted = 1;
a1->m_isOnGround2 = 0;
a1->m_isOnGround = 0;
v36 = 1.0;
if ( a1->m_vehicleSize != 1.0 )
v36 = 0.80000001;
m_yStart = a1->m_yStart;
if ( a2->getType(a2) == GravityRing )
{
m_yStart = m_yStart * 0.80000001;
}
else if ( a2->getType(a2) == GreenRing )
{
if ( a1->m_isShip )
m_yStart = m_yStart * 0.69999999;
}
else if ( a2->getType(a2) == PinkJumpRing )
{
if ( a1->m_isShip )
{
m_yStart = m_yStart * 0.37;
}
else if ( a1->m_isBird )
{
m_yStart = m_yStart * 0.41999999;
}
else if ( a1->m_isBall )
{
m_yStart = m_yStart * 0.76999998;
}
else
{
m_yStart = m_yStart * 0.72000003;
}
}
else if ( a2->getType(a2) == RedJumpRing )
{
if ( a1->m_isShip )
{
if ( a1->m_vehicleSize != 1.0 )
m_yStart = m_yStart * 1.4;
}
else if ( a1->m_isBird )
{
if ( a1->m_vehicleSize == 1.0 )
m_yStart = m_yStart * 1.02;
else
m_yStart = m_yStart * 1.36;
}
else if ( a1->m_isBall )
{
m_yStart = m_yStart * 1.34;
}
else if ( a1->m_isRobot )
{
m_yStart = m_yStart * 1.28;
}
else if ( a1->m_isSpider )
{
m_yStart = m_yStart * 1.34;
}
else
{
m_yStart = m_yStart * 1.38;
}
}
else if ( a1->m_isRobot )
{
m_yStart = m_yStart * 0.89999998;
}
if ( a2->getType(a2) == GreenRing )
{
if ( a1->m_playEffects )
{
v39 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v86 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v86);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v39 = qword_1406C2ED8;
}
GJBaseGameLayer::flipGravity(*(GJBaseGameLayer **)(v39 + 520), a1, !a1->m_isUpsideDown, 1);
if ( !m_hasNoEffects )
{
v40 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v87 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v87);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v40 = qword_1406C2ED8;
}
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v40 + 520) + 1280LL))(
*(_QWORD *)(v40 + 520),
a1->m_isUpsideDown);
}
}
else
{
v41 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v88 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v88);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v41 = qword_1406C2ED8;
}
v42 = *(GJBaseGameLayer **)(v41 + 528);
v43 = a1->m_isUpsideDown;
if ( v42 )
GJBaseGameLayer::flipGravity(v42, a1, !v43, 1);
else
PlayerObject::flipGravity(a1, !v43, 1);
}
}
v44 = -1;
if ( !a1->m_isUpsideDown )
v44 = 1;
PlayerObject::setYVelocity(a1, (float)((float)((float)v44 * m_yStart) * v36), v38);
if ( a1->m_isBall )
{
PlayerObject::runBallRotation2(a1);
}
else if ( !a1->m_isLocked && !a1->m_isDashing )
{
*(_WORD *)&a1->m_isRotating = 0;
a1->m_isBallRotating = 0;
a1->m_rotationSpeed = 0.0;
PlayerObject::runNormalRotation(a1, 0, 1.0);
}
if ( a1->m_isPlatformer && !a1->m_isRotating )
PlayerObject::animatePlatformerJump(a1, 1.0);
v45 = a1->getPosition_0(a1);
cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, v45);
PlayerObject::activateStreak(a1);
a1->m_hasEverHitRing = 1;
if ( !a1->m_isBall )
{
if ( a1->m_isSwing )
{
v46 = a1->m_yVelocity * 0.6000000238418579;
LABEL_138:
a1->m_yVelocity = v46;
a1->m_jumpBuffered = 0;
goto LABEL_139;
}
if ( !a1->m_isSpider )
{
LABEL_139:
if ( a2->getType(a2) == GravityRing )
{
if ( a1->m_playEffects )
{
v47 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v89 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v89);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v47 = qword_1406C2ED8;
}
GJBaseGameLayer::flipGravity(*(GJBaseGameLayer **)(v47 + 520), a1, !a1->m_isUpsideDown, 1);
if ( !m_hasNoEffects )
{
v48 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v90 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v90);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v48 = qword_1406C2ED8;
}
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v48 + 520) + 1280LL))(
*(_QWORD *)(v48 + 520),
a1->m_isUpsideDown);
}
}
else
{
v49 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v91 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v91);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v49 = qword_1406C2ED8;
}
v50 = *(GJBaseGameLayer **)(v49 + 528);
v51 = a1->m_isUpsideDown;
if ( v50 )
GJBaseGameLayer::flipGravity(v50, a1, !v51, 1);
else
PlayerObject::flipGravity(a1, !v51, 1);
}
}
if ( a1->m_isRobot )
{
v80[1] = (void *)29810;
v81 = 10;
v82 = 15;
v80[0] = (void *)0x6174735F706D756ALL;
CCAnimatedSprite::runAnimation((__int64)a1->m_robotSprite, (__int64)v80);
}
else if ( a1->m_isSpider )
{
m_spiderSprite = a1->m_spiderSprite;
cocos2d::CCNode::stopAllActions(m_spiderSprite->m_paSprite);
cocos2d::CCNode::stopActionByTag(m_spiderSprite, 1);
sub_14003CCE0((void **)&m_spiderSprite->m_activeTween, byte_140518980, 0);
m_animationManager = a1->m_spiderSprite->m_animationManager;
SpriteAnimationManager::overridePrio(m_animationManager);
m_paSprite = m_animationManager->m_sprite->m_paSprite;
if ( m_paSprite )
cocos2d::CCNode::stopAllActions(m_paSprite);
m_fbfSprite = m_animationManager->m_sprite->m_fbfSprite;
if ( m_fbfSprite )
cocos2d::CCNode::stopAllActions(m_fbfSprite);
*(_OWORD *)v80 = 0;
v81 = 4;
v82 = 15;
strcpy((char *)v80, "jump");
CCAnimatedSprite::tweenToAnimation((__int64)a1->m_spiderSprite, v80, 0.059999999);
}
if ( a2->getType(a2) == RedJumpRing )
a1->m_isAccelerating = 1;
goto LABEL_183;
}
}
v46 = a1->m_yVelocity * 0.699999988079071;
goto LABEL_138;
}
GJBaseGameLayer::teleportPlayer(a1->m_gameLayer, (TeleportPortalObject *)a2, a1);
a1->m_stateRingJump = 0;
LABEL_183:
if ( !a1->m_maybeReducedEffects )
{
v60 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v92 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v92);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v60 = qword_1406C2ED8;
}
if ( !*(_BYTE *)(v60 + 917)
&& !a2->hasBeenActivated(a2)
&& a1->m_playEffects
&& !m_hasNoEffects
&& a2->m_objectID != 3643 )
{
LOWORD(v95) = -14081;
b = 0;
v62 = -14081;
switch ( a2->getType(a2) )
{
case PinkJumpRing:
case GravityDashRing:
LOWORD(v95) = 255;
b = -1;
v62 = 255;
break;
case GravityRing:
LOWORD(v95) = -256;
b = -1;
v62 = -256;
break;
case GreenRing:
case DashRing:
LOWORD(v95) = -256;
v62 = -256;
break;
case DropRing:
v63 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v93 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v93);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v63 = qword_1406C2ED8;
}
ColorSprite = GJEffectManager::getColorSprite(*(GJEffectManager **)(*(_QWORD *)(v63 + 520) + 2384LL), 1007);
if ( ColorSprite )
{
v62 = *(_WORD *)&ColorSprite->m_copyColor.r;
b = ColorSprite->m_copyColor.b;
}
else
{
v62 = -1;
b = -1;
}
break;
case RedJumpRing:
LOWORD(v95) = 25855;
v62 = 25855;
break;
case CustomRing:
m_colorSprite = a2->m_colorSprite;
if ( m_colorSprite )
v66 = &m_colorSprite->cocos2d::CCRGBAProtocol;
else
v66 = &a2->cocos2d::CCRGBAProtocol;
v67 = (__int64)v66->getColor(v66);
v62 = *(_WORD *)v67;
b = *(_BYTE *)(v67 + 2);
break;
case GravityTogglePortal|0x1:
LOWORD(v95) = 13055;
b = -1;
v62 = 13055;
break;
default:
break;
}
v68 = 35.0;
if ( a2->getType(a2) == RedJumpRing )
v68 = 42.0;
v69 = CCCircleWave::create(v68, 5.0, 0.34999999, 1, 1);
*(_WORD *)&v69->m_color.r = v62;
v69->m_color.b = b;
v70 = v69->__vftable;
v71 = a2->getPosition_0(a2);
v70->setPosition_0(v69, v71);
m_target = v69->m_target;
if ( m_target )
cocos2d::CCObject::release(m_target);
v69->m_target = a2;
cocos2d::CCObject::retain(a2);
cocos2d::CCNode::unschedule(v69, CCCircleWave::updatePosition);
v73 = v69->__vftable;
v74 = (__int64)v69->m_target->getPosition_0(v69->m_target);
v73->setPosition_0(v69, (const cocos2d::CCPoint *)v74);
v75 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v94 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v94);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v75 = qword_1406C2ED8;
}
v76 = *(CCCircleWaveDelegate **)(v75 + 520);
v77 = v76 + 1780;
if ( !v76 )
v77 = nullptr;
v69->m_delegate = v77;
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(*(_QWORD *)(v75 + 520) + 14520LL), v69);
a1->m_parentLayer->addChild_0(a1->m_parentLayer, v69, 0);
}
}
if ( !a1->m_editorEnabled )
EffectGameObject::playTriggerEffect(a2);
a2->activatedByPlayer(a2, a1);
a2->powerOffObject(a2);
PlayerObject::incrementJumps(a1);
}