//
// GJBaseGameLayer::getMinPortalY from 0x14031a980 to 0x14031aa55 (213 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::getMaxPortalY @ 0x14031aacc
// > GJBaseGameLayer::checkCollisions @ 0x14031af5a
// > DrawGridLayer::draw @ 0x14040bde7
// > PlayerObject::spiderTestJumpInternal @ 0x1404f2730
// > ??> @ 0x14091ebf0
//
// 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::getMinPortalY(__int64 a1)
{
float v2; // xmm1_4
if ( *(float *)(a1 + 572) == 0.0 || *(_BYTE *)(a1 + 672) )
return fmaxf(
90.0,
(float)(*(float *)(a1 + 776) - (float)((float)(*(float *)(a1 + 748) * 0.5) / *(float *)(a1 + 424)))
+ *(float *)(a1 + 436));
v2 = 90.0;
if ( (float)((float)((float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336))
+ 4)
- 1.0)
/ *(float *)(a1 + 424))
+ *(float *)(a1 + 1296)) >= 90.0 )
return (float)((float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336))
+ 4)
- 1.0)
/ *(float *)(a1 + 424))
+ *(float *)(a1 + 1296);
return v2;
}