//
// GJBaseGameLayer::lightningFlash from 0x86a89c to 0x86a9b4 (280 bytes)
//
// 2 xrefs:
// > PlayerObject::togglePlayerScale @ 0x62dfc8
// > ??> @ 0xabc18
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void GJBaseGameLayer::lightningFlash(GJBaseGameLayer *a1, cocos2d::CCPoint a2, cocos2d::ccColor3B a3)
{
__int64 v3; // x2
const cocos2d::CCPoint *v5; // x23
cocos2d::CCDirector *v6; // x0
float v7; // s10
float y; // s9
float v9; // s0
__int64 v10; // [xsp+68h] [xbp+68h]
float v11; // [xsp+7Ch] [xbp+7Ch]
cocos2d::CCPoint v12; // [xsp+80h] [xbp+80h] BYREF
cocos2d::CCPoint v13; // [xsp+88h] [xbp+88h] BYREF
cocos2d::CCPoint v14; // [xsp+90h] [xbp+90h] BYREF
v10 = v3;
v5 = *(const cocos2d::CCPoint **)&a3.r;
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6);
v7 = randRange(v5->x - 50.0, v5->x + 100.0);
y = a1->m_gameState.m_cameraPosition.y;
v9 = a1->m_objectLayer->getScale(a1->m_objectLayer);
cocos2d::CCPoint::CCPoint(&v12, v7, y + (float)((float)(v11 + 50.0) / v9));
cocos2d::CCPoint::CCPoint(&v13, &v12);
cocos2d::CCPoint::CCPoint(&v14, v5);
GJBaseGameLayer::lightningFlash((__int64)a1, &v13, (__int64)&v14, v10, 0, 1u, 5.0, 0.5, 1.0);
}