package a7;

import java.util.Map;
import kotlin.jvm.internal.t;
import sm.q0;

/* loaded from: classes.dex */
public abstract class e {
    public static final void a(vm.g gVar, String sourceComponent, Throwable th2, dn.a content) {
        t.g(gVar, "<this>");
        t.g(sourceComponent, "sourceComponent");
        t.g(content, "content");
        c(gVar, f.Debug, sourceComponent, th2, content);
    }

    public static final Map b(vm.g gVar) {
        Map i10;
        t.g(gVar, "<this>");
        android.support.v4.media.session.b.a(gVar.d(j.f270q));
        i10 = q0.i();
        return i10;
    }

    public static final void c(vm.g gVar, f level, String sourceComponent, Throwable th2, dn.a content) {
        t.g(gVar, "<this>");
        t.g(level, "level");
        t.g(sourceComponent, "sourceComponent");
        t.g(content, "content");
        h a10 = y6.d.a(gVar).a().a(sourceComponent);
        if (a10.c(level)) {
            Map b10 = b(gVar);
            c7.b.a(gVar);
            g b11 = a10.b(level);
            if (th2 != null) {
                b11.k(th2);
            }
            b11.l(content);
            for (Map.Entry entry : b10.entrySet()) {
                b11.j((String) entry.getKey(), entry.getValue());
            }
            b11.i();
        }
    }

    public static final h d(vm.g gVar, String sourceComponent) {
        t.g(gVar, "<this>");
        t.g(sourceComponent, "sourceComponent");
        return new d(gVar, y6.d.a(gVar).a().a(sourceComponent), sourceComponent);
    }

    public static final void e(vm.g gVar, String sourceComponent, Throwable th2, dn.a content) {
        t.g(gVar, "<this>");
        t.g(sourceComponent, "sourceComponent");
        t.g(content, "content");
        c(gVar, f.Trace, sourceComponent, th2, content);
    }
}
