//
// GJBaseGameLayer::bumpPlayer from 0x88b368 to 0x88b4f0 (392 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x88c4e4
// > ??> @ 0x95d30
//
// 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)
{
const cocos2d::CCPoint *v6; // x25
float v7; // s0
float v8; // s1
GameObjectType v9; // w0
float BumpMod; // s0
_BOOL4 m_isReverse; // w0
GameObjectType v12; // w0
GameObjectType v13; // w0
GJGameEvent v14; // w0
float v15; // [xsp+50h] [xbp+50h]
float v16; // [xsp+50h] [xbp+50h]
__int64 v17; // [xsp+68h] [xbp+68h] BYREF
cocos2d::CCPoint v18; // [xsp+70h] [xbp+70h] BYREF
if ( GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )
{
v6 = a3->getPosition(a3);
cocos2d::CCPoint::CCPoint(&v18, 0.0, -10.0);
cocos2d::CCPoint::operator+(&v17, v6, &v18);
cocos2d::CCPoint::operator=(&a2->m_lastPortalPos, v7, v8);
a3->activatedByPlayer(a3, a2);
v9 = a3->getType(a3);
BumpMod = GJBaseGameLayer::getBumpMod(a1, a2, v9);
m_isReverse = a3->m_isReverse;
a2->m_lastActivatedPortal = a3;
if ( m_isReverse )
{
v16 = BumpMod;
PlayerObject::reversePlayer(a2, a3);
BumpMod = v16;
}
v15 = BumpMod;
v12 = a3->getType(a3);
PlayerObject::bumpPlayer(a2, v15, v12, a3->m_hasNoEffects, a3);
v13 = a3->getType(a3);
v14 = GJBaseGameLayer::objectTypeToGameEvent(a1, v13);
GJBaseGameLayer::gameEventTriggered(a1, v14, 0, 0);
GJBaseGameLayer::gameEventTriggered(a1, PadActivated, 0, 0);
}
}