//
// PlayerObject::updateCollideTop from 0x74f254 to 0x74f2b4 (96 bytes)
//
// 8 xrefs:
// > PlayerObject::updateCollide @ 0x750224
// > PlayerObject::collidedWithObjectInternal @ 0x75bfec
// > PlayerObject::collidedWithObjectInternal @ 0x75c07c
// > PlayerObject::collidedWithObjectInternal @ 0x75c0a4
// > PlayerObject::collidedWithObjectInternal @ 0x75c4ec
// > PlayerObject::collidedWithObjectInternal @ 0x75c500
// > PlayerObject::collidedWithObjectInternal @ 0x75c594
// > ??> @ 0xb9350
//
// 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 12:52:54 +0000
//
__int64 __fastcall PlayerObject::updateCollideTop(__int64 this, float a2, GameObject *a3)
{
int v3; // w2
double v4; // d1
double v5; // d0
if ( a3 )
v3 = *((_DWORD *)a3 + 229);
else
v3 = 0;
v4 = *(double *)(this + 2320);
if ( v4 == 0.0 )
{
*(double *)(this + 2320) = a2;
if ( !v3 )
return this;
return PlayerObject::storeCollision(this, 0, v3);
}
v5 = a2;
if ( *(_BYTE *)(this + 2423) )
{
if ( v4 < v5 )
v4 = v5;
}
else if ( v4 > v5 )
{
v4 = v5;
}
*(double *)(this + 2320) = v4;
if ( v3 )
return PlayerObject::storeCollision(this, 0, v3);
return this;
}