package com.bumptech.glide;

import android.os.Trace;
import defpackage.dq;
import defpackage.ex7;
import defpackage.tv3;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
class f implements tv3.a<ex7> {
    public boolean a;
    public final /* synthetic */ a b;
    public final /* synthetic */ List c;
    public final /* synthetic */ dq d;

    public f(a aVar, List list, dq dqVar) {
        this.b = aVar;
        this.c = list;
        this.d = dqVar;
    }

    @Override // tv3.a
    public final Object get() {
        if (this.a) {
            throw new IllegalStateException("Recursive Registry initialization! In your AppGlideModule and LibraryGlideModules, Make sure you're using the provided Registry rather calling glide.getRegistry()!");
        }
        Trace.beginSection("Glide registry");
        this.a = true;
        try {
            return g.a(this.b, this.c, this.d);
        } finally {
            this.a = false;
            Trace.endSection();
        }
    }
}
