granularity level: instruction

		.class  Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;
.super Ljava/lang/Object;
.source "TextDirectionHeuristicsCompat.java"
.implements Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;

.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/TextDirectionHeuristicsCompat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "AnyStrong"
.end annotation

.field static final INSTANCE_RTL:Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;
.field private final mLookForRtl:Z


.method static constructor <clinit>()V
	.locals 2

	new-instance v0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;
	const/4 v1, 0x1
	invoke-direct {v0, v1}, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;-><init>(Z)V
	sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->INSTANCE_RTL:Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;
	return-void
.end method

.method private constructor <init>(Z)V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-boolean p1, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->mLookForRtl:Z
	return-void
.end method

.method public checkRtl(Ljava/lang/CharSequence;II)I
	.locals 4

	add-int/2addr p3, p2
	const/4 v0, 0x0
	const/4 v1, 0x0
	:goto_0
	if-ge p2, p3, :cond_3
	invoke-interface {p1, p2}, Ljava/lang/CharSequence;->charAt(I)C
	move-result v2
	invoke-static {v2}, Ljava/lang/Character;->getDirectionality(C)B
	move-result v2
	invoke-static {v2}, Landroidx/core/text/TextDirectionHeuristicsCompat;->isRtlText(I)I
	move-result v2
	const/4 v3, 0x1
	if-eqz v2, :cond_1
	if-eq v2, v3, :cond_0
	goto :goto_1
	:cond_0
	iget-boolean v1, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->mLookForRtl:Z
	if-nez v1, :cond_2
	return v3
	:cond_1
	iget-boolean v1, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->mLookForRtl:Z
	if-eqz v1, :cond_2
	return v0
	:cond_2
	const/4 v1, 0x1
	:goto_1
	add-int/lit8 p2, p2, 0x1
	goto :goto_0
	:cond_3
	if-eqz v1, :cond_4
	iget-boolean p1, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->mLookForRtl:Z
	return p1
	:cond_4
	const/4 p1, 0x2
	return p1
.end method