//
// CCCircleWave::init from 0x100157910 to 0x100157b01 (497 bytes)
//
// 1 xrefs:
// > CCCircleWave::create @ 0x1001578bf
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:25:04 +0000
//
char __fastcall CCCircleWave::init(__int64 a1, int a2, char a3, float a4, double a5, float a6)
{
__int64 v7; // r14
int v8; // r12d
__int64 v9; // xmm0_8
__int64 v10; // xmm1_8
int v11; // r15d
int v12; // eax
int v13; // r8d
int v14; // r9d
__int64 v15; // rdi
__int64 v16; // rsi
int v17; // ecx
int v18; // r8d
int v19; // r9d
__int64 v20; // rax
__int64 v22; // rax
int v23; // r14d
__int64 v24; // rax
int v25; // eax
int v26; // ecx
int v27; // r8d
int v28; // r9d
int v29; // ecx
int v30; // r8d
int v31; // r9d
__int64 v32; // r14
__int64 v33; // rax
__int64 v34; // rax
*(float *)(a1 + 332) = a4;
*(_DWORD *)(a1 + 336) = 1132396544;
*(_DWORD *)(a1 + 360) = 1065353216;
*(_WORD *)(a1 + 340) = -1;
*(_BYTE *)(a1 + 342) = -1;
*(_QWORD *)(a1 + 352) = 0x200000000LL;
*(_QWORD *)(a1 + 320) = 0;
*(_BYTE *)(a1 + 364) = 1;
if ( a2 )
{
*(_DWORD *)(a1 + 336) = 0;
v7 = cocos2d::CCActionTween::create_1((std::string::value_type *)"radius");
v8 = cocos2d::CCActionTween::create_1((std::string::value_type *)"opacity");
v9 = COERCE_UNSIGNED_INT(a6 * 0.5);
v10 = 1132396544;
v11 = cocos2d::CCActionTween::create_1((std::string::value_type *)"opacity");
v12 = cocos2d::CCCallFunc::create(a1, 537, 0);
v15 = v7;
v16 = sub_10039EB60(v8, v11, v12, 0, v13, v14);
v20 = sub_10039FF60(v7, v16, 0, v17, v18, v19);
}
else
{
v22 = cocos2d::CCActionTween::create_1((std::string::value_type *)"radius");
v23 = v22;
if ( a3 )
{
v23 = cocos2d::CCEaseOut::create(v22, 2.0);
v10 = *(unsigned int *)(a1 + 336);
v24 = cocos2d::CCActionTween::create_1((std::string::value_type *)"opacity");
v9 = 0x40000000;
v25 = cocos2d::CCEaseOut::create(v24, 2.0);
}
else
{
v10 = *(unsigned int *)(a1 + 336);
v9 = LODWORD(a6);
v25 = cocos2d::CCActionTween::create_1((std::string::value_type *)"opacity");
}
v15 = sub_10039FF60(v23, v25, 0, v26, v27, v28);
v16 = cocos2d::CCCallFunc::create(a1, 537, 0);
v20 = sub_10039EB60(v15, v16, 0, v29, v30, v31);
}
v32 = v20;
v33 = cocos2d::CCDirector::sharedDirector(v15, v16);
v34 = (*(__int64 (__fastcall **)(__int64, double, double, double))(*(_QWORD *)v33 + 144LL))(
v33,
*(double *)&v9,
*(double *)&v10,
0.0);
cocos2d::CCActionManager::addAction(v34, v32, a1, 0);
return 1;
}