//
// GJBaseGameLayer::playSpeedParticle from 0x596f20 to 0x597064 (324 bytes)
//
// 1 xrefs:
// > PlayerObject::updateTimeMod @ 0x43f718
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:09 +0000
//
cocos2d::CCDirector *__fastcall GJBaseGameLayer::playSpeedParticle(GJBaseGameLayer *this, float a2)
{
cocos2d::CCDirector *result; // r0
char *v5; // r4
bool v6; // r2
cocos2d::CCParticleSystem *v7; // r4
cocos2d::CCDirector *v8; // r0
int (__fastcall *v9)(cocos2d::CCParticleSystem *, _BYTE *); // r7
cocos2d::CCDirector *v10; // r0
float v11; // r0
cocos2d::CCDirector *v12; // r0
void (__fastcall *v13)(cocos2d::CCParticleSystem *, _BYTE *); // r7
cocos2d::CCDirector *v14; // r0
float v15; // r0
_BYTE v16[4]; // [sp+4h] [bp-18h] BYREF
float v17; // [sp+8h] [bp-14h]
_BYTE v18[8]; // [sp+Ch] [bp-10h] BYREF
result = (cocos2d::CCDirector *)GameManager::sharedState(this);
if ( !*((_BYTE *)result + 725) && !*((_BYTE *)this + 10829) )
{
if ( a2 == 0.7 )
{
v5 = "speedEffect_slow.plist";
}
else if ( a2 == 1.1 )
{
v5 = "speedEffect_fast.plist";
}
else if ( a2 == 1.3 )
{
v5 = "speedEffect_vfast.plist";
}
else if ( a2 == 1.6 )
{
v5 = "speedEffect_vvfast.plist";
}
else
{
v5 = "speedEffect_normal.plist";
}
cocos2d::CCDirector::sharedDirector(result);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v16);
v7 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)v5,
nullptr,
v6);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v7 + 784))(v7, 2);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v7 + 792))(v7, 1);
v8 = (cocos2d::CCDirector *)(*(int (__fastcall **)(GJBaseGameLayer *, cocos2d::CCParticleSystem *, int))(*(_DWORD *)this + 232))(
this,
v7,
100);
v9 = *(int (__fastcall **)(cocos2d::CCParticleSystem *, _BYTE *))(*(_DWORD *)v7 + 92);
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
v11 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v10));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v11 + 10.0, v17 * 0.5);
v12 = (cocos2d::CCDirector *)v9(v7, v18);
v13 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _BYTE *))(*(_DWORD *)v7 + 480);
v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12);
v15 = COERCE_FLOAT(cocos2d::CCDirector::getScreenScaleFactorH(v14));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 10.0, (float)(v15 * 320.0) * 0.5);
v13(v7, v18);
return (cocos2d::CCDirector *)cocos2d::CCParticleSystem::resetSystem(v7);
}
return result;
}