//
// GJBaseGameLayer::gravBumpPlayer from 0x1001e90c8 to 0x1001e9218 (336 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8728
//
// 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 __fastcall GJBaseGameLayer::gravBumpPlayer(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3)
{
_BOOL4 isFacingLeft; // w0
_BOOL4 v7; // w22
float32x2_t *v8; // x23
__n128 v9; // q0
__n128 v10; // q1
double v11; // d0
float32x2_t v12; // [xsp+0h] [xbp-40h] BYREF
float32x2_t v13; // [xsp+8h] [xbp-38h] BYREF
if ( a2->m_isSideways )
isFacingLeft = GameObject::isFacingLeft(a3);
else
isFacingLeft = GameObject::isFacingDown(a3);
v7 = isFacingLeft;
if ( isFacingLeft == a2->m_isUpsideDown && GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )
{
if ( a3->m_isReverse )
PlayerObject::reversePlayer(a2, a3);
if ( !a3->m_hasNoEffects )
((void (__fastcall *)(GJBaseGameLayer *, bool))a1->playGravityEffect)(a1, !v7);
v8 = (float32x2_t *)((__int64 (__fastcall *)(EffectGameObject *))a3->getPosition)(a3);
v9.n128_u32[0] = 0;
v10.n128_u32[0] = -10.0;
sub_100022980(v9, v10, &v12);
sub_1000229DC(v8, &v12, &v13);
v11 = sub_1000229D0(&a2->m_lastPortalPos, (double *)&v13);
((void (__fastcall *)(EffectGameObject *, PlayerObject *, double))a3->activatedByPlayer)(a3, a2, v11);
a2->m_lastActivatedPortal = a3;
PlayerObject::propellPlayer(a2, 0.8, a3->m_hasNoEffects, 10);
GJBaseGameLayer::flipGravity(a1, a2, !v7, 1);
a2->m_padRingRelated = 1;
GJBaseGameLayer::gameEventTriggered(a1, GravityPad, 0, 0);
}
}