//
// GJBaseGameLayer::playSpeedParticle from 0x1002a104c to 0x1002a11d8 (396 bytes)
//
// 1 xrefs:
// > PlayerObject::updateTimeMod @ 0x1002b5a6c
//
// 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 11:02:12 +0000
//
__int64 __fastcall GJBaseGameLayer::playSpeedParticle(_BYTE *a1, float a2)
{
__int64 result; // x0
const char *v5; // x20
__int64 v6; // x0
__int64 v7; // x20
__int64 v8; // x0
float v9; // s0
__int64 v10; // x0
float v11; // s0
float v12; // [xsp+0h] [xbp-30h] BYREF
__int64 v13; // [xsp+8h] [xbp-28h] BYREF
result = GameManager::sharedState(a1);
if ( (*(_BYTE *)(result + 925) & 1) == 0 && (a1[12605] & 1) == 0 )
{
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";
}
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6, &v13);
v7 = cocos2d::CCParticleSystemQuad::create(v5, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1568LL))(v7, 2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1584LL))(v7, 1);
(*(void (__fastcall **)(_BYTE *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 100);
v8 = cocos2d::CCDirector::sharedDirector();
v9 = sub_100207EB0(v8);
sub_1000262BC(&v12, v9 + 10.0, *((float *)&v13 + 1) * 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 184LL))(v7, &v12);
v10 = cocos2d::CCDirector::sharedDirector();
v11 = sub_100207E88(v10);
sub_1000262BC(&v12, 10.0, (float)(v11 * 320.0) * 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 960LL))(v7, &v12);
return cocos2d::CCParticleSystem::resetSystem(v7);
}
return result;
}