//
// DrawGridLayer::getPortalMinMax from 0x790b38 to 0x790bf8 (192 bytes)
//
// 2 xrefs:
// > DrawGridLayer::draw @ 0x791cb8
// > ??> @ 0xe1940
//
// 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:53:29 +0000
//
cocos2d::CCPoint *__usercall DrawGridLayer::getPortalMinMax@(GameObject *a1@, cocos2d::CCPoint *a2@)
{
float v5; // s8
float v6; // s0
if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)a1 + 1800LL))(a1) == 16 )
{
v5 = 240.0;
}
else if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)a1 + 1800LL))(a1) == 33 )
{
v5 = 270.0;
}
else
{
v5 = 300.0;
}
v6 = floorf(
(float)((float)(*(float *)((*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a1 + 192LL))(a1) + 4)
- (float)(v5 * 0.5))
+ 0.0)
/ 30.0)
* 30.0;
if ( v6 <= 90.0 )
v6 = 90.0;
cocos2d::CCPoint::CCPoint(a2, v6, v5 + v6);
return a2;
}