//
// GJBaseGameLayer::bumpPlayer from 0x4920cc to 0x4921a4 (216 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x492a6e
//
// 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; // r10
int v7; // r2
bool v8; // r3
GameObjectType v9; // r0
float BumpMod; // r0
_BOOL4 m_isReverse; // r3
float v12; // r8
GameObjectType v13; // r0
GameObjectType v14; // r0
GJGameEvent v15; // r0
_BYTE v16[8]; // [sp+Ch] [bp-14h] BYREF
cocos2d::CCPoint v17; // [sp+14h] [bp-Ch] BYREF
if ( GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )
{
v6 = a3->getPosition(a3);
cocos2d::CCPoint::CCPoint(&v17, 0.0, -10.0);
cocos2d::CCPoint::operator+(v16, v6, &v17);
cocos2d::CCPoint::operator=((PlayerObject *)&a2->m_lastPortalPos, COERCE_FLOAT(v16), 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;
v12 = BumpMod;
if ( m_isReverse )
PlayerObject::reversePlayer(a2, a3);
v13 = a3->getType(a3);
PlayerObject::bumpPlayer(a2, v12, v13, a3->m_hasNoEffects, a3);
v14 = a3->getType(a3);
v15 = GJBaseGameLayer::objectTypeToGameEvent(a1, v14);
GJBaseGameLayer::gameEventTriggered(a1, v15, 0, 0);
GJBaseGameLayer::gameEventTriggered(a1, PadActivated, 0, 0);
}
}