/* Class612 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.util.Random;

public class Class612 {
	static Object anObject7836 = new Object();
	static Random aRandom7837;
	static int anInt7838;

	public static boolean method13049(int i) {
		return i == (i & -i);
	}

	public static int method13050(int i, int i_0_) {
		if (i_0_ > i) {
			int i_1_ = i;
			i = i_0_;
			i_0_ = i_1_;
		}
		int i_2_;
		for (/**/; i_0_ != 0; i_0_ = i_2_) {
			i_2_ = i % i_0_;
			i = i_0_;
		}
		return i;
	}

	public static int method13051(int i, int i_3_) {
		if (i_3_ > i) {
			int i_4_ = i;
			i = i_3_;
			i_3_ = i_4_;
		}
		int i_5_;
		for (/**/; i_3_ != 0; i_3_ = i_5_) {
			i_5_ = i % i_3_;
			i = i_3_;
		}
		return i;
	}

	public static boolean method13052(int i) {
		return i == (i & -i);
	}

	public static int method13053(int i, int i_6_) {
		if (i_6_ > i) {
			int i_7_ = i;
			i = i_6_;
			i_6_ = i_7_;
		}
		int i_8_;
		for (/**/; i_6_ != 0; i_6_ = i_8_) {
			i_8_ = i % i_6_;
			i = i_6_;
		}
		return i;
	}

	public static int method13054(int i) {
		int i_9_ = i >>> 1;
		i_9_ |= i_9_ >>> 1;
		i_9_ |= i_9_ >>> 2;
		i_9_ |= i_9_ >>> 4;
		i_9_ |= i_9_ >>> 8;
		i_9_ |= i_9_ >>> 16;
		return i & (i_9_ ^ 0xffffffff);
	}

	public static int method13055(Random random, int i) {
		if (null == random) {
			random = aRandom7837;
			if (null == random) {
				synchronized (anObject7836) {
					if (aRandom7837 == null)
						aRandom7837 = new Random();
					random = aRandom7837;
				}
			}
		}
		if (i <= 0)
			throw new IllegalArgumentException();
		if (Class449.method8057(i, 102048347))
			return (int) (((long) random.nextInt() & 0xffffffffL) * (long) i >> 32);
		int i_10_ = -2147483648 - (int) (4294967296L % (long) i);
		int i_11_;
		do
			i_11_ = random.nextInt();
		while (i_11_ >= i_10_);
		return Class56.method1315(i_11_, i, (byte) 117);
	}

	public static int method13056(int i, int i_12_) {
		if (i_12_ > i) {
			int i_13_ = i;
			i = i_12_;
			i_12_ = i_13_;
		}
		int i_14_;
		for (/**/; i_12_ != 0; i_12_ = i_14_) {
			i_14_ = i % i_12_;
			i = i_12_;
		}
		return i;
	}

	public static boolean method13057(int i) {
		return i == (i & -i);
	}

	public static boolean method13058(int i) {
		return i == (i & -i);
	}

	public static int method13059(Random random, int i) {
		if (null == random) {
			random = aRandom7837;
			if (null == random) {
				synchronized (anObject7836) {
					if (aRandom7837 == null)
						aRandom7837 = new Random();
					random = aRandom7837;
				}
			}
		}
		if (i <= 0)
			throw new IllegalArgumentException();
		if (Class449.method8057(i, -1728351528))
			return (int) (((long) random.nextInt() & 0xffffffffL) * (long) i >> 32);
		int i_15_ = -2147483648 - (int) (4294967296L % (long) i);
		int i_16_;
		do
			i_16_ = random.nextInt();
		while (i_16_ >= i_15_);
		return Class56.method1315(i_16_, i, (byte) 124);
	}

	public static int method13060(int i) {
		int i_17_ = 0;
		if (i < 0 || i >= 65536) {
			i >>>= 16;
			i_17_ += 16;
		}
		if (i >= 256) {
			i >>>= 8;
			i_17_ += 8;
		}
		if (i >= 16) {
			i >>>= 4;
			i_17_ += 4;
		}
		if (i >= 4) {
			i >>>= 2;
			i_17_ += 2;
		}
		if (i >= 1) {
			i >>>= 1;
			i_17_++;
		}
		return i + i_17_;
	}

	public static int method13061(int i) {
		int i_18_ = 0;
		if (i < 0 || i >= 65536) {
			i >>>= 16;
			i_18_ += 16;
		}
		if (i >= 256) {
			i >>>= 8;
			i_18_ += 8;
		}
		if (i >= 16) {
			i >>>= 4;
			i_18_ += 4;
		}
		if (i >= 4) {
			i >>>= 2;
			i_18_ += 2;
		}
		if (i >= 1) {
			i >>>= 1;
			i_18_++;
		}
		return i + i_18_;
	}

	public static int method13062(int i) {
		int i_19_ = 0;
		if (i < 0 || i >= 65536) {
			i >>>= 16;
			i_19_ += 16;
		}
		if (i >= 256) {
			i >>>= 8;
			i_19_ += 8;
		}
		if (i >= 16) {
			i >>>= 4;
			i_19_ += 4;
		}
		if (i >= 4) {
			i >>>= 2;
			i_19_ += 2;
		}
		if (i >= 1) {
			i >>>= 1;
			i_19_++;
		}
		return i + i_19_;
	}

	public static int method13063(int i, int i_20_) {
		int i_21_ = 0;
		for (/**/; i_20_ > 0; i_20_--) {
			i_21_ = i_21_ << 1 | i & 0x1;
			i >>>= 1;
		}
		return i_21_;
	}

	static int method13064(int i, int i_22_) {
		int i_23_ = i >> 31 & i_22_ - 1;
		return ((i >>> 31) + i) % i_22_ + i_23_;
	}

	static int method13065(int i, int i_24_) {
		int i_25_ = i >> 31 & i_24_ - 1;
		return ((i >>> 31) + i) % i_24_ + i_25_;
	}

	Class612() throws Throwable {
		throw new Error();
	}

	public static int method13066(int i) {
		int i_26_ = 0;
		if (i < 0 || i >= 65536) {
			i >>>= 16;
			i_26_ += 16;
		}
		if (i >= 256) {
			i >>>= 8;
			i_26_ += 8;
		}
		if (i >= 16) {
			i >>>= 4;
			i_26_ += 4;
		}
		if (i >= 4) {
			i >>>= 2;
			i_26_ += 2;
		}
		if (i >= 1) {
			i >>>= 1;
			i_26_++;
		}
		return i + i_26_;
	}

	public static int method13067(Random random, int i) {
		if (null == random) {
			random = aRandom7837;
			if (null == random) {
				synchronized (anObject7836) {
					if (aRandom7837 == null)
						aRandom7837 = new Random();
					random = aRandom7837;
				}
			}
		}
		if (i <= 0)
			throw new IllegalArgumentException();
		if (Class449.method8057(i, 1498264264))
			return (int) (((long) random.nextInt() & 0xffffffffL) * (long) i >> 32);
		int i_27_ = -2147483648 - (int) (4294967296L % (long) i);
		int i_28_;
		do
			i_28_ = random.nextInt();
		while (i_28_ >= i_27_);
		return Class56.method1315(i_28_, i, (byte) 77);
	}

	static final void method13068(Class477 class477, byte i) {
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = Class543.aClass613_7098.anInt7843 * -673119315;
	}
}
