//
// EndPortalObject::setPosition from 0x3fe484 to 0x3fe55c (216 bytes)
//
// 0 xrefs:
//
// 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
//
void EndPortalObject::setPosition(EndPortalObject *a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCSprite *m_gradientBar; // r6
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9
PlayLayer *m_playLayer; // r3
float v7; // s15
cocos2d::CCParticleSystemQuad *m_particle; // r6
void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
const cocos2d::CCPoint *v10; // r0
float v11; // r2
const cocos2d::CCPoint *v12; // r9
cocos2d::CCPoint v13; // [sp+4h] [bp-14h] BYREF
cocos2d::CCPoint v14; // [sp+Ch] [bp-Ch] BYREF
GameObject::setPosition(a1, a2);
m_gradientBar = a1->m_gradientBar;
if ( m_gradientBar )
{
setPosition = m_gradientBar->setPosition;
m_playLayer = GameManager::sharedState()->m_playLayer;
v7 = -1.0;
if ( !a1->m_flippedX )
v7 = 1.0;
cocos2d::CCPoint::CCPoint(&v13, (float)(-14.0 - (float)(15.0 / m_playLayer->m_gameState.m_cameraZoom)) * v7, 0.0);
cocos2d::CCPoint::operator+(&v14, a2, &v13);
setPosition(m_gradientBar, &v14);
}
m_particle = a1->m_particle;
if ( m_particle )
{
v9 = m_particle->setPosition;
v10 = a1->getPosition(a1);
if ( a1->m_flippedX )
v11 = -1.0;
else
v11 = 1.0;
v12 = v10;
cocos2d::CCPoint::operator*(&v13, &a1->m_particleOffset, LODWORD(v11));
cocos2d::CCPoint::operator+(&v14, v12, &v13);
v9(m_particle, &v14);
}
}