//
// CCCircleWave::init from 0x140042920 to 0x140042b53 (563 bytes)
//
// 3 xrefs:
// > CCCircleWave::create @ 0x1400428d5
// > ??> @ 0x140662534
// > ??> @ 0x1406c444c
//
// 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
//
bool CCCircleWave::init(CCCircleWave *a1, float a2, float a3, float a4, bool a5, bool a6)
{
struct cocos2d::CCActionTween *v7; // rax
struct cocos2d::CCEaseOut *v8; // rbx
struct cocos2d::CCActionTween *v9; // rax
struct cocos2d::CCActionTween *v10; // rax
struct cocos2d::CCSpawn *v11; // rbx
__int64 v12; // rax
struct cocos2d::CCSequence *v13; // rbx
__int64 v14; // rax
cocos2d::CCActionManager *v15; // rax
struct cocos2d::CCActionTween *v17; // rsi
struct cocos2d::CCActionTween *v18; // rdi
struct cocos2d::CCActionTween *v19; // rbx
__int64 v20; // rax
struct cocos2d::CCSequence *v21; // rax
struct cocos2d::CCSpawn *v22; // rbx
__int64 v23; // rax
cocos2d::CCActionManager *v24; // rax
*(_WORD *)&a1->m_color.r = -1;
a1->m_color.b = -1;
a1->m_radius = a2;
a1->m_opacity = 255.0;
a1->m_opacityMod = 1.0;
a1->m_circleMode = Filled;
a1->m_lineWidth = 2;
a1->m_target = nullptr;
a1->m_blendAdditive = 1;
if ( a5 )
{
a1->m_opacity = 0.0;
v17 = cocos2d::CCActionTween::create(a4, "radius", a2, a3);
v18 = cocos2d::CCActionTween::create(a4 * 0.5, "opacity", a1->m_opacity, 255.0);
v19 = cocos2d::CCActionTween::create(a4 * 0.5, "opacity", 255.0, 0.0);
v20 = cocos2d::CCCallFunc::create(a1, sub_14003BE70);
v21 = cocos2d::CCSequence::create(v18, v19, v20, 0);
v22 = cocos2d::CCSpawn::create(v17, v21, 0);
v23 = cocos2d::CCDirector::sharedDirector();
v24 = (cocos2d::CCActionManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 128LL))(v23);
cocos2d::CCActionManager::addAction(v24, v22, a1, 0);
return 1;
}
else
{
v7 = cocos2d::CCActionTween::create(a4, "radius", a2, a3);
v8 = (struct cocos2d::CCEaseOut *)v7;
if ( a6 )
{
v8 = cocos2d::CCEaseOut::create(v7, 2.0);
v9 = cocos2d::CCActionTween::create(a4, "opacity", a1->m_opacity, 0.0);
v10 = (struct cocos2d::CCActionTween *)cocos2d::CCEaseOut::create(v9, 2.0);
}
else
{
v10 = cocos2d::CCActionTween::create(a4, "opacity", a1->m_opacity, 0.0);
}
v11 = cocos2d::CCSpawn::create(v8, v10, 0);
v12 = cocos2d::CCCallFunc::create(a1, sub_14003BE70);
v13 = cocos2d::CCSequence::create(v11, v12, 0);
v14 = cocos2d::CCDirector::sharedDirector();
v15 = (cocos2d::CCActionManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 128LL))(v14);
cocos2d::CCActionManager::addAction(v15, v13, a1, 0);
return 1;
}
}