//
// GJBaseGameLayer::maxZOrderForShaderZ from 0x9a0274 to 0x9a02ec (120 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x9a28d0
// > GJBaseGameLayer::triggerGradientCommand @ 0x9ad538
// > ??> @ 0x96a00
//
// This function is hookable on this platform (idp: arm, 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 12:58:06 +0000
//
__int64 __fastcall GJBaseGameLayer::maxZOrderForShaderZ(GJBaseGameLayer *this, int a2)
{
unsigned int v2; // w2
__int64 result; // 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:
result = (unsigned int)GJBaseGameLayer::minZOrderForShaderZ(this, a2 + 1) - 1;
break;
case 8:
result = (__int64)&word_3C + 1;
break;
case 15:
result = 1400;
break;
default:
LABEL_3:
result = v2;
break;
}
return result;
}