//
// PlayerObject::spawnScaleCircle from 0x623b30 to 0x623c64 (308 bytes)
//
// 2 xrefs:
// > PlayerObject::togglePlayerScale @ 0x62dfe0
// > ??> @ 0x7d910
//
// 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::spawnScaleCircle(PlayerObject *a1)
{
float v2; // s0
char v3; // w22
char v4; // w21
char *v5; // x0
float v6; // s2
float v7; // s1
CCCircleWave *v8; // x19
void (__fastcall *setPosition)(CCCircleWave *__hidden, const cocos2d::CCPoint *); // x21
const cocos2d::CCPoint *v10; // x0
PlayLayer *m_playLayer; // x0
CCCircleWaveDelegate *v12; // x0
GameManager *v13; // x0
if ( !a1->m_maybeReducedEffects
&& !GameManager::sharedState()->m_playLayer->m_skipArtReload
&& !GameManager::sharedState()->m_performanceMode )
{
if ( a1->m_vehicleSize == 1.0 )
{
v6 = 0.3;
v3 = -1;
v7 = 40.0;
v4 = 0;
LOBYTE(v5) = 0;
v2 = 10.0;
}
else
{
v2 = 50.0;
v3 = 0;
v4 = -1;
v5 = (char *)&dword_0 + 1;
v6 = 0.25;
v7 = 2.0;
}
v8 = CCCircleWave::create(v2, v7, v6, (bool)v5);
v8->m_color.r = v4;
v8->m_color.g = v3;
v8->m_color.b = -106;
setPosition = v8->setPosition;
v10 = a1->getPosition(a1);
setPosition(v8, v10);
a1->m_parentLayer->addChild_0(a1->m_parentLayer, v8, 0);
CCCircleWave::followObject(v8, a1, 1);
m_playLayer = GameManager::sharedState()->m_playLayer;
if ( m_playLayer )
v12 = &m_playLayer->CCCircleWaveDelegate;
else
v12 = nullptr;
v8->m_delegate = v12;
v13 = GameManager::sharedState();
PlayLayer::addCircle(v13->m_playLayer, v8);
}
}