//
// GJBaseGameLayer::getMaxPortalY from 0x99e06c to 0x99e0fc (144 bytes)
//
// 6 xrefs:
// > PlayerObject::spiderTestJumpInternal @ 0x762fb0
// > PlayerObject::spiderTestJumpY @ 0x7648b0
// > DrawGridLayer::draw @ 0x791a54
// > GJBaseGameLayer::checkCollisions @ 0x9e9770
// > GJBaseGameLayer::update @ 0x9edd3c
// > ??> @ 0xb3638
//
// 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:58:05 +0000
//
float __fastcall GJBaseGameLayer::getMaxPortalY(GJBaseGameLayer *this)
{
float v2; // s8
if ( *((float *)this + 143) == 0.0 || *((_BYTE *)this + 672) )
return GJBaseGameLayer::getMinPortalY(this) + (float)(*((float *)this + 187) / *((float *)this + 106));
v2 = *((float *)this + 302);
return v2
+ (float)((float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 496) + 192LL))(*((_QWORD *)this + 496))
+ 4)
+ 1.0)
/ *((float *)this + 106));
}