//
// cocos2d::CCLightning::initWithStrikePoint from 0x1006af600 to 0x1006af724 (292 bytes)
//
// 3 xrefs:
// > cocos2d::CCLightning::lightningWithStrikePoint_1 @ 0x1006af3fc
// > cocos2d::CCLightning::initWithStrikePoint_1 @ 0x1006af490
// > cocos2d::CCLightning::lightningWithStrikePoint @ 0x1006af5b0
//
// 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 12:35:23 +0000
//
char __fastcall cocos2d::CCLightning::initWithStrikePoint(__int64 a1, _QWORD *a2, _QWORD *a3, float a4)
{
char *v5; // r14
__int64 i; // r15
__int64 v7; // r14
_OWORD *v8; // r15
__int64 v9; // rax
__int64 v10; // rax
sub_100278300((_QWORD *)(a1 + 328), a2);
sub_100278300((_QWORD *)(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;
*(_QWORD *)(a1 + 348) = 0x8000000A0LL;
*(_DWORD *)(a1 + 392) = 0;
v5 = (char *)operator new[](0x640u);
for ( i = 0; i != 1600; i += 8 )
sub_1002782A0(&v5[i]);
*(_QWORD *)(a1 + 384) = v5;
__bzero(v5, 1600);
*(_BYTE *)(a1 + 372) = 0;
v7 = cocos2d::CCShow::create(v5);
v8 = cocos2d::CCFadeOut::create((__m128)*(unsigned int *)(a1 + 376));
v9 = cocos2d::CCCallFunc::create(a1, cocos2d::CCLightning::strikeFinished, 0);
v10 = sub_10039EB60(v7, v8, v9, 0);
cocos2d::CCNode::runAction(a1, v10);
return 1;
}