//
// cocos2d::CCLightning::lightningWithStrikePoint from 0x690f78 to 0x691034 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x997d8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:50:35 +0000
//
cocos2d::CCLightning *__fastcall cocos2d::CCLightning::lightningWithStrikePoint(const cocos2d::CCPoint *a1)
{
cocos2d::CCLightning *v2; // x20
_BYTE v4[8]; // [xsp+30h] [xbp+30h] BYREF
v2 = (cocos2d::CCLightning *)operator new(0x198u);
cocos2d::CCLightning::CCLightning(v2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v4, a1);
if ( (unsigned __int8)cocos2d::CCLightning::initWithStrikePoint((__int64)v2, (const cocos2d::CCPoint *)v4) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
(*(void (__fastcall **)(cocos2d::CCLightning *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}