package org.runite.client;


import java.util.Objects;

final class Class110 {

    static int anInt1472 = 0;
    static int[] anIntArray2386 = new int[]{1, -1, -1, 1};


    static void method1681(int var0) {
        try {
            if (LoginHandler.loginStage == 5) {
                if (var0 != -1) {
                    TextCore.COMMAND_BREAK_JS5_SERVER_CONNECTION = null;
                }

                LoginHandler.loginStage = 6;
            }
        } catch (RuntimeException var2) {
            throw ClientErrorException.clientError(var2, "p.A(" + var0 + ')');
        }
    }

    static void method1683(int var0, boolean var1, int var2, boolean var3, Class91 var4, int objectId, int type, int var7, int var9, int var10) {
        try {
            var2 %= 4;
            if (var1 && !NPC.method1986(103) && 0 == (2 & Unsorted.aByteArrayArrayArray113[0][var7][var9])) {
                if (0 != (16 & Unsorted.aByteArrayArrayArray113[var2][var7][var9])) {
                    return;
                }

                if (Class140_Sub3.anInt2745 != PacketParser.method823(var9, var7, (byte) 50 ^ -127, var2)) {
                    return;
                }
            }

            if (Class85.anInt1174 > var2) {
                Class85.anInt1174 = var2;
            }

            ObjectDefinition def = ObjectDefinition.getObjectDefinition(objectId);
            if (!HDToolKit.highDetail || !def.aBoolean1530) {
                int var12;
                int var13;
                if (var10 == 1 || var10 == 3) {
                    var13 = def.SizeX;
                    var12 = def.SizeY;
                } else {
                    var12 = def.SizeX;
                    var13 = def.SizeY;
                }

                int var14;
                int var15;
                if (var7 + var12 <= 104) {
                    var14 = var7 + (var12 >> 1);
                    var15 = var7 - -(1 + var12 >> 1);
                } else {
                    var15 = 1 + var7;
                    var14 = var7;
                }

                int var17;
                int var16;
                if (var13 + var9 > 104) {
                    var16 = var9;
                    var17 = var9 - -1;
                } else {
                    var16 = (var13 >> 1) + var9;
                    var17 = var9 + (var13 + 1 >> 1);
                }

                int[][] var18 = Class44.anIntArrayArrayArray723[var0];
                int var20 = (var12 << 6) + (var7 << 7);
                int var21 = (var13 << 6) + (var9 << 7);
                int var19 = var18[var14][var17] + var18[var15][var16] + var18[var14][var16] + var18[var15][var17] >> 2;
                int var22 = 0;
                int[][] var23;
                if (HDToolKit.highDetail && var0 != 0) {
                    var23 = Class44.anIntArrayArrayArray723[0];
                    var22 = var19 - (var23[var15][var17] + var23[var15][var16] + var23[var14][var16] + var23[var14][var17] >> 2);
                }

                var23 = null;
                long var24 = 1073741824 | var7 | var9 << 7 | type << 14 | var10 << 20;
                if (var3) {
                    var23 = Class58.anIntArrayArrayArray914[0];
                } else if (var0 < 3) {
                    var23 = Class44.anIntArrayArrayArray723[1 + var0];
                }

                if (0 == def.SecondInt || var3) {
                    var24 |= Long.MIN_VALUE;
                }

                if (1 == def.anInt1540) {
                    var24 |= 4194304L;
                }

                if (def.aBoolean1507) {
                    var24 |= 2147483648L;
                }

                if (def.method1690()) {
                    Class70.method1286(var9, def, var10, null, var7, var2, null);
                }

                boolean var26 = def.aBoolean1503 & !var3;
                var24 |= (long) objectId << 32;
                Object object;
                Class136 var28;
                if (22 != type) {
                    if (10 == type || 11 == type) {
                        if (def.animationId == -1 && def.ChildrenIds == null && !def.aBoolean1510) {
                            var28 = def.method1696(type == 11 ? 4 + var10 : var10, var20, var18, 10, var19, var23, var1, null, (byte) -26, var26, var21);
                            if (HDToolKit.highDetail && var26) {
                                Class141.method2051(Objects.requireNonNull(var28).aClass109_Sub1_1770, var20, var22, var21);
                            }

                            object = Objects.requireNonNull(var28).aClass140_1777;
                        } else {
                            object = new Class140_Sub3(objectId, 10, 11 == type ? 4 - -var10 : var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                        }

                        if (object != null) {
                            boolean var37 = method835(var2, var7, var9, var19, var12, var13, (GameObject) object, var24);
                            if (def.aBoolean1525 && var37 && var1) {
                                int var29 = 15;
                                if (object instanceof Model) {
                                    var29 = ((Model) object).method1888() / 4;
                                    if (var29 > 30) {
                                        var29 = 30;
                                    }
                                }

                                for (int var30 = 0; var30 <= var12; ++var30) {
                                    for (int var31 = 0; var13 >= var31; ++var31) {
                                        if (var29 > Class67.aByteArrayArrayArray1014[var2][var7 + var30][var31 + var9]) {
                                            Class67.aByteArrayArrayArray1014[var2][var7 - -var30][var9 - -var31] = (byte) var29;
                                        }
                                    }
                                }
                            }
                        }

                        if (0 != def.ClipType && null != var4) {
                            var4.method1489(var7, def.ProjectileClipped, (byte) 96, var9, var12, var13);
                        }

                    } else if (12 <= type) {
                        if (-1 == def.animationId && null == def.ChildrenIds && !def.aBoolean1510) {
                            var28 = def.method1696(var10, var20, var18, type, var19, var23, var1, null, (byte) -82, var26, var21);
                            if (HDToolKit.highDetail && var26) {
                                Class141.method2051(Objects.requireNonNull(var28).aClass109_Sub1_1770, var20, var22, var21);
                            }

                            object = Objects.requireNonNull(var28).aClass140_1777;
                        } else {
                            object = new Class140_Sub3(objectId, type, var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                        }

                        method835(var2, var7, var9, var19, 1, 1, (GameObject) object, var24);
                        if (var1 && type <= 17 && type != 13 && var2 > 0) {
                            Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9], 4);
                        }

                        if (def.ClipType != 0 && null != var4) {
                            var4.method1489(var7, def.ProjectileClipped, (byte) 73, var9, var12, var13);
                        }

                    } else if (0 == type) {
                        if (def.animationId == -1 && null == def.ChildrenIds && !def.aBoolean1510) {
                            var28 = def.method1696(var10, var20, var18, 0, var19, var23, var1, null, (byte) -74, var26, var21);
                            if (HDToolKit.highDetail && var26) {
                                Class141.method2051(Objects.requireNonNull(var28).aClass109_Sub1_1770, var20, var22, var21);
                            }

                            object = Objects.requireNonNull(var28).aClass140_1777;
                        } else {
                            object = new Class140_Sub3(objectId, 0, var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                        }

                        Class154.method2146(var2, var7, var9, var19, (GameObject) object, null, Class159.anIntArray2017[var10], 0, var24);
                        if (var1) {
                            if (var10 == 0) {
                                if (def.aBoolean1525) {
                                    Class67.aByteArrayArrayArray1014[var2][var7][var9] = 50;
                                    Class67.aByteArrayArrayArray1014[var2][var7][1 + var9] = 50;
                                }

                                if (def.aBoolean1542) {
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9], 1);
                                }
                            } else if (1 == var10) {
                                if (def.aBoolean1525) {
                                    Class67.aByteArrayArrayArray1014[var2][var7][var9 - -1] = 50;
                                    Class67.aByteArrayArrayArray1014[var2][var7 - -1][var9 + 1] = 50;
                                }

                                if (def.aBoolean1542) {
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7][1 + var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][1 + var9], 2);
                                }
                            } else if (var10 == 2) {
                                if (def.aBoolean1525) {
                                    Class67.aByteArrayArrayArray1014[var2][var7 + 1][var9] = 50;
                                    Class67.aByteArrayArrayArray1014[var2][1 + var7][1 + var9] = 50;
                                }

                                if (def.aBoolean1542) {
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7 - -1][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7 - -1][var9], 1);
                                }
                            } else if (var10 == 3) {
                                if (def.aBoolean1525) {
                                    Class67.aByteArrayArrayArray1014[var2][var7][var9] = 50;
                                    Class67.aByteArrayArrayArray1014[var2][1 + var7][var9] = 50;
                                }

                                if (def.aBoolean1542) {
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9], 2);
                                }
                            }
                        }

                        if (0 != def.ClipType && var4 != null) {
                            var4.method1486(var10, type, def.ProjectileClipped, var9, var7);
                        }

                        if (def.anInt1528 != 16) {
                            Class140_Sub2.method1956(var2, var7, var9, def.anInt1528);
                        }

                    } else if (type == 1) {
                        if (-1 == def.animationId && def.ChildrenIds == null && !def.aBoolean1510) {
                            var28 = def.method1696(var10, var20, var18, 1, var19, var23, var1, null, (byte) -83, var26, var21);
                            if (HDToolKit.highDetail && var26) {
                                Class141.method2051(Objects.requireNonNull(var28).aClass109_Sub1_1770, var20, var22, var21);
                            }

                            object = Objects.requireNonNull(var28).aClass140_1777;
                        } else {
                            object = new Class140_Sub3(objectId, 1, var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                        }

                        Class154.method2146(var2, var7, var9, var19, (GameObject) object, null, Class40.anIntArray675[var10], 0, var24);
                        if (def.aBoolean1525 && var1) {
                            if (0 == var10) {
                                Class67.aByteArrayArrayArray1014[var2][var7][var9 + 1] = 50;
                            } else if (var10 == 1) {
                                Class67.aByteArrayArrayArray1014[var2][var7 - -1][1 + var9] = 50;
                            } else if (var10 == 2) {
                                Class67.aByteArrayArrayArray1014[var2][1 + var7][var9] = 50;
                            } else if (3 == var10) {
                                Class67.aByteArrayArrayArray1014[var2][var7][var9] = 50;
                            }
                        }

                        if (def.ClipType != 0 && null != var4) {
                            var4.method1486(var10, type, def.ProjectileClipped, var9, var7);
                        }

                    } else {
                        int var43;
                        if (type == 2) {
                            var43 = 1 + var10 & 3;
                            Object var38;
                            Object var42;
                            if (def.animationId == -1 && def.ChildrenIds == null && !def.aBoolean1510) {
                                Class136 var45 = def.method1696(var10 + 4, var20, var18, 2, var19, var23, var1, null, (byte) -108, var26, var21);
                                if (HDToolKit.highDetail && var26) {
                                    Class141.method2051(Objects.requireNonNull(var45).aClass109_Sub1_1770, var20, var22, var21);
                                }

                                var42 = Objects.requireNonNull(var45).aClass140_1777;
                                var45 = def.method1696(var43, var20, var18, 2, var19, var23, var1, null, (byte) -69, var26, var21);
                                if (HDToolKit.highDetail && var26) {
                                    Class141.method2051(Objects.requireNonNull(var45).aClass109_Sub1_1770, var20, var22, var21);
                                }

                                var38 = Objects.requireNonNull(var45).aClass140_1777;
                            } else {
                                var42 = new Class140_Sub3(objectId, 2, 4 + var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                                var38 = new Class140_Sub3(objectId, 2, var43, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                            }

                            Class154.method2146(var2, var7, var9, var19, (GameObject) var42, (GameObject) var38, Class159.anIntArray2017[var10], Class159.anIntArray2017[var43], var24);
                            if (def.aBoolean1542 && var1) {
                                if (var10 == 0) {
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9], 1);
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7][1 + var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][1 + var9], 2);
                                } else if (var10 == 1) {
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9 - -1] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9 - -1], 2);
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7 - -1][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7 - -1][var9], 1);
                                } else if (var10 == 2) {
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][1 + var7][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][1 + var7][var9], 1);
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9], 2);
                                } else if (var10 == 3) {
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9], 2);
                                    Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9] = TextureOperation3.bitwiseOr(Class38_Sub1.anIntArrayArrayArray2609[var2][var7][var9], 1);
                                }
                            }

                            if (def.ClipType != 0 && var4 != null) {
                                var4.method1486(var10, type, def.ProjectileClipped, var9, var7);
                            }

                            if (def.anInt1528 != 16) {
                                Class140_Sub2.method1956(var2, var7, var9, def.anInt1528);
                            }

                        } else if (type == 3) {
                            if (def.animationId == -1 && null == def.ChildrenIds && !def.aBoolean1510) {
                                var28 = def.method1696(var10, var20, var18, 3, var19, var23, var1, null, (byte) -54, var26, var21);
                                if (HDToolKit.highDetail && var26) {
                                    Class141.method2051(Objects.requireNonNull(var28).aClass109_Sub1_1770, var20, var22, var21);
                                }

                                object = Objects.requireNonNull(var28).aClass140_1777;
                            } else {
                                object = new Class140_Sub3(objectId, 3, var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                            }

                            Class154.method2146(var2, var7, var9, var19, (GameObject) object, null, Class40.anIntArray675[var10], 0, var24);
                            if (def.aBoolean1525 && var1) {
                                if (0 == var10) {
                                    Class67.aByteArrayArrayArray1014[var2][var7][var9 + 1] = 50;
                                } else if (var10 == 1) {
                                    Class67.aByteArrayArrayArray1014[var2][1 + var7][var9 + 1] = 50;
                                } else if (var10 == 2) {
                                    Class67.aByteArrayArrayArray1014[var2][1 + var7][var9] = 50;
                                } else if (var10 == 3) {
                                    Class67.aByteArrayArrayArray1014[var2][var7][var9] = 50;
                                }
                            }

                            if (0 != def.ClipType && var4 != null) {
                                var4.method1486(var10, type, def.ProjectileClipped, var9, var7);
                            }

                        } else if (type == 9) {
                            if (def.animationId == -1 && def.ChildrenIds == null && !def.aBoolean1510) {
                                var28 = def.method1696(var10, var20, var18, type, var19, var23, var1, null, (byte) -30, var26, var21);
                                if (HDToolKit.highDetail && var26) {
                                    Class141.method2051(Objects.requireNonNull(var28).aClass109_Sub1_1770, var20, var22, var21);
                                }

                                object = Objects.requireNonNull(var28).aClass140_1777;
                            } else {
                                object = new Class140_Sub3(objectId, type, var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                            }

                            method835(var2, var7, var9, var19, 1, 1, (GameObject) object, var24);
                            if (def.ClipType != 0 && var4 != null) {
                                var4.method1489(var7, def.ProjectileClipped, (byte) 127, var9, var12, var13);
                            }

                            if (def.anInt1528 != 16) {
                                Class140_Sub2.method1956(var2, var7, var9, def.anInt1528);
                            }

                        } else if (4 == type) {
                            if (def.animationId == -1 && null == def.ChildrenIds && !def.aBoolean1510) {
                                var28 = def.method1696(var10, var20, var18, 4, var19, var23, var1, null, (byte) -103, var26, var21);
                                if (HDToolKit.highDetail && var26) {
                                    Class141.method2051(Objects.requireNonNull(var28).aClass109_Sub1_1770, var20, var22, var21);
                                }

                                object = Objects.requireNonNull(var28).aClass140_1777;
                            } else {
                                object = new Class140_Sub3(objectId, 4, var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                            }

                            Class3_Sub28_Sub8.method577(var2, var7, var9, var19, (GameObject) object, null, Class159.anIntArray2017[var10], 0, 0, 0, var24);
                        } else {
                            Object var39;
                            Class136 var47;
                            long var44;
                            if (type == 5) {
                                var43 = 16;
                                var44 = Class157.method2174(var2, var7, var9);
                                if (var44 != 0) {
                                    var43 = ObjectDefinition.getObjectDefinition(Integer.MAX_VALUE & (int) (var44 >>> 32)).anInt1528;
                                }

                                if (def.animationId == -1 && null == def.ChildrenIds && !def.aBoolean1510) {
                                    var47 = def.method1696(var10, var20, var18, 4, var19, var23, var1, null, (byte) -125, var26, var21);
                                    if (HDToolKit.highDetail && var26) {
                                        Class141.method2051(Objects.requireNonNull(var47).aClass109_Sub1_1770, var20 + -(RenderAnimationDefinition.anIntArray356[var10] * 8), var22, -(Class3_Sub24_Sub3.anIntArray3491[var10] * 8) + var21);
                                    }

                                    var39 = Objects.requireNonNull(var47).aClass140_1777;
                                } else {
                                    var39 = new Class140_Sub3(objectId, 4, var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                                }

                                Class3_Sub28_Sub8.method577(var2, var7, var9, var19, (GameObject) var39, null, Class159.anIntArray2017[var10], 0, var43 * RenderAnimationDefinition.anIntArray356[var10], Class3_Sub24_Sub3.anIntArray3491[var10] * var43, var24);
                            } else if (type == 6) {
                                var43 = 8;
                                var44 = Class157.method2174(var2, var7, var9);
                                if (var44 != 0) {
                                    var43 = ObjectDefinition.getObjectDefinition(Integer.MAX_VALUE & (int) (var44 >>> 32)).anInt1528 / 2;
                                }

                                if (def.animationId == -1 && def.ChildrenIds == null && !def.aBoolean1510) {
                                    var47 = def.method1696(var10 + 4, var20, var18, 4, var19, var23, var1, null, (byte) -65, var26, var21);
                                    if (HDToolKit.highDetail && var26) {
                                        Class141.method2051(Objects.requireNonNull(var47).aClass109_Sub1_1770, -(8 * anIntArray2386[var10]) + var20, var22, -(8 * Class163_Sub3.anIntArray3007[var10]) + var21);
                                    }

                                    var39 = Objects.requireNonNull(var47).aClass140_1777;
                                } else {
                                    var39 = new Class140_Sub3(objectId, 4, 4 + var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                                }

                                Class3_Sub28_Sub8.method577(var2, var7, var9, var19, (GameObject) var39, null, 256, var10, var43 * anIntArray2386[var10], var43 * Class163_Sub3.anIntArray3007[var10], var24);
                            } else if (7 == type) {
                                int var40 = 3 & var10 - -2;
                                if (def.animationId == -1 && def.ChildrenIds == null && !def.aBoolean1510) {
                                    Class136 var41 = def.method1696(var40 - -4, var20, var18, 4, var19, var23, var1, null, (byte) -39, var26, var21);
                                    if (HDToolKit.highDetail && var26) {
                                        Class141.method2051(Objects.requireNonNull(var41).aClass109_Sub1_1770, var20, var22, var21);
                                    }

                                    object = Objects.requireNonNull(var41).aClass140_1777;
                                } else {
                                    object = new Class140_Sub3(objectId, 4, var40 + 4, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                                }

                                Class3_Sub28_Sub8.method577(var2, var7, var9, var19, (GameObject) object, null, 256, var40, 0, 0, var24);
                            } else if (type == 8) {
                                var43 = 8;
                                var44 = Class157.method2174(var2, var7, var9);
                                if (var44 != 0) {
                                    var43 = ObjectDefinition.getObjectDefinition(Integer.MAX_VALUE & (int) (var44 >>> 32)).anInt1528 / 2;
                                }

                                int var32 = var10 + 2 & 3;
                                Object var46;
                                if (-1 == def.animationId && null == def.ChildrenIds && !def.aBoolean1510) {
                                    int var34 = 8 * Class163_Sub3.anIntArray3007[var10];
                                    int var33 = anIntArray2386[var10] * 8;
                                    Class136 var35 = def.method1696(4 + var10, var20, var18, 4, var19, var23, var1, null, (byte) -25, var26, var21);
                                    if (HDToolKit.highDetail && var26) {
                                        Class141.method2051(Objects.requireNonNull(var35).aClass109_Sub1_1770, var20 + -var33, var22, -var34 + var21);
                                    }

                                    var39 = Objects.requireNonNull(var35).aClass140_1777;
                                    var35 = def.method1696(var32 - -4, var20, var18, 4, var19, var23, var1, null, (byte) -101, var26, var21);
                                    if (HDToolKit.highDetail && var26) {
                                        Class141.method2051(Objects.requireNonNull(var35).aClass109_Sub1_1770, var20 - var33, var22, -var34 + var21);
                                    }

                                    var46 = Objects.requireNonNull(var35).aClass140_1777;
                                } else {
                                    var39 = new Class140_Sub3(objectId, 4, 4 + var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                                    var46 = new Class140_Sub3(objectId, 4, var32 + 4, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                                }

                                Class3_Sub28_Sub8.method577(var2, var7, var9, var19, (GameObject) var39, (GameObject) var46, 256, var10, var43 * anIntArray2386[var10], Class163_Sub3.anIntArray3007[var10] * var43, var24);
                            }
                        }
                    }
                } else if (KeyboardListener.aBoolean1905 || def.SecondInt != 0 || def.ClipType == 1 || def.aBoolean1483) {
                    if (def.animationId == -1 && def.ChildrenIds == null && !def.aBoolean1510) {
                        var28 = def.method1696(var10, var20, var18, 22, var19, var23, var1, null, (byte) -126, var26, var21);
                        if (HDToolKit.highDetail && var26) {
                            Class141.method2051(Objects.requireNonNull(var28).aClass109_Sub1_1770, var20, var22, var21);
                        }

                        object = Objects.requireNonNull(var28).aClass140_1777;
                    } else {
                        object = new Class140_Sub3(objectId, 22, var10, var0, var7, var9, def.animationId, def.aBoolean1492, null);
                    }
                    TextureOperation39.method276(var2, var7, var9, var19, (GameObject) object, var24, def.aBoolean1502);
                    if (def.ClipType == 1 && null != var4) {
                        var4.method1503(var7, var9);
                    }

                }
            }
        } catch (RuntimeException var36) {
            throw ClientErrorException.clientError(var36, "p.B(" + var0 + ',' + var1 + ',' + var2 + ',' + var3 + ',' + (var4 != null ? "{...}" : "null") + ',' + objectId + ',' + type + ',' + var7 + ',' + (byte) 50 + ',' + var9 + ',' + var10 + ')');
        }
    }

    static boolean method835(int var0, int var1, int var2, int var3, int var4, int var5, GameObject var6, long var8) {
        if (var6 == null) {
            return true;
        } else {
            int var10 = var1 * 128 + 64 * var4;
            int var11 = var2 * 128 + 64 * var5;
            return Class56.method1189(var0, var1, var2, var4, var5, var10, var11, var3, var6, 0, false, var8);
        }
    }
}
