//
// PlayerObject::bumpPlayer from 0x1002c97d4 to 0x1002c9904 (304 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::bumpPlayer @ 0x1002848b4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:02:34 +0000
//
double __fastcall PlayerObject::bumpPlayer(__int64 a1, __int64 a2, __int64 a3, __int64 a4, float a5)
{
int v6; // w20
int isFacingLeft; // w0
int v9; // w8
int isFacingDown; // w0
double result; // d0
v6 = a2;
if ( (*(_BYTE *)(a1 + 2832) & 1) != 0 || (*(_BYTE *)(a1 + 2904) & 1) == 0 )
*(_BYTE *)(a1 + 2388) = 1;
if ( (_DWORD)a2 == 44 )
{
if ( a4 )
{
if ( *(_BYTE *)(a1 + 2427) != 1 )
goto LABEL_9;
isFacingLeft = GameObject::isFacingLeft(a4);
v9 = *(unsigned __int8 *)(a1 + 2423);
if ( v9 != isFacingLeft )
{
LABEL_10:
PlayerObject::flipGravity(a1, v9 ^ 1, 1);
goto LABEL_11;
}
if ( (*(_BYTE *)(a1 + 2427) & 1) == 0 )
{
LABEL_9:
isFacingDown = GameObject::isFacingDown(a4);
v9 = *(unsigned __int8 *)(a1 + 2423);
if ( v9 != isFacingDown )
goto LABEL_10;
}
}
LABEL_11:
PlayerObject::spiderTestJump(a1);
PlayerObject::playBumpEffect(a1, 44);
return result;
}
PlayerObject::propellPlayer(a1, a3, a2, a5);
if ( *(_BYTE *)(a1 + 2832) == 1 && (*(_BYTE *)(a1 + 1784) & 1) == 0 )
{
LODWORD(result) = 1067030938;
if ( v6 != 34 )
*(float *)&result = 1.0;
result = PlayerObject::animatePlatformerJump(a1, result);
}
*(_BYTE *)(a1 + 2314) = 0;
if ( v6 == 34 )
{
*(_BYTE *)(a1 + 2314) = 1;
return sub_10002630C((_QWORD *)(a1 + 2532), &dbl_1009F5AA0);
}
return result;
}