//
// GJBaseGameLayer::lightningFlash from 0x9abb18 to 0x9abc30 (280 bytes)
//
// 2 xrefs:
// > PlayerObject::togglePlayerScale @ 0x75d0ec
// > ??> @ 0xe10a0
//
// 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:58:12 +0000
//
__int64 __fastcall GJBaseGameLayer::lightningFlash(__int64 a1, const cocos2d::CCPoint *a2, __int64 a3)
{
cocos2d::CCDirector *v5; // x0
float v6; // s10
float v7; // s8
float v8; // s9
float v9; // s0
long double v10; // q0
__int64 v13; // [xsp+78h] [xbp+78h] BYREF
_BYTE v14[8]; // [xsp+80h] [xbp+80h] BYREF
_BYTE v15[8]; // [xsp+88h] [xbp+88h] BYREF
_BYTE v16[8]; // [xsp+90h] [xbp+90h] BYREF
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v13, v5);
v6 = randRange(*(float *)a2 - 50.0, *(float *)a2 + 100.0);
v7 = *((float *)&v13 + 1) + 50.0;
v8 = *(float *)(a1 + 996);
v9 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3920) + 168LL))(*(_QWORD *)(a1 + 3920));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v6, v8 + (float)(v7 / v9));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (const cocos2d::CCPoint *)v14);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, a2);
LODWORD(v10) = 5.0;
GJBaseGameLayer::lightningFlash(a1, (__int64)v15, (__int64)v16, a3, 0, 1u, v10, 0.5, 1.0);
return _stack_chk_guard;
}