192 lines
6.0 KiB
Java
192 lines
6.0 KiB
Java
|
package com.facetec.sdk;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
import java.lang.reflect.Type;
|
||
|
import java.util.ArrayList;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class ca extends ek implements ha {
|
||
|
private gt a;
|
||
|
private dx b;
|
||
|
private gv d;
|
||
|
|
||
|
public ca(dx dxVar, gt gtVar, gv gvVar) {
|
||
|
this.b = dxVar;
|
||
|
this.a = gtVar;
|
||
|
this.d = gvVar;
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.ek
|
||
|
public final void b(ga gaVar, Object obj) throws IOException {
|
||
|
if (obj == null) {
|
||
|
gaVar.h();
|
||
|
return;
|
||
|
}
|
||
|
l lVar = (l) obj;
|
||
|
dx dxVar = this.b;
|
||
|
gv gvVar = this.d;
|
||
|
gaVar.d();
|
||
|
if (lVar != lVar.d) {
|
||
|
gvVar.d(gaVar, 9);
|
||
|
gaVar.b(lVar.d);
|
||
|
}
|
||
|
if (lVar != lVar.b) {
|
||
|
gvVar.d(gaVar, 10);
|
||
|
q qVar = lVar.b;
|
||
|
Type e = gw.e(q.class, qVar);
|
||
|
ek d = dxVar.d(fv.b(e));
|
||
|
if (q.class != e && !gw.b(d)) {
|
||
|
ek b = dxVar.b(q.class);
|
||
|
if (gw.b(b)) {
|
||
|
d = b;
|
||
|
}
|
||
|
}
|
||
|
d.b(gaVar, qVar);
|
||
|
}
|
||
|
if (lVar != lVar.e) {
|
||
|
gvVar.d(gaVar, 7);
|
||
|
n nVar = new n();
|
||
|
ArrayList<String> arrayList = lVar.e;
|
||
|
Type b2 = nVar.b();
|
||
|
Type e2 = gw.e(b2, arrayList);
|
||
|
ek d2 = dxVar.d(fv.b(e2));
|
||
|
if (b2 != e2 && !gw.b(d2)) {
|
||
|
ek d3 = dxVar.d(nVar);
|
||
|
if (gw.b(d3)) {
|
||
|
d2 = d3;
|
||
|
}
|
||
|
}
|
||
|
d2.b(gaVar, arrayList);
|
||
|
}
|
||
|
if (lVar != lVar.c) {
|
||
|
gvVar.d(gaVar, 2);
|
||
|
gaVar.b(lVar.c);
|
||
|
}
|
||
|
if (lVar != lVar.a) {
|
||
|
gvVar.d(gaVar, 6);
|
||
|
gaVar.b(lVar.a);
|
||
|
}
|
||
|
if (lVar != lVar.j) {
|
||
|
gvVar.d(gaVar, 0);
|
||
|
gaVar.b(lVar.j);
|
||
|
}
|
||
|
if (lVar != lVar.i) {
|
||
|
gvVar.d(gaVar, 11);
|
||
|
gaVar.b(lVar.i);
|
||
|
}
|
||
|
if (lVar != lVar.g) {
|
||
|
gvVar.d(gaVar, 1);
|
||
|
gaVar.b(lVar.g);
|
||
|
}
|
||
|
gvVar.d(gaVar, 8);
|
||
|
gaVar.b(Integer.valueOf(lVar.h));
|
||
|
gaVar.a();
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Failed to find 'out' block for switch in B:24:0x0030. Please report as an issue. */
|
||
|
@Override // com.facetec.sdk.ek
|
||
|
public final Object a(fu fuVar) throws IOException {
|
||
|
if (fuVar.i() == gc.NULL) {
|
||
|
fuVar.n();
|
||
|
return null;
|
||
|
}
|
||
|
l lVar = new l();
|
||
|
dx dxVar = this.b;
|
||
|
gt gtVar = this.a;
|
||
|
fuVar.d();
|
||
|
while (fuVar.e()) {
|
||
|
int e = gtVar.e(fuVar);
|
||
|
boolean z = fuVar.i() != gc.NULL;
|
||
|
if (e != 0) {
|
||
|
switch (e) {
|
||
|
case 2:
|
||
|
if (!z) {
|
||
|
lVar.a = null;
|
||
|
fuVar.l();
|
||
|
break;
|
||
|
} else {
|
||
|
lVar.a = fuVar.i() != gc.BOOLEAN ? fuVar.h() : Boolean.toString(fuVar.g());
|
||
|
break;
|
||
|
}
|
||
|
case 3:
|
||
|
if (!z) {
|
||
|
lVar.i = null;
|
||
|
fuVar.l();
|
||
|
break;
|
||
|
} else {
|
||
|
lVar.i = fuVar.i() != gc.BOOLEAN ? fuVar.h() : Boolean.toString(fuVar.g());
|
||
|
break;
|
||
|
}
|
||
|
case 4:
|
||
|
if (!z) {
|
||
|
lVar.g = null;
|
||
|
fuVar.l();
|
||
|
break;
|
||
|
} else {
|
||
|
lVar.g = fuVar.i() != gc.BOOLEAN ? fuVar.h() : Boolean.toString(fuVar.g());
|
||
|
break;
|
||
|
}
|
||
|
case 5:
|
||
|
if (!z) {
|
||
|
lVar.b = null;
|
||
|
fuVar.l();
|
||
|
break;
|
||
|
} else {
|
||
|
lVar.b = (q) dxVar.b(q.class).a(fuVar);
|
||
|
break;
|
||
|
}
|
||
|
case 6:
|
||
|
if (!z) {
|
||
|
lVar.c = null;
|
||
|
fuVar.l();
|
||
|
break;
|
||
|
} else {
|
||
|
lVar.c = fuVar.i() != gc.BOOLEAN ? fuVar.h() : Boolean.toString(fuVar.g());
|
||
|
break;
|
||
|
}
|
||
|
case 7:
|
||
|
if (!z) {
|
||
|
lVar.j = null;
|
||
|
fuVar.l();
|
||
|
break;
|
||
|
} else {
|
||
|
lVar.j = fuVar.i() != gc.BOOLEAN ? fuVar.h() : Boolean.toString(fuVar.g());
|
||
|
break;
|
||
|
}
|
||
|
case 8:
|
||
|
if (!z) {
|
||
|
lVar.d = null;
|
||
|
fuVar.l();
|
||
|
break;
|
||
|
} else {
|
||
|
lVar.d = fuVar.i() != gc.BOOLEAN ? fuVar.h() : Boolean.toString(fuVar.g());
|
||
|
break;
|
||
|
}
|
||
|
case 9:
|
||
|
if (!z) {
|
||
|
fuVar.l();
|
||
|
break;
|
||
|
} else {
|
||
|
try {
|
||
|
lVar.h = fuVar.m();
|
||
|
break;
|
||
|
} catch (NumberFormatException e2) {
|
||
|
throw new ei(e2);
|
||
|
}
|
||
|
}
|
||
|
default:
|
||
|
fuVar.n();
|
||
|
break;
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lVar.e = (ArrayList) dxVar.d(new n()).a(fuVar);
|
||
|
} else {
|
||
|
lVar.e = null;
|
||
|
fuVar.l();
|
||
|
}
|
||
|
}
|
||
|
fuVar.b();
|
||
|
return lVar;
|
||
|
}
|
||
|
}
|