//
// CCCircleAlert::init from 0x6c6e18 to 0x6c6f10 (248 bytes)
//
// 2 xrefs:
// > CCCircleAlert::create @ 0x6c6fbc
// > ??> @ 0xdb928
//
// This function is hookable on this platform (idp: arm, 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:51:21 +0000
//
__int64 __fastcall CCCircleAlert::init(CCCircleAlert *this, float a2, float a3, float a4, const char *a5)
{
cocos2d::CCSpawn *v7; // x21
const char *v8; // x1
cocos2d::CCSequence *v9; // x22
const char *v10; // x1
cocos2d::CCFiniteTimeAction *v11; // x0
cocos2d::CCFiniteTimeAction *v12; // x0
__int64 v13; // x0
cocos2d::CCActionManager *v14; // x0
cocos2d::CCAction *v16; // [xsp+58h] [xbp+58h]
*((_BYTE *)this + 340) = -1;
*((_BYTE *)this + 341) = -1;
*((_BYTE *)this + 342) = -1;
*((float *)this + 83) = a2;
*((_DWORD *)this + 84) = 0;
v7 = (cocos2d::CCSpawn *)cocos2d::CCActionTween::create((cocos2d::CCActionTween *)"radius", a4, a5, a2, a3);
v9 = (cocos2d::CCSequence *)cocos2d::CCActionTween::create(
(cocos2d::CCActionTween *)"opacity",
a4 - 0.3,
v8,
*((float *)this + 84),
150.0);
v11 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCActionTween::create(
(cocos2d::CCActionTween *)"opacity",
0.3,
v10,
150.0,
0.0);
v12 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCSequence::create(v9, v11, 0);
v16 = (cocos2d::CCAction *)cocos2d::CCSpawn::create(v7, v12, 0);
v13 = cocos2d::CCDirector::sharedDirector(v16);
v14 = (cocos2d::CCActionManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 144LL))(v13);
cocos2d::CCActionManager::addAction(v14, v16, this, 0);
return 1;
}