//
// EndPortalObject::getSpawnPos from 0x3fee08 to 0x3fee58 (80 bytes)
//
// 2 xrefs:
// > PlayLayer::checkForEnd @ 0x30ee66
// > PlayLayer::checkForEnd @ 0x30ee98
//
// 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 *EndPortalObject::getSpawnPos(cocos2d::CCPoint *__return_ptr retstr, EndPortalObject *a2)
{
float x; // s16
PlayLayer *m_playLayer; // r3
float v6; // s15
x = a2->m_startPosition.x;
m_playLayer = GameManager::sharedState()->m_playLayer;
v6 = -1.0;
if ( !a2->m_flippedX )
v6 = 1.0;
cocos2d::CCPoint::CCPoint(
retstr,
x - (float)((float)(300.0 / m_playLayer->m_gameState.m_cameraZoom) * v6),
a2->m_startPosition.y);
return retstr;
}