package defpackage;

/* renamed from: ᵳᵨ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4591 implements InterfaceC3280 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public boolean f17039;

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

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final /* synthetic */ C2729 f17041;

    public C4591(C2729 c2729) {
        this.f17041 = c2729;
        this.f17040 = new C5108(((C2567) c2729.f10565.ᵾᵬ).f9975.mo2378());
    }

    @Override // defpackage.InterfaceC3280, java.io.Closeable, java.lang.AutoCloseable
    public final synchronized void close() {
        if (this.f17039) {
            return;
        }
        this.f17039 = true;
        ((C2567) this.f17041.f10565.ᵾᵬ).mo3287("0\r\n\r\n");
        C5108 c5108 = this.f17040;
        C3948 c3948 = c5108.f19061;
        c5108.f19061 = C3948.f14904;
        c3948.mo8744();
        c3948.mo8745();
        this.f17041.f10568 = 3;
    }

    @Override // defpackage.InterfaceC3280, java.io.Flushable
    public final synchronized void flush() {
        if (this.f17039) {
            return;
        }
        ((C2567) this.f17041.f10565.ᵾᵬ).flush();
    }

    @Override // defpackage.InterfaceC3280
    /* renamed from: ᐧﾞ */
    public final void mo2377(C0963 c0963, long j) {
        if (this.f17039) {
            ᵹˉᵞ.ᵳٴᵶ("closed");
            return;
        }
        if (j == 0) {
            return;
        }
        C2567 c2567 = (C2567) this.f17041.f10565.ᵾᵬ;
        if (c2567.f9976) {
            ᵹˉᵞ.ᵳٴᵶ("closed");
            return;
        }
        c2567.f9974.m3289(j);
        c2567.m6460();
        c2567.mo3287("\r\n");
        c2567.mo2377(c0963, j);
        c2567.mo3287("\r\n");
    }

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