//
// GameObject::setPosition from 0x640c74 to 0x640db0 (316 bytes)
//
// 49 xrefs:
// > PlayerObject::setPosition @ 0x62474c
// > TeleportPortalObject::setPositionOverride @ 0x760ee4
// > TeleportPortalObject::setPosition @ 0x761128
// > EndPortalObject::setPosition @ 0x789e48
// > ??> @ 0x48e40
// > ??> @ 0x1153568
// > ??> @ 0x1153d38
// > ??> @ 0x1154538
// > ??> @ 0x1161ee8
// > ??> @ 0x11626e8
// > ??> @ 0x1162ee8
// > ??> @ 0x11636e8
// > ??> @ 0x1163ee8
// > ??> @ 0x11646e8
// > ??> @ 0x1164ee8
// > ??> @ 0x11656e8
// > ??> @ 0x1165eb8
// > ??> @ 0x11666b8
// > ??> @ 0x1166eb8
// > ??> @ 0x11676b8
// > ??> @ 0x1167eb8
// > ??> @ 0x11686f8
// > ??> @ 0x1168ef8
// > ??> @ 0x11696f8
// > ??> @ 0x1169ef8
// > ??> @ 0x116af08
// > ??> @ 0x116b708
// > ??> @ 0x116bf08
// > ??> @ 0x116c708
// > ??> @ 0x116cf08
// > ??> @ 0x116d708
// > ??> @ 0x116df08
// > ??> @ 0x116e708
// > ??> @ 0x116ef08
// > ??> @ 0x116f708
// > ??> @ 0x116ff08
// > ??> @ 0x1170708
// > ??> @ 0x1170f08
// > ??> @ 0x1171708
// > ??> @ 0x1171f08
// > ??> @ 0x1172708
// > ??> @ 0x1172f08
// > ??> @ 0x1173708
// > ??> @ 0x1173f08
// > ??> @ 0x1174708
// > ??> @ 0x1174f08
// > ??> @ 0x1175708
// > ??> @ 0x1175f08
// > ??> @ 0x1176708
//
// 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 GameObject::setPosition(GameObject *a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCParticleSystemQuad *m_particle; // x0
cocos2d::CCParticleSystemQuad *v5; // x23
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
cocos2d::CCSprite *m_glowSprite; // x0
cocos2d::CCSprite *m_colorSprite; // x0
float v9; // [xsp+50h] [xbp+50h]
float v10; // [xsp+54h] [xbp+54h]
float v11; // [xsp+58h] [xbp+58h]
float v12; // [xsp+5Ch] [xbp+5Ch]
cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF
CCSpritePlus::setPosition(a1, a2);
m_particle = a1->m_particle;
if ( m_particle )
{
if ( a1->m_particleOffset.x == 0.0 && a1->m_particleOffset.y == 0.0 )
{
m_particle->setPosition(m_particle, a2);
}
else
{
cocos2d::CCNode::convertToWorldSpace(a1, &a1->m_particleOffset);
cocos2d::CCNode::convertToWorldSpace(a1, &stru_1242068);
v5 = a1->m_particle;
setPosition = v5->setPosition;
cocos2d::CCPoint::CCPoint(&v13, (float)(a2->x + v9) - v11, (float)(a2->y + v10) - v12);
setPosition(v5, &v13);
}
}
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
m_glowSprite->setPosition(m_glowSprite, a2);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
{
if ( !a1->m_colorSpriteLocked )
m_colorSprite->setPosition(m_colorSprite, a2);
}
}