what-the-bank/sources/o/NoP.java

1012 lines
32 KiB
Java

package o;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ComponentInfo;
import android.content.pm.PackageItemInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.Base64;
import android.util.SparseArray;
import android.view.ContextMenu;
import android.view.KeyCharacterMap;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import android.view.ViewConfiguration;
import androidx.appcompat.view.menu.MenuItemImpl;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import java.lang.ref.WeakReference;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
/* loaded from: classes.dex */
public class NoP implements InterfaceMenuC13010fNw {
private static int A = 0;
private static byte B = 0;
private static final int[] s;
private static int z = 1;
private ArrayList<MenuItemImpl> D;
MenuItemImpl b;
public Sts c;
public final Context d;
public ArrayList<MenuItemImpl> e;
public boolean f;
public boolean g;
View h;
Drawable i;
CharSequence j;
public ArrayList<MenuItemImpl> l;
public ArrayList<MenuItemImpl> m;
/* renamed from: o, reason: collision with root package name */
public boolean f8290o;
private ContextMenu.ContextMenuInfo q;
private final Resources v;
private boolean w;
private boolean x;
public int a = 0;
public boolean t = false;
public boolean n = false;
public boolean p = false;
public boolean k = false;
private boolean u = false;
private ArrayList<MenuItemImpl> C = new ArrayList<>();
public CopyOnWriteArrayList<WeakReference<InterfaceC15933jjG>> r = new CopyOnWriteArrayList<>();
private boolean y = false;
/* loaded from: classes.dex */
public interface LWm {
boolean d(MenuItemImpl menuItemImpl);
}
/* loaded from: classes.dex */
public interface Sts {
boolean Ko_(NoP noP, MenuItem menuItem);
void b(NoP noP);
}
public NoP b() {
return this;
}
private void E(String str, Object[] objArr) {
byte[] decode = Base64.decode(str, 0);
byte[] bArr = new byte[decode.length];
for (int i = 0; i < decode.length; i++) {
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ B);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
public NoP(Context context) {
boolean z2 = false;
this.d = context;
Resources resources = context.getResources();
this.v = resources;
this.l = new ArrayList<>();
this.D = new ArrayList<>();
this.g = true;
this.e = new ArrayList<>();
this.m = new ArrayList<>();
this.f = true;
if (resources.getConfiguration().keyboard != 1 && fRw.sS_(ViewConfiguration.get(context), context)) {
z2 = true;
}
this.x = z2;
}
public final void b(InterfaceC15933jjG interfaceC15933jjG) {
Iterator<WeakReference<InterfaceC15933jjG>> it = this.r.iterator();
while (it.hasNext()) {
WeakReference<InterfaceC15933jjG> next = it.next();
InterfaceC15933jjG interfaceC15933jjG2 = next.get();
if (interfaceC15933jjG2 == null || interfaceC15933jjG2 == interfaceC15933jjG) {
this.r.remove(next);
}
}
}
private void d(boolean z2) {
if (this.r.isEmpty()) {
return;
}
if (!this.t) {
this.t = true;
this.n = false;
this.p = false;
}
Iterator<WeakReference<InterfaceC15933jjG>> it = this.r.iterator();
while (it.hasNext()) {
WeakReference<InterfaceC15933jjG> next = it.next();
InterfaceC15933jjG interfaceC15933jjG = next.get();
if (interfaceC15933jjG == null) {
this.r.remove(next);
} else {
interfaceC15933jjG.a(z2);
}
}
this.t = false;
if (this.n) {
this.n = false;
c(this.p);
}
}
private boolean d(SubMenuC16744qqn subMenuC16744qqn, InterfaceC15933jjG interfaceC15933jjG) {
if (this.r.isEmpty()) {
return false;
}
boolean d = interfaceC15933jjG != null ? interfaceC15933jjG.d(subMenuC16744qqn) : false;
Iterator<WeakReference<InterfaceC15933jjG>> it = this.r.iterator();
while (it.hasNext()) {
WeakReference<InterfaceC15933jjG> next = it.next();
InterfaceC15933jjG interfaceC15933jjG2 = next.get();
if (interfaceC15933jjG2 == null) {
this.r.remove(next);
} else if (!d) {
d = interfaceC15933jjG2.d(subMenuC16744qqn);
}
}
return d;
}
public final void eO_(Bundle bundle) {
int size = size();
SparseArray<? extends Parcelable> sparseArray = null;
for (int i = 0; i < size; i++) {
MenuItem item = getItem(i);
View actionView = item.getActionView();
if (actionView != null && actionView.getId() != -1) {
if (sparseArray == null) {
sparseArray = new SparseArray<>();
}
actionView.saveHierarchyState(sparseArray);
if (item.isActionViewExpanded()) {
bundle.putInt("android:menu:expandedactionview", item.getItemId());
}
}
if (item.hasSubMenu()) {
((SubMenuC16744qqn) item.getSubMenu()).eO_(bundle);
}
}
if (sparseArray != null) {
bundle.putSparseParcelableArray(c(), sparseArray);
}
}
public final void eN_(Bundle bundle) {
MenuItem findItem;
if (bundle == null) {
return;
}
SparseArray<Parcelable> sparseParcelableArray = bundle.getSparseParcelableArray(c());
int size = size();
for (int i = 0; i < size; i++) {
MenuItem item = getItem(i);
View actionView = item.getActionView();
if (actionView != null && actionView.getId() != -1) {
actionView.restoreHierarchyState(sparseParcelableArray);
}
if (item.hasSubMenu()) {
((SubMenuC16744qqn) item.getSubMenu()).eN_(bundle);
}
}
int i2 = bundle.getInt("android:menu:expandedactionview");
if (i2 <= 0 || (findItem = findItem(i2)) == null) {
return;
}
findItem.expandActionView();
}
public MenuItem Kj_(int i, int i2, int i3, CharSequence charSequence) {
int i4;
int i5 = ((-65536) & i3) >> 16;
if (i5 >= 0) {
int[] iArr = s;
if (i5 < iArr.length) {
int i6 = (iArr[i5] << 16) | (65535 & i3);
MenuItemImpl menuItemImpl = new MenuItemImpl(this, i, i2, i3, i6, charSequence, this.a);
ArrayList<MenuItemImpl> arrayList = this.l;
int size = arrayList.size() - 1;
while (true) {
if (size < 0) {
i4 = 0;
break;
}
if (arrayList.get(size).c <= i6) {
i4 = size + 1;
break;
}
size--;
}
arrayList.add(i4, menuItemImpl);
c(true);
return menuItemImpl;
}
}
throw new IllegalArgumentException("order does not contain a valid category.");
}
@Override // android.view.Menu
public MenuItem add(CharSequence charSequence) {
return Kj_(0, 0, 0, charSequence);
}
@Override // android.view.Menu
public MenuItem add(int i) {
String string;
int i2;
int i3 = 2 % 2;
int i4 = z + 87;
A = i4 % 128;
int i5 = 1;
if (i4 % 2 != 0) {
string = this.v.getString(i);
if (string.startsWith(",*,)")) {
i2 = 1;
Object[] objArr = new Object[1];
E(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
int i6 = z + 17;
A = i6 % 128;
int i7 = i6 % 2;
i5 = i2;
}
} else {
string = this.v.getString(i);
if (string.startsWith(",*,)")) {
i2 = 0;
Object[] objArr2 = new Object[1];
E(string.substring(4), objArr2);
string = ((String) objArr2[0]).intern();
int i62 = z + 17;
A = i62 % 128;
int i72 = i62 % 2;
i5 = i2;
} else {
i5 = 0;
}
}
MenuItem Kj_ = Kj_(0, i5, 0, string);
int i8 = A + 39;
z = i8 % 128;
if (i8 % 2 != 0) {
return Kj_;
}
throw null;
}
@Override // android.view.Menu
public MenuItem add(int i, int i2, int i3, CharSequence charSequence) {
return Kj_(i, i2, i3, charSequence);
}
@Override // android.view.Menu
public MenuItem add(int i, int i2, int i3, int i4) {
int i5 = 2 % 2;
int i6 = A + 81;
z = i6 % 128;
int i7 = i6 % 2;
String string = this.v.getString(i4);
if (string.startsWith(",*,)")) {
Object[] objArr = new Object[1];
E(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
int i8 = A + 51;
z = i8 % 128;
int i9 = i8 % 2;
}
return Kj_(i, i2, i3, string);
}
@Override // android.view.Menu
public SubMenu addSubMenu(CharSequence charSequence) {
return addSubMenu(0, 0, 0, charSequence);
}
@Override // android.view.Menu
public SubMenu addSubMenu(int i) {
int i2 = 2 % 2;
String string = this.v.getString(i);
if (!(!string.startsWith(",*,)"))) {
int i3 = z + 37;
A = i3 % 128;
int i4 = i3 % 2;
String substring = string.substring(4);
if (i4 != 0) {
Object[] objArr = new Object[1];
E(substring, objArr);
((String) objArr[0]).intern();
Object obj = null;
obj.hashCode();
throw null;
}
Object[] objArr2 = new Object[1];
E(substring, objArr2);
string = ((String) objArr2[0]).intern();
}
SubMenu addSubMenu = addSubMenu(0, 0, 0, string);
int i5 = A + 11;
z = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 72 / 0;
}
return addSubMenu;
}
@Override // android.view.Menu
public SubMenu addSubMenu(int i, int i2, int i3, CharSequence charSequence) {
MenuItemImpl menuItemImpl = (MenuItemImpl) Kj_(i, i2, i3, charSequence);
SubMenuC16744qqn subMenuC16744qqn = new SubMenuC16744qqn(this.d, this, menuItemImpl);
menuItemImpl.h = subMenuC16744qqn;
subMenuC16744qqn.setHeaderTitle(menuItemImpl.getTitle());
return subMenuC16744qqn;
}
@Override // android.view.Menu
public SubMenu addSubMenu(int i, int i2, int i3, int i4) {
int i5 = 2 % 2;
String string = this.v.getString(i4);
if (string.startsWith(",*,)")) {
int i6 = z + 15;
A = i6 % 128;
int i7 = i6 % 2;
Object[] objArr = new Object[1];
E(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
int i8 = A + 71;
z = i8 % 128;
int i9 = i8 % 2;
}
return addSubMenu(i, i2, i3, string);
}
@Override // android.view.Menu
public int addIntentOptions(int i, int i2, int i3, ComponentName componentName, Intent[] intentArr, Intent intent, int i4, MenuItem[] menuItemArr) {
PackageManager packageManager = this.d.getPackageManager();
List<ResolveInfo> queryIntentActivityOptions = packageManager.queryIntentActivityOptions(componentName, intentArr, intent, 0);
int size = queryIntentActivityOptions != null ? queryIntentActivityOptions.size() : 0;
if ((i4 & 1) == 0) {
removeGroup(i);
}
for (int i5 = 0; i5 < size; i5++) {
ResolveInfo resolveInfo = queryIntentActivityOptions.get(i5);
Intent intent2 = new Intent(resolveInfo.specificIndex < 0 ? intent : intentArr[resolveInfo.specificIndex]);
intent2.setComponent(new ComponentName((String) PackageItemInfo.class.getField(CommonConstant.ReqAccessTokenParam.PACKAGE_NAME).get(ComponentInfo.class.getField("applicationInfo").get(resolveInfo.activityInfo)), (String) PackageItemInfo.class.getField("name").get(resolveInfo.activityInfo)));
MenuItem intent3 = add(i, i2, i3, resolveInfo.loadLabel(packageManager)).setIcon(resolveInfo.loadIcon(packageManager)).setIntent(intent2);
if (menuItemArr != null && resolveInfo.specificIndex >= 0) {
menuItemArr[resolveInfo.specificIndex] = intent3;
}
}
return size;
}
private void b(int i, boolean z2) {
if (i < 0 || i >= this.l.size()) {
return;
}
this.l.remove(i);
if (z2) {
c(true);
}
}
@Override // android.view.Menu
public void clear() {
MenuItemImpl menuItemImpl = this.b;
if (menuItemImpl != null) {
c(menuItemImpl);
}
this.l.clear();
c(true);
}
@Override // android.view.Menu
public void setGroupCheckable(int i, boolean z2, boolean z3) {
int size = this.l.size();
for (int i2 = 0; i2 < size; i2++) {
MenuItemImpl menuItemImpl = this.l.get(i2);
if (menuItemImpl.getGroupId() == i) {
menuItemImpl.a = (menuItemImpl.a & (-5)) | (z3 ? 4 : 0);
menuItemImpl.setCheckable(z2);
}
}
}
@Override // android.view.Menu
public void setGroupVisible(int i, boolean z2) {
int size = this.l.size();
boolean z3 = false;
for (int i2 = 0; i2 < size; i2++) {
MenuItemImpl menuItemImpl = this.l.get(i2);
if (menuItemImpl.getGroupId() == i && menuItemImpl.e(z2)) {
z3 = true;
}
}
if (z3) {
c(true);
}
}
@Override // android.view.Menu
public void setGroupEnabled(int i, boolean z2) {
int size = this.l.size();
for (int i2 = 0; i2 < size; i2++) {
MenuItemImpl menuItemImpl = this.l.get(i2);
if (menuItemImpl.getGroupId() == i) {
menuItemImpl.setEnabled(z2);
}
}
}
@Override // android.view.Menu
public boolean hasVisibleItems() {
if (this.f8290o) {
return true;
}
int size = size();
for (int i = 0; i < size; i++) {
if (this.l.get(i).isVisible()) {
return true;
}
}
return false;
}
@Override // android.view.Menu
public MenuItem findItem(int i) {
MenuItem findItem;
int size = size();
for (int i2 = 0; i2 < size; i2++) {
MenuItemImpl menuItemImpl = this.l.get(i2);
if (menuItemImpl.getItemId() == i) {
return menuItemImpl;
}
if (menuItemImpl.hasSubMenu() && (findItem = menuItemImpl.getSubMenu().findItem(i)) != null) {
return findItem;
}
}
return null;
}
@Override // android.view.Menu
public int size() {
return this.l.size();
}
@Override // android.view.Menu
public MenuItem getItem(int i) {
return this.l.get(i);
}
@Override // android.view.Menu
public boolean isShortcutKey(int i, KeyEvent keyEvent) {
return eK_(i, keyEvent) != null;
}
@Override // android.view.Menu
public void setQwertyMode(boolean z2) {
this.w = z2;
c(false);
}
public boolean fe_(NoP noP, MenuItem menuItem) {
Sts sts = this.c;
return sts != null && sts.Ko_(noP, menuItem);
}
@Override // android.view.Menu
public boolean performShortcut(int i, KeyEvent keyEvent, int i2) {
MenuItemImpl eK_ = eK_(i, keyEvent);
boolean eM_ = eK_ != null ? eM_(eK_, null, i2) : false;
if ((i2 & 2) != 0) {
b(true);
}
return eM_;
}
private void eL_(List<MenuItemImpl> list, int i, KeyEvent keyEvent) {
boolean g = g();
int modifiers = keyEvent.getModifiers();
KeyCharacterMap.KeyData keyData = new KeyCharacterMap.KeyData();
if (keyEvent.getKeyData(keyData) || i == 67) {
int size = this.l.size();
for (int i2 = 0; i2 < size; i2++) {
MenuItemImpl menuItemImpl = this.l.get(i2);
if (menuItemImpl.hasSubMenu()) {
((NoP) menuItemImpl.getSubMenu()).eL_(list, i, keyEvent);
}
char alphabeticShortcut = g ? menuItemImpl.getAlphabeticShortcut() : menuItemImpl.getNumericShortcut();
if ((modifiers & 69647) == ((g ? menuItemImpl.getAlphabeticModifiers() : menuItemImpl.getNumericModifiers()) & 69647) && alphabeticShortcut != 0 && ((alphabeticShortcut == keyData.meta[0] || alphabeticShortcut == keyData.meta[2] || (g && alphabeticShortcut == '\b' && i == 67)) && menuItemImpl.isEnabled())) {
list.add(menuItemImpl);
}
}
}
}
private MenuItemImpl eK_(int i, KeyEvent keyEvent) {
char numericShortcut;
ArrayList<MenuItemImpl> arrayList = this.C;
arrayList.clear();
eL_(arrayList, i, keyEvent);
if (arrayList.isEmpty()) {
return null;
}
int metaState = keyEvent.getMetaState();
KeyCharacterMap.KeyData keyData = new KeyCharacterMap.KeyData();
keyEvent.getKeyData(keyData);
int size = arrayList.size();
if (size == 1) {
return arrayList.get(0);
}
boolean g = g();
for (int i2 = 0; i2 < size; i2++) {
MenuItemImpl menuItemImpl = arrayList.get(i2);
if (g) {
numericShortcut = menuItemImpl.getAlphabeticShortcut();
} else {
numericShortcut = menuItemImpl.getNumericShortcut();
}
if ((numericShortcut == keyData.meta[0] && (metaState & 2) == 0) || ((numericShortcut == keyData.meta[2] && (metaState & 2) != 0) || (g && numericShortcut == '\b' && i == 67))) {
return menuItemImpl;
}
}
return null;
}
@Override // android.view.Menu
public boolean performIdentifierAction(int i, int i2) {
return eM_(findItem(i), null, i2);
}
public final boolean eM_(MenuItem menuItem, InterfaceC15933jjG interfaceC15933jjG, int i) {
MenuItemImpl menuItemImpl = (MenuItemImpl) menuItem;
if (menuItemImpl == null || !menuItemImpl.isEnabled()) {
return false;
}
boolean a = menuItemImpl.a();
hbU hbu = menuItemImpl.d;
boolean z2 = hbu != null && hbu.b();
if (menuItemImpl.b()) {
a |= menuItemImpl.expandActionView();
if (a) {
b(true);
}
} else if (menuItemImpl.hasSubMenu() || z2) {
if ((i & 4) == 0) {
b(false);
}
if (!menuItemImpl.hasSubMenu()) {
SubMenuC16744qqn subMenuC16744qqn = new SubMenuC16744qqn(this.d, this, menuItemImpl);
menuItemImpl.h = subMenuC16744qqn;
subMenuC16744qqn.setHeaderTitle(menuItemImpl.getTitle());
}
SubMenuC16744qqn subMenuC16744qqn2 = (SubMenuC16744qqn) menuItemImpl.getSubMenu();
if (z2) {
hbu.qR_(subMenuC16744qqn2);
}
a |= d(subMenuC16744qqn2, interfaceC15933jjG);
if (!a) {
b(true);
}
} else if ((i & 1) == 0) {
b(true);
}
return a;
}
public final void b(boolean z2) {
if (this.u) {
return;
}
this.u = true;
Iterator<WeakReference<InterfaceC15933jjG>> it = this.r.iterator();
while (it.hasNext()) {
WeakReference<InterfaceC15933jjG> next = it.next();
InterfaceC15933jjG interfaceC15933jjG = next.get();
if (interfaceC15933jjG == null) {
this.r.remove(next);
} else {
interfaceC15933jjG.b(this, z2);
}
}
this.u = false;
}
@Override // android.view.Menu
public void close() {
b(true);
}
public final void c(boolean z2) {
if (this.t) {
this.n = true;
if (z2) {
this.p = true;
return;
}
return;
}
if (z2) {
this.g = true;
this.f = true;
}
d(z2);
}
public final void f() {
this.t = false;
if (this.n) {
this.n = false;
c(this.p);
}
}
public final ArrayList<MenuItemImpl> d() {
if (!this.g) {
return this.D;
}
this.D.clear();
int size = this.l.size();
for (int i = 0; i < size; i++) {
MenuItemImpl menuItemImpl = this.l.get(i);
if (menuItemImpl.isVisible()) {
this.D.add(menuItemImpl);
}
}
this.g = false;
this.f = true;
return this.D;
}
public final void a() {
ArrayList<MenuItemImpl> d = d();
if (this.f) {
Iterator<WeakReference<InterfaceC15933jjG>> it = this.r.iterator();
boolean z2 = false;
while (it.hasNext()) {
WeakReference<InterfaceC15933jjG> next = it.next();
InterfaceC15933jjG interfaceC15933jjG = next.get();
if (interfaceC15933jjG == null) {
this.r.remove(next);
} else {
z2 |= interfaceC15933jjG.e();
}
}
if (z2) {
this.e.clear();
this.m.clear();
int size = d.size();
for (int i = 0; i < size; i++) {
MenuItemImpl menuItemImpl = d.get(i);
if ((menuItemImpl.a & 32) == 32) {
this.e.add(menuItemImpl);
} else {
this.m.add(menuItemImpl);
}
}
} else {
this.e.clear();
this.m.clear();
this.m.addAll(d());
}
this.f = false;
}
}
public void clearHeader() {
this.i = null;
this.j = null;
this.h = null;
c(false);
}
/* JADX WARN: Code restructure failed: missing block: B:16:0x0046, code lost:
if ((r11 instanceof android.text.Spanned) != false) goto L15;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x0062, code lost:
r15 = new android.text.SpannableString(r12);
android.text.TextUtils.copySpansFrom((android.text.SpannedString) r11, 0, r12.length(), java.lang.Object.class, r15, 0);
r12 = r15;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x0060, code lost:
if ((r11 instanceof android.text.Spanned) != false) goto L15;
*/
/* JADX WARN: Removed duplicated region for block: B:22:0x0091 */
/* JADX WARN: Removed duplicated region for block: B:24:0x009a */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void eH_(int r11, java.lang.CharSequence r12, int r13, android.graphics.drawable.Drawable r14, android.view.View r15) {
/*
r10 = this;
r0 = 2
int r1 = r0 % r0
android.content.res.Resources r1 = r10.v
r2 = 0
r3 = 0
if (r15 == 0) goto L11
r10.h = r15
r10.j = r2
r10.i = r2
goto La0
L11:
if (r11 <= 0) goto L7d
java.lang.String r12 = r1.getString(r11)
java.lang.String r15 = ",*,)"
boolean r15 = r12.startsWith(r15)
if (r15 == 0) goto L7a
int r15 = o.NoP.A
int r15 = r15 + 77
int r4 = r15 % 128
o.NoP.z = r4
int r15 = r15 % r0
r4 = 1
r5 = 4
if (r15 != 0) goto L49
java.lang.String r12 = r12.substring(r5)
java.lang.Object[] r15 = new java.lang.Object[r4]
r10.E(r12, r15)
r12 = r15[r3]
java.lang.String r12 = (java.lang.String) r12
java.lang.String r12 = r12.intern()
java.lang.CharSequence r11 = r1.getText(r11)
boolean r15 = r11 instanceof android.text.Spanned
r1 = 40
int r1 = r1 / r3
if (r15 == 0) goto L7a
goto L62
L49:
java.lang.String r12 = r12.substring(r5)
java.lang.Object[] r15 = new java.lang.Object[r4]
r10.E(r12, r15)
r12 = r15[r3]
java.lang.String r12 = (java.lang.String) r12
java.lang.String r12 = r12.intern()
java.lang.CharSequence r11 = r1.getText(r11)
boolean r15 = r11 instanceof android.text.Spanned
if (r15 == 0) goto L7a
L62:
android.text.SpannableString r15 = new android.text.SpannableString
r15.<init>(r12)
r4 = r11
android.text.SpannedString r4 = (android.text.SpannedString) r4
r5 = 0
int r6 = r12.length()
java.lang.Class<java.lang.Object> r7 = java.lang.Object.class
r11 = r15
android.text.SpannableString r11 = (android.text.SpannableString) r11
r9 = 0
r8 = r15
android.text.TextUtils.copySpansFrom(r4, r5, r6, r7, r8, r9)
r12 = r15
L7a:
r10.j = r12
goto L8f
L7d:
if (r12 == 0) goto L8f
int r11 = o.NoP.z
int r11 = r11 + 25
int r15 = r11 % 128
o.NoP.A = r15
int r11 = r11 % r0
if (r11 == 0) goto L7a
r10.j = r12
r11 = 10
int r11 = r11 / r3
L8f:
if (r13 <= 0) goto L9a
android.content.Context r11 = r10.d
android.graphics.drawable.Drawable r11 = o.nMh.getDrawable(r11, r13)
r10.i = r11
goto L9e
L9a:
if (r14 == 0) goto L9e
r10.i = r14
L9e:
r10.h = r2
La0:
r10.c(r3)
int r11 = o.NoP.z
int r11 = r11 + 81
int r12 = r11 % 128
o.NoP.A = r12
int r11 = r11 % r0
if (r11 == 0) goto Lb1
r11 = 78
int r11 = r11 / r3
Lb1:
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.NoP.eH_(int, java.lang.CharSequence, int, android.graphics.drawable.Drawable, android.view.View):void");
}
/* JADX INFO: Access modifiers changed from: protected */
public final NoP c(CharSequence charSequence) {
eH_(0, charSequence, 0, null, null);
return this;
}
/* JADX INFO: Access modifiers changed from: protected */
public final NoP d(int i) {
eH_(i, null, 0, null, null);
return this;
}
/* JADX INFO: Access modifiers changed from: protected */
public final NoP eP_(Drawable drawable) {
eH_(0, null, 0, drawable, null);
return this;
}
/* JADX INFO: Access modifiers changed from: protected */
public final NoP b(int i) {
eH_(0, null, i, null, null);
return this;
}
/* JADX INFO: Access modifiers changed from: protected */
public final NoP a(View view) {
eH_(0, null, 0, null, view);
return this;
}
public boolean e(MenuItemImpl menuItemImpl) {
if (this.r.isEmpty()) {
return false;
}
if (!this.t) {
this.t = true;
this.n = false;
this.p = false;
}
Iterator<WeakReference<InterfaceC15933jjG>> it = this.r.iterator();
boolean z2 = false;
while (it.hasNext()) {
WeakReference<InterfaceC15933jjG> next = it.next();
InterfaceC15933jjG interfaceC15933jjG = next.get();
if (interfaceC15933jjG == null) {
this.r.remove(next);
} else {
z2 = interfaceC15933jjG.c(menuItemImpl);
if (z2) {
break;
}
}
}
this.t = false;
if (this.n) {
this.n = false;
c(this.p);
}
if (z2) {
this.b = menuItemImpl;
}
return z2;
}
public boolean c(MenuItemImpl menuItemImpl) {
if (this.r.isEmpty() || this.b != menuItemImpl) {
return false;
}
if (!this.t) {
this.t = true;
this.n = false;
this.p = false;
}
Iterator<WeakReference<InterfaceC15933jjG>> it = this.r.iterator();
boolean z2 = false;
while (it.hasNext()) {
WeakReference<InterfaceC15933jjG> next = it.next();
InterfaceC15933jjG interfaceC15933jjG = next.get();
if (interfaceC15933jjG == null) {
this.r.remove(next);
} else {
z2 = interfaceC15933jjG.d(menuItemImpl);
if (z2) {
break;
}
}
}
this.t = false;
if (this.n) {
this.n = false;
c(this.p);
}
if (z2) {
this.b = null;
}
return z2;
}
@Override // android.view.Menu
public void removeGroup(int i) {
int size = size();
int i2 = 0;
while (true) {
if (i2 >= size) {
i2 = -1;
break;
} else if (this.l.get(i2).getGroupId() == i) {
break;
} else {
i2++;
}
}
if (i2 >= 0) {
int size2 = this.l.size();
for (int i3 = 0; i3 < size2 - i2 && this.l.get(i2).getGroupId() == i; i3++) {
b(i2, false);
}
c(true);
}
}
@Override // android.view.Menu
public void removeItem(int i) {
int size = size();
int i2 = 0;
while (true) {
if (i2 >= size) {
i2 = -1;
break;
} else if (this.l.get(i2).getItemId() == i) {
break;
} else {
i2++;
}
}
b(i2, true);
}
static void j() {
B = (byte) 6;
}
@Override // android.view.Menu
public void setGroupDividerEnabled(boolean z2) {
this.y = z2;
}
public void d(Sts sts) {
this.c = sts;
}
public boolean h() {
return this.x;
}
public boolean g() {
return this.w;
}
public boolean e() {
return this.y;
}
/* JADX INFO: Access modifiers changed from: protected */
public String c() {
return "android:menu:actionviewstates";
}
static {
j();
s = new int[]{1, 4, 5, 3, 2, 0};
}
}