package p6;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import kotlin.jvm.internal.t;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class c implements k {

    /* renamed from: a, reason: collision with root package name */
    private final Map f32269a;

    public c(b seed) {
        t.g(seed, "seed");
        this.f32269a = new LinkedHashMap();
        d.c(this, seed);
    }

    @Override // p6.b
    public Object a(a key) {
        t.g(key, "key");
        return this.f32269a.get(key);
    }

    @Override // p6.b
    public Set b() {
        return this.f32269a.keySet();
    }

    @Override // p6.k
    public void c(a key, Object value) {
        t.g(key, "key");
        t.g(value, "value");
        this.f32269a.put(key, value);
    }

    public boolean d(a key) {
        t.g(key, "key");
        return this.f32269a.containsKey(key);
    }

    /* JADX WARN: Removed duplicated region for block: B:29:0x0064 A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:32:? A[LOOP:0: B:20:0x003a->B:32:?, LOOP_END, SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public boolean equals(Object obj) {
        boolean z10;
        if (this == obj) {
            return true;
        }
        if (obj == null || !(obj instanceof b)) {
            return false;
        }
        b bVar = (b) obj;
        if (b().size() != bVar.b().size()) {
            return false;
        }
        Set<a> b10 = b();
        if ((b10 instanceof Collection) && b10.isEmpty()) {
            return true;
        }
        for (a aVar : b10) {
            if (d(aVar)) {
                t.e(aVar, "null cannot be cast to non-null type aws.smithy.kotlin.runtime.collections.AttributeKey<kotlin.Any>");
                if (t.b(a(aVar), bVar.a(aVar))) {
                    z10 = true;
                    if (z10) {
                        return false;
                    }
                }
            }
            z10 = false;
            if (z10) {
            }
        }
        return true;
    }

    public int hashCode() {
        return this.f32269a.hashCode();
    }

    public String toString() {
        return this.f32269a.toString();
    }

    public c() {
        this(d.a());
    }
}
