//
// PlayerObject::updateCollideTop from 0x435700 to 0x435754 (84 bytes)
//
// 5 xrefs:
// > PlayerObject::updateCollide @ 0x4362a4
// > PlayerObject::collidedWithObjectInternal @ 0x43cdb4
// > PlayerObject::collidedWithObjectInternal @ 0x43cf14
// > PlayerObject::collidedWithObjectInternal @ 0x43d454
// > PlayerObject::collidedWithObjectInternal @ 0x43d54c
//
// 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:48:18 +0000
//
cocos2d::CCDictionary *__fastcall PlayerObject::updateCollideTop(cocos2d::CCDictionary *this, float a2, GameObject *a3)
{
double *v3; // r3
double v4; // d6
double v5; // d7
if ( a3 )
a3 = *((GameObject **)a3 + 195);
v3 = (double *)((char *)this + 1856);
v4 = a2;
v5 = *((double *)this + 232);
if ( v5 == 0.0 )
{
*v3 = v4;
}
else
{
if ( *((_BYTE *)this + 1959) )
{
if ( v5 < v4 )
v5 = a2;
}
else if ( v5 > v4 )
{
v5 = a2;
}
*v3 = v5;
}
if ( a3 )
return PlayerObject::storeCollision(this, 0, (int)a3);
return this;
}