package o;

import android.net.Uri;
import android.text.TextUtils;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Mu0 extends AbstractC3047yu0 {
    public static final boolean v(String str) {
        String str2 = (String) AbstractC1900mq0.t.a(null);
        if (TextUtils.isEmpty(str2)) {
            return false;
        }
        for (String str3 : str2.split(",")) {
            if (str.equalsIgnoreCase(str3.trim())) {
                return true;
            }
        }
        return false;
    }

    /* JADX WARN: Code restructure failed: missing block: B:22:0x0092, code lost:
    
        if (java.lang.Math.abs(r7.hashCode() % 100) < r9.E().p()) goto L24;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final o.Ku0 t(java.lang.String r14) {
        /*
            Method dump skipped, instructions count: 481
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Mu0.t(java.lang.String):o.Ku0");
    }

    public final String u(String str) {
        C2851wr0 c2851wr0 = this.b.a;
        C1051dv0.T(c2851wr0);
        String strF = c2851wr0.F(str);
        if (TextUtils.isEmpty(strF)) {
            return (String) AbstractC1900mq0.r.a(null);
        }
        Uri uri = Uri.parse((String) AbstractC1900mq0.r.a(null));
        Uri.Builder builderBuildUpon = uri.buildUpon();
        String authority = uri.getAuthority();
        StringBuilder sb = new StringBuilder(String.valueOf(strF).length() + 1 + String.valueOf(authority).length());
        sb.append(strF);
        sb.append(".");
        sb.append(authority);
        builderBuildUpon.authority(sb.toString());
        return builderBuildUpon.build().toString();
    }
}
