//
// cocos2d::CCLightning::initWithStrikePoint from 0x140044650 to 0x140044765 (277 bytes)
//
// 3 xrefs:
// > cocos2d::CCLightning::lightningWithStrikePoint @ 0x140044617
// > ??> @ 0x1406c4614
// > ??> @ 0x1406c4620
//
// 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
//
// Hidden C++ exception states: #wind=1
bool cocos2d::CCLightning::initWithStrikePoint(
cocos2d::CCLightning *a1,
cocos2d::CCPoint a2,
cocos2d::CCPoint a3,
float a4)
{
std::array *v6; // rbp
cocos2d::CCPoint *v7; // rbx
__int64 v8; // rdi
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_strikePoint, a2);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_strikePoint2, a3);
*(_WORD *)&a1->m_color.r = -1;
a1->m_color.b = -1;
a1->m_opacity = -1;
a1->m_seed = rand();
a1->m_split = 0;
a1->m_duration = a4;
a1->m_displacement = 160;
a1->m_minDisplacement = 8;
a1->m_numPoints = 0;
v6 = (std::array *)operator new(0x640u);
v7 = (cocos2d::CCPoint *)v6;
v8 = 200;
do
{
cocos2d::CCPoint::CCPoint(v7++);
--v8;
}
while ( v8 );
a1->m_lightningPoints = v6;
memset(v6, 0, sizeof(std::array));
a1->m_unkBool = 0;
cocos2d::CCLightning::strike(a1);
return 1;
}