//
// GJBaseGameLayer::maxZOrderForShaderZ from 0x5905f0 to 0x590628 (56 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x5922cc
// > GJBaseGameLayer::triggerGradientCommand @ 0x59b51c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:05 +0000
//
int __fastcall GJBaseGameLayer::maxZOrderForShaderZ(GJBaseGameLayer *this, 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(this, a2 + 1) - 1;
break;
case 8:
result = (int)off_3C + 1;
break;
case 15:
result = 1400;
break;
default:
result = 0;
break;
}
return result;
}