package com.google.android.gms.internal.ads; import androidx.annotation.Nullable; import java.io.IOException; import java.io.InterruptedIOException; import java.net.SocketTimeoutException; /* loaded from: classes3.dex */ public class zzgp extends zzfz { public final int zzb; public zzgp(zzgd zzgdVar, int i, int i2) { super(zzb(2008, 1)); this.zzb = 1; } public static zzgp zza(IOException iOException, zzgd zzgdVar, int i) { String message = iOException.getMessage(); int i2 = iOException instanceof SocketTimeoutException ? 2002 : iOException instanceof InterruptedIOException ? 1004 : (message == null || !zzftt.zza(message).matches("cleartext.*not permitted.*")) ? 2001 : 2007; return i2 == 2007 ? new zzgo(iOException, zzgdVar) : new zzgp(iOException, zzgdVar, i2, i); } private static int zzb(int i, int i2) { return i == 2000 ? i2 != 1 ? 2000 : 2001 : i; } public zzgp(IOException iOException, zzgd zzgdVar, int i, int i2) { super(iOException, zzb(i, i2)); this.zzb = i2; } public zzgp(String str, zzgd zzgdVar, int i, int i2) { super(str, zzb(i, i2)); this.zzb = i2; } public zzgp(String str, @Nullable IOException iOException, zzgd zzgdVar, int i, int i2) { super(str, iOException, zzb(i, i2)); this.zzb = i2; } }