//
// cocos2d::CCLightning::lightningWithStrikePoint from 0x1005ddba0 to 0x1005ddcbd (285 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::lightningFlash @ 0x1001213b9
// > RewardUnlockLayer::playRewardEffect @ 0x10021e06e
// > SecretLayer5::showSuccessAnimation @ 0x10047cb16
//
// 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 *__fastcall cocos2d::CCLightning::lightningWithStrikePoint(
cocos2d::CCPoint a1,
cocos2d::CCPoint a2,
float a3)
{
double *v3; // rdi
double *v4; // rsi
char *v5; // rbx
__int64 v7; // [rsp+Ch] [rbp-34h] BYREF
__int64 v8; // [rsp+14h] [rbp-2Ch] BYREF
float x; // [rsp+1Ch] [rbp-24h]
x = a1.x;
v5 = (char *)operator new(0x198u);
cocos2d::CCNode::CCNode((__int64)v5);
*(_QWORD *)v5 = off_100975770;
*((_QWORD *)v5 + 40) = off_100975B60;
sub_10028CC60((_QWORD *)v5 + 41, &dbl_1009A2DD8);
sub_10028CC60((_QWORD *)v5 + 42, &dbl_1009A2DD8);
v5[344] = 0;
*(_QWORD *)(v5 + 348) = 0;
*((_QWORD *)v5 + 45) = 0;
*((_DWORD *)v5 + 92) = 0x40000000;
v5[373] = 0;
*((_QWORD *)v5 + 47) = 0x3F8000003F000000LL;
*((_WORD *)v5 + 202) = 0;
v5[406] = 0;
*((_QWORD *)v5 + 48) = 0;
*(_QWORD *)(v5 + 390) = 0;
sub_10028CC60(&v7, v3);
sub_10028CC60(&v8, v4);
cocos2d::CCLightning::initWithStrikePoint((cocos2d::CCLightning *)v5, (cocos2d::CCPoint)LODWORD(x), a2, a3);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return (cocos2d::CCLightning *)v5;
}