//
// GJBaseGameLayer::lightningFlash from 0x10027ea80 to 0x10027ebf0 (368 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::teleportPlayer @ 0x10027e7e4
// > GJBaseGameLayer::checkpointActivated @ 0x1002a507c
// > GJBaseGameLayer::lightningFlash_1 @ 0x1002a5164
//
// 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 11:01:54 +0000
//
void __fastcall GJBaseGameLayer::lightningFlash(
__int64 a1,
float32x2_t *a2,
float32x2_t *a3,
int a4,
int a5,
int a6,
float a7,
float a8,
float a9)
{
__int64 v16; // x0
__int64 v17; // x23
float *v18; // x21
__int64 v19; // x1
__int64 v20; // x2
__int64 v21; // x3
__int64 v22; // x4
__int64 v23; // x5
__int64 v24; // x6
__int64 v25; // x7
__int64 v26; // x0
int v27; // w20
__int64 v28; // x1
__int64 v29; // x2
__int64 v30; // x3
__int64 v31; // x4
__int64 v32; // x5
__int64 v33; // x6
__int64 v34; // x7
char v35; // [xsp+0h] [xbp-90h]
__int64 v36; // [xsp+24h] [xbp-6Ch] BYREF
__int64 v37; // [xsp+2Ch] [xbp-64h] BYREF
float32x2_t v38; // [xsp+34h] [xbp-5Ch] BYREF
__int16 v39; // [xsp+3Ch] [xbp-54h] BYREF
char v40; // [xsp+3Eh] [xbp-52h]
v39 = a4;
v40 = BYTE2(a4);
sub_10002632C(a3, a2, &v38);
if ( (*(_BYTE *)(GameManager::sharedState(v16) + 925) & 1) == 0 )
{
sub_1000262F4(&v37, (double *)&v38);
sub_1000262F4(&v36, (double *)&qword_1009F5820);
v17 = cocos2d::CCLightning::lightningWithStrikePoint(&v37, &v36, a8);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v17 + 184LL))(v17, a2);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v17 + 976LL))(v17, &v39);
*(float *)(v17 + 368) = a7;
*(_WORD *)(v17 + 372) = 257;
*(float *)(v17 + 380) = a9;
if ( a5 )
*(_DWORD *)(v17 + 348) = a5;
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 3920) + 464LL))(*(_QWORD *)(a1 + 3920), v17, 0);
}
if ( a6 )
{
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 12552) + 344LL))(*(_QWORD *)(a1 + 12552), 1);
v18 = cocos2d::CCDelayTime::create(0.08);
if ( a5 )
{
v35 = (unsigned __int8)cocos2d::CCHide::create();
v26 = sub_10021D420((__int64)v18, v19, v20, v21, v22, v23, v24, v25, v35);
}
else
{
v27 = (unsigned __int8)cocos2d::CCBlink::create(1, 0.12);
cocos2d::CCHide::create();
v26 = sub_10021D420((__int64)v18, v28, v29, v30, v31, v32, v33, v34, v27);
}
cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 12552), v26);
}
}