package defpackage;

import java.io.IOException;
import java.io.OutputStream;

/* renamed from: ˆᵡˊᵤ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0859 implements InterfaceC3280 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final C3948 f3913;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final OutputStream f3914;

    public C0859(OutputStream outputStream, C3948 c3948) {
        this.f3914 = outputStream;
        this.f3913 = c3948;
    }

    @Override // defpackage.InterfaceC3280, java.io.Closeable, java.lang.AutoCloseable
    public final void close() throws IOException {
        this.f3914.close();
    }

    @Override // defpackage.InterfaceC3280, java.io.Flushable
    public final void flush() throws IOException {
        this.f3914.flush();
    }

    public final String toString() {
        return "sink(" + this.f3914 + ')';
    }

    @Override // defpackage.InterfaceC3280
    /* renamed from: ᐧﾞ */
    public final void mo2377(C0963 c0963, long j) throws IOException {
        ᵩʛʽ.ᵸˑ(c0963.f4314, 0L, j);
        while (j > 0) {
            this.f3913.mo8742();
            C3514 c3514 = c0963.f4315;
            int iMin = (int) Math.min(j, c3514.f13188 - c3514.f13190);
            this.f3914.write(c3514.f13189, c3514.f13190, iMin);
            int i = c3514.f13190 + iMin;
            c3514.f13190 = i;
            long j2 = iMin;
            j -= j2;
            c0963.f4314 -= j2;
            if (i == c3514.f13188) {
                c0963.f4315 = c3514.m8039();
                AbstractC3467.m7895(c3514);
            }
        }
    }

    @Override // defpackage.InterfaceC3280
    /* renamed from: ᵝᵵᵺ */
    public final C3948 mo2378() {
        return this.f3913;
    }
}
