//
// PlayLayer::getEndPosition from 0x30f4a6 to 0x30f4de (56 bytes)
//
// 4 xrefs:
// > PlayLayer::showCompleteText @ 0x30f7a8
// > PlayLayer::spawnCircle @ 0x30f952
// > PlayLayer::showCompleteEffect @ 0x30facc
// > PlayLayer::levelComplete @ 0x31391c
//
// 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 *PlayLayer::getEndPosition(cocos2d::CCPoint *__return_ptr retstr, PlayLayer *a2)
{
EndPortalObject *m_endPortal; // r0
cocos2d::CCPoint *v4; // r0
cocos2d::CCPoint *p_m_endPosition; // r1
if ( a2->m_isPlatformer || (m_endPortal = a2->m_endPortal) == nullptr || a2->m_platformerEndTrigger )
{
v4 = retstr;
p_m_endPosition = &a2->m_endPosition;
}
else
{
p_m_endPosition = (cocos2d::CCPoint *)m_endPortal->getPosition(m_endPortal);
v4 = retstr;
}
cocos2d::CCPoint::CCPoint(v4, p_m_endPosition);
return retstr;
}