//
// CCLightFlash::removeLights from 0x140047910 to 0x14004796f (95 bytes)
//
// 2 xrefs:
// > CCLightFlash::showFlash @ 0x14004785c
// > ??> @ 0x14090faa0
//
// This function is hookable on this platform (idp: pc, 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:25:31 +0000
//
unsigned int __fastcall CCLightFlash::removeLights(__int64 a1)
{
unsigned int v2; // ebx
unsigned int result; // eax
struct cocos2d::CCObject *v4; // rax
__int64 v5; // rdx
v2 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 320));
if ( result )
{
do
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 320), v2);
LOBYTE(v5) = 1;
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 520LL))(v4, v5);
++v2;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 320));
}
while ( v2 < result );
}
return result;
}