//
// EffectGameObject::playTriggerEffect from 0x876fac to 0x8771f0 (580 bytes)
//
// 2 xrefs:
// > PlayerObject::ringJump @ 0x76a2ac
// > ??> @ 0x60718
//
// 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:55:49 +0000
//
__int64 __fastcall EffectGameObject::playTriggerEffect(__int64 this)
{
int v1; // w1
__int64 v2; // x19
GameManager *v3; // x0
float v4; // s0
float v5; // s1
float v6; // s8
float v7; // s8
float v8; // s9
int v9; // w20
int v10; // w22
cocos2d::CCNode *v11; // x21
cocos2d::CCScaleTo *v12; // x0
cocos2d::CCEaseExponentialOut *v13; // x0
cocos2d::CCActionInterval *v14; // x1
cocos2d::CCSequence *v15; // x25
float v16; // s2
float v17; // s1
cocos2d::CCEaseInOut *v18; // x0
cocos2d::CCActionInterval *v19; // x1
cocos2d::CCFiniteTimeAction *v20; // x0
cocos2d::CCFiniteTimeAction *v21; // x23
cocos2d::CCAction *v22; // x1
GameManager *v23; // x0
__int64 v24; // x0
v1 = *(_DWORD *)(this + 1028);
if ( v1 != 3643 )
{
v2 = this;
if ( v1 != 1594 )
goto LABEL_3;
v23 = (GameManager *)GameManager::sharedState((GameManager *)this);
this = (unsigned __int8)GameManager::getGameVariable(v23, "0141");
if ( (_BYTE)this )
return this;
this = *(unsigned int *)(v2 + 1028);
if ( (_DWORD)this != 1594 )
{
LABEL_3:
v3 = (GameManager *)GameManager::sharedState((GameManager *)this);
this = (unsigned __int8)GameManager::getGameVariable(v3, "0140");
if ( (_BYTE)this )
return this;
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 168LL))(v2);
if ( *(_DWORD *)(v2 + 1028) == 1594 )
{
v5 = 2.1;
v6 = 1.1;
}
else
{
v5 = 1.7;
v6 = 0.7;
}
v7 = v6 + (float)(fabsf(v4) / *(float *)(v2 + 1152));
if ( v7 >= v5 )
v7 = v5;
v8 = v7;
if ( *(float *)(v2 + 64) < 0.0 )
v8 = -v7;
if ( *(float *)(v2 + 68) < 0.0 )
v7 = -v7;
v9 = 0;
this = 1;
*(_BYTE *)(v2 + 1460) = 1;
v10 = 1;
while ( 1 )
{
v11 = (cocos2d::CCNode *)v2;
if ( v9 == 2 )
{
v11 = *(cocos2d::CCNode **)(v2 + 752);
if ( !v11 )
break;
}
LABEL_14:
v12 = (cocos2d::CCScaleTo *)cocos2d::CCNode::stopAllActions(v11);
v13 = (cocos2d::CCEaseExponentialOut *)cocos2d::CCScaleTo::create(
v12,
0.15,
v8 * *(float *)(v2 + 1152),
v7 * *(float *)(v2 + 1156));
v15 = (cocos2d::CCSequence *)cocos2d::CCEaseExponentialOut::create(v13, v14);
v16 = 0.4;
if ( *(_BYTE *)(v2 + 969) )
v16 = 1.0;
v17 = v16;
if ( v8 < 0.0 )
v17 = -v16;
if ( v7 < 0.0 )
v16 = -v16;
v18 = (cocos2d::CCEaseInOut *)cocos2d::CCScaleTo::create(
(cocos2d::CCScaleTo *)*(unsigned __int8 *)(v2 + 969),
0.25,
v17 * *(float *)(v2 + 1152),
v16 * *(float *)(v2 + 1156));
v20 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v18, v19, 2.0);
v21 = v20;
if ( v9 )
{
v22 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v15, v20, 0);
}
else
{
v24 = cocos2d::CCCallFunc::create(v2, EffectGameObject::triggerEffectFinished, 0);
v22 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v15, v21, v24, 0);
}
this = cocos2d::CCNode::runAction(v11, v22);
if ( v10 == 3 )
return this;
while ( 1 )
{
++v9;
++v10;
if ( v9 != 1 )
break;
this = *(unsigned __int8 *)(v2 + 866);
if ( !*(_BYTE *)(v2 + 866) )
{
v11 = *(cocos2d::CCNode **)(v2 + 888);
if ( v11 )
goto LABEL_14;
}
}
}
}
return this;
}