package o; import android.content.Context; import android.util.Base64; import androidx.fragment.app.Fragment; import com.scb.phone.view.fragment.merchant.MerchantWalletIncomingTransactionFragment; import com.scb.phone.view.fragment.merchant.MerchantWalletOutgoingTransactionFragment; import java.nio.charset.StandardCharsets; /* renamed from: o.ewX, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C12348ewX extends MoT { private static int g = 0; private static int h = 1; private static byte i = 6; public String a; public boolean b; public String c; public RK d; private Context e; private int[] f; @Override // o.WYJ public final int getCount() { return 2; } public C12348ewX(yRS yrs, Context context, RK rk, String str, String str2, boolean z) { super(yrs); this.f = new int[]{com.scb.phone.R.string.wallet_detail_incoming_tab, com.scb.phone.R.string.wallet_detail_outgoing_tab}; this.e = context; this.d = rk; this.a = str; this.c = str2; this.b = z; } private void k(String str, Object[] objArr) { byte[] decode = Base64.decode(str, 0); byte[] bArr = new byte[decode.length]; for (int i2 = 0; i2 < decode.length; i2++) { bArr[i2] = (byte) (decode[(decode.length - i2) - 1] ^ i); } objArr[0] = new String(bArr, StandardCharsets.UTF_8); } @Override // o.MoT public final Fragment b(int i2) { if (i2 == 0) { return (MerchantWalletIncomingTransactionFragment) MerchantWalletIncomingTransactionFragment.e(new Object[]{this.d, this.a, this.c, Boolean.valueOf(this.b)}, -1683925996, 1683925996, (int) System.currentTimeMillis()); } if (i2 != 1) { return null; } return MerchantWalletOutgoingTransactionFragment.d(this.d, this.a, this.c); } @Override // o.WYJ public final CharSequence getPageTitle(int i2) { int i3 = 2 % 2; String string = this.e.getString(this.f[i2]); if (string.startsWith(",*,)")) { Object[] objArr = new Object[1]; k(string.substring(4), objArr); string = ((String) objArr[0]).intern(); int i4 = h + 69; g = i4 % 128; int i5 = i4 % 2; } int i6 = h + 5; g = i6 % 128; int i7 = i6 % 2; return string; } }