//
// GJBaseGameLayer::gravBumpPlayer from 0x88b4f0 to 0x88b688 (408 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x88c4d0
// > ??> @ 0x8c6e8
//
// 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::gravBumpPlayer(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3)
{
_BOOL4 v6; // w22
const cocos2d::CCPoint *v7; // x26
float v8; // s0
float v9; // s1
cocos2d::CCPoint v10; // [xsp+68h] [xbp+68h] BYREF
__int64 v11; // [xsp+70h] [xbp+70h] BYREF
if ( a2->m_isSideways )
v6 = !GameObject::isFacingLeft(a3);
else
v6 = !GameObject::isFacingDown(a3);
if ( a2->m_isUpsideDown != v6 && GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )
{
if ( a3->m_isReverse )
{
PlayerObject::reversePlayer(a2, a3);
if ( a3->m_hasNoEffects )
goto LABEL_7;
}
else if ( a3->m_hasNoEffects )
{
LABEL_7:
v7 = a3->getPosition(a3);
cocos2d::CCPoint::CCPoint(&v10, 0.0, -10.0);
cocos2d::CCPoint::operator+(&v11, v7, &v10);
cocos2d::CCPoint::operator=(&a2->m_lastPortalPos, v8, v9);
a3->activatedByPlayer(a3, a2);
a2->m_lastActivatedPortal = a3;
PlayerObject::propellPlayer(a2, 0.8, a3->m_hasNoEffects, 10);
GJBaseGameLayer::flipGravity(a1, a2, v6, 1);
a2->m_padRingRelated = 1;
GJBaseGameLayer::gameEventTriggered(a1, GravityPad, 0, 0);
return;
}
a1->playGravityEffect(a1, v6);
goto LABEL_7;
}
}