//
// GJBaseGameLayer::maxZOrderForShaderZ from 0x470b84 to 0x470bbc (56 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x47282c
// > GJBaseGameLayer::triggerGradientCommand @ 0x47ca38
//
// 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 result; // r0
switch ( a2 )
{
case 1:
case 2:
result = -1600;
break;
case 3:
case 4:
case 5:
case 6:
case 7:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
result = GJBaseGameLayer::minZOrderForShaderZ(a1, a2 + 1) - 1;
break;
case 8:
result = (int)off_3C + 1;
break;
case 15:
result = 1400;
break;
default:
result = 0;
break;
}
return result;
}