//
// GJBaseGameLayer::maxZOrderForShaderZ from 0x14032b460 to 0x14032b4f4 (148 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::triggerGradientCommand @ 0x140327722
// > GJBaseGameLayer::updateShaderLayer @ 0x14032a8b9
// > ??> @ 0x14091f160
//
// 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:30:29 +0000
//
__int64 __fastcall GJBaseGameLayer::maxZOrderForShaderZ(__int64 a1, int a2)
{
__int64 result; // rax
switch ( a2 )
{
case 1:
case 2:
result = 4294965696LL;
break;
case 3:
case 4:
case 5:
case 6:
case 7:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
result = (unsigned int)GJBaseGameLayer::minZOrderForShaderZ(a1, a2 + 1) - 1;
break;
case 8:
result = 61;
break;
case 15:
result = 1400;
break;
default:
result = 0;
break;
}
return result;
}