what-the-bank/sources/com/facetec/sdk/ks.java

146 lines
4.6 KiB
Java

package com.facetec.sdk;
import com.google.common.net.HttpHeaders;
import java.util.Date;
/* loaded from: classes.dex */
public final class ks {
public final kh c;
public final ke d;
/* JADX INFO: Access modifiers changed from: package-private */
public ks(ke keVar, kh khVar) {
this.d = keVar;
this.c = khVar;
}
/* JADX WARN: Code restructure failed: missing block: B:31:0x0056, code lost:
if (r3.h().e() == false) goto L32;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static boolean a(com.facetec.sdk.kh r3, com.facetec.sdk.ke r4) {
/*
int r0 = r3.e()
r1 = 200(0xc8, float:2.8E-43)
r2 = 0
if (r0 == r1) goto L59
r1 = 410(0x19a, float:5.75E-43)
if (r0 == r1) goto L59
r1 = 414(0x19e, float:5.8E-43)
if (r0 == r1) goto L59
r1 = 501(0x1f5, float:7.02E-43)
if (r0 == r1) goto L59
r1 = 203(0xcb, float:2.84E-43)
if (r0 == r1) goto L59
r1 = 204(0xcc, float:2.86E-43)
if (r0 == r1) goto L59
r1 = 307(0x133, float:4.3E-43)
if (r0 == r1) goto L31
r1 = 308(0x134, float:4.32E-43)
if (r0 == r1) goto L59
r1 = 404(0x194, float:5.66E-43)
if (r0 == r1) goto L59
r1 = 405(0x195, float:5.68E-43)
if (r0 == r1) goto L59
switch(r0) {
case 300: goto L59;
case 301: goto L59;
case 302: goto L31;
default: goto L30;
}
L30:
goto L58
L31:
java.lang.String r0 = "Expires"
java.lang.String r0 = r3.b(r0)
if (r0 != 0) goto L59
com.facetec.sdk.jl r0 = r3.h()
int r0 = r0.c()
r1 = -1
if (r0 != r1) goto L59
com.facetec.sdk.jl r0 = r3.h()
boolean r0 = r0.d()
if (r0 != 0) goto L59
com.facetec.sdk.jl r0 = r3.h()
boolean r0 = r0.e()
if (r0 != 0) goto L59
L58:
return r2
L59:
com.facetec.sdk.jl r3 = r3.h()
boolean r3 = r3.b()
if (r3 != 0) goto L6f
com.facetec.sdk.jl r3 = r4.j()
boolean r3 = r3.b()
if (r3 != 0) goto L6f
r3 = 1
return r3
L6f:
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.ks.a(com.facetec.sdk.kh, com.facetec.sdk.ke):boolean");
}
/* loaded from: classes.dex */
public static final class d {
final kh a;
final ke b;
String c;
final long d;
Date e;
Date f;
long g;
Date h;
long i;
String j;
String n;
/* renamed from: o, reason: collision with root package name */
int f6450o;
public d(long j, ke keVar, kh khVar) {
this.f6450o = -1;
this.d = j;
this.b = keVar;
this.a = khVar;
if (khVar != null) {
this.g = khVar.f();
this.i = khVar.i();
jv d = khVar.d();
int c = d.c();
for (int i = 0; i < c; i++) {
String c2 = d.c(i);
String a = d.a(i);
if (HttpHeaders.DATE.equalsIgnoreCase(c2)) {
this.e = ld.b(a);
this.c = a;
} else if (HttpHeaders.EXPIRES.equalsIgnoreCase(c2)) {
this.h = ld.b(a);
} else if (HttpHeaders.LAST_MODIFIED.equalsIgnoreCase(c2)) {
this.f = ld.b(a);
this.j = a;
} else if (HttpHeaders.ETAG.equalsIgnoreCase(c2)) {
this.n = a;
} else if (HttpHeaders.AGE.equalsIgnoreCase(c2)) {
this.f6450o = le.e(a, -1);
}
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean b() {
return this.a.h().c() == -1 && this.h == null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean e(ke keVar) {
return (keVar.c(HttpHeaders.IF_MODIFIED_SINCE) == null && keVar.c(HttpHeaders.IF_NONE_MATCH) == null) ? false : true;
}
}
}