package defpackage;

import com.google.android.gms.internal.measurement.zzsk;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;

/* JADX INFO: renamed from: ᵰʘ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4338 implements InterfaceC2437 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public boolean f16521;

    static {
        new AtomicInteger();
    }

    @Override // defpackage.InterfaceC2437
    /* JADX INFO: renamed from: ᵵᵽ */
    public final Object mo3347(C5339 c5339) throws IOException {
        if (this.f16521) {
            if (c5339.f20137.isEmpty()) {
                return c5339.f20139.mo1414(c5339.f20140);
            }
            throw new zzsk("Short circuit would skip transforms.");
        }
        Closeable closeable = ᵻᵪ.ᵵᵬᵽ(c5339);
        try {
            if (!(closeable instanceof InterfaceC4388)) {
                throw new IOException("Not convertible and fallback to pipe is disabled.");
            }
            File fileMo5962 = ((InterfaceC4388) closeable).mo5962();
            if (closeable != null) {
                closeable.close();
            }
            return fileMo5962;
        } catch (Throwable th) {
            if (closeable != null) {
                try {
                    closeable.close();
                } catch (Throwable th2) {
                    th.addSuppressed(th2);
                }
            }
            throw th;
        }
    }
}
