package p138.p176.p291.p296.p297.p309;

import android.content.Context;
import java.util.Collections;
import java.util.Set;
import p138.p176.p177.p178.C3253;
import p138.p176.p177.p178.InterfaceC3255;
import p138.p176.p177.p178.InterfaceC3256;
import p138.p176.p177.p178.p179.C3257;
import p138.p176.p177.p178.p181.AbstractC3303;
import p138.p176.p177.p178.p181.C3293;
import p138.p176.p177.p178.p181.C3305;
import p138.p176.p177.p178.p181.C3306;
import p138.p176.p177.p178.p181.C3308;
import p138.p176.p177.p242.p270.C5063;
import p138.p176.p291.p296.p297.p299.AbstractC5676;
import p138.p176.p291.p296.p297.p301.AbstractC5781;
import p138.p176.p291.p296.p297.p301.p302.C5816;

/* JADX INFO: renamed from: ދ.ހ.ށ.ބ.ށ.ގ.ހ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C5853 {

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final C5816 f16572 = new C5816();

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final String f16573 = m9197("hts/cahyiseot-agolai.o/1frlglgc/aclg", "tp:/rsltcrprsp.ogepscmv/ieo/eaybtho");

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static final String f16574 = m9197("AzSBpY4F0rHiHFdinTvM", "IayrSTFL9eJ69YeSUO2");

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public static final InterfaceC3255<AbstractC5781, byte[]> f16575 = C5852.f16571;

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final InterfaceC3256<AbstractC5781> f16576;

    public C5853(InterfaceC3256<AbstractC5781> interfaceC3256, InterfaceC3255<AbstractC5781, byte[]> interfaceC3255) {
        this.f16576 = interfaceC3256;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m9197(String str, String str2) {
        int length = str.length() - str2.length();
        if (length < 0 || length > 1) {
            throw new IllegalArgumentException("Invalid input received");
        }
        StringBuilder sb = new StringBuilder(str2.length() + str.length());
        for (int i = 0; i < str.length(); i++) {
            sb.append(str.charAt(i));
            if (str2.length() > i) {
                sb.append(str2.charAt(i));
            }
        }
        return sb.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C5853 m9198(Context context) {
        C3308.m5372(context);
        C3308 c3308M5371 = C3308.m5371();
        C3257 c3257 = new C3257(f16573, f16574);
        if (c3308M5371 == null) {
            throw null;
        }
        Set setUnmodifiableSet = Collections.unmodifiableSet(c3257.mo5346());
        AbstractC3303.AbstractC3304 abstractC3304M5370 = AbstractC3303.m5370();
        abstractC3304M5370.mo5363(c3257.mo5347());
        C3293.C3295 c3295 = (C3293.C3295) abstractC3304M5370;
        c3295.f9733 = c3257.mo5348();
        C3305 c3305 = new C3305(setUnmodifiableSet, c3295.mo5365(), c3308M5371);
        C3253 c3253 = new C3253("json");
        InterfaceC3255<AbstractC5781, byte[]> interfaceC3255 = f16575;
        if (c3305.f9750.contains(c3253)) {
            return new C5853(new C3306(c3305.f9751, "FIREBASE_CRASHLYTICS_REPORT", c3253, interfaceC3255, c3305.f9752), f16575);
        }
        throw new IllegalArgumentException(String.format("%s is not supported byt this factory. Supported encodings are: %s.", c3253, c3305.f9750));
    }

    /* JADX WARN: Type inference incomplete: some casts might be missing */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m9199(C5063 c5063, AbstractC5676 abstractC5676, Exception exc) {
        if (exc != null) {
            c5063.f15214.m8563(exc);
        } else {
            c5063.f15214.m8564((TResult) abstractC5676);
        }
    }
}
