package defpackage;

import java.lang.reflect.Method;
import java.util.Map;

/* JADX INFO: renamed from: ˏᵕˎ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1866 extends ᵣˉ {

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final Method f7398;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final boolean f7399;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final /* synthetic */ int f7400;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final int f7401;

    public /* synthetic */ C1866(Method method, int i, boolean z, int i2) {
        this.f7400 = i2;
        this.f7398 = method;
        this.f7401 = i;
        this.f7399 = z;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final void m5066(C3645 c3645, Object obj) {
        int i = this.f7400;
        boolean z = this.f7399;
        Method method = this.f7398;
        int i2 = this.f7401;
        switch (i) {
            case 0:
                Map map = (Map) obj;
                if (map == null) {
                    throw AbstractC3481.m7919(method, i2, "Field map was null.", new Object[0]);
                }
                for (Map.Entry entry : map.entrySet()) {
                    String str = (String) entry.getKey();
                    if (str == null) {
                        throw AbstractC3481.m7919(method, i2, "Field map contained null key.", new Object[0]);
                    }
                    Object value = entry.getValue();
                    if (value == null) {
                        throw AbstractC3481.m7919(method, i2, AbstractC3589.m8117("Field map contained null value for key '", str, "'."), new Object[0]);
                    }
                    String string = value.toString();
                    if (string == null) {
                        throw AbstractC3481.m7919(method, i2, "Field map value '" + value + "' converted to null by " + ᵠʽᵲ.class.getName() + " for key '" + str + "'.", new Object[0]);
                    }
                    c3645.m8209(str, string, z);
                }
                return;
            case 1:
                Map map2 = (Map) obj;
                if (map2 == null) {
                    throw AbstractC3481.m7919(method, i2, "Header map was null.", new Object[0]);
                }
                for (Map.Entry entry2 : map2.entrySet()) {
                    String str2 = (String) entry2.getKey();
                    if (str2 == null) {
                        throw AbstractC3481.m7919(method, i2, "Header map contained null key.", new Object[0]);
                    }
                    Object value2 = entry2.getValue();
                    if (value2 == null) {
                        throw AbstractC3481.m7919(method, i2, AbstractC3589.m8117("Header map contained null value for key '", str2, "'."), new Object[0]);
                    }
                    c3645.m8207(str2, value2.toString(), z);
                }
                return;
            default:
                Map map3 = (Map) obj;
                if (map3 == null) {
                    throw AbstractC3481.m7919(method, i2, "Query map was null", new Object[0]);
                }
                for (Map.Entry entry3 : map3.entrySet()) {
                    String str3 = (String) entry3.getKey();
                    if (str3 == null) {
                        throw AbstractC3481.m7919(method, i2, "Query map contained null key.", new Object[0]);
                    }
                    Object value3 = entry3.getValue();
                    if (value3 == null) {
                        throw AbstractC3481.m7919(method, i2, AbstractC3589.m8117("Query map contained null value for key '", str3, "'."), new Object[0]);
                    }
                    String string2 = value3.toString();
                    if (string2 == null) {
                        throw AbstractC3481.m7919(method, i2, "Query map value '" + value3 + "' converted to null by " + ᵠʽᵲ.class.getName() + " for key '" + str3 + "'.", new Object[0]);
                    }
                    c3645.m8210(str3, string2, z);
                }
                return;
        }
    }
}
