//
// cocos2d::CCLightning::draw from 0x100347928 to 0x100347a24 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007f2be0
//
// 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
//
void __fastcall cocos2d::CCLightning::draw(cocos2d::CCLightning *a1)
{
unsigned int v1; // s0
__n128 v3; // q0
__n128 v4; // q1
float32x2_t v5; // [xsp+0h] [xbp-30h] BYREF
float32x2_t v6; // [xsp+8h] [xbp-28h] BYREF
float32x2_t v7; // [xsp+10h] [xbp-20h] BYREF
float32x2_t v8; // [xsp+18h] [xbp-18h] BYREF
a1->m_numPoints = 0;
LOBYTE(v1) = a1->m_opacity;
cocos2d::ccDrawColor4B(a1->m_color.r, a1->m_color.g, a1->m_color.b, (int)(float)(a1->m_opacityModify * (float)v1));
glLineWidth(a1->m_lineWidth);
cocos2d::ccGLBlendFunc(0x302u, 1u);
v3.n128_u32[0] = 0;
v4.n128_u32[0] = 0;
sub_100022980(v3, v4, &v7);
sub_1000229B8((__int64 *)&v6, (__int64 *)&a1->m_strikePoint);
sub_100347488(
&v7,
&v6,
a1->m_displacement,
(unsigned int)a1->m_minDisplacement,
a1->m_seed,
(__int64)a1->m_lightningPoints,
&a1->m_numPoints,
&v8);
if ( a1->m_split )
{
sub_1000229B8((__int64 *)&v7, (__int64 *)&v8);
sub_1000229B8((__int64 *)&v6, (__int64 *)&a1->m_strikePoint2);
sub_100347488(
&v7,
&v6,
a1->m_displacement / 2,
(unsigned int)a1->m_minDisplacement,
a1->m_seed,
(__int64)a1->m_lightningPoints,
&a1->m_numPoints,
&v5);
}
cocos2d::ccDrawLines(a1->m_lightningPoints->__elems_, a1->m_numPoints);
}