//
// GJBaseGameLayer::gravBumpPlayer from 0x5a4b24 to 0x5a4c0a (230 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x5ba8c6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:53:19 +0000
//
_DWORD *__fastcall GJBaseGameLayer::gravBumpPlayer(int **this, PlayerObject *a2, EffectGameObject *a3)
{
int isFacingLeft; // r0
_DWORD *result; // r0
int v8; // r6
int v9; // r11
_BYTE v10[8]; // [sp+4h] [bp-18h] BYREF
_BYTE v11[8]; // [sp+Ch] [bp-10h] BYREF
if ( *((_BYTE *)a2 + 1963) )
isFacingLeft = GameObject::isFacingLeft(a3);
else
isFacingLeft = GameObject::isFacingDown(a3);
result = (_DWORD *)(isFacingLeft ^ 1);
v8 = (unsigned __int8)result;
if ( *((unsigned __int8 *)a2 + 1959) != (unsigned __int8)result )
{
result = (_DWORD *)GJBaseGameLayer::canBeActivatedByPlayer(this, a2, a3);
if ( result )
{
if ( *((_BYTE *)a3 + 1596) )
PlayerObject::reversePlayer(a2, a3);
if ( !*((_BYTE *)a3 + 908) )
((void (__fastcall *)(int **, int))(*this)[185])(this, v8);
v9 = (*(int (__fastcall **)(EffectGameObject *))(*(_DWORD *)a3 + 96))(a3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, -10.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
cocos2d::CCPoint::operator=((char *)a2 + 2024, v11);
(*(void (__fastcall **)(EffectGameObject *, PlayerObject *))(*(_DWORD *)a3 + 768))(a3, a2);
*((_DWORD *)a2 + 525) = a3;
PlayerObject::propellPlayer(a2, 0.8, *((unsigned __int8 *)a3 + 908), 10);
GJBaseGameLayer::flipGravity((unsigned __int8 *)this, a2, v8, 1);
*((_BYTE *)a2 + 1600) = 1;
return GJBaseGameLayer::gameEventTriggered(this, 48, 0, 0);
}
}
return result;
}