package R4;

import java.io.IOException;
import p0.AbstractC0928a;

/* JADX INFO: loaded from: classes.dex */
public abstract class s {
    public static int a(int i, int i5, int i6) throws IOException {
        if ((i5 & 8) != 0) {
            i--;
        }
        if (i6 <= i) {
            return i - i6;
        }
        throw new IOException(AbstractC0928a.h(i6, i, "PROTOCOL_ERROR padding ", " > remaining length "));
    }
}
