package Q1;

import androidx.navigation.C1134i;
import kotlin.jvm.internal.p;
import p5.G;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class e extends p implements J4.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f5876a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ f f5877b;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ e(f fVar, int i6) {
        super(0);
        this.f5876a = i6;
        this.f5877b = fVar;
    }

    @Override // J4.a
    public final Object invoke() {
        switch (this.f5876a) {
            case 0:
                f fVar = this.f5877b;
                G g6 = (G) fVar.f5882c.invoke();
                if (q5.f.a(g6) != -1) {
                    return C1134i.o(g6.f23048a.t(), true);
                }
                throw new IllegalStateException(("OkioStorage requires absolute paths, but did not get an absolute path from producePath = " + fVar.f5882c + ", instead got " + g6).toString());
            default:
                u4.c cVar = f.f5879f;
                f fVar2 = this.f5877b;
                synchronized (cVar) {
                    f.f5878e.remove(((G) fVar2.f5883d.getValue()).f23048a.t());
                }
                return C3137A.f25453a;
        }
    }
}
