//
// cocos2d::CCLightning::initWithStrikePoint from 0x140048310 to 0x140048425 (277 bytes)
//
// 3 xrefs:
// > cocos2d::CCLightning::lightningWithStrikePoint @ 0x1400482d7
// > ??> @ 0x14090fb24
// > ??> @ 0x14090fb30
//
// This function is hookable on this platform (idp: pc, 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 11:25:32 +0000
//
// Hidden C++ exception states: #wind=1
char __fastcall cocos2d::CCLightning::initWithStrikePoint(__int64 a1, __int64 a2, __int64 a3, float a4)
{
cocos2d::CCPoint *v6; // rbp
cocos2d::CCPoint *v7; // rbx
__int64 v8; // rdi
cocos2d::CCPoint::operator=(a1 + 328, a2);
cocos2d::CCPoint::operator=(a1 + 336, a3);
*(_WORD *)(a1 + 401) = -1;
*(_BYTE *)(a1 + 403) = -1;
*(_BYTE *)(a1 + 397) = -1;
*(_QWORD *)(a1 + 360) = rand();
*(_BYTE *)(a1 + 344) = 0;
*(float *)(a1 + 376) = a4;
*(_DWORD *)(a1 + 348) = 160;
*(_DWORD *)(a1 + 352) = 8;
*(_DWORD *)(a1 + 392) = 0;
v6 = (cocos2d::CCPoint *)operator new(0x640u);
v7 = v6;
v8 = 200;
do
{
cocos2d::CCPoint::CCPoint(v7);
v7 = (cocos2d::CCPoint *)((char *)v7 + 8);
--v8;
}
while ( v8 );
*(_QWORD *)(a1 + 384) = v6;
memset(v6, 0, 0x640u);
*(_BYTE *)(a1 + 372) = 0;
cocos2d::CCLightning::strike(a1);
return 1;
}