//
// GJBaseGameLayer::bumpPlayer from 0x1402179d0 to 0x140217bb5 (485 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x1402158ef
// > ??> @ 0x14067f548
// > ??> @ 0x14067f55c
// > ??> @ 0x14067f56c
// > ??> @ 0x1406cd1b8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::bumpPlayer(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3)
{
float v3; // xmm0_4
const cocos2d::CCPoint *v7; // rax
GameObjectType v8; // eax
float v9; // xmm6_4
GameObjectType v10; // eax
GameObjectType v11; // eax
GJBaseGameLayer *v12; // rcx
GJGameEvent v13; // eax
char v14; // [rsp+78h] [rbp+20h] BYREF
if ( GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )
{
cocos2d::CCPoint::CCPoint(v3, 0.0);
v7 = a3->getPosition_0(a3);
cocos2d::CCPoint::operator+(v7, &v14);
cocos2d::CCPoint::operator=(&a2->m_lastPortalPos, &v14);
a3->activatedByPlayer(a3, a2);
v8 = a3->getType(a3);
v9 = 1.0;
if ( v8 == PinkJumpPad )
{
if ( a2->m_isShip )
{
v9 = 0.34999999;
}
else if ( a2->m_isBird )
{
v9 = 0.40000001;
}
else if ( a2->m_isBall )
{
v9 = 0.69999999;
}
else if ( a2->m_isSpider )
{
v9 = 0.69999999;
}
else
{
v9 = 0.64999998;
}
}
else if ( v8 == RedJumpPad )
{
if ( a2->m_isShip )
{
if ( a2->m_vehicleSize >= 1.0 )
v9 = 0.63;
else
v9 = 0.94999999;
}
else if ( a2->m_isBird )
{
if ( a2->m_vehicleSize >= 1.0 )
v9 = 0.60000002;
else
v9 = 0.98000002;
}
else
{
v9 = 1.25;
}
}
a2->m_lastActivatedPortal = a3;
if ( a3->m_isReverse )
PlayerObject::reversePlayer(a2, a3);
v10 = a3->getType(a3);
PlayerObject::bumpPlayer(a2, v9, v10, a3->m_hasNoEffects, a3);
v11 = a3->getType(a3);
v13 = GJBaseGameLayer::objectTypeToGameEvent(v12, v11);
GJBaseGameLayer::gameEventTriggered(a1, v13, 0, 0);
GJBaseGameLayer::gameEventTriggered(a1, PadActivated, 0, 0);
}
}