package defpackage;

import defpackage.gu8;
import java.util.concurrent.CancellationException;
import kotlin.Metadata;

/* JADX INFO: renamed from: iu8, reason: from Kotlin metadata and case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000\u0016\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0006\u001a\u00020\u0005\"\u0004\b\u0000\u0010\u00002\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u00012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003H\n¢\u0006\u0004\b\u0006\u0010\u0007"}, d2 = {"T", "Lgu8$b;", "msg", "", "ex", "Le6a;", "<anonymous>", "(Lgu8$b;Ljava/lang/Throwable;)V"}, k = 3, mv = {1, 5, 1})
final class C0576iu8 extends u55 implements gr3<gu8.b<Object>, Throwable, e6a> {
    public static final C0576iu8 a = new C0576iu8(2);

    @Override // defpackage.gr3
    public final Object invoke(Object obj, Object obj2) {
        gu8.b bVar = (gu8.b) obj;
        Throwable cancellationException = (Throwable) obj2;
        cr4.g(bVar, "msg");
        if (bVar instanceof gu8.b.C0144b) {
            q81 q81Var = ((gu8.b.C0144b) bVar).b;
            if (cancellationException == null) {
                cancellationException = new CancellationException("DataStore scope was cancelled before updateData could complete");
            }
            q81Var.d(cancellationException);
        }
        return e6a.a;
    }
}
