package p000.p001.p021.p022;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.LinkedHashMap;
import java.util.Map;
import p402.p403.C6560;
import p402.p411.p413.C6635;
import p402.p420.C6703;
import p447.AbstractC6930;
import p447.C6889;
import p447.C6905;
import p447.C6908;
import p447.C6926;
import p447.C6933;
import p447.C6938;
import p447.InterfaceC6861;
import p447.p448.C6943;

/* JADX INFO: renamed from: ނ.֏.ؠ.֏.ރ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C1232 implements InterfaceC6861 {
    @Override // p447.InterfaceC6861
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C6926 mo2523(C6938 c6938, C6933 c6933) {
        if (c6933 == null) {
            C6635.m9824("response");
            throw null;
        }
        if (c6933.f20146.m10115("Authorization") != null) {
            return null;
        }
        try {
            C6908 c6908 = c6933.f20146.f20128;
            String strM10085 = c6908.m10085();
            String strM10079 = c6908.m10079();
            if ((!C6703.m9895((CharSequence) strM10085)) && (!C6703.m9895((CharSequence) strM10079))) {
                C6926 c6926 = c6933.f20146;
                if (c6926 == null) {
                    throw null;
                }
                new LinkedHashMap();
                C6908 c69082 = c6926.f20128;
                String str = c6926.f20129;
                AbstractC6930 abstractC6930 = c6926.f20131;
                Map linkedHashMap = c6926.f20132.isEmpty() ? new LinkedHashMap() : C6560.m9783(c6926.f20132);
                C6905.C6906 c6906M10069 = c6926.f20130.m10069();
                Charset charset = StandardCharsets.ISO_8859_1;
                C6635.m9823((Object) charset, "ISO_8859_1");
                String strM10049 = C6889.m10049(strM10085, strM10079, charset);
                if (strM10049 == null) {
                    C6635.m9824("value");
                    throw null;
                }
                c6906M10069.m10075("Authorization", strM10049);
                if (c69082 != null) {
                    return new C6926(c69082, str, c6906M10069.m10073(), abstractC6930, C6943.m10161(linkedHashMap));
                }
                throw new IllegalStateException("url == null".toString());
            }
        } catch (Exception unused) {
        }
        return null;
    }
}
