//
// cocos2d::CCLightning::initWithStrikePoint from 0x1003477dc to 0x1003478a8 (204 bytes)
//
// 1 xrefs:
// > cocos2d::CCLightning::lightningWithStrikePoint @ 0x1003477a0
//
// 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 cocos2d::CCLightning::initWithStrikePoint(
cocos2d::CCLightning *a1,
cocos2d::CCPoint a2,
cocos2d::CCPoint a3,
float a4)
{
double *v4; // x1
double *v5; // x2
float x; // s8
double *v7; // x20
std::array *v9; // x20
__int64 i; // x21
x = a2.x;
v7 = v5;
sub_1000229D0(&a1->m_strikePoint, v4);
sub_1000229D0(&a1->m_strikePoint2, v7);
*(_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 = x;
*(_QWORD *)&a1->m_displacement = 0x8000000A0LL;
a1->m_numPoints = 0;
v9 = (std::array *)operator new[](0x640u);
for ( i = 0; i != 1600; i += 8 )
sub_1000229B0((std::array *)((char *)v9 + i));
a1->m_lightningPoints = v9;
bzero(v9, 0x640u);
a1->m_unkBool = 0;
cocos2d::CCLightning::strike(a1);
return 1;
}