package U4;

import com.google.android.gms.internal.measurement.C1;

/* JADX INFO: loaded from: classes.dex */
public final class j {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final o f6753a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final o f6754b;

    public j(o oVar, o oVar2) {
        P6.g.e(oVar, "localOverrideSettings");
        P6.g.e(oVar2, "remoteSettings");
        this.f6753a = oVar;
        this.f6754b = oVar2;
    }

    public final double a() {
        Double d8 = this.f6753a.d();
        if (d8 != null) {
            double dDoubleValue = d8.doubleValue();
            if (0.0d <= dDoubleValue && dDoubleValue <= 1.0d) {
                return dDoubleValue;
            }
        }
        Double d9 = this.f6754b.d();
        if (d9 != null) {
            double dDoubleValue2 = d9.doubleValue();
            if (0.0d <= dDoubleValue2 && dDoubleValue2 <= 1.0d) {
                return dDoubleValue2;
            }
        }
        return 1.0d;
    }

    /* JADX WARN: Code restructure failed: missing block: B:21:0x0054, code lost:
    
        if (r6.c(r0) == r1) goto L22;
     */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object b(G6.c cVar) throws Throwable {
        i iVar;
        j jVar;
        if (cVar instanceof i) {
            iVar = (i) cVar;
            int i = iVar.f6752w;
            if ((i & Integer.MIN_VALUE) != 0) {
                iVar.f6752w = i - Integer.MIN_VALUE;
            } else {
                iVar = new i(this, cVar);
            }
        }
        Object obj = iVar.f6750u;
        F6.a aVar = F6.a.f2580q;
        int i5 = iVar.f6752w;
        if (i5 == 0) {
            C1.N(obj);
            iVar.f6749t = this;
            iVar.f6752w = 1;
            if (this.f6753a.c(iVar) != aVar) {
                jVar = this;
            }
            return aVar;
        }
        if (i5 != 1) {
            if (i5 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            return A6.n.f457a;
        }
        jVar = iVar.f6749t;
        C1.N(obj);
        o oVar = jVar.f6754b;
        iVar.f6749t = null;
        iVar.f6752w = 2;
    }
}
