//
// PlayerObject::playBumpEffect from 0x4389a0 to 0x438a7a (218 bytes)
//
// 2 xrefs:
// > PlayerObject::propellPlayer @ 0x43aa56
// > PlayerObject::bumpPlayer @ 0x4466ca
//
// 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:48:20 +0000
//
int __fastcall PlayerObject::playBumpEffect(cocos2d::CCNode **this, int a2, GameObject *a3)
{
int result; // r0
float v6; // r0
CCCircleWave *v7; // r0
CCCircleWave *v8; // r4
char v9; // r3
char v10; // r2
char v11; // r1
int v12; // r3
cocos2d::CCNode *v13; // r1
GameManager *v14; // r0
GameManager *v15; // r0
int v16; // r3
int v17; // r0
bool savedregs; // [sp+0h] [bp+0h]
result = GameManager::sharedState((GameManager *)this);
if ( !*(_BYTE *)(result + 725) && *((_BYTE *)this + 1604) )
{
if ( *((float *)this + 502) < 1.0 )
{
v6 = 10.0;
}
else if ( a2 == 34 )
{
v6 = 12.0;
}
else
{
v6 = 10.0;
}
v7 = CCCircleWave::create(
(CCCircleWave *)LODWORD(v6),
1109393408,
(cocos2d::CCActionTween *)0x3E800000,
0.0,
savedregs);
v8 = v7;
if ( a2 == 10 )
{
v9 = -1;
v11 = 0;
v10 = -1;
}
else
{
if ( a2 == 44 )
{
v9 = -1;
v10 = 50;
}
else if ( a2 == 9 )
{
v9 = -1;
v10 = 0;
}
else
{
v9 = 0;
v10 = -56;
}
v11 = -1;
}
*((_BYTE *)v7 + 282) = v9;
v12 = *(_DWORD *)v7;
*((_BYTE *)v7 + 280) = v11;
*((_BYTE *)v7 + 281) = v10;
(*(void (__fastcall **)(CCCircleWave *, char *))(v12 + 92))(v7, (char *)this + 2024);
v13 = *(this + 525);
if ( v13 )
{
v14 = (GameManager *)CCCircleWave::followObject(v8, v13, 1);
v15 = (GameManager *)GameManager::sharedState(v14);
v16 = *((_DWORD *)v15 + 101);
if ( v16 )
v16 += 11688;
*((_DWORD *)v8 + 77) = v16;
v17 = GameManager::sharedState(v15);
PlayLayer::addCircle(*(cocos2d::CCArray ***)(v17 + 404), v8);
}
return (*(int (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(*(_DWORD *)*(this + 611) + 232))(
*(this + 611),
v8,
0);
}
return result;
}