//
// CCLightStrip::init from 0x100504510 to 0x100504643 (307 bytes)
//
// 2 xrefs:
// > CCLightFlash::playEffect @ 0x100503ef7
// > CCLightStrip::create @ 0x1005040be
//
// 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 CCLightStrip::init(CCLightStrip *a1, float a2, float a3, float a4, float a5, float a6)
{
cocos2d::CCDelayTime *v6; // r14
cocos2d::CCShow *v7; // r15
cocos2d::CCActionTween *v8; // rax
cocos2d::CCEaseOut *v9; // r12
cocos2d::CCActionTween *v10; // rax
cocos2d::CCEaseOut *v11; // rax
cocos2d::CCSpawn *v12; // rax
cocos2d::CCSequence *v13; // r14
cocos2d::CCDirector *v14; // rax
cocos2d::CCActionManager *v15; // rax
a1->m_objectWidth = a2;
a1->m_toWidth = a3;
a1->m_toHeight = a4;
a1->m_duration = a5;
a1->m_width = a2;
a1->m_height = 1.0;
a1->m_opacity = 255.0;
((void (__fastcall *)(CCLightStrip *, _QWORD))a1->setVisible)(a1, 0);
v6 = cocos2d::CCDelayTime::create(a6);
v7 = cocos2d::CCShow::create();
v8 = cocos2d::CCActionTween::create_1(a5, "height", a1->m_height, a4);
v9 = cocos2d::CCEaseOut::create(v8, 2.0);
v10 = cocos2d::CCActionTween::create_1(a5, "width", a1->m_width, a1->m_toWidth);
v11 = cocos2d::CCEaseOut::create(v10, 2.0);
v12 = sub_1003B6B60(v9, v11, 0);
v13 = sub_1003B5760(v6, v7, v12, 0);
v14 = cocos2d::CCDirector::sharedDirector();
v15 = (cocos2d::CCActionManager *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v14->getActionManager)(v14);
cocos2d::CCActionManager::addAction(v15, v13, a1, 0);
return 1;
}