//
// PlayerObject::spawnCircle from 0x620fac to 0x6210a4 (248 bytes)
//
// 3 xrefs:
// > ??> @ 0x3e2c8
// > PlayerObject::playSpawnEffect @ 0x623904
// > ??> @ 0x1229fb0
//
// 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 PlayerObject::spawnCircle(PlayerObject *a1)
{
CCCircleWave *v2; // x19
GLubyte b; // w3
GLubyte r; // w2
void (__fastcall *setPosition)(CCCircleWave *__hidden, const cocos2d::CCPoint *); // x21
const cocos2d::CCPoint *v6; // x0
PlayLayer *m_playLayer; // x0
CCCircleWaveDelegate *v8; // x0
GameManager *v9; // x0
if ( !GameManager::sharedState()->m_performanceMode )
{
v2 = CCCircleWave::create(70.0, 2.0, 0.3, (bool)&dword_0 + 1);
b = a1->m_playerColor1.b;
r = a1->m_playerColor1.r;
v2->m_color.g = a1->m_playerColor1.g;
v2->m_color.b = b;
v2->m_color.r = r;
setPosition = v2->setPosition;
v6 = a1->getPosition(a1);
setPosition(v2, v6);
a1->m_parentLayer->addChild_0(a1->m_parentLayer, v2, 0);
CCCircleWave::followObject(v2, a1, 1);
m_playLayer = GameManager::sharedState()->m_playLayer;
if ( m_playLayer )
v8 = &m_playLayer->CCCircleWaveDelegate;
else
v8 = nullptr;
v2->m_delegate = v8;
v9 = GameManager::sharedState();
PlayLayer::addCircle(v9->m_playLayer, v2);
v2->m_circleMode = Outline;
}
}