package com.ironsource;

import com.mbridge.msdk.foundation.download.core.DownloadCommon;
import kotlin.Metadata;
import kotlin.Result;
import kotlin.ResultKt;
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001B%\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\b\u0012\b\u0010\u000f\u001a\u0004\u0018\u00010\f¢\u0006\u0004\b\u0010\u0010\u0011J\u001e\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0016ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0004\b\u0004\u0010\u0005R\u0016\u0010\u0007\u001a\u0004\u0018\u00010\u00038\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\u0006R\u0016\u0010\u000b\u001a\u0004\u0018\u00010\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\nR\u0016\u0010\u000f\u001a\u0004\u0018\u00010\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\r\u0010\u000e\u0082\u0002\u000f\n\u0002\b!\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u0012"}, d2 = {"Lcom/ironsource/c8;", "Lcom/ironsource/he;", "Lkotlin/Result;", "", "a", "()Ljava/lang/Object;", "Ljava/lang/Boolean;", "enabled", "", DownloadCommon.DOWNLOAD_REPORT_FIND_FILE_RESULT_VALUE_B, "Ljava/lang/Integer;", "limit", "Lcom/ironsource/j8;", "c", "Lcom/ironsource/j8;", "unit", "<init>", "(Ljava/lang/Boolean;Ljava/lang/Integer;Lcom/ironsource/j8;)V", "mediationsdk_release"}, k = 1, mv = {1, 8, 0})
/* loaded from: classes4.dex */
public final class c8 implements he {

    /* renamed from: a  reason: collision with root package name */
    private final Boolean f2241a;
    private final Integer b;
    private final j8 c;

    public c8(Boolean bool, Integer num, j8 j8Var) {
        this.f2241a = bool;
        this.b = num;
        this.c = j8Var;
    }

    @Override // com.ironsource.he
    public Object a() {
        Exception exc;
        Object obj;
        Boolean bool = this.f2241a;
        if (bool != null) {
            if (bool.booleanValue()) {
                Integer num = this.b;
                if (num == null || num.intValue() <= 0) {
                    Result.Companion companion = Result.Companion;
                    exc = new Exception("limit flag is not provided or invalid");
                } else if (this.c == null) {
                    Result.Companion companion2 = Result.Companion;
                    exc = new Exception("unit flag is not provided or invalid");
                } else {
                    Result.Companion companion3 = Result.Companion;
                    obj = Boolean.TRUE;
                }
            } else {
                Result.Companion companion4 = Result.Companion;
                obj = Boolean.FALSE;
            }
            return Result.m1581constructorimpl(obj);
        }
        Result.Companion companion5 = Result.Companion;
        exc = new Exception("enabled flag is not provided or invalid");
        obj = ResultKt.createFailure(exc);
        return Result.m1581constructorimpl(obj);
    }
}
