package p6;

import kotlin.jvm.internal.t;

/* loaded from: classes.dex */
public abstract class d {
    public static final b a() {
        return h.f32275a;
    }

    public static final Object b(b bVar, a key) {
        t.g(bVar, "<this>");
        t.g(key, "key");
        Object a10 = bVar.a(key);
        if (a10 != null) {
            return a10;
        }
        throw new IllegalStateException("No instance for " + key);
    }

    public static final void c(k kVar, b other) {
        t.g(kVar, "<this>");
        t.g(other, "other");
        for (a aVar : other.b()) {
            t.e(aVar, "null cannot be cast to non-null type aws.smithy.kotlin.runtime.collections.AttributeKey<kotlin.Any>");
            kVar.c(aVar, b(other, aVar));
        }
    }

    public static final k d() {
        return new c();
    }

    public static final void e(k kVar, a key, Object obj) {
        t.g(kVar, "<this>");
        t.g(key, "key");
        if (obj != null) {
            kVar.c(key, obj);
        }
    }

    public static final k f(b bVar) {
        t.g(bVar, "<this>");
        return new c(bVar);
    }
}
