// // GameObject::slopeYPos from 0x44e2c0 to 0x44e398 (216 bytes) // // 3 xrefs: // > PlayerObject::collidedWithSlopeInternal @ 0x4417e6 // > PlayerObject::spiderTestJumpInternal @ 0x4441e6 // > GameObject::slopeYPos @ 0x44e3c8 // // 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:35 +0000 // __int64 __fastcall GameObject::slopeYPos(GameObject *this, float a2) { const cocos2d::CCRect *v4; // r0 double v5; // d10 float v6; // s16 double v7; // d9 float v8; // r0 double v9; // d7 double v10; // d6 double v11; // d7 double v12; // d8 _BYTE v14[8]; // [sp+4h] [bp-14h] BYREF float v15; // [sp+Ch] [bp-Ch] float v16; // [sp+10h] [bp-8h] v4 = (const cocos2d::CCRect *)(*(int (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)this + 664))(this, LODWORD(a2)); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, v4); v5 = COERCE_FLOAT(cocos2d::CCRect::getMinX((cocos2d::CCRect *)v14)); v6 = COERCE_FLOAT(cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v14)); v7 = COERCE_FLOAT(cocos2d::CCRect::getMinY((cocos2d::CCRect *)v14)); v8 = COERCE_FLOAT(cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v14)); v9 = a2; v10 = (float)(v16 / v15); if ( a2 <= v5 ) { v11 = (v5 - v9) * v10; if ( *((_BYTE *)this + 944) ) goto LABEL_6; LABEL_5: v12 = v8 + v11; goto LABEL_7; } v11 = (v9 - v6) * v10; if ( *((_BYTE *)this + 944) ) goto LABEL_5; LABEL_6: v12 = v7 - v11; LABEL_7: if ( *((_BYTE *)this + 952) ) { if ( GameObject::slopeFloorTop(this) ) v12 = v12 - 4.0; else v12 = v12 + 4.0; } return *(_QWORD *)&v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source