//
// GameObject::slopeYPos_1 from 0x100261720 to 0x100261784 (100 bytes)
//
// 1 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x100221df8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
double __fastcall GameObject::slopeYPos_1(GameObject *a1, cocos2d::CCRect a2)
{
float *v2; // x1
unsigned int m_slopeDirection; // w8
bool v5; // cc
int v6; // w8
float v8; // s0
m_slopeDirection = a1->m_slopeDirection;
v5 = m_slopeDirection > 6;
v6 = (1 << m_slopeDirection) & 0x6A;
if ( v5 || v6 == 0 )
{
if ( !a1->m_slopeUphill )
goto LABEL_6;
LABEL_8:
v8 = sub_100022C40((__int64)v2);
return GameObject::slopeYPos(a1, v8);
}
if ( !a1->m_slopeUphill )
goto LABEL_8;
LABEL_6:
v8 = sub_100022C30(v2);
return GameObject::slopeYPos(a1, v8);
}