package r7;

import java.io.IOException;

/* JADX INFO: loaded from: classes.dex */
public final class k implements O6.a {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final s f16620q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final /* synthetic */ o f16621r;

    public k(o oVar, s sVar) {
        this.f16621r = oVar;
        this.f16620q = sVar;
    }

    @Override // O6.a
    public final Object a() {
        o oVar = this.f16621r;
        s sVar = this.f16620q;
        try {
        } catch (IOException e8) {
            oVar.a(2, 2, e8);
        } catch (Throwable th) {
            oVar.a(3, 3, null);
            l7.b.d(sVar);
            throw th;
        }
        if (!sVar.a(true, this)) {
            throw new IOException("Required SETTINGS preface not received");
        }
        while (sVar.a(false, this)) {
        }
        oVar.a(1, 9, null);
        l7.b.d(sVar);
        return A6.n.f457a;
    }
}
