granularity level: instruction

		.class public final Lcom/google/android/gms/common/util/ArrayUtils;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"




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

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static varargs concat([[Ljava/lang/Object;)[Ljava/lang/Object;
	.locals 6
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">([[TT;)[TT;"
	}
	.end annotation

	array-length v0, p0
	const/4 v1, 0x0
	if-eqz v0, :cond_2
	const/4 v0, 0x0
	const/4 v2, 0x0
	:goto_0
	array-length v3, p0
	if-ge v0, v3, :cond_0
	aget-object v3, p0, v0
	array-length v3, v3
	add-int/2addr v2, v3
	add-int/lit8 v0, v0, 0x1
	goto :goto_0
	:cond_0
	aget-object v0, p0, v1
	invoke-static {v0, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
	move-result-object v0
	aget-object v2, p0, v1
	array-length v2, v2
	const/4 v3, 0x1
	:goto_1
	array-length v4, p0
	if-ge v3, v4, :cond_1
	aget-object v4, p0, v3
	array-length v5, v4
	invoke-static {v4, v1, v0, v2, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
	add-int/2addr v2, v5
	add-int/lit8 v3, v3, 0x1
	goto :goto_1
	:cond_1
	return-object v0
	:cond_2
	invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	move-result-object p0
	invoke-static {p0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, [Ljava/lang/Object;
	return-object p0
.end method

.method public static varargs concatByteArrays([[B)[B
	.locals 6

	array-length v0, p0
	const/4 v1, 0x0
	if-eqz v0, :cond_2
	const/4 v0, 0x0
	const/4 v2, 0x0
	:goto_0
	array-length v3, p0
	if-ge v0, v3, :cond_0
	aget-object v3, p0, v0
	array-length v3, v3
	add-int/2addr v2, v3
	add-int/lit8 v0, v0, 0x1
	goto :goto_0
	:cond_0
	aget-object v0, p0, v1
	invoke-static {v0, v2}, Ljava/util/Arrays;->copyOf([BI)[B
	move-result-object v0
	aget-object v2, p0, v1
	array-length v2, v2
	const/4 v3, 0x1
	:goto_1
	array-length v4, p0
	if-ge v3, v4, :cond_1
	aget-object v4, p0, v3
	array-length v5, v4
	invoke-static {v4, v1, v0, v2, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
	add-int/2addr v2, v5
	add-int/lit8 v3, v3, 0x1
	goto :goto_1
	:cond_1
	return-object v0
	:cond_2
	new-array p0, v1, [B
	return-object p0
.end method

.method public static contains([II)Z
	.locals 4

	const/4 v0, 0x0
	if-nez p0, :cond_0
	return v0
	:cond_0
	array-length v1, p0
	const/4 v2, 0x0
	:goto_0
	if-ge v2, v1, :cond_2
	aget v3, p0, v2
	if-ne v3, p1, :cond_1
	const/4 p0, 0x1
	return p0
	:cond_1
	add-int/lit8 v2, v2, 0x1
	goto :goto_0
	:cond_2
	return v0
.end method

.method public static contains([Ljava/lang/Object;Ljava/lang/Object;)Z
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">([TT;TT;)Z"
	}
	.end annotation

	const/4 v0, 0x0
	if-eqz p0, :cond_0
	array-length v1, p0
	goto :goto_0
	:cond_0
	const/4 v1, 0x0
	:goto_0
	const/4 v2, 0x0
	:goto_1
	if-ge v2, v1, :cond_2
	aget-object v3, p0, v2
	invoke-static {v3, p1}, Lcom/google/android/gms/common/internal/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
	move-result v3
	if-eqz v3, :cond_1
	if-ltz v2, :cond_2
	const/4 p0, 0x1
	return p0
	:cond_1
	add-int/lit8 v2, v2, 0x1
	goto :goto_1
	:cond_2
	return v0
.end method

.method public static newArrayList()Ljava/util/ArrayList;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">()",
	"Ljava/util/ArrayList<",
	"TT;>;"
	}
	.end annotation

	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	return-object v0
.end method

.method public static varargs removeAll([Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;
	.locals 8
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">([TT;[TT;)[TT;"
	}
	.end annotation

	const/4 v0, 0x0
	if-nez p0, :cond_0
	return-object v0
	:cond_0
	if-eqz p1, :cond_9
	array-length v1, p1
	if-nez v1, :cond_1
	goto :goto_3
	:cond_1
	invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	move-result-object v2
	invoke-virtual {v2}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
	move-result-object v2
	array-length v3, p0
	invoke-static {v2, v3}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
	move-result-object v2
	check-cast v2, [Ljava/lang/Object;
	const/4 v4, 0x0
	const/4 v5, 0x1
	if-ne v1, v5, :cond_3
	const/4 v1, 0x0
	const/4 v5, 0x0
	:goto_0
	if-ge v1, v3, :cond_6
	aget-object v6, p0, v1
	aget-object v7, p1, v4
	invoke-static {v7, v6}, Lcom/google/android/gms/common/internal/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
	move-result v7
	if-nez v7, :cond_2
	add-int/lit8 v7, v5, 0x1
	aput-object v6, v2, v5
	move v5, v7
	:cond_2
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_3
	const/4 v1, 0x0
	:goto_1
	if-ge v4, v3, :cond_5
	aget-object v5, p0, v4
	invoke-static {p1, v5}, Lcom/google/android/gms/common/util/ArrayUtils;->contains([Ljava/lang/Object;Ljava/lang/Object;)Z
	move-result v6
	if-nez v6, :cond_4
	add-int/lit8 v6, v1, 0x1
	aput-object v5, v2, v1
	move v1, v6
	:cond_4
	add-int/lit8 v4, v4, 0x1
	goto :goto_1
	:cond_5
	move v5, v1
	:cond_6
	if-nez v2, :cond_7
	goto :goto_2
	:cond_7
	array-length p0, v2
	if-ne v5, p0, :cond_8
	move-object v0, v2
	:goto_2
	return-object v0
	:cond_8
	invoke-static {v2, v5}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
	move-result-object p0
	return-object p0
	:goto_3
	:cond_9
	array-length p1, p0
	invoke-static {p0, p1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
	move-result-object p0
	return-object p0
.end method

.method public static toArrayList([Ljava/lang/Object;)Ljava/util/ArrayList;
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">([TT;)",
	"Ljava/util/ArrayList<",
	"TT;>;"
	}
	.end annotation

	array-length v0, p0
	new-instance v1, Ljava/util/ArrayList;
	invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(I)V
	const/4 v2, 0x0
	:goto_0
	if-ge v2, v0, :cond_0
	aget-object v3, p0, v2
	invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	add-int/lit8 v2, v2, 0x1
	goto :goto_0
	:cond_0
	return-object v1
.end method

.method public static toPrimitiveArray(Ljava/util/Collection;)[I
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/Collection<",
	"Ljava/lang/Integer;",
	">;)[I"
	}
	.end annotation

	const/4 v0, 0x0
	if-eqz p0, :cond_2
	invoke-interface {p0}, Ljava/util/Collection;->isEmpty()Z
	move-result v1
	if-eqz v1, :cond_0
	goto :goto_1
	:cond_0
	invoke-interface {p0}, Ljava/util/Collection;->size()I
	move-result v1
	new-array v1, v1, [I
	invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
	move-result-object p0
	:goto_0
	invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
	move-result v2
	if-eqz v2, :cond_1
	add-int/lit8 v2, v0, 0x1
	invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Ljava/lang/Integer;
	invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
	move-result v3
	aput v3, v1, v0
	move v0, v2
	goto :goto_0
	:cond_1
	return-object v1
	:cond_2
	:goto_1
	new-array p0, v0, [I
	return-object p0
.end method

.method public static toWrapperArray([I)[Ljava/lang/Integer;
	.locals 4

	if-nez p0, :cond_0
	const/4 p0, 0x0
	return-object p0
	:cond_0
	array-length v0, p0
	new-array v1, v0, [Ljava/lang/Integer;
	const/4 v2, 0x0
	:goto_0
	if-ge v2, v0, :cond_1
	aget v3, p0, v2
	invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
	move-result-object v3
	aput-object v3, v1, v2
	add-int/lit8 v2, v2, 0x1
	goto :goto_0
	:cond_1
	return-object v1
.end method

.method public static writeArray(Ljava/lang/StringBuilder;[D)V
	.locals 4

	array-length v0, p1
	const/4 v1, 0x0
	:goto_0
	if-ge v1, v0, :cond_1
	if-eqz v1, :cond_0
	const-string v2, ","
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	:cond_0
	aget-wide v2, p1, v1
	invoke-static {v2, v3}, Ljava/lang/Double;->toString(D)Ljava/lang/String;
	move-result-object v2
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_1
	return-void
.end method

.method public static writeArray(Ljava/lang/StringBuilder;[F)V
	.locals 3

	array-length v0, p1
	const/4 v1, 0x0
	:goto_0
	if-ge v1, v0, :cond_1
	if-eqz v1, :cond_0
	const-string v2, ","
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	:cond_0
	aget v2, p1, v1
	invoke-static {v2}, Ljava/lang/Float;->toString(F)Ljava/lang/String;
	move-result-object v2
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_1
	return-void
.end method

.method public static writeArray(Ljava/lang/StringBuilder;[I)V
	.locals 3

	array-length v0, p1
	const/4 v1, 0x0
	:goto_0
	if-ge v1, v0, :cond_1
	if-eqz v1, :cond_0
	const-string v2, ","
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	:cond_0
	aget v2, p1, v1
	invoke-static {v2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
	move-result-object v2
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_1
	return-void
.end method

.method public static writeArray(Ljava/lang/StringBuilder;[J)V
	.locals 4

	array-length v0, p1
	const/4 v1, 0x0
	:goto_0
	if-ge v1, v0, :cond_1
	if-eqz v1, :cond_0
	const-string v2, ","
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	:cond_0
	aget-wide v2, p1, v1
	invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
	move-result-object v2
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_1
	return-void
.end method

.method public static writeArray(Ljava/lang/StringBuilder;[Ljava/lang/Object;)V
	.locals 3
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">(",
	"Ljava/lang/StringBuilder;",
	"[TT;)V"
	}
	.end annotation

	array-length v0, p1
	const/4 v1, 0x0
	:goto_0
	if-ge v1, v0, :cond_1
	if-eqz v1, :cond_0
	const-string v2, ","
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	:cond_0
	aget-object v2, p1, v1
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_1
	return-void
.end method

.method public static writeArray(Ljava/lang/StringBuilder;[Z)V
	.locals 3

	array-length v0, p1
	const/4 v1, 0x0
	:goto_0
	if-ge v1, v0, :cond_1
	if-eqz v1, :cond_0
	const-string v2, ","
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	:cond_0
	aget-boolean v2, p1, v1
	invoke-static {v2}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;
	move-result-object v2
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_1
	return-void
.end method

.method public static writeStringArray(Ljava/lang/StringBuilder;[Ljava/lang/String;)V
	.locals 4

	array-length v0, p1
	const/4 v1, 0x0
	:goto_0
	if-ge v1, v0, :cond_1
	if-eqz v1, :cond_0
	const-string v2, ","
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	:cond_0
	const-string v2, "\""
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	aget-object v3, p1, v1
	invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_1
	return-void
.end method