package defpackage;

import androidx.media3.container.NalUnitUtil;
import java.util.Map;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Ljr0;", "Lar0;", "ktor-client-core"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final class jr0 implements ar0 {
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    @Override // defpackage.ar0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object a(faa faaVar, Map map, Continuation continuation) {
        gr0 gr0Var;
        if (continuation instanceof gr0) {
            gr0Var = (gr0) continuation;
            int i = gr0Var.c;
            if ((i & Integer.MIN_VALUE) != 0) {
                gr0Var.c = i - Integer.MIN_VALUE;
            } else {
                gr0Var = new gr0(this, (ContinuationImpl) continuation);
            }
        }
        Object obj = gr0Var.a;
        ck1 ck1Var = ck1.a;
        int i2 = gr0Var.c;
        if (i2 == 0) {
            s38.b(obj);
            throw null;
        }
        if (i2 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        s38.b(obj);
        throw null;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    @Override // defpackage.ar0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object b(faa faaVar, ContinuationImpl continuationImpl) {
        hr0 hr0Var;
        if (continuationImpl instanceof hr0) {
            hr0Var = (hr0) continuationImpl;
            int i = hr0Var.c;
            if ((i & Integer.MIN_VALUE) != 0) {
                hr0Var.c = i - Integer.MIN_VALUE;
            } else {
                hr0Var = new hr0(this, continuationImpl);
            }
        }
        Object obj = hr0Var.a;
        ck1 ck1Var = ck1.a;
        int i2 = hr0Var.c;
        if (i2 == 0) {
            s38.b(obj);
            throw null;
        }
        if (i2 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        s38.b(obj);
        throw null;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    @Override // defpackage.ar0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object c(faa faaVar, er0 er0Var, ContinuationImpl continuationImpl) {
        ir0 ir0Var;
        if (continuationImpl instanceof ir0) {
            ir0Var = (ir0) continuationImpl;
            int i = ir0Var.e;
            if ((i & Integer.MIN_VALUE) != 0) {
                ir0Var.e = i - Integer.MIN_VALUE;
            } else {
                ir0Var = new ir0(this, continuationImpl);
            }
        }
        Object obj = ir0Var.c;
        ck1 ck1Var = ck1.a;
        int i2 = ir0Var.e;
        if (i2 == 0) {
            s38.b(obj);
            ir0Var.a = this;
            ir0Var.b = faaVar;
            ir0Var.e = 1;
            throw null;
        }
        if (i2 != 1) {
            if (i2 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            faa faaVar2 = ir0Var.b;
            Map map = (Map) ir0Var.a;
            s38.b(obj);
            map.put(faaVar2, obj);
            return e6a.a;
        }
        faa faaVar3 = ir0Var.b;
        jr0 jr0Var = ir0Var.a;
        s38.b(obj);
        jr0Var.getClass();
        ir0Var.a = null;
        ir0Var.b = faaVar3;
        ir0Var.e = 2;
        throw null;
    }
}
