{"type": "func", "start": 5370951424, "end": 5370951528, "name": "GJBaseGameLayer::minZOrderForShaderZ", "pseudocode": "// \n// GJBaseGameLayer::minZOrderForShaderZ from 0x140223700 to 0x140223768 (104 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::updateShaderLayer @ 0x140222b3c\n// > GJBaseGameLayer::maxZOrderForShaderZ @ 0x1402237e8\n// > <???> @ 0x1406cd5a8\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::minZOrderForShaderZ(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      result = -1500;\n      break;\n    case 4:\n      result = -1200;\n      break;\n    case 5:\n      result = -900;\n      break;\n    case 6:\n      result = -600;\n      break;\n    case 7:\n      result = -300;\n      break;\n    case 8:\n      result = 39;\n      break;\n    case 9:\n      result = 100;\n      break;\n    case 10:\n      result = 400;\n      break;\n    case 11:\n      result = 700;\n      break;\n    case 12:\n      result = 1000;\n      break;\n    case 13:\n    case 14:\n    case 15:\n      result = 1400;\n      break;\n    default:\n      result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::minZOrderForShaderZ from 0x140223700 to 0x140223768 (104 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::updateShaderLayer @ 0x140222b3c\n; > GJBaseGameLayer::maxZOrderForShaderZ @ 0x1402237e8\n; > <???> @ 0x1406cd5a8\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\ndec     edx; switch 15 cases                                           ; +0x0, 0x140223700\ncmp     edx, 0Eh                                                       ; +0x2, 0x140223702\nja      short def_14022371B; jumptable 000000014022371B default case   ; +0x5, 0x140223705\nmovsxd  rax, edx                                                       ; +0x7, 0x140223707\nlea     rdx, cs:140000000h                                             ; +0xa, 0x14022370a\nmov     ecx, ds:(jpt_14022371B - 140000000h)[rdx+rax*4]                ; +0x11, 0x140223711\nadd     rcx, rdx                                                       ; +0x18, 0x140223718\njmp     rcx; switch jump                                               ; +0x1b, 0x14022371b\nmov     eax, 0FFFFF9C0h; jumptable 000000014022371B cases 1,2          ; +0x1d, 0x14022371d\nretn                                                                   ; +0x22, 0x140223722\nmov     eax, 0FFFFFA24h; jumptable 000000014022371B case 3             ; +0x23, 0x140223723\nretn                                                                   ; +0x28, 0x140223728\nmov     eax, 0FFFFFB50h; jumptable 000000014022371B case 4             ; +0x29, 0x140223729\nretn                                                                   ; +0x2e, 0x14022372e\nmov     eax, 0FFFFFC7Ch; jumptable 000000014022371B case 5             ; +0x2f, 0x14022372f\nretn                                                                   ; +0x34, 0x140223734\nmov     eax, 0FFFFFDA8h; jumptable 000000014022371B case 6             ; +0x35, 0x140223735\nretn                                                                   ; +0x3a, 0x14022373a\nmov     eax, 0FFFFFED4h; jumptable 000000014022371B case 7             ; +0x3b, 0x14022373b\nretn                                                                   ; +0x40, 0x140223740\nmov     eax, 27h ; '''; jumptable 000000014022371B case 8              ; +0x41, 0x140223741\nretn                                                                   ; +0x46, 0x140223746\nmov     eax, 64h ; 'd'; jumptable 000000014022371B case 9              ; +0x47, 0x140223747\nretn                                                                   ; +0x4c, 0x14022374c\nmov     eax, 190h; jumptable 000000014022371B case 10                  ; +0x4d, 0x14022374d\nretn                                                                   ; +0x52, 0x140223752\nmov     eax, 2BCh; jumptable 000000014022371B case 11                  ; +0x53, 0x140223753\nretn                                                                   ; +0x58, 0x140223758\nmov     eax, 3E8h; jumptable 000000014022371B case 12                  ; +0x59, 0x140223759\nretn                                                                   ; +0x5e, 0x14022375e\nmov     eax, 578h; jumptable 000000014022371B cases 13-15              ; +0x5f, 0x14022375f\nretn                                                                   ; +0x64, 0x140223764\nxor     eax, eax; jumptable 000000014022371B default case              ; +0x65, 0x140223765\nretn                                                                   ; +0x67, 0x140223767", "xrefs": ["GJBaseGameLayer::updateShaderLayer @ 0x140222b3c", "GJBaseGameLayer::maxZOrderForShaderZ @ 0x1402237e8", "<???> @ 0x1406cd5a8"], "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"}