//
// PlayerObject::didHitHead from 0x1404f1e30 to 0x1404f1ea5 (117 bytes)
//
// 4 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x1404f0ac3
// > PlayerObject::collidedWithObjectInternal @ 0x1404f10bb
// > PlayerObject::collidedWithObjectInternal @ 0x1404f1d8e
// > ??> @ 0x140929f18
//
// 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:18 +0000
//
void __fastcall PlayerObject::didHitHead(__int64 a1, __int64 a2)
{
int v3; // eax
bool v4; // cc
if ( *(int *)(a1 + 2952) > 0 )
{
LOBYTE(a2) = *(_BYTE *)(a1 + 2503) == 0;
PlayerObject::flipGravity(a1, a2);
v3 = 2;
if ( !*(_BYTE *)(a1 + 2503) )
v3 = -2;
PlayerObject::setYVelocity(a1, (double)v3);
v4 = *(_DWORD *)(a1 + 2940) <= 0;
*(_BYTE *)(a1 + 2596) = 1;
*(_BYTE *)(a1 + 2580) = 0;
if ( !v4 )
{
*(_BYTE *)(a1 + 2505) = 0;
*(_WORD *)(a1 + 2445) = 0;
}
}
}