//
// GameObject::slopeYPos from 0x770858 to 0x770990 (312 bytes)
//
// 5 xrefs:
// > PlayerObject::collidedWithSlopeInternal @ 0x75f954
// > PlayerObject::spiderTestJumpInternal @ 0x763194
// > GameObject::slopeYPos @ 0x7709d0
// > GameObject::slopeYPos @ 0x7709ec
// > ??> @ 0xf07f0
//
// 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:53:12 +0000
//
__int64 __fastcall GameObject::slopeYPos(GameObject *this, float a2)
{
const cocos2d::CCRect *v4; // x0
float v5; // s0
double v6; // d9
_BYTE v8[8]; // [xsp+68h] [xbp+68h] BYREF
v4 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 1328LL))(this);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, v4);
cocos2d::CCRect::getMinX((cocos2d::CCRect *)v8);
v6 = v5;
cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v8);
cocos2d::CCRect::getMinY((cocos2d::CCRect *)v8);
cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v8);
if ( v6 < a2 || !*((_BYTE *)this + 1080) )
{
if ( !*((_BYTE *)this + 1088) )
return _stack_chk_guard;
goto LABEL_4;
}
if ( *((_BYTE *)this + 1088) )
LABEL_4:
GameObject::slopeFloorTop(this);
return _stack_chk_guard;
}