package defpackage;

import androidx.media3.common.ParserException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/* JADX INFO: renamed from: ᵻʾﹶᵕ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C5182 {

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static final C5182 f19506 = new C5182(0, -9223372036854775807L);

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public static final Pattern f19507 = Pattern.compile("npt[:=]([.\\d]+|now)\\s?-\\s?([.\\d]+)?");

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final long f19508;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final long f19509;

    public C5182(long j, long j2) {
        this.f19509 = j;
        this.f19508 = j2;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static C5182 m10727(String str) {
        Matcher matcher = f19507.matcher(str);
        boolean zMatches = matcher.matches();
        Pattern pattern = AbstractC0208.f1682;
        if (!zMatches) {
            throw ParserException.m355(str, null);
        }
        String strGroup = matcher.group(1);
        if (strGroup == null) {
            throw ParserException.m355(str, null);
        }
        String str2 = AbstractC0956.f4222;
        long j = strGroup.equals("now") ? 0L : (long) (Float.parseFloat(strGroup) * 1000.0f);
        String strGroup2 = matcher.group(2);
        long j2 = -9223372036854775807L;
        if (strGroup2 != null) {
            try {
                long j3 = (long) (Float.parseFloat(strGroup2) * 1000.0f);
                if (j3 >= j) {
                    j2 = j3;
                }
            } catch (NumberFormatException e) {
                throw ParserException.m355(strGroup2, e);
            }
        }
        return new C5182(j, j2);
    }
}
