/* Class446 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.nio.ByteBuffer;
import java.util.Arrays;

public abstract class Class446
{
    public static byte[] method7970(Object object, int i, int i_0_) {
	if (null == object)
	    return null;
	if (object instanceof byte[]) {
	    byte[] is = (byte[]) object;
	    return Arrays.copyOfRange(is, i, i_0_ + i);
	}
	if (object instanceof ByteBuffer) {
	    ByteBuffer bytebuffer = (ByteBuffer) object;
	    byte[] is = new byte[i_0_];
	    bytebuffer.position(i);
	    bytebuffer.get(is, 0, i_0_);
	    return is;
	}
	throw new IllegalArgumentException();
    }
    
    public static Object method7971(byte[] is, boolean bool) {
	if (is == null)
	    return null;
	if (is.length > 136) {
	    ByteBuffer bytebuffer = ByteBuffer.allocateDirect(is.length);
	    bytebuffer.position(0);
	    bytebuffer.put(is);
	    return bytebuffer;
	}
	if (bool)
	    return Arrays.copyOf(is, is.length);
	return is;
    }
    
    public static byte[] method7972(Object object, boolean bool) {
	if (object == null)
	    return null;
	if (object instanceof byte[]) {
	    byte[] is = (byte[]) object;
	    if (bool)
		return Arrays.copyOf(is, is.length);
	    return is;
	}
	if (object instanceof ByteBuffer) {
	    ByteBuffer bytebuffer = (ByteBuffer) object;
	    byte[] is = new byte[bytebuffer.capacity()];
	    bytebuffer.position(0);
	    bytebuffer.get(is);
	    return is;
	}
	throw new IllegalArgumentException();
    }
    
    public static byte[] method7973(Object object, int i, int i_1_) {
	if (null == object)
	    return null;
	if (object instanceof byte[]) {
	    byte[] is = (byte[]) object;
	    return Arrays.copyOfRange(is, i, i_1_ + i);
	}
	if (object instanceof ByteBuffer) {
	    ByteBuffer bytebuffer = (ByteBuffer) object;
	    byte[] is = new byte[i_1_];
	    bytebuffer.position(i);
	    bytebuffer.get(is, 0, i_1_);
	    return is;
	}
	throw new IllegalArgumentException();
    }
    
    Class446() throws Throwable {
	throw new Error();
    }
    
    public static byte[] method7974(Object object, int i, int i_2_) {
	if (null == object)
	    return null;
	if (object instanceof byte[]) {
	    byte[] is = (byte[]) object;
	    return Arrays.copyOfRange(is, i, i_2_ + i);
	}
	if (object instanceof ByteBuffer) {
	    ByteBuffer bytebuffer = (ByteBuffer) object;
	    byte[] is = new byte[i_2_];
	    bytebuffer.position(i);
	    bytebuffer.get(is, 0, i_2_);
	    return is;
	}
	throw new IllegalArgumentException();
    }
    
    public static void method7975(Class243_Sub15 class243_sub15, int i) {
	Class483.method11053(class243_sub15, 200000, 314426989);
    }
    
    static final void method7976(Class479 class479, byte i) {
	Class243_Sub11_Sub4 class243_sub11_sub4
	    = Class357_Sub1.method16639(1077330698);
	if (class243_sub11_sub4 != null) {
	    boolean bool
		= (class243_sub11_sub4.method17049
		   ((Class120_Sub19.anInt10307 * -479976985
		     + Class564.anInt7294),
		    Class266.anInt4063 * 781778029 + Class564.anInt7302,
		    Class480.anIntArray6464, (byte) -50));
	    if (bool) {
		((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 += -1158629699)
		      * -117934955) - 1]
		    = Class480.anIntArray6464[1];
		((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 += -1158629699)
		      * -117934955) - 1]
		    = Class480.anIntArray6464[2];
	    } else {
		((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 += -1158629699)
		      * -117934955) - 1]
		    = -1;
		((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 += -1158629699)
		      * -117934955) - 1]
		    = -1;
	    }
	} else {
	    ((Class479) class479).anIntArray6435
		[((((Class479) class479).anInt6442 += -1158629699) * -117934955
		  - 1)]
		= -1;
	    ((Class479) class479).anIntArray6435
		[((((Class479) class479).anInt6442 += -1158629699) * -117934955
		  - 1)]
		= -1;
	}
    }
}
