package o;

import android.text.TextUtils;
import java.lang.ref.WeakReference;
import java.util.ArrayDeque;
import java.util.regex.Pattern;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.bg0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0831bg0 {
    public static WeakReference b;
    public Q1 a;

    public final synchronized C0735ag0 a() {
        String str;
        C0735ag0 c0735ag0;
        Q1 q1 = this.a;
        synchronized (((ArrayDeque) q1.p)) {
            str = (String) ((ArrayDeque) q1.p).peek();
        }
        Pattern pattern = C0735ag0.d;
        c0735ag0 = null;
        if (!TextUtils.isEmpty(str)) {
            String[] strArrSplit = str.split("!", -1);
            if (strArrSplit.length == 2) {
                c0735ag0 = new C0735ag0(strArrSplit[0], strArrSplit[1]);
            }
        }
        return c0735ag0;
    }
}
