//
// GJBaseGameLayer::lightningFlash_1 from 0x100163660 to 0x10016375a (250 bytes)
//
// 1 xrefs:
// > PlayerObject::togglePlayerScale @ 0x1004131f4
//
// 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 __fastcall GJBaseGameLayer::lightningFlash_1(GJBaseGameLayer *a1, cocos2d::CCPoint a2, cocos2d::ccColor3B a3)
{
bool v3; // dl
float v4; // xmm3_4
bool v5; // bl
float *v6; // r15
cocos2d::CCDirector *v7; // rsi
float v8; // xmm0_4
float v9; // xmm4_4
_BYTE v10[8]; // [rsp+Ch] [rbp-54h] BYREF
_BYTE v11[8]; // [rsp+14h] [rbp-4Ch] BYREF
_BYTE v12[8]; // [rsp+1Ch] [rbp-44h] BYREF
_BYTE v13[4]; // [rsp+24h] [rbp-3Ch] BYREF
float v14; // [rsp+28h] [rbp-38h]
float v15; // [rsp+2Ch] [rbp-34h]
float y; // [rsp+30h] [rbp-30h]
float v17; // [rsp+34h] [rbp-2Ch]
v5 = v3;
v6 = *(float **)&a3.r;
v7 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v13);
v15 = sub_1001F9D80(v13, v7, *v6 + -50.0, *v6 + 100.0);
y = a1->m_gameState.m_cameraPosition.y;
v17 = v14 + 50.0;
v8 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getScale)(a1->m_objectLayer);
sub_10028CBE0(v10, v15, (float)(v17 / v8) + y);
sub_10028CC60(v11);
sub_10028CC60(v12);
GJBaseGameLayer::lightningFlash(
a1,
(cocos2d::CCPoint)1084227584LL,
(cocos2d::CCPoint)1056964608LL,
(cocos2d::ccColor3B)v11,
1.0,
v4,
(int)v12,
v5,
v9);
}