164 lines
4.8 KiB
Java
164 lines
4.8 KiB
Java
|
package o;
|
||
|
|
||
|
import android.os.Handler;
|
||
|
import io.beid.beidk.processor.FaceProcessor;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class fQM extends fQH implements fQG {
|
||
|
private Integer a;
|
||
|
private Integer b;
|
||
|
fQE c;
|
||
|
private Integer d;
|
||
|
Integer e;
|
||
|
private Handler g;
|
||
|
private Integer h;
|
||
|
private Integer i;
|
||
|
private Runnable j;
|
||
|
|
||
|
@Override // o.fQG
|
||
|
public final void b() {
|
||
|
this.j = new Runnable(this) { // from class: o.fQM.4
|
||
|
private fQM a;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.a.e = -1;
|
||
|
this.a.c.b(new Throwable("timeout"));
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
}
|
||
|
};
|
||
|
Handler handler = new Handler();
|
||
|
this.g = handler;
|
||
|
handler.postDelayed(this.j, this.d.intValue());
|
||
|
this.e = 0;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:25:0x0070 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:28:0x0092 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:30:? A[RETURN, SYNTHETIC] */
|
||
|
@Override // o.fQG
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final void c(o.C13099fQm r6) {
|
||
|
/*
|
||
|
r5 = this;
|
||
|
java.lang.Integer r0 = r5.h
|
||
|
int r0 = r0.intValue()
|
||
|
r1 = 1
|
||
|
int r0 = r0 + r1
|
||
|
java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
|
||
|
r5.h = r0
|
||
|
java.lang.Integer r0 = r5.e
|
||
|
int r0 = r0.intValue()
|
||
|
r2 = -1
|
||
|
if (r0 != r2) goto L18
|
||
|
return
|
||
|
L18:
|
||
|
boolean r0 = r6.b
|
||
|
if (r0 == 0) goto L23
|
||
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r0 = r6.d
|
||
|
float r0 = r0.getRightEyeOpenProbability()
|
||
|
goto L29
|
||
|
L23:
|
||
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r0 = r6.d
|
||
|
float r0 = r0.getLeftEyeOpenProbability()
|
||
|
L29:
|
||
|
r3 = -1082130432(0xffffffffbf800000, float:-1.0)
|
||
|
int r0 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1))
|
||
|
if (r0 != 0) goto L45
|
||
|
boolean r0 = r6.b
|
||
|
if (r0 == 0) goto L3a
|
||
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r0 = r6.d
|
||
|
float r0 = r0.getLeftEyeOpenProbability()
|
||
|
goto L40
|
||
|
L3a:
|
||
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r0 = r6.d
|
||
|
float r0 = r0.getRightEyeOpenProbability()
|
||
|
L40:
|
||
|
int r0 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1))
|
||
|
if (r0 != 0) goto L45
|
||
|
return
|
||
|
L45:
|
||
|
java.lang.Integer r0 = r5.e
|
||
|
int r0 = r0.intValue()
|
||
|
r3 = 2
|
||
|
r4 = 3
|
||
|
if (r0 == 0) goto L58
|
||
|
if (r0 == r1) goto L58
|
||
|
if (r0 != r3) goto L68
|
||
|
java.lang.Integer r6 = java.lang.Integer.valueOf(r4)
|
||
|
goto L66
|
||
|
L58:
|
||
|
java.lang.Boolean r6 = e(r6)
|
||
|
boolean r6 = r6.booleanValue()
|
||
|
if (r6 == 0) goto L68
|
||
|
java.lang.Integer r6 = java.lang.Integer.valueOf(r3)
|
||
|
L66:
|
||
|
r5.e = r6
|
||
|
L68:
|
||
|
java.lang.Integer r6 = r5.e
|
||
|
int r6 = r6.intValue()
|
||
|
if (r6 != r4) goto L84
|
||
|
r6 = 0
|
||
|
java.lang.Integer r6 = java.lang.Integer.valueOf(r6)
|
||
|
r5.e = r6
|
||
|
java.lang.Integer r6 = r5.i
|
||
|
int r6 = r6.intValue()
|
||
|
int r6 = r6 + r1
|
||
|
java.lang.Integer r6 = java.lang.Integer.valueOf(r6)
|
||
|
r5.i = r6
|
||
|
L84:
|
||
|
java.lang.Integer r6 = r5.i
|
||
|
int r6 = r6.intValue()
|
||
|
java.lang.Integer r0 = r5.a
|
||
|
int r0 = r0.intValue()
|
||
|
if (r6 < r0) goto La9
|
||
|
android.os.Handler r6 = r5.g
|
||
|
java.lang.Runnable r0 = r5.j
|
||
|
r6.removeCallbacks(r0)
|
||
|
o.fQE r6 = r5.c
|
||
|
android.os.Message r0 = new android.os.Message
|
||
|
r0.<init>()
|
||
|
r6.b()
|
||
|
java.lang.Integer r6 = java.lang.Integer.valueOf(r2)
|
||
|
r5.e = r6
|
||
|
La9:
|
||
|
return
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.fQM.c(o.fQm):void");
|
||
|
}
|
||
|
|
||
|
@Override // o.fQG
|
||
|
public final String a() {
|
||
|
return "turn_head_right";
|
||
|
}
|
||
|
|
||
|
@Override // o.fQG
|
||
|
public final Integer e() {
|
||
|
return this.b;
|
||
|
}
|
||
|
|
||
|
@Override // o.fQG
|
||
|
public final void e(fQE fqe) {
|
||
|
this.c = fqe;
|
||
|
}
|
||
|
|
||
|
public fQM(Integer num, Integer num2) {
|
||
|
this.b = FaceProcessor.LivenessActivity.TURN_FACE_RIGHT;
|
||
|
this.a = num;
|
||
|
this.d = num2;
|
||
|
this.e = 0;
|
||
|
this.i = 0;
|
||
|
this.h = -1;
|
||
|
}
|
||
|
|
||
|
public fQM() {
|
||
|
this(1, 5000);
|
||
|
}
|
||
|
}
|