//
// CCCircleWave::init from 0x100178560 to 0x100178751 (497 bytes)
//
// 1 xrefs:
// > CCCircleWave::create @ 0x10017850f
//
// 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 __fastcall CCCircleWave::init(CCCircleWave *a1, float a2, float a3, float a4, bool a5, bool a6)
{
unsigned int v6; // r14d
unsigned int v7; // r12d
unsigned int v8; // r15d
unsigned int v9; // eax
int v10; // r8d
int v11; // r9d
int v12; // esi
int v13; // ecx
int v14; // r8d
int v15; // r9d
__int64 v16; // rax
cocos2d::CCActionTween *v18; // rax
unsigned int v19; // r14d
cocos2d::CCActionTween *v20; // rax
unsigned int v21; // eax
int v22; // ecx
int v23; // r8d
int v24; // r9d
int v25; // r14d
unsigned int v26; // esi
int v27; // ecx
int v28; // r8d
int v29; // r9d
cocos2d::CCAction *v30; // r14
cocos2d::CCDirector *v31; // rax
cocos2d::CCActionManager *v32; // rax
a1->m_radius = a2;
a1->m_opacity = 255.0;
a1->m_opacityMod = 1.0;
*(_WORD *)&a1->m_color.r = -1;
a1->m_color.b = -1;
*(_QWORD *)&a1->m_circleMode = 0x200000000LL;
a1->m_target = nullptr;
a1->m_blendAdditive = 1;
if ( a5 )
{
a1->m_opacity = 0.0;
v6 = (unsigned int)cocos2d::CCActionTween::create_1(a4, "radius", a2, a3);
v7 = (unsigned int)cocos2d::CCActionTween::create_1(a4 * 0.5, "opacity", a1->m_opacity, 255.0);
v8 = (unsigned int)cocos2d::CCActionTween::create_1(a4 * 0.5, "opacity", 255.0, 0.0);
v9 = (unsigned int)cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)0x209uLL);
v12 = sub_1003B5760(v7, v8, v9, 0, v10, v11);
v16 = sub_1003B6B60(v6, v12, 0, v13, v14, v15);
}
else
{
v18 = cocos2d::CCActionTween::create_1(a4, "radius", a2, a3);
v19 = (unsigned int)v18;
if ( a6 )
{
v19 = (unsigned int)cocos2d::CCEaseOut::create(v18, 2.0);
v20 = cocos2d::CCActionTween::create_1(a4, "opacity", a1->m_opacity, 0.0);
v21 = (unsigned int)cocos2d::CCEaseOut::create(v20, 2.0);
}
else
{
v21 = (unsigned int)cocos2d::CCActionTween::create_1(a4, "opacity", a1->m_opacity, 0.0);
}
v25 = sub_1003B6B60(v19, v21, 0, v22, v23, v24);
v26 = (unsigned int)cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)0x209uLL);
v16 = sub_1003B5760(v25, v26, 0, v27, v28, v29);
}
v30 = (cocos2d::CCAction *)v16;
v31 = cocos2d::CCDirector::sharedDirector();
v32 = (cocos2d::CCActionManager *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v31->getActionManager)(v31);
cocos2d::CCActionManager::addAction(v32, v30, a1, 0);
return 1;
}