P2X v5.6.5版本的 MD5 值为:c9754e3fb9716daeb935e470461cc2a2
以下内容为反编译后的 c.java 源代码,内容仅作参考
package g7;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.graphics.PorterDuff;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.google.android.gms.internal.measurement.a5;
import com.google.android.gms.internal.measurement.b5;
import com.google.android.gms.internal.measurement.d5;
import com.google.android.gms.internal.measurement.d6;
import com.google.android.gms.internal.measurement.g6;
import com.google.android.gms.internal.measurement.h;
import com.google.android.gms.internal.measurement.j;
import com.google.android.gms.internal.measurement.j4;
import com.google.android.gms.internal.measurement.n;
import com.google.android.gms.internal.measurement.q6;
import com.google.android.gms.internal.measurement.v4;
import com.google.android.gms.internal.measurement.v5;
import com.google.android.gms.internal.measurement.w4;
import com.lzy.okgo.cookie.SerializableCookie;
import com.p2x.dns.phx5.R;
import f3.k;
import i4.q;
import i6.a1;
import j.g;
import java.io.File;
import java.io.IOException;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.zip.Inflater;
import kotlin.jvm.internal.f;
import okio.Utf8;
import q3.p;
import r.i;
import v6.e;
import y4.s2;
import y4.u2;
public abstract class c {
public static Boolean F = null;
public static Boolean G = null;
public static Boolean H = null;
public static String f3569a = "";
public static final int[] f3570b = {R.attr.background, R.attr.backgroundSplit, R.attr.backgroundStacked, R.attr.contentInsetEnd, R.attr.contentInsetEndWithActions, R.attr.contentInsetLeft, R.attr.contentInsetRight, R.attr.contentInsetStart, R.attr.contentInsetStartWithNavigation, R.attr.customNavigationLayout, R.attr.displayOptions, R.attr.divider, R.attr.elevation, R.attr.height, R.attr.hideOnContentScroll, R.attr.homeAsUpIndicator, R.attr.homeLayout, R.attr.icon, R.attr.indeterminateProgressStyle, R.attr.itemPadding, R.attr.logo, R.attr.navigationMode, R.attr.popupTheme, R.attr.progressBarPadding, R.attr.progressBarStyle, R.attr.subtitle, R.attr.subtitleTextStyle, R.attr.title, R.attr.titleTextStyle};
public static final int[] f3571c = {android.R.attr.layout_gravity};
public static final int[] d = {android.R.attr.minWidth};
public static final int[] f3572e = {R.attr.background, R.attr.backgroundSplit, R.attr.closeItemLayout, R.attr.height, R.attr.subtitleTextStyle, R.attr.titleTextStyle};
public static final int[] f3573f = {android.R.attr.layout, R.attr.buttonIconDimen, R.attr.buttonPanelSideLayout, R.attr.listItemLayout, R.attr.listLayout, R.attr.multiChoiceItemLayout, R.attr.showTitle, R.attr.singleChoiceItemLayout};
public static final int[] f3574g = {android.R.attr.src, R.attr.srcCompat, R.attr.tint, R.attr.tintMode};
public static final int[] h = {android.R.attr.thumb, R.attr.tickMark, R.attr.tickMarkTint, R.attr.tickMarkTintMode};
public static final int[] f3575i = {android.R.attr.textAppearance, android.R.attr.drawableTop, android.R.attr.drawableBottom, android.R.attr.drawableLeft, android.R.attr.drawableRight, android.R.attr.drawableStart, android.R.attr.drawableEnd};
public static final int[] f3576j = {android.R.attr.textAppearance, R.attr.autoSizeMaxTextSize, R.attr.autoSizeMinTextSize, R.attr.autoSizePresetSizes, R.attr.autoSizeStepGranularity, R.attr.autoSizeTextType, R.attr.drawableBottomCompat, R.attr.drawableEndCompat, R.attr.drawableLeftCompat, R.attr.drawableRightCompat, R.attr.drawableStartCompat, R.attr.drawableTint, R.attr.drawableTintMode, R.attr.drawableTopCompat, R.attr.firstBaselineToTopHeight, R.attr.fontFamily, R.attr.fontVariationSettings, R.attr.lastBaselineToBottomHeight, R.attr.lineHeight, R.attr.textAllCaps, R.attr.textLocale};
public static final int[] f3577k = {android.R.attr.windowIsFloating, android.R.attr.windowAnimationStyle, R.attr.actionBarDivider, R.attr.actionBarItemBackground, R.attr.actionBarPopupTheme, R.attr.actionBarSize, R.attr.actionBarSplitStyle, R.attr.actionBarStyle, R.attr.actionBarTabBarStyle, R.attr.actionBarTabStyle, R.attr.actionBarTabTextStyle, R.attr.actionBarTheme, R.attr.actionBarWidgetTheme, R.attr.actionButtonStyle, R.attr.actionDropDownStyle, R.attr.actionMenuTextAppearance, R.attr.actionMenuTextColor, R.attr.actionModeBackground, R.attr.actionModeCloseButtonStyle, R.attr.actionModeCloseContentDescription, R.attr.actionModeCloseDrawable, R.attr.actionModeCopyDrawable, R.attr.actionModeCutDrawable, R.attr.actionModeFindDrawable, R.attr.actionModePasteDrawable, R.attr.actionModePopupWindowStyle, R.attr.actionModeSelectAllDrawable, R.attr.actionModeShareDrawable, R.attr.actionModeSplitBackground, R.attr.actionModeStyle, R.attr.actionModeTheme, R.attr.actionModeWebSearchDrawable, R.attr.actionOverflowButtonStyle, R.attr.actionOverflowMenuStyle, R.attr.activityChooserViewStyle, R.attr.alertDialogButtonGroupStyle, R.attr.alertDialogCenterButtons, R.attr.alertDialogStyle, R.attr.alertDialogTheme, R.attr.autoCompleteTextViewStyle, R.attr.borderlessButtonStyle, R.attr.buttonBarButtonStyle, R.attr.buttonBarNegativeButtonStyle, R.attr.buttonBarNeutralButtonStyle, R.attr.buttonBarPositiveButtonStyle, R.attr.buttonBarStyle, R.attr.buttonStyle, R.attr.buttonStyleSmall, R.attr.checkboxStyle, R.attr.checkedTextViewStyle, R.attr.colorAccent, R.attr.colorBackgroundFloating, R.attr.colorButtonNormal, R.attr.colorControlActivated, R.attr.colorControlHighlight, R.attr.colorControlNormal, R.attr.colorError, R.attr.colorPrimary, R.attr.colorPrimaryDark, R.attr.colorSwitchThumbNormal, R.attr.controlBackground, R.attr.dialogCornerRadius, R.attr.dialogPreferredPadding, R.attr.dialogTheme, R.attr.dividerHorizontal, R.attr.dividerVertical, R.attr.dropDownListViewStyle, R.attr.dropdownListPreferredItemHeight, R.attr.editTextBackground, R.attr.editTextColor, R.attr.editTextStyle, R.attr.homeAsUpIndicator, R.attr.imageButtonStyle, R.attr.listChoiceBackgroundIndicator, R.attr.listChoiceIndicatorMultipleAnimated, R.attr.listChoiceIndicatorSingleAnimated, R.attr.listDividerAlertDialog, R.attr.listMenuViewStyle, R.attr.listPopupWindowStyle, R.attr.listPreferredItemHeight, R.attr.listPreferredItemHeightLarge, R.attr.listPreferredItemHeightSmall, R.attr.listPreferredItemPaddingEnd, R.attr.listPreferredItemPaddingLeft, R.attr.listPreferredItemPaddingRight, R.attr.listPreferredItemPaddingStart, R.attr.panelBackground, R.attr.panelMenuListTheme, R.attr.panelMenuListWidth, R.attr.popupMenuStyle, R.attr.popupWindowStyle, R.attr.radioButtonStyle, R.attr.ratingBarStyle, R.attr.ratingBarStyleIndicator, R.attr.ratingBarStyleSmall, R.attr.searchViewStyle, R.attr.seekBarStyle, R.attr.selectableItemBackground, R.attr.selectableItemBackgroundBorderless, R.attr.spinnerDropDownItemStyle, R.attr.spinnerStyle, R.attr.switchStyle, R.attr.textAppearanceLargePopupMenu, R.attr.textAppearanceListItem, R.attr.textAppearanceListItemSecondary, R.attr.textAppearanceListItemSmall, R.attr.textAppearancePopupMenuHeader, R.attr.textAppearanceSearchResultSubtitle, R.attr.textAppearanceSearchResultTitle, R.attr.textAppearanceSmallPopupMenu, R.attr.textColorAlertDialogListItem, R.attr.textColorSearchUrl, R.attr.toolbarNavigationButtonStyle, R.attr.toolbarStyle, R.attr.tooltipForegroundColor, R.attr.tooltipFrameBackground, R.attr.viewInflaterClass, R.attr.windowActionBar, R.attr.windowActionBarOverlay, R.attr.windowActionModeOverlay, R.attr.windowFixedHeightMajor, R.attr.windowFixedHeightMinor, R.attr.windowFixedWidthMajor, R.attr.windowFixedWidthMinor, R.attr.windowMinWidthMajor, R.attr.windowMinWidthMinor, R.attr.windowNoTitle};
public static final int[] f3578l = {R.attr.allowStacking};
public static final int[] f3579m = {android.R.attr.button, R.attr.buttonCompat, R.attr.buttonTint, R.attr.buttonTintMode};
public static final int[] f3580n = {android.R.attr.gravity, android.R.attr.orientation, android.R.attr.baselineAligned, android.R.attr.baselineAlignedChildIndex, android.R.attr.weightSum, R.attr.divider, R.attr.dividerPadding, R.attr.measureWithLargestChild, R.attr.showDividers};
public static final int[] o = {android.R.attr.dropDownHorizontalOffset, android.R.attr.dropDownVerticalOffset};
public static final int[] f3581p = {android.R.attr.enabled, android.R.attr.id, android.R.attr.visible, android.R.attr.menuCategory, android.R.attr.orderInCategory, android.R.attr.checkableBehavior};
public static final int[] f3582q = {android.R.attr.icon, android.R.attr.enabled, android.R.attr.id, android.R.attr.checked, android.R.attr.visible, android.R.attr.menuCategory, android.R.attr.orderInCategory, android.R.attr.title, android.R.attr.titleCondensed, android.R.attr.alphabeticShortcut, android.R.attr.numericShortcut, android.R.attr.checkable, android.R.attr.onClick, R.attr.actionLayout, R.attr.actionProviderClass, R.attr.actionViewClass, R.attr.alphabeticModifiers, R.attr.contentDescription, R.attr.iconTint, R.attr.iconTintMode, R.attr.numericModifiers, R.attr.showAsAction, R.attr.tooltipText};
public static final int[] f3583r = {android.R.attr.windowAnimationStyle, android.R.attr.itemTextAppearance, android.R.attr.horizontalDivider, android.R.attr.verticalDivider, android.R.attr.headerBackground, android.R.attr.itemBackground, android.R.attr.itemIconDisabledAlpha, R.attr.preserveIconSpacing, R.attr.subMenuArrow};
public static final int[] s = {android.R.attr.popupBackground, android.R.attr.popupAnimationStyle, R.attr.overlapAnchor};
public static final int[] f3584t = {R.attr.paddingBottomNoButtons, R.attr.paddingTopNoTitle};
public static final int[] f3585u = {android.R.attr.focusable, android.R.attr.maxWidth, android.R.attr.inputType, android.R.attr.imeOptions, R.attr.closeIcon, R.attr.commitIcon, R.attr.defaultQueryHint, R.attr.goIcon, R.attr.iconifiedByDefault, R.attr.layout, R.attr.queryBackground, R.attr.queryHint, R.attr.searchHintIcon, R.attr.searchIcon, R.attr.submitBackground, R.attr.suggestionRowLayout, R.attr.voiceIcon};
public static final int[] f3586v = {android.R.attr.entries, android.R.attr.popupBackground, android.R.attr.prompt, android.R.attr.dropDownWidth, R.attr.popupTheme};
public static final int[] f3587w = {android.R.attr.textOn, android.R.attr.textOff, android.R.attr.thumb, R.attr.showText, R.attr.splitTrack, R.attr.switchMinWidth, R.attr.switchPadding, R.attr.switchTextAppearance, R.attr.thumbTextPadding, R.attr.thumbTint, R.attr.thumbTintMode, R.attr.track, R.attr.trackTint, R.attr.trackTintMode};
public static final int[] x = {android.R.attr.textSize, android.R.attr.typeface, android.R.attr.textStyle, android.R.attr.textColor, android.R.attr.textColorHint, android.R.attr.textColorLink, android.R.attr.shadowColor, android.R.attr.shadowDx, android.R.attr.shadowDy, android.R.attr.shadowRadius, android.R.attr.fontFamily, android.R.attr.textFontWeight, R.attr.fontFamily, R.attr.fontVariationSettings, R.attr.textAllCaps, R.attr.textLocale};
public static final int[] f3588y = {android.R.attr.gravity, android.R.attr.minHeight, R.attr.buttonGravity, R.attr.collapseContentDescription, R.attr.collapseIcon, R.attr.contentInsetEnd, R.attr.contentInsetEndWithActions, R.attr.contentInsetLeft, R.attr.contentInsetRight, R.attr.contentInsetStart, R.attr.contentInsetStartWithNavigation, R.attr.logo, R.attr.logoDescription, R.attr.maxButtonHeight, R.attr.menu, R.attr.navigationContentDescription, R.attr.navigationIcon, R.attr.popupTheme, R.attr.subtitle, R.attr.subtitleTextAppearance, R.attr.subtitleTextColor, R.attr.title, R.attr.titleMargin, R.attr.titleMarginBottom, R.attr.titleMarginEnd, R.attr.titleMarginStart, R.attr.titleMarginTop, R.attr.titleMargins, R.attr.titleTextAppearance, R.attr.titleTextColor};
public static final int[] z = {android.R.attr.theme, android.R.attr.focusable, R.attr.paddingEnd, R.attr.paddingStart, R.attr.theme};
public static final int[] A = {android.R.attr.background, R.attr.backgroundTint, R.attr.backgroundTintMode};
public static final int[] B = {android.R.attr.id, android.R.attr.layout, android.R.attr.inflatedId};
public static final e C = new e(27);
public static final r5.e D = new r5.e(28);
public static final boolean[] E = new boolean[3];
public static int A(byte[] bArr, int i9, p pVar) {
int D2 = D(bArr, i9, pVar);
int i10 = pVar.f5796a;
if (i10 < 0) {
throw d5.b();
}
if (i10 == 0) {
pVar.f5798c = "";
return D2;
}
pVar.f5798c = new String(bArr, D2, i10, b5.f1636a);
return D2 + i10;
}
public static int B(byte[] bArr, int i9, p pVar) {
boolean z8;
boolean z9;
boolean z10;
int D2 = D(bArr, i9, pVar);
int i10 = pVar.f5796a;
if (i10 >= 0) {
if (i10 == 0) {
pVar.f5798c = "";
return D2;
}
a6.a aVar = q6.f1826a;
int length = bArr.length;
if ((D2 | i10 | ((length - D2) - i10)) >= 0) {
int i11 = D2 + i10;
char[] cArr = new char[i10];
int i12 = 0;
while (D2 < i11) {
byte b9 = bArr[D2];
if (b9 >= 0) {
z10 = true;
} else {
z10 = false;
}
if (!z10) {
break;
}
D2++;
cArr[i12] = (char) b9;
i12++;
}
while (D2 < i11) {
int i13 = D2 + 1;
byte b10 = bArr[D2];
if (b10 >= 0) {
z8 = true;
} else {
z8 = false;
}
if (z8) {
int i14 = i12 + 1;
cArr[i12] = (char) b10;
D2 = i13;
while (true) {
i12 = i14;
if (D2 >= i11) {
break;
}
byte b11 = bArr[D2];
if (b11 >= 0) {
z9 = true;
} else {
z9 = false;
}
if (!z9) {
break;
}
D2++;
i14 = i12 + 1;
cArr[i12] = (char) b11;
}
} else if (b10 < -32) {
if (i13 < i11) {
int i15 = i13 + 1;
int i16 = i12 + 1;
byte b12 = bArr[i13];
if (b10 >= -62 && !f.p0(b12)) {
cArr[i12] = (char) (((b10 & 31) << 6) | (b12 & Utf8.REPLACEMENT_BYTE));
D2 = i15;
i12 = i16;
} else {
throw d5.a();
}
} else {
throw d5.a();
}
} else {
if (b10 < -16) {
if (i13 < i11 - 1) {
int i17 = i13 + 1;
int i18 = i17 + 1;
int i19 = i12 + 1;
byte b13 = bArr[i13];
byte b14 = bArr[i17];
if (!f.p0(b13)) {
if (b10 == -32) {
if (b13 >= -96) {
b10 = -32;
}
}
if (b10 == -19) {
if (b13 < -96) {
b10 = -19;
}
}
if (!f.p0(b14)) {
cArr[i12] = (char) (((b10 & 15) << 12) | ((b13 & Utf8.REPLACEMENT_BYTE) << 6) | (b14 & Utf8.REPLACEMENT_BYTE));
D2 = i18;
i12 = i19;
}
}
throw d5.a();
}
throw d5.a();
}
if (i13 < i11 - 2) {
int i20 = i13 + 1;
int i21 = i20 + 1;
int i22 = i21 + 1;
byte b15 = bArr[i13];
byte b16 = bArr[i20];
byte b17 = bArr[i21];
if (!f.p0(b15) && (((b15 + 112) + (b10 << 28)) >> 30) == 0 && !f.p0(b16) && !f.p0(b17)) {
int i23 = ((b10 & 7) << 18) | ((b15 & Utf8.REPLACEMENT_BYTE) << 12) | ((b16 & Utf8.REPLACEMENT_BYTE) << 6) | (b17 & Utf8.REPLACEMENT_BYTE);
cArr[i12] = (char) ((i23 >>> 10) + Utf8.HIGH_SURROGATE_HEADER);
cArr[i12 + 1] = (char) ((i23 & 1023) + Utf8.LOG_SURROGATE_HEADER);
i12 += 2;
D2 = i22;
} else {
throw d5.a();
}
} else {
throw d5.a();
}
}
}
pVar.f5798c = new String(cArr, 0, i12);
return i11;
}
throw new ArrayIndexOutOfBoundsException(String.format("buffer length=%d, index=%d, size=%d", Integer.valueOf(length), Integer.valueOf(D2), Integer.valueOf(i10)));
}
throw d5.b();
}
public static int C(int i9, byte[] bArr, int i10, int i11, g6 g6Var, p pVar) {
Object n9;
if ((i9 >>> 3) != 0) {
int i12 = i9 & 7;
if (i12 != 0) {
if (i12 != 1) {
if (i12 != 2) {
if (i12 != 3) {
if (i12 == 5) {
g6Var.c(i9, Integer.valueOf(u(bArr, i10)));
return i10 + 4;
}
throw new d5("Protocol message contained an invalid tag (zero).");
}
int i13 = (i9 & (-8)) | 4;
g6 b9 = g6.b();
int i14 = 0;
while (true) {
if (i10 >= i11) {
break;
}
int D2 = D(bArr, i10, pVar);
int i15 = pVar.f5796a;
i14 = i15;
if (i15 == i13) {
i10 = D2;
break;
}
int C2 = C(i14, bArr, D2, i11, b9, pVar);
i14 = i15;
i10 = C2;
}
if (i10 <= i11 && i14 == i13) {
g6Var.c(i9, b9);
return i10;
}
throw d5.c();
}
int D3 = D(bArr, i10, pVar);
int i16 = pVar.f5796a;
if (i16 >= 0) {
if (i16 <= bArr.length - D3) {
if (i16 == 0) {
n9 = j4.s;
} else {
n9 = j4.n(bArr, D3, i16);
}
g6Var.c(i9, n9);
return D3 + i16;
}
throw d5.d();
}
throw d5.b();
}
g6Var.c(i9, Long.valueOf(J(bArr, i10)));
return i10 + 8;
}
int G2 = G(bArr, i10, pVar);
g6Var.c(i9, Long.valueOf(pVar.f5797b));
return G2;
}
throw new d5("Protocol message contained an invalid tag (zero).");
}
public static int D(byte[] bArr, int i9, p pVar) {
int i10 = i9 + 1;
byte b9 = bArr[i9];
if (b9 < 0) {
return E(b9, bArr, i10, pVar);
}
pVar.f5796a = b9;
return i10;
}
public static int E(int i9, byte[] bArr, int i10, p pVar) {
int i11;
int i12;
int i13 = i9 & 127;
int i14 = i10 + 1;
byte b9 = bArr[i10];
if (b9 < 0) {
int i15 = i13 | ((b9 & Byte.MAX_VALUE) << 7);
int i16 = i14 + 1;
byte b10 = bArr[i14];
if (b10 >= 0) {
i11 = b10 << 14;
} else {
i13 = i15 | ((b10 & Byte.MAX_VALUE) << 14);
i14 = i16 + 1;
byte b11 = bArr[i16];
if (b11 >= 0) {
i12 = b11 << 21;
} else {
i15 = i13 | ((b11 & Byte.MAX_VALUE) << 21);
i16 = i14 + 1;
byte b12 = bArr[i14];
if (b12 >= 0) {
i11 = b12 << 28;
} else {
int i17 = i15 | ((b12 & Byte.MAX_VALUE) << 28);
while (true) {
int i18 = i16 + 1;
if (bArr[i16] >= 0) {
pVar.f5796a = i17;
return i18;
}
i16 = i18;
}
}
}
}
pVar.f5796a = i15 | i11;
return i16;
}
i12 = b9 << 7;
pVar.f5796a = i13 | i12;
return i14;
}
public static int F(int i9, byte[] bArr, int i10, int i11, a5 a5Var, p pVar) {
w4 w4Var = (w4) a5Var;
int D2 = D(bArr, i10, pVar);
while (true) {
w4Var.f(pVar.f5796a);
if (D2 >= i11) {
break;
}
int D3 = D(bArr, D2, pVar);
if (i9 != pVar.f5796a) {
break;
}
D2 = D(bArr, D3, pVar);
}
return D2;
}
public static int G(byte[] bArr, int i9, p pVar) {
int i10 = i9 + 1;
long j9 = bArr[i9];
if (j9 >= 0) {
pVar.f5797b = j9;
return i10;
}
int i11 = i10 + 1;
byte b9 = bArr[i10];
long j10 = (j9 & 127) | ((b9 & Byte.MAX_VALUE) << 7);
int i12 = 7;
while (b9 < 0) {
int i13 = i11 + 1;
i12 += 7;
j10 |= (r10 & Byte.MAX_VALUE) << i12;
b9 = bArr[i11];
i11 = i13;
}
pVar.f5797b = j10;
return i11;
}
public static int H(Object obj, d6 d6Var, byte[] bArr, int i9, int i10, int i11, p pVar) {
int D2 = ((v5) d6Var).D(obj, bArr, i9, i10, i11, pVar);
pVar.f5798c = obj;
return D2;
}
public static int I(Object obj, d6 d6Var, byte[] bArr, int i9, int i10, p pVar) {
int i11 = i9 + 1;
int i12 = bArr[i9];
if (i12 < 0) {
i11 = E(i12, bArr, i11, pVar);
i12 = pVar.f5796a;
}
int i13 = i11;
if (i12 < 0 || i12 > i10 - i13) {
throw d5.d();
}
int i14 = i12 + i13;
d6Var.g(obj, bArr, i13, i14, pVar);
pVar.f5798c = obj;
return i14;
}
public static long J(byte[] bArr, int i9) {
return ((bArr[i9 + 7] & 255) << 56) | (bArr[i9] & 255) | ((bArr[i9 + 1] & 255) << 8) | ((bArr[i9 + 2] & 255) << 16) | ((bArr[i9 + 3] & 255) << 24) | ((bArr[i9 + 4] & 255) << 32) | ((bArr[i9 + 5] & 255) << 40) | ((bArr[i9 + 6] & 255) << 48);
}
public static void a(t.f fVar, r.d dVar, t.e eVar) {
eVar.o = -1;
eVar.f6217p = -1;
int i9 = fVar.S[0];
int[] iArr = eVar.S;
if (i9 != 2 && iArr[0] == 4) {
t.d dVar2 = eVar.H;
int i10 = dVar2.f6189g;
int n9 = fVar.n();
t.d dVar3 = eVar.J;
int i11 = n9 - dVar3.f6189g;
dVar2.f6190i = dVar.l(dVar2);
dVar3.f6190i = dVar.l(dVar3);
dVar.d(dVar2.f6190i, i10);
dVar.d(dVar3.f6190i, i11);
eVar.o = 2;
eVar.Y = i10;
int i12 = i11 - i10;
eVar.U = i12;
int i13 = eVar.f6194b0;
if (i12 < i13) {
eVar.U = i13;
}
}
if (fVar.S[1] != 2 && iArr[1] == 4) {
t.d dVar4 = eVar.I;
int i14 = dVar4.f6189g;
int i15 = fVar.i();
t.d dVar5 = eVar.K;
int i16 = i15 - dVar5.f6189g;
dVar4.f6190i = dVar.l(dVar4);
dVar5.f6190i = dVar.l(dVar5);
dVar.d(dVar4.f6190i, i14);
dVar.d(dVar5.f6190i, i16);
if (eVar.f6192a0 > 0 || eVar.f6202g0 == 8) {
t.d dVar6 = eVar.L;
i l9 = dVar.l(dVar6);
dVar6.f6190i = l9;
dVar.d(l9, eVar.f6192a0 + i14);
}
eVar.f6217p = 2;
eVar.Z = i14;
int i17 = i16 - i14;
eVar.V = i17;
int i18 = eVar.c0;
if (i17 < i18) {
eVar.V = i18;
}
}
}
public static final boolean b(int i9, int i10) {
return (i9 & i10) == i10;
}
public static String c() {
try {
DatagramSocket datagramSocket = new DatagramSocket();
datagramSocket.connect(InetAddress.getByName("114.114.114.114"), 53);
InetAddress localAddress = datagramSocket.getLocalAddress();
datagramSocket.close();
return localAddress.getHostAddress();
} catch (IOException e7) {
e7.printStackTrace();
return "";
}
}
public static synchronized boolean d() {
synchronized (c.class) {
String c9 = c();
if (c9.equals(f3569a)) {
return false;
}
f3569a = c9;
return true;
}
}
public static ArrayList e(y1.b bVar) {
int i9;
k4.b bVar2;
y1.b bVar3 = bVar;
k4.b bVar4 = null;
if (bVar.l() != 0) {
return null;
}
int i10 = 7;
bVar3.w(7);
int b9 = bVar.b();
if (b9 == 1684433976) {
y1.b bVar5 = new y1.b();
Inflater inflater = new Inflater(true);
try {
if (!q.p(bVar3, bVar5, inflater)) {
return null;
}
bVar3 = bVar5;
} finally {
inflater.end();
}
} else if (b9 != 1918990112) {
return null;
}
ArrayList arrayList = new ArrayList();
int i11 = bVar3.f7446b;
int i12 = bVar3.f7447c;
while (i11 < i12) {
int b10 = bVar3.b() + i11;
if (b10 > i11 && b10 <= i12) {
if (bVar3.b() == 1835365224) {
int b11 = bVar3.b();
if (b11 <= 10000) {
float[] fArr = new float[b11];
for (int i13 = 0; i13 < b11; i13++) {
fArr[i13] = Float.intBitsToFloat(bVar3.b());
}
int b12 = bVar3.b();
if (b12 <= 32000) {
double log = Math.log(2.0d);
i9 = i12;
double d9 = b11;
Double.isNaN(d9);
Double.isNaN(d9);
Double.isNaN(d9);
Double.isNaN(d9);
int ceil = (int) Math.ceil(Math.log(d9 * 2.0d) / log);
k kVar = new k(bVar3.f7445a, 2, bVar4);
kVar.m(bVar3.f7446b * 8);
float[] fArr2 = new float[b12 * 5];
int i14 = 5;
int[] iArr = new int[5];
int i15 = 0;
int i16 = 0;
while (true) {
if (i15 < b12) {
int i17 = 0;
while (i17 < i14) {
int i18 = iArr[i17];
int h9 = kVar.h(ceil);
int i19 = ((-(h9 & 1)) ^ (h9 >> 1)) + i18;
if (i19 >= b11 || i19 < 0) {
break;
}
fArr2[i16] = fArr[i19];
iArr[i17] = i19;
i17++;
i16++;
i14 = 5;
}
i15++;
i14 = 5;
} else {
kVar.m((kVar.f() + i10) & (-8));
int i20 = 32;
int h10 = kVar.h(32);
androidx.activity.result.i[] iVarArr = new androidx.activity.result.i[h10];
int i21 = 0;
while (i21 < h10) {
int h11 = kVar.h(8);
int h12 = kVar.h(8);
int h13 = kVar.h(i20);
if (h13 <= 128000) {
double d10 = b12;
Double.isNaN(d10);
Double.isNaN(d10);
Double.isNaN(d10);
Double.isNaN(d10);
int ceil2 = (int) Math.ceil(Math.log(d10 * 2.0d) / log);
float[] fArr3 = new float[h13 * 3];
float[] fArr4 = new float[h13 * 2];
int i22 = h10;
int i23 = 0;
int i24 = 0;
while (i23 < h13) {
int h14 = kVar.h(ceil2);
int i25 = h13;
int i26 = ((-(h14 & 1)) ^ (h14 >> 1)) + i24;
if (i26 >= 0 && i26 < b12) {
int i27 = i23 * 3;
int i28 = i26 * 5;
fArr3[i27] = fArr2[i28];
fArr3[i27 + 1] = fArr2[i28 + 1];
fArr3[i27 + 2] = fArr2[i28 + 2];
int i29 = i23 * 2;
fArr4[i29] = fArr2[i28 + 3];
fArr4[i29 + 1] = fArr2[i28 + 4];
i23++;
i24 = i26;
h13 = i25;
}
}
iVarArr[i21] = new androidx.activity.result.i(h11, fArr3, fArr4, h12);
i21++;
h10 = i22;
i20 = 32;
}
}
bVar2 = new k4.b(iVarArr);
}
}
if (bVar2 == null) {
arrayList.add(bVar2);
}
}
}
bVar2 = bVar4;
i9 = i12;
if (bVar2 == null) {
}
} else {
i9 = i12;
}
bVar3.v(b10);
i12 = i9;
i11 = b10;
i10 = 7;
bVar4 = null;
}
return null;
}
return arrayList;
}
public static PorterDuff.Mode f(int i9, PorterDuff.Mode mode) {
if (i9 == 3) {
return PorterDuff.Mode.SRC_OVER;
}
if (i9 == 5) {
return PorterDuff.Mode.SRC_IN;
}
if (i9 == 9) {
return PorterDuff.Mode.SRC_ATOP;
}
switch (i9) {
case 14:
return PorterDuff.Mode.MULTIPLY;
case 15:
return PorterDuff.Mode.SCREEN;
case 16:
return PorterDuff.Mode.ADD;
default:
return mode;
}
}
public static void g(Parcel parcel, int i9, boolean z8) {
parcel.writeInt(i9 | 262144);
parcel.writeInt(z8 ? 1 : 0);
}
public static void h(Parcel parcel, int i9, Bundle bundle) {
if (bundle == null) {
return;
}
int p8 = p(parcel, i9);
parcel.writeBundle(bundle);
v(parcel, p8);
}
public static void i(Parcel parcel, int i9, IBinder iBinder) {
if (iBinder == null) {
return;
}
int p8 = p(parcel, i9);
parcel.writeStrongBinder(iBinder);
v(parcel, p8);
}
public static void j(Parcel parcel, int i9, int i10) {
parcel.writeInt(i9 | 262144);
parcel.writeInt(i10);
}
public static void k(Parcel parcel, int i9, long j9) {
parcel.writeInt(i9 | 524288);
parcel.writeLong(j9);
}
public static void l(Parcel parcel, int i9, Parcelable parcelable, int i10) {
if (parcelable == null) {
return;
}
int p8 = p(parcel, i9);
parcelable.writeToParcel(parcel, i10);
v(parcel, p8);
}
public static void m(Parcel parcel, int i9, String str) {
if (str == null) {
return;
}
int p8 = p(parcel, i9);
parcel.writeString(str);
v(parcel, p8);
}
public static void n(Parcel parcel, int i9, Parcelable[] parcelableArr, int i10) {
if (parcelableArr == null) {
return;
}
int p8 = p(parcel, i9);
parcel.writeInt(parcelableArr.length);
for (Parcelable parcelable : parcelableArr) {
if (parcelable == null) {
parcel.writeInt(0);
} else {
int dataPosition = parcel.dataPosition();
parcel.writeInt(1);
int dataPosition2 = parcel.dataPosition();
parcelable.writeToParcel(parcel, i10);
int dataPosition3 = parcel.dataPosition();
parcel.setDataPosition(dataPosition);
parcel.writeInt(dataPosition3 - dataPosition2);
parcel.setDataPosition(dataPosition3);
}
}
v(parcel, p8);
}
public static int o(int i9) {
int[] iArr = {1, 2, 3};
for (int i10 = 0; i10 < 3; i10++) {
int i11 = iArr[i10];
int i12 = i11 - 1;
if (i11 == 0) {
throw null;
}
if (i12 == i9) {
return i11;
}
}
return 1;
}
public static int p(Parcel parcel, int i9) {
parcel.writeInt(i9 | (-65536));
parcel.writeInt(0);
return parcel.dataPosition();
}
public static int q(byte[] bArr, int i9, p pVar) {
int D2 = D(bArr, i9, pVar);
int i10 = pVar.f5796a;
if (i10 < 0) {
throw d5.b();
}
if (i10 > bArr.length - D2) {
throw d5.d();
}
if (i10 == 0) {
pVar.f5798c = j4.s;
return D2;
}
pVar.f5798c = j4.n(bArr, D2, i10);
return D2 + i10;
}
public static n r(j jVar, com.google.android.gms.internal.measurement.q qVar, g gVar, ArrayList arrayList) {
String str = qVar.f1814r;
if (jVar.f(str)) {
n l9 = jVar.l(str);
if (l9 instanceof h) {
return ((h) l9).d(gVar, arrayList);
}
throw new IllegalArgumentException(String.format("%s is not a function", str));
}
if (!"hasOwnProperty".equals(str)) {
throw new IllegalArgumentException(String.format("Object has no function %s", str));
}
a1.s("hasOwnProperty", 1, arrayList);
return jVar.f(gVar.v((n) arrayList.get(0)).c()) ? n.f1773g : n.h;
}
public static void s(u2 u2Var, SQLiteDatabase sQLiteDatabase, String str, String str2, String str3, String[] strArr) {
String[] strArr2;
HashSet hashSet;
Cursor rawQuery;
s2 s2Var = u2Var.z;
Cursor cursor = null;
try {
try {
strArr2 = null;
} catch (Throwable th) {
th = th;
if (cursor != null) {
cursor.close();
}
throw th;
}
try {
cursor = sQLiteDatabase.query("SQLITE_MASTER", new String[]{SerializableCookie.NAME}, "name=?", new String[]{str}, null, null, null);
try {
boolean moveToFirst = cursor.moveToFirst();
cursor.close();
} catch (SQLiteException e7) {
e = e7;
s2Var.c(str, "Error querying for table", e);
if (cursor != null) {
cursor.close();
}
sQLiteDatabase.execSQL(str2);
try {
hashSet = new HashSet();
rawQuery = sQLiteDatabase.rawQuery("SELECT * FROM " + str + " LIMIT 0", strArr2);
try {
Collections.addAll(hashSet, rawQuery.getColumnNames());
rawQuery.close();
for (String str4 : str3.split(",")) {
if (!hashSet.remove(str4)) {
throw new SQLiteException("Table " + str + " is missing required column: " + str4);
}
}
if (strArr != null) {
for (int i9 = 0; i9 < strArr.length; i9 += 2) {
if (!hashSet.remove(strArr[i9])) {
sQLiteDatabase.execSQL(strArr[i9 + 1]);
}
}
}
if (hashSet.isEmpty()) {
s2Var.c(str, "Table has extra columns. table, columns", TextUtils.join(", ", hashSet));
}
} catch (Throwable th2) {
rawQuery.close();
throw th2;
}
} catch (SQLiteException e9) {
u2Var.f7840w.b(str, "Failed to verify columns on table that was just created");
throw e9;
}
}
} catch (SQLiteException e10) {
e = e10;
cursor = strArr2;
s2Var.c(str, "Error querying for table", e);
if (cursor != null) {
}
sQLiteDatabase.execSQL(str2);
hashSet = new HashSet();
rawQuery = sQLiteDatabase.rawQuery("SELECT * FROM " + str + " LIMIT 0", strArr2);
Collections.addAll(hashSet, rawQuery.getColumnNames());
rawQuery.close();
while (r4 < r3) {
}
if (strArr != null) {
}
if (hashSet.isEmpty()) {
}
} catch (Throwable th3) {
th = th3;
cursor = strArr2;
if (cursor != null) {
}
throw th;
}
} catch (SQLiteException e11) {
e = e11;
strArr2 = null;
} catch (Throwable th4) {
th = th4;
strArr2 = null;
}
}
public static boolean t(Object obj, Object obj2) {
if (obj != obj2) {
return obj != null && obj.equals(obj2);
}
return true;
}
public static int u(byte[] bArr, int i9) {
return ((bArr[i9 + 3] & 255) << 24) | (bArr[i9] & 255) | ((bArr[i9 + 1] & 255) << 8) | ((bArr[i9 + 2] & 255) << 16);
}
public static void v(Parcel parcel, int i9) {
int dataPosition = parcel.dataPosition();
parcel.setDataPosition(i9 - 4);
parcel.writeInt(dataPosition - i9);
parcel.setDataPosition(dataPosition);
}
public static void w(u2 u2Var, SQLiteDatabase sQLiteDatabase) {
File file = new File(sQLiteDatabase.getPath());
boolean readable = file.setReadable(false, false);
s2 s2Var = u2Var.z;
if (!readable) {
s2Var.a("Failed to turn off database read permission");
}
if (!file.setWritable(false, false)) {
s2Var.a("Failed to turn off database write permission");
}
if (!file.setReadable(true, true)) {
s2Var.a("Failed to turn on database read permission for owner");
}
if (file.setWritable(true, true)) {
return;
}
s2Var.a("Failed to turn on database write permission for owner");
}
public static int x(d6 d6Var, byte[] bArr, int i9, int i10, int i11, p pVar) {
v4 d9 = d6Var.d();
int H2 = H(d9, d6Var, bArr, i9, i10, i11, pVar);
d6Var.a(d9);
pVar.f5798c = d9;
return H2;
}
public static int y(d6 d6Var, int i9, byte[] bArr, int i10, int i11, a5 a5Var, p pVar) {
v4 d9 = d6Var.d();
int I = I(d9, d6Var, bArr, i10, i11, pVar);
d6Var.a(d9);
pVar.f5798c = d9;
while (true) {
a5Var.add(pVar.f5798c);
if (I >= i11) {
break;
}
int D2 = D(bArr, I, pVar);
if (i9 != pVar.f5796a) {
break;
}
v4 d10 = d6Var.d();
int I2 = I(d10, d6Var, bArr, D2, i11, pVar);
d6Var.a(d10);
pVar.f5798c = d10;
I = I2;
}
return I;
}
public static int z(byte[] bArr, int i9, a5 a5Var, p pVar) {
w4 w4Var = (w4) a5Var;
int D2 = D(bArr, i9, pVar);
int i10 = pVar.f5796a + D2;
while (D2 < i10) {
D2 = D(bArr, D2, pVar);
w4Var.f(pVar.f5796a);
}
if (D2 == i10) {
return D2;
}
throw d5.d();
}
}