//
// GJBaseGameLayer::maxZOrderForShaderZ from 0x85cf38 to 0x85cfb0 (120 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x85f51c
// > GJBaseGameLayer::triggerGradientCommand @ 0x86c2bc
// > ??> @ 0x6fcf0
//
// 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
//
int GJBaseGameLayer::maxZOrderForShaderZ(GJBaseGameLayer *a1, int a2)
{
int v2; // w2
char *v3; // x0
v2 = 0;
switch ( a2 )
{
case 1:
case 2:
v2 = -1600;
goto LABEL_3;
case 3:
case 4:
case 5:
case 6:
case 7:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
LODWORD(v3) = GJBaseGameLayer::minZOrderForShaderZ(a1, a2 + 1) - 1;
break;
case 8:
v3 = (char *)&word_3C + 1;
break;
case 15:
LODWORD(v3) = 1400;
break;
default:
LABEL_3:
LODWORD(v3) = v2;
break;
}
return (int)v3;
}