//
// GJBaseGameLayer::lightningFlash from 0x59832c to 0x5983f2 (198 bytes)
//
// 1 xrefs:
// > PlayerObject::togglePlayerScale @ 0x43f69e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:10 +0000
//
int __fastcall GJBaseGameLayer::lightningFlash(int a1, const cocos2d::CCPoint *a2, int a3)
{
float v5; // r0
float v6; // s17
float v7; // s16
float v8; // r7
float v9; // r0
_BYTE v12[4]; // [sp+24h] [bp-24h] BYREF
float v13; // [sp+28h] [bp-20h]
_BYTE v14[8]; // [sp+2Ch] [bp-1Ch] BYREF
_BYTE v15[8]; // [sp+34h] [bp-14h] BYREF
_BYTE v16[8]; // [sp+3Ch] [bp-Ch] BYREF
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)a1);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v12);
v5 = randRange(*(float *)a2 - 50.0, *(float *)a2 + 100.0);
v6 = *(float *)(a1 + 852);
v7 = v13 + 50.0;
v8 = v5;
v9 = (*(float (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 2436) + 84))(*(_DWORD *)(a1 + 2436));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v8, v6 + (float)(v7 / v9));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (const cocos2d::CCPoint *)v14);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, a2);
return GJBaseGameLayer::lightningFlash(a1, (int)v15, (int)v16, a3, 1084227584, 1056964608, 0, 1, 1065353216);
}