package p138.p329.p362.p371.p372.p373;

import com.hierynomus.protocol.commons.buffer.Buffer;
import com.hierynomus.protocol.transport.TransportException;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import p138.p329.p351.InterfaceC6286;
import p138.p329.p351.p352.p353.AbstractC6294;
import p138.p329.p351.p356.InterfaceC6305;
import p138.p329.p351.p356.InterfaceC6307;
import p138.p329.p362.p371.AbstractRunnableC6414;

/* JADX INFO: renamed from: ދ.ށ.މ.ފ.ؠ.֏.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C6415<D extends InterfaceC6286<?>> extends AbstractRunnableC6414<D> {

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public final InterfaceC6305<D> f17909;

    public C6415(String str, InputStream inputStream, InterfaceC6305<D> interfaceC6305, InterfaceC6307<D> interfaceC6307) {
        super(str, inputStream, interfaceC6307);
        this.f17909 = interfaceC6305;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m9636(byte[] bArr) throws IOException {
        int length = bArr.length;
        int i = 0;
        while (length > 0) {
            int i2 = this.f17905.read(bArr, i, length);
            if (i2 == -1) {
                throw new TransportException(new EOFException("EOF while reading packet"));
            }
            length -= i2;
            i += i2;
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final int m9637() throws Buffer.BufferException, IOException {
        byte[] bArr = new byte[4];
        m9636(bArr);
        Buffer.C0346 c0346 = new Buffer.C0346(bArr, AbstractC6294.f17634);
        c0346.m1472();
        return c0346.f2169.mo9536(c0346);
    }
}
