//
// PlayerObject::spawnScaleCircle from 0x100227914 to 0x100227a48 (308 bytes)
//
// 1 xrefs:
// > PlayerObject::togglePlayerScale @ 0x1002274ec
//
// 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 PlayerObject::spawnScaleCircle(PlayerObject *a1)
{
float m_vehicleSize; // s3
float v3; // s1
float v4; // s2
int v5; // w21
float v6; // s0
CCCircleWave *v7; // x20
__int64 v8; // x0
PlayLayer *m_playLayer; // x8
CCCircleWaveDelegate *v10; // x8
GameManager *v11; // x0
if ( !a1->m_maybeReducedEffects
&& !GameManager::sharedState()->m_playLayer->m_skipArtReload
&& !GameManager::sharedState()->m_performanceMode )
{
m_vehicleSize = a1->m_vehicleSize;
if ( m_vehicleSize == 1.0 )
{
v6 = 10.0;
v5 = 9895680;
v3 = 40.0;
v4 = 0.3;
}
else
{
v3 = 2.0;
v4 = 0.25;
v5 = 9830655;
v6 = 50.0;
}
v7 = CCCircleWave::create_1(v6, v3, v4, m_vehicleSize != 1.0);
v7->m_color = (cocos2d::ccColor3B)v5;
v8 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1);
((void (__fastcall *)(CCCircleWave *, __int64))v7->setPosition)(v7, v8);
((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_parentLayer->addChild_0)(
a1->m_parentLayer,
v7,
0);
CCCircleWave::followObject(v7, a1, 1);
m_playLayer = GameManager::sharedState()->m_playLayer;
if ( m_playLayer )
v10 = &m_playLayer->CCCircleWaveDelegate;
else
v10 = nullptr;
v7->m_delegate = v10;
v11 = GameManager::sharedState();
PlayLayer::addCircle(v11->m_playLayer, v7);
}
}