//
// ShaderLayer::resetAllShaders from 0x1003bb4c0 to 0x1003bb549 (137 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x1000ad1b4
// > GJBaseGameLayer::triggerShaderCommand @ 0x100118007
// > GJBaseGameLayer::resetLevelVariables @ 0x10013897d
//
// 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 12:29:30 +0000
//
unsigned __int64 __fastcall ShaderLayer::resetAllShaders(__int64 a1)
{
unsigned __int64 result; // rax
cocos2d::CCNode::stopAllActions(a1);
result = GJShaderState::reset(a1 + 408);
*(_QWORD *)(a1 + 488) = *(_QWORD *)(a1 + 504);
if ( *(_DWORD *)(a1 + 1068) == 1 )
{
if ( *(_DWORD *)(a1 + 1072) == 15 )
goto LABEL_3;
}
else
{
*(_DWORD *)(a1 + 1068) = 1;
*(_BYTE *)(a1 + 1076) = 1;
if ( *(_DWORD *)(a1 + 1072) == 15 )
{
LABEL_3:
if ( !*(_BYTE *)(a1 + 1077) )
return result;
goto LABEL_4;
}
}
*(_DWORD *)(a1 + 1072) = 15;
*(_BYTE *)(a1 + 1076) = 1;
if ( !*(_BYTE *)(a1 + 1077) )
return result;
LABEL_4:
*(_BYTE *)(a1 + 1077) = 0;
return result;
}