//
// EndPortalObject::getSpawnPos from 0x78a6b8 to 0x78a720 (104 bytes)
//
// 3 xrefs:
// > PlayLayer::checkForEnd @ 0x5c91e0
// > PlayLayer::checkForEnd @ 0x5c9254
// > ??> @ 0x4f1a0
//
// 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(EndPortalObject *a1)
{
cocos2d::CCPoint *v1; // x8
float x; // s8
cocos2d::CCPoint *v4; // x20
float v5; // s1
float v6; // s0
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
x = a1->m_startPosition.x;
v4 = v1;
v5 = 300.0 / GameManager::sharedState()->m_playLayer->m_gameState.m_cameraZoom;
if ( a1->m_flippedX )
v6 = -1.0;
else
v6 = 1.0;
cocos2d::CCPoint::CCPoint(v4, x - (float)(v5 * v6), a1->m_startPosition.y);
return result;
}