//
// cocos2d::CCLightning::lightningWithStrikePoint from 0x575b00 to 0x575bbc (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x722a0
//
// 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
//
cocos2d::CCLightning *cocos2d::CCLightning::lightningWithStrikePoint(cocos2d::CCPoint a1)
{
const cocos2d::CCPoint *v1; // x0
const cocos2d::CCPoint *v2; // x22
cocos2d::CCLightning *v3; // x20
cocos2d::CCPoint v5; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCPoint v6; // 0:s0.4,4:s1.4
v2 = v1;
v3 = (cocos2d::CCLightning *)operator new(0x198u);
cocos2d::CCLightning::CCLightning(v3);
cocos2d::CCPoint::CCPoint(&v5, v2);
if ( cocos2d::CCLightning::initWithStrikePoint(v3, v6) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
v3->~CCLightning_0(v3);
return nullptr;
}
}