package ᨨ;

import java.io.IOException;
import ඓ.K.K.K.C1293;

/* renamed from: ᨨ.ῲ  reason: contains not printable characters */
/* compiled from: AsyncTimeout */
public class C1482 implements AbstractC1494 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final /* synthetic */ C1470 f5511;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final /* synthetic */ AbstractC1494 f5512;

    public C1482(C1470 r1, AbstractC1494 r2) {
        this.f5511 = r1;
        this.f5512 = r2;
    }

    @Override // ᨨ.AbstractC1494, java.io.Closeable, java.lang.AutoCloseable
    public void close() throws IOException {
        try {
            this.f5512.close();
            this.f5511.m3688(true);
        } catch (IOException e) {
            C1470 r1 = this.f5511;
            if (!r1.m3686()) {
                throw e;
            }
            throw r1.m3687(e);
        } catch (Throwable th) {
            this.f5511.m3688(false);
            throw th;
        }
    }

    @Override // ᨨ.AbstractC1494
    public long read(C1492 r2, long j) throws IOException {
        this.f5511.m3689();
        try {
            long read = this.f5512.read(r2, j);
            this.f5511.m3688(true);
            return read;
        } catch (IOException e) {
            C1470 r3 = this.f5511;
            if (!r3.m3686()) {
                throw e;
            }
            throw r3.m3687(e);
        } catch (Throwable th) {
            this.f5511.m3688(false);
            throw th;
        }
    }

    @Override // ᨨ.AbstractC1494
    public C1477 timeout() {
        return this.f5511;
    }

    public String toString() {
        StringBuilder r0 = C1293.m3416("AsyncTimeout.source(");
        r0.append(this.f5512);
        r0.append(")");
        return r0.toString();
    }
}
