//
// GJBaseGameLayer::getMaxPortalY from 0x46f178 to 0x46f1e4 (108 bytes)
//
// 5 xrefs:
// > PlayerObject::spiderTestJumpInternal @ 0x348ba2
// > PlayerObject::spiderTestJumpY @ 0x34a2b0
// > DrawGridLayer::draw @ 0x36ba0c
// > GJBaseGameLayer::checkCollisions @ 0x49359c
// > GJBaseGameLayer::update @ 0x497a44
//
// 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
//
float GJBaseGameLayer::getMaxPortalY(GJBaseGameLayer *a1)
{
float y; // s16
if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )
return GJBaseGameLayer::getMinPortalY(a1)
+ (float)(*(float *)&a1->m_gameState.m_unkInt11 / a1->m_gameState.m_cameraZoom);
y = a1->m_gameState.m_cameraPosition2.y;
return y
+ (float)((float)(a1->m_groundLayer2->getPosition(a1->m_groundLayer2)->y + 1.0) / a1->m_gameState.m_cameraZoom);
}