package s1;

import android.graphics.Shader;
import android.os.Build;
import s1.v1;

/* loaded from: classes.dex */
public abstract class r {
    public static final Shader.TileMode a(int i10) {
        v1.a aVar = v1.f35374a;
        if (v1.f(i10, aVar.a())) {
            return Shader.TileMode.CLAMP;
        }
        if (v1.f(i10, aVar.d())) {
            return Shader.TileMode.REPEAT;
        }
        if (v1.f(i10, aVar.c())) {
            return Shader.TileMode.MIRROR;
        }
        if (v1.f(i10, aVar.b()) && Build.VERSION.SDK_INT >= 31) {
            return x1.f35382a.b();
        }
        return Shader.TileMode.CLAMP;
    }
}
