//
// EffectGameObject::playTriggerEffect from 0x100199760 to 0x100199b24 (964 bytes)
//
// 1 xrefs:
// > PlayerObject::ringJump @ 0x100401d68
//
// This function is hookable on this platform (idp: pc, 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:25:56 +0000
//
__int64 __fastcall EffectGameObject::playTriggerEffect(__int64 a1, const char *a2, __int64 a3)
{
__int64 result; // rax
__int64 v4; // rbx
__m128 v5; // xmm0
__int64 v6; // rax
__int64 v7; // rax
__m128 v8; // xmm0
unsigned int v9; // eax
__m128 v10; // xmm2
__m128 v11; // xmm4
__m128 v12; // xmm1
__m128 v13; // xmm3
__m128 v14; // xmm2
__m128 v15; // xmm0
__int64 v16; // rax
int v17; // r14d
__m128 v18; // xmm0
__m128 v19; // xmm3
__m128 v20; // xmm1
__m128 v21; // xmm2
__int64 v22; // rax
int v23; // r15d
int v24; // eax
int v25; // r8d
int v26; // r9d
__int64 v27; // rsi
__int64 v28; // r14
__int64 v29; // rax
int v30; // r15d
__m128 v31; // xmm0
__m128 v32; // xmm4
__m128 v33; // xmm1
__m128 v34; // xmm2
__int64 v35; // rax
int v36; // eax
int v37; // ecx
int v38; // r8d
int v39; // r9d
__int64 v40; // rsi
__int64 v41; // r14
__int64 v42; // rax
int v43; // r15d
__m128 v44; // xmm0
__m128 v45; // xmm1
__m128 v46; // xmm2
__int64 v47; // rax
int v48; // eax
int v49; // ecx
int v50; // r8d
int v51; // r9d
__int64 v52; // rax
__m128 v53; // [rsp+0h] [rbp-40h]
__m128 v54; // [rsp+10h] [rbp-30h]
result = *(unsigned int *)(a1 + 1028);
if ( (_DWORD)result != 3643 )
{
v4 = a1;
if ( (_DWORD)result == 1594 )
{
v5 = GameManager::sharedState(a1, a2, a3);
a2 = "0141";
a1 = v6;
result = GameManager::getGameVariable(v6, "0141");
if ( (_BYTE)result )
return result;
if ( *(_DWORD *)(v4 + 1028) == 1594 )
goto LABEL_6;
}
v5 = GameManager::sharedState(a1, a2, a3);
result = GameManager::getGameVariable(v7, "0140");
if ( !(_BYTE)result )
{
LABEL_6:
*(double *)v5.i64 = (*(double (__fastcall **)(__int64, double))(*(_QWORD *)v4 + 168LL))(v4, *(double *)v5.i64);
v8 = _mm_and_ps(v5, (__m128)xmmword_100A038A0);
v9 = 4 * (*(_DWORD *)(v4 + 1028) == 1594);
v8.f32[0] = fminf(
(float)(v8.f32[0] / *(float *)(v4 + 1152)) + *(float *)((char *)&unk_100A054B0 + v9),
*(float *)((char *)&unk_100A054B8 + v9));
v10.i32[0] = 0;
v11 = _mm_cmplt_ss((__m128)*(unsigned int *)(v4 + 64), v10);
v12 = _mm_andnot_ps(v11, v8);
v13 = _mm_cmplt_ss((__m128)*(unsigned int *)(v4 + 68), v10);
v14 = _mm_andnot_ps(v13, v8);
v15 = _mm_xor_ps(v8, (__m128)xmmword_100A035F0);
v53 = _mm_or_ps(_mm_and_ps(v11, v15), v12);
v54 = _mm_or_ps(_mm_and_ps(v13, v15), v14);
*(_BYTE *)(v4 + 1460) = 1;
cocos2d::CCNode::stopAllActions(v4);
v16 = cocos2d::CCScaleTo::create(
0.15000001,
*(float *)(v4 + 1152) * v53.f32[0],
*(float *)(v4 + 1156) * v54.f32[0]);
v17 = cocos2d::CCEaseExponentialOut::create(v16);
if ( *(_BYTE *)(v4 + 969) )
v18 = (__m128)0x3F800000u;
else
v18 = (__m128)0x3ECCCCCDu;
v19.i32[0] = 0;
v20 = _mm_cmplt_ss(v53, v19);
v21 = _mm_cmplt_ss(v54, v19);
v22 = cocos2d::CCScaleTo::create(
0.25,
COERCE_FLOAT(v20.i32[0] & (v18.i32[0] | 0x80000000) | _mm_andnot_ps(v20, v18).u32[0])
* *(float *)(v4 + 1152),
COERCE_FLOAT(v21.i32[0] & (v18.i32[0] | 0x80000000) | _mm_andnot_ps(v21, v18).u32[0])
* *(float *)(v4 + 1156));
v23 = cocos2d::CCEaseInOut::create(v22, 2.0);
v24 = cocos2d::CCCallFunc::create(v4, EffectGameObject::triggerEffectFinished, 0);
v27 = sub_10039EB60(v17, v23, v24, 0, v25, v26);
result = cocos2d::CCNode::runAction(v4, v27);
if ( !*(_BYTE *)(v4 + 866) )
{
v28 = *(_QWORD *)(v4 + 888);
if ( v28 )
{
cocos2d::CCNode::stopAllActions(*(_QWORD *)(v4 + 888));
v29 = cocos2d::CCScaleTo::create(
0.15000001,
*(float *)(v4 + 1152) * v53.f32[0],
*(float *)(v4 + 1156) * v54.f32[0]);
v30 = cocos2d::CCEaseExponentialOut::create(v29);
if ( *(_BYTE *)(v4 + 969) )
v31 = (__m128)0x3F800000u;
else
v31 = (__m128)0x3ECCCCCDu;
v32.i32[0] = 0;
v33 = _mm_cmplt_ss(v53, v32);
v34 = _mm_cmplt_ss(v54, v32);
v35 = cocos2d::CCScaleTo::create(
0.25,
COERCE_FLOAT(v33.i32[0] & (v31.i32[0] | 0x80000000) | _mm_andnot_ps(v33, v31).u32[0])
* *(float *)(v4 + 1152),
COERCE_FLOAT(v34.i32[0] & (v31.i32[0] | 0x80000000) | _mm_andnot_ps(v34, v31).u32[0])
* *(float *)(v4 + 1156));
v36 = cocos2d::CCEaseInOut::create(v35, 2.0);
v40 = sub_10039EB60(v30, v36, 0, v37, v38, v39);
result = cocos2d::CCNode::runAction(v28, v40);
}
}
v41 = *(_QWORD *)(v4 + 752);
if ( v41 )
{
cocos2d::CCNode::stopAllActions(*(_QWORD *)(v4 + 752));
v42 = cocos2d::CCScaleTo::create(
0.15000001,
*(float *)(v4 + 1152) * v53.f32[0],
*(float *)(v4 + 1156) * v54.f32[0]);
v43 = cocos2d::CCEaseExponentialOut::create(v42);
if ( *(_BYTE *)(v4 + 969) )
v44 = (__m128)0x3F800000u;
else
v44 = (__m128)0x3ECCCCCDu;
v45 = _mm_cmplt_ss(v53, (__m128)0LL);
v46 = _mm_cmplt_ss(v54, (__m128)0LL);
v47 = cocos2d::CCScaleTo::create(
0.25,
COERCE_FLOAT(v45.i32[0] & (v44.i32[0] | 0x80000000) | _mm_andnot_ps(v45, v44).u32[0])
* *(float *)(v4 + 1152),
COERCE_FLOAT(v46.i32[0] & (v44.i32[0] | 0x80000000) | _mm_andnot_ps(v46, v44).u32[0])
* *(float *)(v4 + 1156));
v48 = cocos2d::CCEaseInOut::create(v47, 2.0);
v52 = sub_10039EB60(v43, v48, 0, v49, v50, v51);
return cocos2d::CCNode::runAction(v41, v52);
}
}
}
return result;
}