//
// GameObject::slopeYPos from 0x44e39c to 0x44e3cc (48 bytes)
//
// 2 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x43c65e
// > GameObject::slopeYPos @ 0x44e3f4
//
// 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:36 +0000
//
__int64 __fastcall GameObject::slopeYPos(GameObject *a1, cocos2d::CCRect *a2)
{
unsigned int v4; // r0
float v5; // r0
v4 = GameObject::slopeFloorTop(a1);
if ( *((_BYTE *)a1 + 944) )
{
if ( !v4 )
goto LABEL_5;
LABEL_6:
v5 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(a2));
return GameObject::slopeYPos(a1, v5);
}
if ( !v4 )
goto LABEL_6;
LABEL_5:
v5 = COERCE_FLOAT(cocos2d::CCRect::getMinX(a2));
return GameObject::slopeYPos(a1, v5);
}