{"type": "func", "start": 5370951600, "end": 5370951748, "name": "GJBaseGameLayer::maxZOrderForShaderZ", "pseudocode": "// \n// GJBaseGameLayer::maxZOrderForShaderZ from 0x1402237b0 to 0x140223844 (148 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x14021f9c2\n// > GJBaseGameLayer::updateShaderLayer @ 0x140222b46\n// > <???> @ 0x1406cd5b4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint GJBaseGameLayer::maxZOrderForShaderZ(GJBaseGameLayer *a1, int a2)\n{\n  int result; // eax\n\n  switch ( a2 )\n  {\n    case 1:\n    case 2:\n      result = -1600;\n      break;\n    case 3:\n    case 4:\n    case 5:\n    case 6:\n    case 7:\n    case 9:\n    case 10:\n    case 11:\n    case 12:\n    case 13:\n    case 14:\n      result = GJBaseGameLayer::minZOrderForShaderZ(a1, a2 + 1) - 1;\n      break;\n    case 8:\n      result = 61;\n      break;\n    case 15:\n      result = 1400;\n      break;\n    default:\n      result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::maxZOrderForShaderZ from 0x1402237b0 to 0x140223844 (148 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x14021f9c2\n; > GJBaseGameLayer::updateShaderLayer @ 0x140222b46\n; > <???> @ 0x1406cd5b4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nsub     rsp, 28h                                                       ; +0x0, 0x1402237b0\nlea     eax, [rdx-1]; switch 15 cases                                  ; +0x4, 0x1402237b4\ncmp     eax, 0Eh                                                       ; +0x7, 0x1402237b7\nja      short def_1402237D0; jumptable 00000001402237D0 default case   ; +0xa, 0x1402237ba\nlea     r8, cs:140000000h                                              ; +0xc, 0x1402237bc\ncdqe                                                                   ; +0x13, 0x1402237c3\nmov     ecx, ds:(jpt_1402237D0 - 140000000h)[r8+rax*4]                 ; +0x15, 0x1402237c5\nadd     rcx, r8                                                        ; +0x1d, 0x1402237cd\njmp     rcx; switch jump                                               ; +0x20, 0x1402237d0\nmov     eax, 0FFFFF9C0h; jumptable 00000001402237D0 cases 1,2          ; +0x22, 0x1402237d2\nadd     rsp, 28h                                                       ; +0x27, 0x1402237d7\nretn                                                                   ; +0x2b, 0x1402237db\nmov     eax, 3Dh ; '='; jumptable 00000001402237D0 case 8              ; +0x2c, 0x1402237dc\nadd     rsp, 28h                                                       ; +0x31, 0x1402237e1\nretn                                                                   ; +0x35, 0x1402237e5\ninc     edx; jumptable 00000001402237D0 cases 3-7,9-14                 ; +0x36, 0x1402237e6\ncall    GJBaseGameLayer__minZOrderForShaderZ                           ; +0x38, 0x1402237e8\ndec     eax                                                            ; +0x3d, 0x1402237ed\nadd     rsp, 28h                                                       ; +0x3f, 0x1402237ef\nretn                                                                   ; +0x43, 0x1402237f3\nmov     eax, 578h; jumptable 00000001402237D0 case 15                  ; +0x44, 0x1402237f4\nadd     rsp, 28h                                                       ; +0x49, 0x1402237f9\nretn                                                                   ; +0x4d, 0x1402237fd\nxor     eax, eax; jumptable 00000001402237D0 default case              ; +0x4e, 0x1402237fe\nadd     rsp, 28h                                                       ; +0x50, 0x140223800\nretn                                                                   ; +0x54, 0x140223804\nalign 8                                                                ; +0x55, 0x140223805\ndd offset loc_1402237D2 - 140000000h; jump table for switch statement  ; +0x58, 0x140223808", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x14021f9c2", "GJBaseGameLayer::updateShaderLayer @ 0x140222b46", "<???> @ 0x1406cd5b4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}