package defpackage;

import com.rapid7.helper.smbj.io.SMB2Exception;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.nio.channels.InterruptedByTimeoutException;
import java.util.EnumSet;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

/* JADX INFO: renamed from: ᵽː, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public abstract class AbstractC5352 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final EnumC3519 f20254;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final long f20255;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final C5022 f20256;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final long f20257;

    public AbstractC5352(C5022 c5022) {
        C5179 c5179 = c5022.f19037;
        this.f20254 = (EnumC3519) ((C4349) c5179.f19498.f19206).f16540;
        this.f20256 = c5022;
        this.f20255 = c5022.f19032;
        this.f20257 = c5179.f19496.f15153;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final AbstractC1899 m10941(AbstractC1899 abstractC1899, EnumSet enumSet) throws IOException {
        try {
            try {
                AbstractC1899 abstractC18992 = (AbstractC1899) this.f20256.m10362(abstractC1899).f17089.get(this.f20257, TimeUnit.MILLISECONDS);
                C2964 c2964 = (C2964) abstractC18992.ᵮᵣᵗˈ();
                if (enumSet.contains(EnumC0878.m3075(c2964.f11408))) {
                    return abstractC18992;
                }
                throw new SMB2Exception(c2964, "expected=" + enumSet);
            } catch (InterruptedException e) {
                InterruptedIOException interruptedIOException = new InterruptedIOException();
                interruptedIOException.initCause(e);
                throw interruptedIOException;
            } catch (ExecutionException e2) {
                throw new IOException(e2);
            } catch (TimeoutException e3) {
                InterruptedByTimeoutException interruptedByTimeoutException = new InterruptedByTimeoutException();
                interruptedByTimeoutException.initCause(e3);
                throw interruptedByTimeoutException;
            }
        } catch (IOException e4) {
            throw e4;
        } catch (Exception e5) {
            throw new IOException(e5);
        }
    }
}
