{"type": "func", "start": 4297635800, "end": 4297635908, "name": "GJBaseGameLayer::maxZOrderForShaderZ", "pseudocode": "// \n// GJBaseGameLayer::maxZOrderForShaderZ from 0x10028b7d8 to 0x10028b844 (108 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x10028b55c\n// > GJBaseGameLayer::updateShaderLayer @ 0x10028d2d0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:02:00 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::maxZOrderForShaderZ(__int64 a1, unsigned int a2)\n{\n  if ( a2 <= 0xF )\n  {\n    if ( ((1 << a2) & 0x7EF8) != 0 )\n      return (unsigned int)GJBaseGameLayer::minZOrderForShaderZ(a1, a2 + 1) - 1;\n    if ( a2 == 8 )\n      return 61;\n    if ( a2 == 15 )\n      return 1400;\n  }\n  if ( a2 - 1 >= 2 )\n    return 0;\n  else\n    return 4294965696LL;\n}", "assembly": "; \n; GJBaseGameLayer::maxZOrderForShaderZ from 0x10028b7d8 to 0x10028b844 (108 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x10028b55c\n; > GJBaseGameLayer::updateShaderLayer @ 0x10028d2d0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:02:00 +0000\n; \nCMP             W1, #0xF                                               ; +0x0, 0x10028b7d8\nB.HI            loc_10028B828                                          ; +0x4, 0x10028b7dc\nMOV             W8, #1                                                 ; +0x8, 0x10028b7e0\nLSL             W8, W8, W1                                             ; +0xc, 0x10028b7e4\nMOV             W9, #0x7EF8                                            ; +0x10, 0x10028b7e8\nTST             W8, W9                                                 ; +0x14, 0x10028b7ec\nB.EQ            loc_10028B810                                          ; +0x18, 0x10028b7f0\nSTP             X29, X30, [SP,#var_10]!                                ; +0x1c, 0x10028b7f4\nMOV             X29, SP                                                ; +0x20, 0x10028b7f8\nADD             W1, W1, #1                                             ; +0x24, 0x10028b7fc\nBL              GJBaseGameLayer__minZOrderForShaderZ                   ; +0x28, 0x10028b800\nSUB             W0, W0, #1                                             ; +0x2c, 0x10028b804\nLDP             X29, X30, [SP+0x10+var_10],#0x10                       ; +0x30, 0x10028b808\nRET                                                                    ; +0x34, 0x10028b80c\nCMP             W1, #8                                                 ; +0x38, 0x10028b810\nB.EQ            loc_10028B83C                                          ; +0x3c, 0x10028b814\nCMP             W1, #0xF                                               ; +0x40, 0x10028b818\nB.NE            loc_10028B828                                          ; +0x44, 0x10028b81c\nMOV             W0, #0x578                                             ; +0x48, 0x10028b820\nRET                                                                    ; +0x4c, 0x10028b824\nMOV             W8, #0xFFFFF9C0                                        ; +0x50, 0x10028b828\nSUB             W9, W1, #1                                             ; +0x54, 0x10028b82c\nCMP             W9, #2                                                 ; +0x58, 0x10028b830\nCSEL            W0, W8, WZR, CC                                        ; +0x5c, 0x10028b834\nRET                                                                    ; +0x60, 0x10028b838\nMOV             W0, #0x3D ; '='                                        ; +0x64, 0x10028b83c\nRET                                                                    ; +0x68, 0x10028b840", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x10028b55c", "GJBaseGameLayer::updateShaderLayer @ 0x10028d2d0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}