//
// GameObject::setPosition from 0x1005bbcb0 to 0x1005bbdb5 (261 bytes)
//
// 49 xrefs:
// > TeleportPortalObject::setPositionOverride @ 0x1001bdd35
// > TeleportPortalObject::setPosition @ 0x1001bdf1c
// > TeleportPortalObject::setPosition @ 0x1001bdf77
// > EndPortalObject::setPosition @ 0x10039c927
// > PlayerObject::setPosition @ 0x100419223
// > ??> @ 0x1008c4120
// > ??> @ 0x1008c4958
// > ??> @ 0x1008c5150
// > ??> @ 0x1008c5948
// > ??> @ 0x1008c6140
// > ??> @ 0x1008c6938
// > ??> @ 0x1008c7130
// > ??> @ 0x1008c7928
// > ??> @ 0x1008c8110
// > ??> @ 0x1008c8920
// > ??> @ 0x1008c9198
// > ??> @ 0x1008c99a8
// > ??> @ 0x1008ca1b8
// > ??> @ 0x1008ca9c8
// > ??> @ 0x1008cb1d8
// > ??> @ 0x1008cb9e8
// > ??> @ 0x1008cc1f8
// > ??> @ 0x1008cca08
// > ??> @ 0x1008cd218
// > ??> @ 0x1008cda28
// > ??> @ 0x1008ceaa8
// > ??> @ 0x1008cf2d0
// > ??> @ 0x1008cfaf8
// > ??> @ 0x1008d0320
// > ??> @ 0x1008d0b48
// > ??> @ 0x1008d1358
// > ??> @ 0x1008d1b68
// > ??> @ 0x1008d2378
// > ??> @ 0x1008d2b88
// > ??> @ 0x1008d3398
// > ??> @ 0x1008d3ba8
// > ??> @ 0x1008d43b8
// > ??> @ 0x1008d4bc8
// > ??> @ 0x1008d53d8
// > ??> @ 0x1008d5be8
// > ??> @ 0x1008d63f8
// > ??> @ 0x1008d6c08
// > ??> @ 0x1008d7418
// > ??> @ 0x1008d7c28
// > ??> @ 0x1008d8438
// > ??> @ 0x1008d8c48
// > ??> @ 0x1009714a0
// > ??> @ 0x100971c88
// > ??> @ 0x100972498
//
// 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 __fastcall GameObject::setPosition(GameObject *a1, const cocos2d::CCPoint *a2)
{
const cocos2d::CCPoint *v2; // rbx
cocos2d::CCParticleSystemQuad *m_particle; // rdi
cocos2d::CCParticleSystemQuad *v5; // r15
cocos2d::CCSprite *m_glowSprite; // rdi
cocos2d::CCSprite *m_colorSprite; // rdi
cocos2d::CCParticleSystemQuad_vtbl *v8; // rax
float v9; // [rsp+8h] [rbp-38h] BYREF
float v10[2]; // [rsp+10h] [rbp-30h] BYREF
float v11[10]; // [rsp+18h] [rbp-28h] BYREF
v2 = a2;
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 )
{
v8 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
}
else
{
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v10, (const cocos2d::CCPoint *)a1);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v11, (const cocos2d::CCPoint *)a1);
v5 = a1->m_particle;
sub_10028CBE0(&v9, (float)(a2->x + v10[0]) - v11[0], (float)(a2->y + v10[1]) - v11[1]);
v8 = v5->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_particle = v5;
a2 = (const cocos2d::CCPoint *)&v9;
}
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, const cocos2d::CCPoint *))v8->setPosition)(m_particle, a2);
}
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::CCPoint *))m_glowSprite->setPosition)(m_glowSprite, v2);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
{
if ( !a1->m_colorSpriteLocked )
((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::CCPoint *))m_colorSprite->setPosition)(
m_colorSprite,
v2);
}
}