package com.facetec.sdk; import com.google.common.base.Ascii; import java.io.IOException; import java.io.InterruptedIOException; import java.util.concurrent.TimeUnit; import net.sf.scuba.smartcards.ISO7816; /* loaded from: classes.dex */ public class nh { public static final nh c; private static final byte[] d = null; private static final int i = 0; private long a; private boolean b; private long e; /* JADX WARN: Removed duplicated region for block: B:10:0x0029 */ /* JADX WARN: Removed duplicated region for block: B:7:0x0021 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x0032). Please report as a decompilation issue!!! */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void k(int r6, int r7, short r8, java.lang.Object[] r9) { /* int r7 = r7 * 7 int r7 = 106 - r7 byte[] r0 = com.facetec.sdk.nh.d int r6 = r6 * 12 int r6 = 15 - r6 int r8 = r8 * 3 int r1 = r8 + 13 byte[] r1 = new byte[r1] int r8 = r8 + 12 r2 = 0 if (r0 != 0) goto L19 r3 = r7 r4 = r2 r7 = r6 goto L32 L19: r3 = r2 L1a: byte r4 = (byte) r7 int r6 = r6 + 1 r1[r3] = r4 if (r3 != r8) goto L29 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L29: r4 = r0[r6] int r3 = r3 + 1 r5 = r7 r7 = r6 r6 = r4 r4 = r3 r3 = r5 L32: int r3 = r3 - r6 int r6 = r3 + 2 r3 = r4 r5 = r7 r7 = r6 r6 = r5 goto L1a */ throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.nh.k(int, int, short, java.lang.Object[]):void"); } static { h(); c = new nh() { // from class: com.facetec.sdk.nh.3 @Override // com.facetec.sdk.nh public final nh a(long j, TimeUnit timeUnit) { return this; } @Override // com.facetec.sdk.nh public final nh e(long j) { return this; } @Override // com.facetec.sdk.nh public final void f() throws IOException { } }; } public nh a(long j, TimeUnit timeUnit) { if (j < 0) { throw new IllegalArgumentException("timeout < 0: ".concat(String.valueOf(j))); } if (timeUnit == null) { throw new IllegalArgumentException("unit == null"); } this.e = timeUnit.toNanos(j); return this; } public long c_() { if (this.b) { return this.a; } throw new IllegalStateException("No deadline"); } public void f() throws IOException { if (!Thread.interrupted()) { if (this.b && this.a - System.nanoTime() <= 0) { throw new InterruptedIOException("deadline reached"); } return; } try { byte[] bArr = d; byte b = bArr[0]; byte b2 = (byte) (b - 1); Object[] objArr = new Object[1]; k(b2, b2, b, objArr); Class cls = Class.forName((String) objArr[0]); byte b3 = bArr[0]; byte b4 = b3; Object[] objArr2 = new Object[1]; k(b3, b4, (byte) (b4 - 1), objArr2); ((Thread) cls.getMethod((String) objArr2[0], null).invoke(null, null)).interrupt(); throw new InterruptedIOException("interrupted"); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } public nh e_() { this.e = 0L; return this; } public nh e(long j) { this.b = true; this.a = j; return this; } public nh d_() { this.b = false; return this; } public boolean b_() { return this.b; } public long a_() { return this.e; } static void h() { d = new byte[]{1, 85, 28, 114, -16, 5, 2, 15, -7, -4, ISO7816.INS_MSE, -18, -8, 15, 6, -1, 11, -19, Ascii.ETB, 53, -60, 13, -11, 9, 59, ISO7816.INS_UPDATE_RECORD, -18, -8, 15, 6, -1}; i = 25; } }