//
// GJBaseGameLayer::getMaxPortalY from 0x14031aa60 to 0x14031aae0 (128 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x14031af4f
// > GJBaseGameLayer::update @ 0x140341579
// > DrawGridLayer::draw @ 0x14040bdf2
// > PlayerObject::spiderTestJumpInternal @ 0x1404f2740
// > ??> @ 0x14091ebfc
//
// This function is hookable on this platform (idp: pc, 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 11:30:19 +0000
//
float __fastcall GJBaseGameLayer::getMaxPortalY(__int64 a1)
{
float v2; // xmm6_4
if ( *(float *)(a1 + 572) != 0.0 && !*(_BYTE *)(a1 + 672) )
return (float)((float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4344) + 200LL))(*(_QWORD *)(a1 + 4344))
+ 4)
+ 1.0)
/ *(float *)(a1 + 424))
+ *(float *)(a1 + 1296);
v2 = *(float *)(a1 + 748) / *(float *)(a1 + 424);
return GJBaseGameLayer::getMinPortalY(a1) + v2;
}