//
// DrawGridLayer::getPortalMinMax from 0x36adbc to 0x36ae54 (152 bytes)
//
// 1 xrefs:
// > DrawGridLayer::draw @ 0x36b6fe
//
// 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
//
cocos2d::CCPoint *DrawGridLayer::getPortalMinMax(
cocos2d::CCPoint *__return_ptr retstr,
DrawGridLayer *a2,
GameObject *a3)
{
float v5; // s17
const cocos2d::CCPoint *v6; // r0
float v7; // s15
if ( ((int (__fastcall *)(GameObject *, DrawGridLayer *))a3->getType)(a3, a2) == 16 )
{
v5 = 240.0;
}
else
{
v5 = 300.0;
if ( a3->getType(a3) == SpiderPortal )
v5 = 270.0;
}
v6 = a3->getPosition(a3);
v7 = floorf((float)((float)(v6->y - (float)(v5 * 0.5)) + 0.0) / 30.0) * 30.0;
if ( v7 <= 90.0 )
v7 = 90.0;
cocos2d::CCPoint::CCPoint(retstr, v7, v7 + v5);
return retstr;
}