//
// PlayerObject::playBumpEffect from 0x1002c9904 to 0x1002c9a28 (292 bytes)
//
// 2 xrefs:
// > PlayerObject::bumpPlayer @ 0x1002c9880
// > PlayerObject::propellPlayer @ 0x1002c9b0c
//
// 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:34 +0000
//
__int64 __fastcall PlayerObject::playBumpEffect(__int64 a1, int a2)
{
__int64 result; // x0
__int64 v5; // x0
_QWORD *v6; // x20
int v7; // w8
__n128 v8; // q0
__int64 v9; // x1
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x8
__int64 v13; // x8
__int64 v14; // x0
result = GameManager::sharedState(a1);
if ( (*(_BYTE *)(result + 925) & 1) == 0 && *(_BYTE *)(a1 + 1972) == 1 )
{
v5 = CCCircleWave::create_1(0);
v6 = (_QWORD *)v5;
if ( a2 == 10 )
v7 = 16776960;
else
v7 = 51455;
if ( a2 == 44 )
v7 = 16724735;
if ( a2 == 9 )
v7 = 16711935;
*(_WORD *)(v5 + 340) = v7;
*(_BYTE *)(v5 + 342) = BYTE2(v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 184LL))(v5, a1 + 2488);
v9 = *(_QWORD *)(a1 + 2592);
if ( v9 )
{
v10 = CCCircleWave::followObject(v6, v9, 1);
v11 = GameManager::sharedState(v10);
v12 = *(_QWORD *)(v11 + 544);
if ( v12 )
v13 = v12 + 13992;
else
v13 = 0;
v6[46] = v13;
v14 = GameManager::sharedState(v11);
v8.n128_f64[0] = PlayLayer::addCircle(*(_QWORD *)(v14 + 544), (__int64)v6);
}
return (*(__int64 (__fastcall **)(_QWORD, _QWORD *, _QWORD, __n128))(**(_QWORD **)(a1 + 3024) + 464LL))(
*(_QWORD *)(a1 + 3024),
v6,
0,
v8);
}
return result;
}