//
// EffectGameObject::playTriggerEffect from 0x75bdf4 to 0x75c038 (580 bytes)
//
// 2 xrefs:
// > PlayerObject::ringJump @ 0x63bebc
// > ??> @ 0x439e0
//
// 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
//
void EffectGameObject::playTriggerEffect(EffectGameObject *a1)
{
int m_objectID; // w1
GameManager *v3; // x0
float v4; // s0
float v5; // s1
float v6; // s8
float v7; // s8
float v8; // s9
int v9; // w20
int v10; // w22
EffectGameObject *m_glowSprite; // x21
cocos2d::CCScaleTo *v12; // x0
cocos2d::CCEaseExponentialOut *v13; // x25
float v14; // s2
float v15; // s1
cocos2d::CCScaleTo *v16; // x0
cocos2d::CCEaseInOut *v17; // x0
cocos2d::CCFiniteTimeAction *v18; // x23
cocos2d::CCAction *v19; // x1
GameManager *v20; // x0
__int64 v21; // x0
m_objectID = a1->m_objectID;
if ( m_objectID != 3643 )
{
if ( m_objectID != 1594 )
goto LABEL_3;
v20 = GameManager::sharedState();
if ( GameManager::getGameVariable(v20, "0141") )
return;
if ( a1->m_objectID != 1594 )
{
LABEL_3:
v3 = GameManager::sharedState();
if ( GameManager::getGameVariable(v3, "0140") )
return;
}
a1->getScale(a1);
if ( a1->m_objectID == 1594 )
{
v5 = 2.1;
v6 = 1.1;
}
else
{
v5 = 1.7;
v6 = 0.7;
}
v7 = v6 + (float)(fabsf(v4) / a1->m_scaleX);
if ( v7 >= v5 )
v7 = v5;
v8 = v7;
if ( a1->m_fScaleX < 0.0 )
v8 = -v7;
v9 = 0;
a1->m_triggerEffectPlaying = 1;
v10 = 1;
while ( 1 )
{
m_glowSprite = a1;
if ( v9 == 2 )
{
m_glowSprite = (EffectGameObject *)a1->m_glowSprite;
if ( !m_glowSprite )
break;
}
LABEL_12:
cocos2d::CCNode::stopAllActions(m_glowSprite);
v12 = cocos2d::CCScaleTo::create(0.15, v8 * a1->m_scaleX);
v13 = cocos2d::CCEaseExponentialOut::create(v12);
v14 = 0.4;
if ( a1->m_hasNoAudioScale )
v14 = 1.0;
v15 = v14;
if ( v8 < 0.0 )
v15 = -v14;
v16 = cocos2d::CCScaleTo::create(0.25, v15 * a1->m_scaleX);
v17 = cocos2d::CCEaseInOut::create(v16, 2.0);
v18 = v17;
if ( v9 )
{
v19 = (cocos2d::CCAction *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v13, v17, 0);
}
else
{
v21 = cocos2d::CCCallFunc::create(a1, EffectGameObject::triggerEffectFinished, 0);
v19 = (cocos2d::CCAction *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v13, v18, v21, 0);
}
cocos2d::CCNode::runAction(m_glowSprite, v19);
if ( v10 == 3 )
return;
while ( 1 )
{
++v9;
++v10;
if ( v9 != 1 )
break;
if ( !a1->m_colorSpriteLocked )
{
m_glowSprite = (EffectGameObject *)a1->m_colorSprite;
if ( m_glowSprite )
goto LABEL_12;
}
}
}
}
}