//
// PlayerObject::bumpPlayer from 0x1404fdae0 to 0x1404fdc8b (427 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::bumpPlayer @ 0x14031f217
// > ??> @ 0x14092a578
//
// This function is hookable on this platform (idp: pc, 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:33:23 +0000
//
double __fastcall PlayerObject::bumpPlayer(__int64 a1, __int64 a2, unsigned int a3, unsigned __int8 a4, __int64 a5)
{
char isFacingLeft; // al
char v8; // cl
char isFacingDown; // al
__int64 v10; // rcx
double result; // xmm0_8
float v12; // xmm1_4
if ( *(_BYTE *)(a1 + 2936) || !*(_BYTE *)(a1 + 3000) )
*(_BYTE *)(a1 + 2468) = 1;
if ( a3 == 44 )
{
if ( a5 )
{
if ( *(_BYTE *)(a1 + 2507)
&& (isFacingLeft = GameObject::isFacingLeft(a5), v8 = *(_BYTE *)(a1 + 2503), isFacingLeft != v8)
|| !*(_BYTE *)(a1 + 2507)
&& (isFacingDown = GameObject::isFacingDown(a5), v8 = *(_BYTE *)(a1 + 2503), isFacingDown != v8) )
{
PlayerObject::flipGravity(a1, v8 == 0, 1);
}
}
PlayerObject::spiderTestJumpInternal(a1, 0);
v10 = *(_QWORD *)(a1 + 3112);
if ( v10 )
result = GJBaseGameLayer::gameEventTriggered(v10, 0x12u, 0, *(_DWORD *)(a1 + 924));
if ( !*(_BYTE *)(a1 + 2497)
&& !*(_BYTE *)(a1 + 2498)
&& !*(_BYTE *)(a1 + 2500)
&& !*(_BYTE *)(a1 + 2508)
&& !*(_BYTE *)(a1 + 2499)
&& !*(_BYTE *)(a1 + 2502) )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1);
}
PlayerObject::playBumpEffect(a1, 44);
}
else
{
PlayerObject::propellPlayer(a1, a2, a4, a3);
if ( *(_BYTE *)(a1 + 2936) && !*(_BYTE *)(a1 + 1840) )
{
if ( a3 == 34 )
v12 = 1.2;
else
v12 = 1.0;
PlayerObject::animatePlatformerJump(a1, v12);
}
*(_BYTE *)(a1 + 2394) = 0;
if ( a3 == 34 )
{
*(_BYTE *)(a1 + 2394) = 1;
return cocos2d::CCPoint::operator=(a1 + 2612, &unk_14090B428);
}
}
return result;
}