public final class b
{
static final char[] a;
static final byte[] b;
public String c;
private long[] d = new long[4];
private long[] e = new long[2];
private byte[] f = new byte[64];
private byte[] g = new byte[16];
private void a(byte[] paramArrayOfByte, int paramInt)
{
int i = 0;
byte[] arrayOfByte = new byte[64];
int j = 0x3F & (int)(this.e[0] >>> 3);
long[] arrayOfLong1 = this.e;
long l = arrayOfLong1[0] + (paramInt << 3);
arrayOfLong1[i] = l;
if (l < paramInt << 3)
{
long[] arrayOfLong3 = this.e;
arrayOfLong3[1] = (1L + arrayOfLong3[1]);
}
long[] arrayOfLong2 = this.e;
arrayOfLong2[1] += (paramInt >>> 29);
int k = 64 - j;
int i1;
if (paramInt >= k)
{
a(this.f, paramArrayOfByte, j, 0, k);
a(this.f);
i1 = k;
label129: if (i1 + 63 < paramInt);
}
while (true)
{
a(this.f, paramArrayOfByte, i, i1, paramInt - i1);
return;
a(arrayOfByte, paramArrayOfByte, 0, i1, 64);
a(arrayOfByte);
i1 += 64;
break label129:
i = j;
int i2 = 0;
}
}
private static void a(byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, int paramInt1, int paramInt2, int paramInt3)
{
for (int i = 0; ; ++i)
{
if (i >= paramInt3)
return;
paramArrayOfByte1[(paramInt1 + i)] = paramArrayOfByte2[(paramInt2 + i)];
}
}
private static void a(byte[] paramArrayOfByte, long[] paramArrayOfLong, int paramInt)
{
int i = 0;
int j = 0;
while (true)
{
if (i >= paramInt)
return;
paramArrayOfByte[i] = (byte)(int)(0xFF & paramArrayOfLong[j]);
paramArrayOfByte[(i + 1)] = (byte)(int)(0xFF & paramArrayOfLong[j] >>> 8);
paramArrayOfByte[(i + 2)] = (byte)(int)(0xFF & paramArrayOfLong[j] >>> 16);
paramArrayOfByte[(i + 3)] = (byte)(int)(0xFF & paramArrayOfLong[j] >>> 24);
++j;
i += 4;
}
}
private static long b(long paramLong1, long paramLong2, long paramLong3, long paramLong4, long paramLong5, long paramLong6, long paramLong7)
{
long l = paramLong1 + (paramLong7 + (paramLong5 + (paramLong2 & paramLong4 | paramLong3 & (0xFFFFFFFF ^ paramLong4))));
return paramLong2 + ((int)l << (int)paramLong6 | (int)l >>> (int)(32L - paramLong6));
}
private static long c(long paramLong1, long paramLong2, long paramLong3, long paramLong4, long paramLong5, long paramLong6, long paramLong7)
{
long l = paramLong1 + (paramLong7 + (paramLong5 + (paramLong4 ^ (paramLong2 ^ paramLong3))));
return paramLong2 + ((int)l << (int)paramLong6 | (int)l >>> (int)(32L - paramLong6));
}
private static long d(long paramLong1, long paramLong2, long paramLong3, long paramLong4, long paramLong5, long paramLong6, long paramLong7)
{
long l = paramLong1 + (paramLong7 + (paramLong5 + (paramLong3 ^ (paramLong2 | 0xFFFFFFFF ^ paramLong4))));
return paramLong2 + ((int)l << (int)paramLong6 | (int)l >>> (int)(32L - paramLong6));
}
public final String a(String paramString)
{
a();
a(paramString.getBytes(), paramString.length());
byte[] arrayOfByte = new byte[8];
a(arrayOfByte, this.e, 8);
int i = 0x3F & (int)(this.e[0] >>> 3);
int j;
if (i >= 56)
{
j = 120 - i;
a(b, j);
a(arrayOfByte, 8);
a(this.g, this.d, 16);
this.c = "";
}
for (int k = 0; ; ++k)
{
if (k >= 16)
{
return this.c;
j = 56 - i;
}
StringBuilder localStringBuilder = new StringBuilder(String.valueOf(this.c));
int l = this.g[k];
char[] arrayOfChar1 = new char[16];
arrayOfChar1[0] = 48;
arrayOfChar1[1] = 49;
arrayOfChar1[2] = 50;
arrayOfChar1[3] = 51;
arrayOfChar1[4] = 52;
arrayOfChar1[5] = 53;
arrayOfChar1[6] = 54;
arrayOfChar1[7] = 55;
arrayOfChar1[8] = 56;
arrayOfChar1[9] = 57;
arrayOfChar1[10] = 65;
arrayOfChar1[11] = 66;
arrayOfChar1[12] = 67;
arrayOfChar1[13] = 68;
arrayOfChar1[14] = 69;
arrayOfChar1[15] = 70;
char[] arrayOfChar2 = new char[2];
arrayOfChar2[0] = arrayOfChar1[(0xF & l >>> 4)];
arrayOfChar2[1] = arrayOfChar1[(l & 0xF)];
this.c = new String(arrayOfChar2);
}
}
}
public class a
{
public static boolean A;
public static boolean B;
public static boolean C;
public static boolean D;
public static String E;
public static boolean F;
public static boolean G;
public static boolean H;
public static boolean I;
public static boolean J;
public static boolean K;
public static boolean L;
public static boolean M;
public static boolean N;
public static boolean O;
public static boolean P;
public static boolean Q;
public static boolean R;
public static boolean S;
public static boolean T;
public static boolean U;
public static boolean V;
public static boolean W;
public static boolean X;
public static boolean Y;
public static boolean Z;
public static int a;
public static boolean aa;
public static boolean ab;
public static boolean ac;
public static boolean ad;
public static boolean ae;
public static boolean af;
public static boolean ag;
public static boolean ah;
public static boolean ai;
public static boolean aj;
public static boolean ak;
public static boolean al;
public static boolean am;
public static boolean an;
public static boolean ao;
public static boolean ap;
public static boolean aq;
public static boolean ar;
public static boolean as;
public static boolean at;
public static int b = 1;
public static String c = "12pt";
public static String d = "15pt";
public static String e = "3";
public static String f = "4";
public static String g = "";
public static String h = "/.nanfangsoft/";
public static String i = "/.nanfangsoft/Pibazi/";
public static String j = "/.nanfangsoft/Pibazi/progdata/";
public static String k = "/data/data/com.nfbazi.Pibazi/shared_prefs/";
public static String l = "";
public static int m = 0;
public static int n = 0;
public static String o = "";
public static String p = "";
public static boolean q = false;
public static int r = 0;
public static String[] s = new String[1000];
public static final String[] t;
public static String u;
public static boolean v;
public static boolean w;
public static boolean x;
public static boolean y;
public static boolean z;
private Context au;
static
{
String[] arrayOfString = new String[5];
arrayOfString[0] = "区分夜子时、早子时";
arrayOfString[1] = "是否由中气起命宫";
arrayOfString[2] = "是否简批流年";
arrayOfString[3] = "大字体1";
arrayOfString[4] = "大字体2:适合平板电脑";
t = arrayOfString;
u = "#FFFFFF";
v = true;
w = false;
x = false;
y = true;
z = false;
A = false;
B = false;
C = false;
D = false;
E = "";
F = false;
G = false;
H = false;
I = true;
J = true;
K = true;
L = true;
M = true;
N = true;
O = true;
P = true;
Q = true;
R = true;
S = true;
T = true;
U = true;
V = true;
W = true;
X = true;
Y = true;
Z = true;
aa = true;
ab = true;
ac = true;
ad = true;
ae = true;
af = true;
ag = true;
ah = true;
ai = true;
aj = true;
ak = true;
al = true;
am = true;
an = true;
ao = true;
ap = true;
aq = true;
ar = true;
as = true;
at = true;
}
public a()
{
}
public a(Context paramContext)
{
this.au = paramContext;
}
public static void a()
{
F = false;
G = false;
H = false;
J = false;
}
public static void a(String paramString1, String paramString2)
{
FileInputStream localFileInputStream = new FileInputStream(paramString1);
File localFile = new File(paramString2);
if (!localFile.exists())
localFile.createNewFile();
FileOutputStream localFileOutputStream = new FileOutputStream(localFile);
byte[] arrayOfByte = new byte[1024];
while (true)
{
int i1 = localFileInputStream.read(arrayOfByte);
if (i1 == -1)
{
localFileInputStream.close();
localFileOutputStream.close();
return;
}
localFileOutputStream.write(arrayOfByte, 0, i1);
}
}
public static void b(String paramString1, String paramString2)
{
File localFile = new File(paramString1);
if (!localFile.exists())
localFile.createNewFile();
FileOutputStream localFileOutputStream = new FileOutputStream(localFile, true);
for (int i1 = 0; ; ++i1)
{
if (i1 >= paramString2.length())
{
localFileOutputStream.close();
return;
}
StringBuffer localStringBuffer = new StringBuffer();
localStringBuffer.append(paramString2.substring(i1, i1 + 1));
localFileOutputStream.write(localStringBuffer.toString().getBytes("utf-8"));
}
}
public static void c(String paramString)
{
String str;
if (e())
{
str = g + j;
File localFile1 = new File(str);
File localFile2 = new File(g + h);
File localFile3 = new File(g + i);
if (!localFile1.exists())
{
localFile2.mkdir();
localFile3.mkdir();
localFile1.mkdir();
}
File localFile4 = new File(str + paramString + ".xml");
if (localFile4.exists())
localFile4.delete();
if (!new File(k + paramString + ".xml").exists());
}
try
{
a(k + paramString + ".xml", str + paramString + ".xml");
return;
}
catch (IOException localIOException)
{
}
}