//
// GJBaseGameLayer::maxZOrderForShaderZ from 0x10028b7d8 to 0x10028b844 (108 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerGradientCommand @ 0x10028b55c
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d2d0
//
// 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 11:02:00 +0000
//
__int64 __fastcall GJBaseGameLayer::maxZOrderForShaderZ(__int64 a1, unsigned int a2)
{
if ( a2 <= 0xF )
{
if ( ((1 << a2) & 0x7EF8) != 0 )
return (unsigned int)GJBaseGameLayer::minZOrderForShaderZ(a1, a2 + 1) - 1;
if ( a2 == 8 )
return 61;
if ( a2 == 15 )
return 1400;
}
if ( a2 - 1 >= 2 )
return 0;
else
return 4294965696LL;
}