//
// cocos2d::CCLightning::lightningWithStrikePoint from 0x3c6160 to 0x3c61c4 (100 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:46:34 +0000
//
cocos2d::CCLightning *__fastcall cocos2d::CCLightning::lightningWithStrikePoint(const cocos2d::CCPoint *a1)
{
cocos2d::CCLightning *v2; // r4
_BYTE v4[8]; // [sp+4h] [bp-10h] BYREF
v2 = (cocos2d::CCLightning *)operator new(0x158u);
cocos2d::CCLightning::CCLightning(v2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v4, a1);
if ( cocos2d::CCLightning::initWithStrikePoint((int)v2, (const cocos2d::CCPoint *)v4) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
(*(void (__fastcall **)(cocos2d::CCLightning *))(*(_DWORD *)v2 + 8))(v2);
return nullptr;
}
}