//
// ShaderLayer::updateZLayer from 0x14062a610 to 0x14062a685 (117 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x140328ea5
//
// 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:35:25 +0000
//
void __fastcall ShaderLayer::updateZLayer(__int64 a1, int a2, int a3, char a4)
{
int v4; // r11d
int v5; // r10d
int v6; // r8d
int v7; // edx
v4 = 1;
v5 = 15;
if ( a2 > 0 )
v4 = a2;
if ( a3 > 0 )
v5 = a3;
v6 = *(_DWORD *)(a1 + 1116);
if ( v6 != v4 )
{
*(_DWORD *)(a1 + 1116) = v4;
v6 = v4;
*(_BYTE *)(a1 + 1124) = 1;
}
v7 = *(_DWORD *)(a1 + 1120);
if ( v7 != v5 )
{
*(_DWORD *)(a1 + 1120) = v5;
v7 = v5;
*(_BYTE *)(a1 + 1124) = 1;
}
if ( *(_BYTE *)(a1 + 1125) != a4 )
{
*(_BYTE *)(a1 + 1125) = a4;
if ( v6 == 8 || v7 == 8 )
*(_BYTE *)(a1 + 1124) = 1;
}
}