package p010d;

import java.util.LinkedHashSet;
import java.util.Locale;
import p011d0.C0608i;

/* renamed from: d.e0 */
/* loaded from: classes.dex */
public final class C0538e0 {
    /* renamed from: a */
    public static C0608i m3530a(C0608i c0608i, C0608i c0608i2) {
        LinkedHashSet linkedHashSet = new LinkedHashSet();
        int i = 0;
        while (i < c0608i.m3269g() + c0608i2.m3269g()) {
            Locale m3272d = i < c0608i.m3269g() ? c0608i.m3272d(i) : c0608i2.m3272d(i - c0608i.m3269g());
            if (m3272d != null) {
                linkedHashSet.add(m3272d);
            }
            i++;
        }
        return C0608i.m3275a((Locale[]) linkedHashSet.toArray(new Locale[linkedHashSet.size()]));
    }

    /* renamed from: b */
    public static C0608i m3529b(C0608i c0608i, C0608i c0608i2) {
        return (c0608i == null || c0608i.m3270f()) ? C0608i.m3271e() : m3530a(c0608i, c0608i2);
    }
}