//
// GJBaseGameLayer::playSpeedParticle from 0x9a9e68 to 0x9aa018 (432 bytes)
//
// 2 xrefs:
// > PlayerObject::updateTimeMod @ 0x75d2bc
// > ??> @ 0x7b6e8
//
// 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:58:11 +0000
//
__int64 __fastcall GJBaseGameLayer::playSpeedParticle(GJBaseGameLayer *this, float a2)
{
char *v4; // x20
cocos2d::CCDirector *v5; // x0
bool v6; // w2
cocos2d::CCDirector **v7; // x20
void (__fastcall *v8)(cocos2d::CCDirector **, _BYTE *); // x22
cocos2d::CCDirector *v9; // x0
float v10; // s0
void (__fastcall *v11)(cocos2d::CCDirector **, _BYTE *); // x22
cocos2d::CCDirector *v12; // x0
float v13; // s0
__int64 v15; // [xsp+58h] [xbp+58h] BYREF
_BYTE v16[8]; // [xsp+60h] [xbp+60h] BYREF
if ( !*(_BYTE *)(GameManager::sharedState(_stack_chk_guard) + 925) && !*((_BYTE *)this + 12605) )
{
if ( a2 == 0.7 )
{
v4 = "speedEffect_slow.plist";
}
else if ( a2 == 1.1 )
{
v4 = "speedEffect_fast.plist";
}
else if ( a2 == 1.3 )
{
v4 = "speedEffect_vfast.plist";
}
else if ( a2 == 1.6 )
{
v4 = "speedEffect_vvfast.plist";
}
else
{
v4 = "speedEffect_normal.plist";
}
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)*((unsigned __int8 *)this
+ 12605));
cocos2d::CCDirector::getWinSize(&v15, v5);
v7 = (cocos2d::CCDirector **)cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)v4, nullptr, v6);
(*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v7 + 196))(v7, 2);
(*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v7 + 198))(v7, 1);
(*(void (__fastcall **)(GJBaseGameLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(
this,
v7,
100);
v8 = *((void (__fastcall **)(cocos2d::CCDirector **, _BYTE *))*v7 + 23);
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v7);
cocos2d::CCDirector::getScreenRight(v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v10 + 10.0, *((float *)&v15 + 1) * 0.5);
v8(v7, v16);
v11 = *((void (__fastcall **)(cocos2d::CCDirector **, _BYTE *))*v7 + 120);
v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v7);
cocos2d::CCDirector::getScreenScaleFactorH(v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 10.0, (float)(v13 * 320.0) * 0.5);
v11(v7, v16);
cocos2d::CCParticleSystem::resetSystem((cocos2d::CCParticleSystem *)v7);
}
return _stack_chk_guard;
}