ZஜZ v2.7.0版本的 MD5 值为:1bef67e030daecb0566ac755017d6792
以下内容为反编译后的 GcmPushListenerService.java 源代码,内容仅作参考
package im.jpgxbngtig.messenger;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.Base64;
import android.util.Log;
import android.util.SparseArray;
import androidx.core.app.NotificationCompat;
import com.google.android.exoplayer2.text.ttml.TtmlNode;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.king.zxing.util.LogUtils;
import im.jpgxbngtig.tgnet.ConnectionsManager;
import im.jpgxbngtig.tgnet.NativeByteBuffer;
import im.jpgxbngtig.tgnet.TLRPC;
import io.reactivex.annotations.SchedulerSupport;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import kotlin.text.Typography;
import org.json.JSONArray;
import org.json.JSONObject;
public class GcmPushListenerService extends FirebaseMessagingService {
public static final int NOTIFICATION_ID = 1;
private CountDownLatch countDownLatch = new CountDownLatch(1);
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
String from = remoteMessage.getFrom();
final Map<String, String> data = remoteMessage.getData();
final long sentTime = remoteMessage.getSentTime();
long uptimeMillis = SystemClock.uptimeMillis();
if (BuildVars.LOGS_ENABLED) {
FileLog.d("GCM received data: " + data + " from: " + from);
}
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public final void run() {
GcmPushListenerService.this.lambda$onMessageReceived$3$GcmPushListenerService(data, sentTime);
}
});
try {
this.countDownLatch.await();
} catch (Throwable unused) {
}
if (BuildVars.DEBUG_VERSION) {
FileLog.d("finished GCM service, time = " + (SystemClock.uptimeMillis() - uptimeMillis));
}
}
public void lambda$onMessageReceived$3$GcmPushListenerService(final Map map, final long j) {
ApplicationLoader.postInitApplication();
Utilities.stageQueue.postRunnable(new Runnable() {
@Override
public final void run() {
GcmPushListenerService.this.lambda$null$2$GcmPushListenerService(map, j);
}
});
}
public void lambda$null$2$GcmPushListenerService(Map map, long j) {
GcmPushListenerService gcmPushListenerService;
Throwable th;
int i;
String str;
String str2;
final int i2;
GcmPushListenerService gcmPushListenerService2;
Object obj;
GcmPushListenerService gcmPushListenerService3;
GcmPushListenerService gcmPushListenerService4;
JSONObject jSONObject;
String string;
JSONObject jSONObject2;
int clientUserId;
String str3;
GcmPushListenerService gcmPushListenerService5;
GcmPushListenerService gcmPushListenerService6;
char c;
long j2;
int i3;
int i4;
long j3;
int i5;
long j4;
int i6;
boolean z;
String str4;
long j5;
int i7;
boolean z2;
boolean z3;
boolean z4;
String[] strArr;
boolean z5;
char c2;
boolean z6;
String str5;
boolean z7;
boolean z8;
String str6;
String str7;
char c3;
String str8;
int i8;
String formatString;
String str9;
String formatString2;
String string2;
boolean z9;
boolean z10;
?? r3 = BuildVars.LOGS_ENABLED;
GcmPushListenerService gcmPushListenerService7 = r3;
if (r3 != 0) {
FileLog.d("GCM START PROCESSING");
gcmPushListenerService7 = "GCM START PROCESSING";
}
try {
obj = map.get(TtmlNode.TAG_P);
try {
} catch (Throwable th2) {
th = th2;
gcmPushListenerService3 = this;
i = -1;
str = null;
str2 = null;
}
} catch (Throwable th3) {
gcmPushListenerService = this;
th = th3;
i = -1;
str = null;
str2 = null;
}
if (!(obj instanceof String)) {
if (BuildVars.LOGS_ENABLED) {
FileLog.d("GCM DECRYPT ERROR 1");
}
onDecryptError();
return;
}
byte[] decode = Base64.decode((String) obj, 8);
NativeByteBuffer nativeByteBuffer = new NativeByteBuffer(decode.length);
nativeByteBuffer.writeBytes(decode);
nativeByteBuffer.position(0);
if (SharedConfig.pushAuthKeyId == null) {
SharedConfig.pushAuthKeyId = new byte[8];
byte[] computeSHA1 = Utilities.computeSHA1(SharedConfig.pushAuthKey);
System.arraycopy(computeSHA1, computeSHA1.length - 8, SharedConfig.pushAuthKeyId, 0, 8);
}
byte[] bArr = new byte[8];
nativeByteBuffer.readBytes(bArr, true);
if (!Arrays.equals(SharedConfig.pushAuthKeyId, bArr)) {
onDecryptError();
if (BuildVars.LOGS_ENABLED) {
FileLog.d(String.format(Locale.US, "GCM DECRYPT ERROR 2 k1=%s k2=%s, key=%s", Utilities.bytesToHex(SharedConfig.pushAuthKeyId), Utilities.bytesToHex(bArr), Utilities.bytesToHex(SharedConfig.pushAuthKey)));
return;
}
return;
}
byte[] bArr2 = new byte[16];
nativeByteBuffer.readBytes(bArr2, true);
MessageKeyData generateMessageKeyData = MessageKeyData.generateMessageKeyData(SharedConfig.pushAuthKey, bArr2, true, 2);
Utilities.aesIgeEncryption(nativeByteBuffer.buffer, generateMessageKeyData.aesKey, generateMessageKeyData.aesIv, false, false, 24, decode.length - 24);
if (!Utilities.arraysEquals(bArr2, 0, Utilities.computeSHA256(SharedConfig.pushAuthKey, 96, 32, nativeByteBuffer.buffer, 24, nativeByteBuffer.buffer.limit()), 8)) {
onDecryptError();
if (BuildVars.LOGS_ENABLED) {
FileLog.d(String.format("GCM DECRYPT ERROR 3, key = %s", Utilities.bytesToHex(SharedConfig.pushAuthKey)));
return;
}
return;
}
byte[] bArr3 = new byte[nativeByteBuffer.readInt32(true)];
nativeByteBuffer.readBytes(bArr3, true);
String str10 = new String(bArr3);
try {
jSONObject = new JSONObject(str10);
if (jSONObject.has("loc_key")) {
try {
string = jSONObject.getString("loc_key");
} catch (Throwable th4) {
th = th4;
gcmPushListenerService3 = this;
str2 = str10;
i = -1;
str = null;
i2 = -1;
gcmPushListenerService4 = gcmPushListenerService3;
th = th;
gcmPushListenerService2 = gcmPushListenerService4;
if (i2 == i) {
}
if (BuildVars.LOGS_ENABLED) {
}
FileLog.e(th);
}
} else {
string = "";
}
} catch (Throwable th5) {
gcmPushListenerService = this;
th = th5;
str2 = str10;
i = -1;
str = null;
}
try {
if (jSONObject.get(SchedulerSupport.CUSTOM) instanceof JSONObject) {
try {
jSONObject2 = jSONObject.getJSONObject(SchedulerSupport.CUSTOM);
} catch (Throwable th6) {
th = th6;
gcmPushListenerService3 = this;
str2 = str10;
str = string;
i = -1;
i2 = -1;
gcmPushListenerService4 = gcmPushListenerService3;
th = th;
gcmPushListenerService2 = gcmPushListenerService4;
if (i2 == i) {
}
if (BuildVars.LOGS_ENABLED) {
}
FileLog.e(th);
}
} else {
jSONObject2 = new JSONObject();
}
Object obj2 = jSONObject.has("user_id") ? jSONObject.get("user_id") : null;
if (obj2 == null) {
clientUserId = UserConfig.getInstance(UserConfig.selectedAccount).getClientUserId();
} else if (obj2 instanceof Integer) {
clientUserId = ((Integer) obj2).intValue();
} else if (obj2 instanceof String) {
clientUserId = Utilities.parseInt((String) obj2).intValue();
} else {
clientUserId = UserConfig.getInstance(UserConfig.selectedAccount).getClientUserId();
}
i2 = UserConfig.selectedAccount;
for (int i9 = 0; i9 < 3; i9++) {
if (UserConfig.getInstance(i9).getClientUserId() == clientUserId) {
i2 = i9;
break;
}
}
try {
try {
} catch (Throwable th7) {
th = th7;
gcmPushListenerService6 = this;
str2 = str10;
}
} catch (Throwable th8) {
th = th8;
gcmPushListenerService7 = this;
str3 = str10;
}
} catch (Throwable th9) {
gcmPushListenerService = this;
th = th9;
str = string;
str2 = str10;
i = -1;
i2 = -1;
gcmPushListenerService2 = gcmPushListenerService;
if (i2 == i) {
}
if (BuildVars.LOGS_ENABLED) {
}
FileLog.e(th);
}
if (!UserConfig.getInstance(i2).isClientActivated()) {
if (BuildVars.LOGS_ENABLED) {
FileLog.d("GCM ACCOUNT NOT ACTIVATED");
}
this.countDownLatch.countDown();
return;
}
map.get("google.sent_time");
int hashCode = string.hashCode();
if (hashCode == -1963663249) {
if (string.equals("SESSION_REVOKE")) {
c = 2;
}
c = 65535;
} else if (hashCode != -920689527) {
if (hashCode == 633004703 && string.equals("MESSAGE_ANNOUNCEMENT")) {
c = 1;
}
c = 65535;
} else {
if (string.equals("DC_UPDATE")) {
c = 0;
}
c = 65535;
}
try {
} catch (Throwable th10) {
th = th10;
}
if (c == 0) {
int i10 = jSONObject2.getInt("dc");
String[] split = jSONObject2.getString("addr").split(LogUtils.COLON);
if (split.length != 2) {
this.countDownLatch.countDown();
return;
}
ConnectionsManager.getInstance(i2).applyDatacenterAddress(i10, split[0], Integer.parseInt(split[1]));
ConnectionsManager.getInstance(i2).resumeNetworkMaybe();
this.countDownLatch.countDown();
return;
}
if (c == 1) {
gcmPushListenerService7 = this;
str3 = str10;
TLRPC.TL_updateServiceNotification tL_updateServiceNotification = new TLRPC.TL_updateServiceNotification();
tL_updateServiceNotification.popup = false;
tL_updateServiceNotification.flags = 2;
tL_updateServiceNotification.inbox_date = (int) (j / 1000);
tL_updateServiceNotification.message = jSONObject.getString("message");
tL_updateServiceNotification.type = "announcement";
tL_updateServiceNotification.media = new TLRPC.TL_messageMediaEmpty();
final TLRPC.TL_updates tL_updates = new TLRPC.TL_updates();
tL_updates.updates.add(tL_updateServiceNotification);
try {
Utilities.stageQueue.postRunnable(new Runnable() {
@Override
public final void run() {
MessagesController.getInstance(i2).processUpdates(tL_updates, false);
}
});
ConnectionsManager.getInstance(i2).resumeNetworkMaybe();
gcmPushListenerService7.countDownLatch.countDown();
return;
} catch (Throwable th11) {
th = th11;
}
} else if (c == 2) {
gcmPushListenerService7 = this;
str3 = str10;
try {
try {
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public final void run() {
GcmPushListenerService.lambda$null$1(i2);
}
});
return;
} catch (Throwable th12) {
th = th12;
}
} catch (Throwable th13) {
th = th13;
i2 = i2;
}
} else {
try {
if (jSONObject2.has("channel_id")) {
i3 = jSONObject2.getInt("channel_id");
j2 = -i3;
} else {
j2 = 0;
i3 = 0;
}
if (jSONObject2.has("from_id")) {
try {
int i11 = jSONObject2.getInt("from_id");
str2 = str10;
i4 = i11;
j3 = i11;
} catch (Throwable th14) {
th = th14;
str2 = str10;
gcmPushListenerService6 = this;
str = string;
i = -1;
gcmPushListenerService4 = gcmPushListenerService6;
th = th;
gcmPushListenerService2 = gcmPushListenerService4;
if (i2 == i) {
}
if (BuildVars.LOGS_ENABLED) {
}
FileLog.e(th);
}
} else {
str2 = str10;
i4 = 0;
j3 = j2;
}
try {
if (jSONObject2.has("chat_id")) {
try {
int i12 = jSONObject2.getInt("chat_id");
i5 = i12;
j4 = -i12;
} catch (Throwable th15) {
th = th15;
gcmPushListenerService6 = this;
str = string;
i = -1;
gcmPushListenerService4 = gcmPushListenerService6;
th = th;
gcmPushListenerService2 = gcmPushListenerService4;
if (i2 == i) {
}
if (BuildVars.LOGS_ENABLED) {
}
FileLog.e(th);
}
} else {
i5 = 0;
j4 = j3;
}
long j6 = j4;
if (jSONObject2.has("encryption_id")) {
j6 = jSONObject2.getInt("encryption_id") << 32;
}
boolean z11 = jSONObject2.has("schedule") && jSONObject2.getInt("schedule") == 1;
?? r32 = j6;
if (j6 == 0) {
r32 = j6;
if ("ENCRYPTED_MESSAGE".equals(string)) {
r32 = -4294967296;
}
}
try {
if (r32 != 0) {
if ("READ_HISTORY".equals(string)) {
int i13 = jSONObject2.getInt("max_id");
ArrayList<TLRPC.Update> arrayList = new ArrayList<>();
if (BuildVars.LOGS_ENABLED) {
FileLog.d("GCM received read notification max_id = " + i13 + " for dialogId = " + r32);
}
if (i3 != 0) {
TLRPC.TL_updateReadChannelInbox tL_updateReadChannelInbox = new TLRPC.TL_updateReadChannelInbox();
tL_updateReadChannelInbox.channel_id = i3;
tL_updateReadChannelInbox.max_id = i13;
arrayList.add(tL_updateReadChannelInbox);
} else {
TLRPC.TL_updateReadHistoryInbox tL_updateReadHistoryInbox = new TLRPC.TL_updateReadHistoryInbox();
if (i4 != 0) {
tL_updateReadHistoryInbox.peer = new TLRPC.TL_peerUser();
tL_updateReadHistoryInbox.peer.user_id = i4;
} else {
tL_updateReadHistoryInbox.peer = new TLRPC.TL_peerChat();
tL_updateReadHistoryInbox.peer.chat_id = i5;
}
tL_updateReadHistoryInbox.max_id = i13;
arrayList.add(tL_updateReadHistoryInbox);
}
MessagesController.getInstance(i2).processUpdateArray(arrayList, null, null, false, 0);
this.countDownLatch.countDown();
} else if ("MESSAGE_DELETED".equals(string)) {
String[] split2 = jSONObject2.getString("messages").split(",");
SparseArray<ArrayList<Integer>> sparseArray = new SparseArray<>();
ArrayList<Integer> arrayList2 = new ArrayList<>();
for (String str11 : split2) {
arrayList2.add(Utilities.parseInt(str11));
}
sparseArray.put(i3, arrayList2);
NotificationsController.getInstance(i2).removeDeletedMessagesFromNotifications(sparseArray);
MessagesController.getInstance(i2).deleteMessagesByPush(r32, arrayList2, i3);
} else if (!TextUtils.isEmpty(string)) {
int i14 = jSONObject2.has("msg_id") ? jSONObject2.getInt("msg_id") : 0;
if (jSONObject2.has("random_id")) {
str4 = str2;
z = z11;
j5 = Utilities.parseLong(jSONObject2.getString("random_id")).longValue();
} else {
z = z11;
str4 = str2;
j5 = 0;
}
try {
if (i14 != 0) {
str3 = str4;
Integer num = MessagesController.getInstance(i2).dialogs_read_inbox_max.get(Long.valueOf((long) r32));
if (num == null) {
num = Integer.valueOf(MessagesStorage.getInstance(i2).getDialogReadMax(false, r32));
i7 = i4;
MessagesController.getInstance(i2).dialogs_read_inbox_max.put(Long.valueOf((long) r32), num);
} else {
i7 = i4;
}
z2 = i14 > num.intValue();
} else {
i7 = i4;
str3 = str4;
if (j5 != 0) {
}
}
if (z2) {
try {
int i15 = jSONObject2.has("chat_from_id") ? jSONObject2.getInt("chat_from_id") : 0;
boolean z12 = jSONObject2.has("mention") && jSONObject2.getInt("mention") != 0;
try {
try {
if (jSONObject2.has(NotificationCompat.GROUP_KEY_SILENT)) {
if (jSONObject2.getInt(NotificationCompat.GROUP_KEY_SILENT) != 0) {
i6 = i2;
z3 = true;
if (jSONObject.has("loc_args")) {
z5 = z12;
z4 = z3;
c2 = 0;
strArr = null;
} else {
try {
JSONArray jSONArray = jSONObject.getJSONArray("loc_args");
int length = jSONArray.length();
z4 = z3;
strArr = new String[length];
z5 = z12;
for (int i16 = 0; i16 < length; i16++) {
strArr[i16] = jSONArray.getString(i16);
}
c2 = 0;
} catch (Throwable th16) {
th = th16;
i = -1;
gcmPushListenerService2 = this;
th = th;
str = string;
str2 = str3;
i2 = i6;
if (i2 == i) {
}
if (BuildVars.LOGS_ENABLED) {
}
FileLog.e(th);
}
}
String str12 = strArr[c2];
boolean has = jSONObject2.has("edit_date");
if (!string.startsWith("CHAT_")) {
z6 = i3 != 0;
str5 = str12;
str12 = strArr[1];
} else if (!string.startsWith("PINNED_")) {
if (string.startsWith("CHANNEL_")) {
z6 = false;
str5 = null;
z7 = false;
z8 = true;
if (BuildVars.LOGS_ENABLED) {
}
switch (string.hashCode()) {
case -2100047043:
break;
case -2091498420:
break;
case -2053872415:
break;
case -2039746363:
break;
case -2023218804:
break;
case -1979538588:
break;
case -1979536003:
break;
case -1979535888:
break;
case -1969004705:
break;
case -1946699248:
break;
case -1528047021:
break;
case -1493579426:
break;
case -1482481933:
break;
case -1480102982:
break;
case -1478041834:
break;
case -1474543101:
break;
case -1465695932:
break;
case -1374906292:
break;
case -1372940586:
break;
case -1264245338:
break;
case -1236086700:
break;
case -1236077786:
break;
case -1235796237:
break;
case -1235686303:
break;
case -1198046100:
break;
case -1124254527:
break;
case -1085137927:
break;
case -1084856378:
break;
case -1084746444:
break;
case -819729482:
break;
case -772141857:
break;
case -638310039:
break;
case -590403924:
break;
case -589196239:
break;
case -589193654:
break;
case -589193539:
break;
case -440169325:
break;
case -412748110:
break;
case -228518075:
break;
case -213586509:
break;
case -115582002:
break;
case -112621464:
break;
case -108522133:
break;
case -107572034:
break;
case -40534265:
break;
case 65254746:
break;
case 141040782:
break;
case 309993049:
break;
case 309995634:
break;
case 309995749:
break;
case 320532812:
break;
case 328933854:
break;
case 331340546:
break;
case 344816990:
break;
case 346878138:
break;
case 350376871:
break;
case 615714517:
break;
case 715508879:
break;
case 728985323:
break;
case 731046471:
break;
case 734545204:
break;
case 802032552:
break;
case 991498806:
break;
case 1007364121:
break;
case 1019917311:
break;
case 1019926225:
break;
case 1020207774:
break;
case 1020317708:
break;
case 1060349560:
break;
case 1060358474:
break;
case 1060640023:
break;
case 1060749957:
break;
case 1073049781:
break;
case 1078101399:
break;
case 1110103437:
break;
case 1160762272:
break;
case 1172918249:
break;
case 1234591620:
break;
case 1281128640:
break;
case 1281131225:
break;
case 1281131340:
break;
case 1310789062:
break;
case 1333118583:
break;
case 1361447897:
break;
case 1498266155:
break;
case 1533804208:
break;
case 1547988151:
break;
case 1561464595:
break;
case 1563525743:
break;
case 1567024476:
break;
case 1810705077:
break;
case 1815177512:
break;
case 1963241394:
break;
case 2014789757:
break;
case 2022049433:
break;
case 2048733346:
break;
case 2099392181:
break;
case 2140162142:
break;
}
int i17 = i14;
int i18 = i5;
int i19 = i3;
long j7 = r32;
boolean z13 = z6;
boolean z14 = z7;
long j8 = j5;
str8 = string;
switch (c3) {
}
} else {
z6 = false;
str5 = null;
}
} else {
z6 = i15 != 0;
str5 = null;
z7 = true;
z8 = false;
if (BuildVars.LOGS_ENABLED) {
str6 = str12;
str7 = str5;
} else {
str6 = str12;
?? sb = new StringBuilder();
str7 = str5;
sb.append("GCM received message notification ");
sb.append(string);
sb.append(" for dialogId = ");
sb.append(r32);
sb.append(" mid = ");
sb.append(i14);
FileLog.d(sb.toString());
}
switch (string.hashCode()) {
case -2100047043:
if (string.equals("MESSAGE_GAME_SCORE")) {
c3 = 18;
break;
}
c3 = 65535;
break;
case -2091498420:
if (string.equals("CHANNEL_MESSAGE_CONTACT")) {
c3 = ' ';
break;
}
c3 = 65535;
break;
case -2053872415:
if (string.equals("CHAT_CREATED")) {
c3 = ':';
break;
}
c3 = 65535;
break;
case -2039746363:
if (string.equals("MESSAGE_STICKER")) {
c3 = '\n';
break;
}
c3 = 65535;
break;
case -2023218804:
if (string.equals("CHANNEL_MESSAGE_VIDEOS")) {
c3 = '(';
break;
}
c3 = 65535;
break;
case -1979538588:
if (string.equals("CHANNEL_MESSAGE_DOC")) {
c3 = 29;
break;
}
c3 = 65535;
break;
case -1979536003:
if (string.equals("CHANNEL_MESSAGE_GEO")) {
c3 = Typography.quote;
break;
}
c3 = 65535;
break;
case -1979535888:
if (string.equals("CHANNEL_MESSAGE_GIF")) {
c3 = Typography.dollar;
break;
}
c3 = 65535;
break;
case -1969004705:
if (string.equals("CHAT_ADD_MEMBER")) {
c3 = Typography.greater;
break;
}
c3 = 65535;
break;
case -1946699248:
if (string.equals("CHAT_JOINED")) {
c3 = 'C';
break;
}
c3 = 65535;
break;
case -1528047021:
if (string.equals("CHAT_MESSAGES")) {
c3 = 'G';
break;
}
c3 = 65535;
break;
case -1493579426:
if (string.equals("MESSAGE_AUDIO")) {
c3 = 11;
break;
}
c3 = 65535;
break;
case -1482481933:
if (string.equals("MESSAGE_MUTED")) {
c3 = '`';
break;
}
c3 = 65535;
break;
case -1480102982:
if (string.equals("MESSAGE_PHOTO")) {
c3 = 3;
break;
}
c3 = 65535;
break;
case -1478041834:
if (string.equals("MESSAGE_ROUND")) {
c3 = '\b';
break;
}
c3 = 65535;
break;
case -1474543101:
if (string.equals("MESSAGE_VIDEO")) {
c3 = 5;
break;
}
c3 = 65535;
break;
case -1465695932:
if (string.equals("ENCRYPTION_ACCEPT")) {
c3 = '^';
break;
}
c3 = 65535;
break;
case -1374906292:
if (string.equals("ENCRYPTED_MESSAGE")) {
c3 = 'X';
break;
}
c3 = 65535;
break;
case -1372940586:
if (string.equals("CHAT_RETURNED")) {
c3 = 'B';
break;
}
c3 = 65535;
break;
case -1264245338:
if (string.equals("PINNED_INVOICE")) {
c3 = 'V';
break;
}
c3 = 65535;
break;
case -1236086700:
if (string.equals("CHANNEL_MESSAGE_FWDS")) {
c3 = Typography.amp;
break;
}
c3 = 65535;
break;
case -1236077786:
if (string.equals("CHANNEL_MESSAGE_GAME")) {
c3 = '%';
break;
}
c3 = 65535;
break;
case -1235796237:
if (string.equals("CHANNEL_MESSAGE_POLL")) {
c3 = '!';
break;
}
c3 = 65535;
break;
case -1235686303:
if (string.equals("CHANNEL_MESSAGE_TEXT")) {
c3 = 1;
break;
}
c3 = 65535;
break;
case -1198046100:
if (string.equals("MESSAGE_VIDEO_SECRET")) {
c3 = 6;
break;
}
c3 = 65535;
break;
case -1124254527:
if (string.equals("CHAT_MESSAGE_CONTACT")) {
c3 = '2';
break;
}
c3 = 65535;
break;
case -1085137927:
if (string.equals("PINNED_GAME")) {
c3 = 'T';
break;
}
c3 = 65535;
break;
case -1084856378:
if (string.equals("PINNED_POLL")) {
c3 = 'Q';
break;
}
c3 = 65535;
break;
case -1084746444:
if (string.equals("PINNED_TEXT")) {
c3 = 'H';
break;
}
c3 = 65535;
break;
case -819729482:
if (string.equals("PINNED_STICKER")) {
c3 = 'N';
break;
}
c3 = 65535;
break;
case -772141857:
if (string.equals("PHONE_CALL_REQUEST")) {
c3 = '_';
break;
}
c3 = 65535;
break;
case -638310039:
if (string.equals("CHANNEL_MESSAGE_STICKER")) {
c3 = 30;
break;
}
c3 = 65535;
break;
case -590403924:
if (string.equals("PINNED_GAME_SCORE")) {
c3 = 'U';
break;
}
c3 = 65535;
break;
case -589196239:
if (string.equals("PINNED_DOC")) {
c3 = 'M';
break;
}
c3 = 65535;
break;
case -589193654:
if (string.equals("PINNED_GEO")) {
c3 = 'R';
break;
}
c3 = 65535;
break;
case -589193539:
if (string.equals("PINNED_GIF")) {
c3 = 'W';
break;
}
c3 = 65535;
break;
case -440169325:
if (string.equals("AUTH_UNKNOWN")) {
c3 = 'Z';
break;
}
c3 = 65535;
break;
case -412748110:
if (string.equals("CHAT_DELETE_YOU")) {
c3 = '@';
break;
}
c3 = 65535;
break;
case -228518075:
if (string.equals("MESSAGE_GEOLIVE")) {
c3 = 15;
break;
}
c3 = 65535;
break;
case -213586509:
if (string.equals("ENCRYPTION_REQUEST")) {
c3 = ']';
break;
}
c3 = 65535;
break;
case -115582002:
if (string.equals("CHAT_MESSAGE_INVOICE")) {
c3 = '9';
break;
}
c3 = 65535;
break;
case -112621464:
if (string.equals("CONTACT_JOINED")) {
c3 = 'Y';
break;
}
c3 = 65535;
break;
case -108522133:
if (string.equals("AUTH_REGION")) {
c3 = '[';
break;
}
c3 = 65535;
break;
case -107572034:
if (string.equals("MESSAGE_SCREENSHOT")) {
c3 = 7;
break;
}
c3 = 65535;
break;
case -40534265:
if (string.equals("CHAT_DELETE_MEMBER")) {
c3 = '?';
break;
}
c3 = 65535;
break;
case 65254746:
if (string.equals("CHAT_ADD_YOU")) {
c3 = ';';
break;
}
c3 = 65535;
break;
case 141040782:
if (string.equals("CHAT_LEFT")) {
c3 = 'A';
break;
}
c3 = 65535;
break;
case 309993049:
if (string.equals("CHAT_MESSAGE_DOC")) {
c3 = '/';
break;
}
c3 = 65535;
break;
case 309995634:
if (string.equals("CHAT_MESSAGE_GEO")) {
c3 = '4';
break;
}
c3 = 65535;
break;
case 309995749:
if (string.equals("CHAT_MESSAGE_GIF")) {
c3 = '6';
break;
}
c3 = 65535;
break;
case 320532812:
if (string.equals("MESSAGES")) {
c3 = 24;
break;
}
c3 = 65535;
break;
case 328933854:
if (string.equals("CHAT_MESSAGE_STICKER")) {
c3 = '0';
break;
}
c3 = 65535;
break;
case 331340546:
if (string.equals("CHANNEL_MESSAGE_AUDIO")) {
c3 = 31;
break;
}
c3 = 65535;
break;
case 344816990:
if (string.equals("CHANNEL_MESSAGE_PHOTO")) {
c3 = 26;
break;
}
c3 = 65535;
break;
case 346878138:
if (string.equals("CHANNEL_MESSAGE_ROUND")) {
c3 = 28;
break;
}
c3 = 65535;
break;
case 350376871:
if (string.equals("CHANNEL_MESSAGE_VIDEO")) {
c3 = 27;
break;
}
c3 = 65535;
break;
case 615714517:
if (string.equals("MESSAGE_PHOTO_SECRET")) {
c3 = 4;
break;
}
c3 = 65535;
break;
case 715508879:
if (string.equals("PINNED_AUDIO")) {
c3 = 'O';
break;
}
c3 = 65535;
break;
case 728985323:
if (string.equals("PINNED_PHOTO")) {
c3 = 'J';
break;
}
c3 = 65535;
break;
case 731046471:
if (string.equals("PINNED_ROUND")) {
c3 = 'L';
break;
}
c3 = 65535;
break;
case 734545204:
if (string.equals("PINNED_VIDEO")) {
c3 = 'K';
break;
}
c3 = 65535;
break;
case 802032552:
if (string.equals("MESSAGE_CONTACT")) {
c3 = '\f';
break;
}
c3 = 65535;
break;
case 991498806:
if (string.equals("PINNED_GEOLIVE")) {
c3 = 'S';
break;
}
c3 = 65535;
break;
case 1007364121:
if (string.equals("CHANNEL_MESSAGE_GAME_SCORE")) {
c3 = 19;
break;
}
c3 = 65535;
break;
case 1019917311:
if (string.equals("CHAT_MESSAGE_FWDS")) {
c3 = 'D';
break;
}
c3 = 65535;
break;
case 1019926225:
if (string.equals("CHAT_MESSAGE_GAME")) {
c3 = '7';
break;
}
c3 = 65535;
break;
case 1020207774:
if (string.equals("CHAT_MESSAGE_POLL")) {
c3 = '3';
break;
}
c3 = 65535;
break;
case 1020317708:
if (string.equals("CHAT_MESSAGE_TEXT")) {
c3 = '*';
break;
}
c3 = 65535;
break;
case 1060349560:
if (string.equals("MESSAGE_FWDS")) {
c3 = 21;
break;
}
c3 = 65535;
break;
case 1060358474:
if (string.equals("MESSAGE_GAME")) {
c3 = 17;
break;
}
c3 = 65535;
break;
case 1060640023:
if (string.equals("MESSAGE_POLL")) {
c3 = '\r';
break;
}
c3 = 65535;
break;
case 1060749957:
if (string.equals("MESSAGE_TEXT")) {
c3 = 0;
break;
}
c3 = 65535;
break;
case 1073049781:
if (string.equals("PINNED_NOTEXT")) {
c3 = 'I';
break;
}
c3 = 65535;
break;
case 1078101399:
if (string.equals("CHAT_TITLE_EDITED")) {
c3 = Typography.less;
break;
}
c3 = 65535;
break;
case 1110103437:
if (string.equals("CHAT_MESSAGE_NOTEXT")) {
c3 = '+';
break;
}
c3 = 65535;
break;
case 1160762272:
if (string.equals("CHAT_MESSAGE_PHOTOS")) {
c3 = 'E';
break;
}
c3 = 65535;
break;
case 1172918249:
if (string.equals("CHANNEL_MESSAGE_GEOLIVE")) {
c3 = '#';
break;
}
c3 = 65535;
break;
case 1234591620:
if (string.equals("CHAT_MESSAGE_GAME_SCORE")) {
c3 = '8';
break;
}
c3 = 65535;
break;
case 1281128640:
if (string.equals("MESSAGE_DOC")) {
c3 = '\t';
break;
}
c3 = 65535;
break;
case 1281131225:
if (string.equals("MESSAGE_GEO")) {
c3 = 14;
break;
}
c3 = 65535;
break;
case 1281131340:
if (string.equals("MESSAGE_GIF")) {
c3 = 16;
break;
}
c3 = 65535;
break;
case 1310789062:
if (string.equals("MESSAGE_NOTEXT")) {
c3 = 2;
break;
}
c3 = 65535;
break;
case 1333118583:
if (string.equals("CHAT_MESSAGE_VIDEOS")) {
c3 = 'F';
break;
}
c3 = 65535;
break;
case 1361447897:
if (string.equals("MESSAGE_PHOTOS")) {
c3 = 22;
break;
}
c3 = 65535;
break;
case 1498266155:
if (string.equals("PHONE_CALL_MISSED")) {
c3 = 'a';
break;
}
c3 = 65535;
break;
case 1533804208:
if (string.equals("MESSAGE_VIDEOS")) {
c3 = 23;
break;
}
c3 = 65535;
break;
case 1547988151:
if (string.equals("CHAT_MESSAGE_AUDIO")) {
c3 = '1';
break;
}
c3 = 65535;
break;
case 1561464595:
if (string.equals("CHAT_MESSAGE_PHOTO")) {
c3 = ',';
break;
}
c3 = 65535;
break;
case 1563525743:
if (string.equals("CHAT_MESSAGE_ROUND")) {
c3 = '.';
break;
}
c3 = 65535;
break;
case 1567024476:
if (string.equals("CHAT_MESSAGE_VIDEO")) {
c3 = '-';
break;
}
c3 = 65535;
break;
case 1810705077:
if (string.equals("MESSAGE_INVOICE")) {
c3 = 20;
break;
}
c3 = 65535;
break;
case 1815177512:
if (string.equals("CHANNEL_MESSAGES")) {
c3 = ')';
break;
}
c3 = 65535;
break;
case 1963241394:
if (string.equals("LOCKED_MESSAGE")) {
c3 = '\\';
break;
}
c3 = 65535;
break;
case 2014789757:
if (string.equals("CHAT_PHOTO_EDITED")) {
c3 = '=';
break;
}
c3 = 65535;
break;
case 2022049433:
if (string.equals("PINNED_CONTACT")) {
c3 = 'P';
break;
}
c3 = 65535;
break;
case 2048733346:
if (string.equals("CHANNEL_MESSAGE_NOTEXT")) {
c3 = 25;
break;
}
c3 = 65535;
break;
case 2099392181:
if (string.equals("CHANNEL_MESSAGE_PHOTOS")) {
c3 = '\'';
break;
}
c3 = 65535;
break;
case 2140162142:
if (string.equals("CHAT_MESSAGE_GEOLIVE")) {
c3 = '5';
break;
}
c3 = 65535;
break;
default:
c3 = 65535;
break;
}
int i172 = i14;
int i182 = i5;
int i192 = i3;
long j72 = r32;
boolean z132 = z6;
boolean z142 = z7;
long j82 = j5;
str8 = string;
switch (c3) {
case 0:
case 1:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageText", R.string.NotificationMessageText, strArr[0], strArr[1]);
str9 = strArr[1];
string = str8;
z9 = false;
String str13 = formatString;
string2 = str9;
formatString2 = str13;
if (formatString2 != null) {
TLRPC.TL_message tL_message = new TLRPC.TL_message();
tL_message.id = i8;
tL_message.random_id = j82;
if (string2 == null) {
string2 = formatString2;
}
tL_message.message = string2;
tL_message.date = (int) (j / 1000);
if (z142) {
tL_message.action = new TLRPC.TL_messageActionPinMessage();
}
if (z132) {
tL_message.flags |= Integer.MIN_VALUE;
}
tL_message.dialog_id = j72;
if (i192 != 0) {
tL_message.to_id = new TLRPC.TL_peerChannel();
tL_message.to_id.channel_id = i192;
} else if (i182 != 0) {
tL_message.to_id = new TLRPC.TL_peerChat();
tL_message.to_id.chat_id = i182;
} else {
tL_message.to_id = new TLRPC.TL_peerUser();
tL_message.to_id.user_id = i7;
}
tL_message.flags |= 256;
tL_message.from_id = i15;
if (!z5 && !z142) {
z10 = false;
tL_message.mentioned = z10;
tL_message.silent = z4;
tL_message.from_scheduled = z;
MessageObject messageObject = new MessageObject(i6, tL_message, formatString2, str6, str7, z9, z8, has);
ArrayList<MessageObject> arrayList3 = new ArrayList<>();
arrayList3.add(messageObject);
GcmPushListenerService gcmPushListenerService8 = this;
NotificationsController.getInstance(i6).processNewMessages(arrayList3, true, true, gcmPushListenerService8.countDownLatch);
r32 = gcmPushListenerService8;
break;
}
z10 = true;
tL_message.mentioned = z10;
tL_message.silent = z4;
tL_message.from_scheduled = z;
MessageObject messageObject2 = new MessageObject(i6, tL_message, formatString2, str6, str7, z9, z8, has);
ArrayList<MessageObject> arrayList32 = new ArrayList<>();
arrayList32.add(messageObject2);
GcmPushListenerService gcmPushListenerService82 = this;
NotificationsController.getInstance(i6).processNewMessages(arrayList32, true, true, gcmPushListenerService82.countDownLatch);
r32 = gcmPushListenerService82;
} else {
GcmPushListenerService gcmPushListenerService9 = this;
gcmPushListenerService9.countDownLatch.countDown();
r32 = gcmPushListenerService9;
break;
}
case 2:
i8 = i172;
formatString2 = LocaleController.formatString("NotificationMessageNoText", R.string.NotificationMessageNoText, strArr[0]);
string2 = LocaleController.getString("Message", R.string.Message);
string = str8;
z9 = false;
if (formatString2 != null) {
}
break;
case 3:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessagePhoto", R.string.NotificationMessagePhoto, strArr[0]);
str9 = LocaleController.getString("AttachPhoto", R.string.AttachPhoto);
string = str8;
z9 = false;
String str132 = formatString;
string2 = str9;
formatString2 = str132;
if (formatString2 != null) {
}
break;
case 4:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageSDPhoto", R.string.NotificationMessageSDPhoto, strArr[0]);
str9 = LocaleController.getString("AttachDestructingPhoto", R.string.AttachDestructingPhoto);
string = str8;
z9 = false;
String str1322 = formatString;
string2 = str9;
formatString2 = str1322;
if (formatString2 != null) {
}
break;
case 5:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageVideo", R.string.NotificationMessageVideo, strArr[0]);
str9 = LocaleController.getString("AttachVideo", R.string.AttachVideo);
string = str8;
z9 = false;
String str13222 = formatString;
string2 = str9;
formatString2 = str13222;
if (formatString2 != null) {
}
break;
case 6:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageSDVideo", R.string.NotificationMessageSDVideo, strArr[0]);
str9 = LocaleController.getString("AttachDestructingVideo", R.string.AttachDestructingVideo);
string = str8;
z9 = false;
String str132222 = formatString;
string2 = str9;
formatString2 = str132222;
if (formatString2 != null) {
}
break;
case 7:
i8 = i172;
formatString2 = LocaleController.getString("ActionTakeScreenshoot", R.string.ActionTakeScreenshoot).replace("un1", strArr[0]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case '\b':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageRound", R.string.NotificationMessageRound, strArr[0]);
str9 = LocaleController.getString("AttachRound", R.string.AttachRound);
string = str8;
z9 = false;
String str1322222 = formatString;
string2 = str9;
formatString2 = str1322222;
if (formatString2 != null) {
}
break;
case '\t':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageDocument", R.string.NotificationMessageDocument, strArr[0]);
str9 = LocaleController.getString("AttachDocument", R.string.AttachDocument);
string = str8;
z9 = false;
String str13222222 = formatString;
string2 = str9;
formatString2 = str13222222;
if (formatString2 != null) {
}
break;
case '\n':
i8 = i172;
if (strArr.length > 1 && !TextUtils.isEmpty(strArr[1])) {
formatString = LocaleController.formatString("NotificationMessageStickerEmoji", R.string.NotificationMessageStickerEmoji, strArr[0], strArr[1]);
str9 = strArr[1] + " " + LocaleController.getString("AttachSticker", R.string.AttachSticker);
} else {
formatString = LocaleController.formatString("NotificationMessageSticker", R.string.NotificationMessageSticker, strArr[0]);
str9 = LocaleController.getString("AttachSticker", R.string.AttachSticker);
}
string = str8;
z9 = false;
String str132222222 = formatString;
string2 = str9;
formatString2 = str132222222;
if (formatString2 != null) {
}
break;
case 11:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageAudio", R.string.NotificationMessageAudio, strArr[0]);
str9 = LocaleController.getString("AttachAudio", R.string.AttachAudio);
string = str8;
z9 = false;
String str1322222222 = formatString;
string2 = str9;
formatString2 = str1322222222;
if (formatString2 != null) {
}
break;
case '\f':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageContact2", R.string.NotificationMessageContact2, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachContact", R.string.AttachContact);
string = str8;
z9 = false;
String str13222222222 = formatString;
string2 = str9;
formatString2 = str13222222222;
if (formatString2 != null) {
}
break;
case '\r':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessagePoll2", R.string.NotificationMessagePoll2, strArr[0], strArr[1]);
str9 = LocaleController.getString("Poll", R.string.Poll);
string = str8;
z9 = false;
String str132222222222 = formatString;
string2 = str9;
formatString2 = str132222222222;
if (formatString2 != null) {
}
break;
case 14:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageMap", R.string.NotificationMessageMap, strArr[0]);
str9 = LocaleController.getString("AttachLocation", R.string.AttachLocation);
string = str8;
z9 = false;
String str1322222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222;
if (formatString2 != null) {
}
break;
case 15:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageLiveLocation", R.string.NotificationMessageLiveLocation, strArr[0]);
str9 = LocaleController.getString("AttachLiveLocation", R.string.AttachLiveLocation);
string = str8;
z9 = false;
String str13222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222;
if (formatString2 != null) {
}
break;
case 16:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGif", R.string.NotificationMessageGif, strArr[0]);
str9 = LocaleController.getString("AttachGif", R.string.AttachGif);
string = str8;
z9 = false;
String str132222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222;
if (formatString2 != null) {
}
break;
case 17:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGame", R.string.NotificationMessageGame, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachGame", R.string.AttachGame);
string = str8;
z9 = false;
String str1322222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222;
if (formatString2 != null) {
}
break;
case 18:
case 19:
i8 = i172;
formatString2 = LocaleController.formatString("NotificationMessageGameScored", R.string.NotificationMessageGameScored, strArr[0], strArr[1], strArr[2]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 20:
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageInvoice", R.string.NotificationMessageInvoice, strArr[0], strArr[1]);
str9 = LocaleController.getString("PaymentInvoice", R.string.PaymentInvoice);
string = str8;
z9 = false;
String str13222222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222222;
if (formatString2 != null) {
}
break;
case 21:
i8 = i172;
formatString2 = LocaleController.formatString("NotificationMessageForwardFew", R.string.NotificationMessageForwardFew, strArr[0], LocaleController.formatPluralString("messages", Utilities.parseInt(strArr[1]).intValue()));
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case 22:
i8 = i172;
formatString2 = LocaleController.formatString("NotificationMessageFew", R.string.NotificationMessageFew, strArr[0], LocaleController.formatPluralString("Photos", Utilities.parseInt(strArr[1]).intValue()));
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case 23:
i8 = i172;
formatString2 = LocaleController.formatString("NotificationMessageFew", R.string.NotificationMessageFew, strArr[0], LocaleController.formatPluralString("Videos", Utilities.parseInt(strArr[1]).intValue()));
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case 24:
i8 = i172;
formatString2 = LocaleController.formatString("NotificationMessageAlbum", R.string.NotificationMessageAlbum, strArr[0]);
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case 25:
i8 = i172;
formatString2 = LocaleController.formatString("ChannelMessageNoText", R.string.ChannelMessageNoText, strArr[0]);
string2 = LocaleController.getString("Message", R.string.Message);
string = str8;
z9 = false;
if (formatString2 != null) {
}
break;
case 26:
i8 = i172;
formatString = LocaleController.formatString("ChannelMessagePhoto", R.string.ChannelMessagePhoto, strArr[0]);
str9 = LocaleController.getString("AttachPhoto", R.string.AttachPhoto);
string = str8;
z9 = false;
String str132222222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222222;
if (formatString2 != null) {
}
break;
case 27:
i8 = i172;
formatString = LocaleController.formatString("ChannelMessageVideo", R.string.ChannelMessageVideo, strArr[0]);
str9 = LocaleController.getString("AttachVideo", R.string.AttachVideo);
string = str8;
z9 = false;
String str1322222222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222222;
if (formatString2 != null) {
}
break;
case 28:
i8 = i172;
formatString = LocaleController.formatString("ChannelMessageRound", R.string.ChannelMessageRound, strArr[0]);
str9 = LocaleController.getString("AttachRound", R.string.AttachRound);
string = str8;
z9 = false;
String str13222222222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222222222;
if (formatString2 != null) {
}
break;
case 29:
i8 = i172;
formatString = LocaleController.formatString("ChannelMessageDocument", R.string.ChannelMessageDocument, strArr[0]);
str9 = LocaleController.getString("AttachDocument", R.string.AttachDocument);
string = str8;
z9 = false;
String str132222222222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222222222;
if (formatString2 != null) {
}
break;
case 30:
i8 = i172;
if (strArr.length > 1 && !TextUtils.isEmpty(strArr[1])) {
formatString = LocaleController.formatString("ChannelMessageStickerEmoji", R.string.ChannelMessageStickerEmoji, strArr[0], strArr[1]);
str9 = strArr[1] + " " + LocaleController.getString("AttachSticker", R.string.AttachSticker);
} else {
formatString = LocaleController.formatString("ChannelMessageSticker", R.string.ChannelMessageSticker, strArr[0]);
str9 = LocaleController.getString("AttachSticker", R.string.AttachSticker);
}
string = str8;
z9 = false;
String str1322222222222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222222222;
if (formatString2 != null) {
}
break;
case 31:
i8 = i172;
formatString = LocaleController.formatString("ChannelMessageAudio", R.string.ChannelMessageAudio, strArr[0]);
str9 = LocaleController.getString("AttachAudio", R.string.AttachAudio);
string = str8;
z9 = false;
String str13222222222222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222222222222;
if (formatString2 != null) {
}
break;
case ' ':
i8 = i172;
formatString = LocaleController.formatString("ChannelMessageContact2", R.string.ChannelMessageContact2, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachContact", R.string.AttachContact);
string = str8;
z9 = false;
String str132222222222222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222222222222;
if (formatString2 != null) {
}
break;
case '!':
i8 = i172;
formatString = LocaleController.formatString("ChannelMessagePoll2", R.string.ChannelMessagePoll2, strArr[0], strArr[1]);
str9 = LocaleController.getString("Poll", R.string.Poll);
string = str8;
z9 = false;
String str1322222222222222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222222222222;
if (formatString2 != null) {
}
break;
case '\"':
i8 = i172;
formatString = LocaleController.formatString("ChannelMessageMap", R.string.ChannelMessageMap, strArr[0]);
str9 = LocaleController.getString("AttachLocation", R.string.AttachLocation);
string = str8;
z9 = false;
String str13222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222222222222222;
if (formatString2 != null) {
}
break;
case '#':
i8 = i172;
formatString = LocaleController.formatString("ChannelMessageLiveLocation", R.string.ChannelMessageLiveLocation, strArr[0]);
str9 = LocaleController.getString("AttachLiveLocation", R.string.AttachLiveLocation);
string = str8;
z9 = false;
String str132222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222222222222222;
if (formatString2 != null) {
}
break;
case '$':
i8 = i172;
formatString = LocaleController.formatString("ChannelMessageGIF", R.string.ChannelMessageGIF, strArr[0]);
str9 = LocaleController.getString("AttachGif", R.string.AttachGif);
string = str8;
z9 = false;
String str1322222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222222222222222;
if (formatString2 != null) {
}
break;
case '%':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGame", R.string.NotificationMessageGame, strArr[0]);
str9 = LocaleController.getString("AttachGame", R.string.AttachGame);
string = str8;
z9 = false;
String str13222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '&':
i8 = i172;
formatString2 = LocaleController.formatString("ChannelMessageFew", R.string.ChannelMessageFew, strArr[0], LocaleController.formatPluralString("ForwardedMessageCount", Utilities.parseInt(strArr[1]).intValue()).toLowerCase());
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case '\'':
i8 = i172;
formatString2 = LocaleController.formatString("ChannelMessageFew", R.string.ChannelMessageFew, strArr[0], LocaleController.formatPluralString("Photos", Utilities.parseInt(strArr[1]).intValue()));
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case '(':
i8 = i172;
formatString2 = LocaleController.formatString("ChannelMessageFew", R.string.ChannelMessageFew, strArr[0], LocaleController.formatPluralString("Videos", Utilities.parseInt(strArr[1]).intValue()));
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case ')':
i8 = i172;
formatString2 = LocaleController.formatString("ChannelMessageAlbum", R.string.ChannelMessageAlbum, strArr[0]);
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case '*':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupText", R.string.NotificationMessageGroupText, strArr[0], strArr[1], strArr[2]);
str9 = strArr[2];
string = str8;
z9 = false;
String str132222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '+':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationMessageGroupNoText", R.string.NotificationMessageGroupNoText, strArr[0], strArr[1]);
string2 = LocaleController.getString("Message", R.string.Message);
string = str8;
z9 = false;
if (formatString2 != null) {
}
break;
case ',':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupPhoto", R.string.NotificationMessageGroupPhoto, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachPhoto", R.string.AttachPhoto);
string = str8;
z9 = false;
String str1322222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '-':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupVideo", R.string.NotificationMessageGroupVideo, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachVideo", R.string.AttachVideo);
string = str8;
z9 = false;
String str13222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '.':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupRound", R.string.NotificationMessageGroupRound, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachRound", R.string.AttachRound);
string = str8;
z9 = false;
String str132222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '/':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupDocument", R.string.NotificationMessageGroupDocument, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachDocument", R.string.AttachDocument);
string = str8;
z9 = false;
String str1322222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '0':
i8 = i172;
if (strArr.length > 2 && !TextUtils.isEmpty(strArr[2])) {
formatString = LocaleController.formatString("NotificationMessageGroupStickerEmoji", R.string.NotificationMessageGroupStickerEmoji, strArr[0], strArr[1], strArr[2]);
str9 = strArr[2] + " " + LocaleController.getString("AttachSticker", R.string.AttachSticker);
} else {
formatString = LocaleController.formatString("NotificationMessageGroupSticker", R.string.NotificationMessageGroupSticker, strArr[0], strArr[1]);
str9 = strArr[1] + " " + LocaleController.getString("AttachSticker", R.string.AttachSticker);
}
string = str8;
z9 = false;
String str13222222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '1':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupAudio", R.string.NotificationMessageGroupAudio, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachAudio", R.string.AttachAudio);
string = str8;
z9 = false;
String str132222222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '2':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupContact2", R.string.NotificationMessageGroupContact2, strArr[0], strArr[1], strArr[2]);
str9 = LocaleController.getString("AttachContact", R.string.AttachContact);
string = str8;
z9 = false;
String str1322222222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '3':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupPoll2", R.string.NotificationMessageGroupPoll2, strArr[0], strArr[1], strArr[2]);
str9 = LocaleController.getString("Poll", R.string.Poll);
string = str8;
z9 = false;
String str13222222222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '4':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupMap", R.string.NotificationMessageGroupMap, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachLocation", R.string.AttachLocation);
string = str8;
z9 = false;
String str132222222222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '5':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupLiveLocation", R.string.NotificationMessageGroupLiveLocation, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachLiveLocation", R.string.AttachLiveLocation);
string = str8;
z9 = false;
String str1322222222222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '6':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupGif", R.string.NotificationMessageGroupGif, strArr[0], strArr[1]);
str9 = LocaleController.getString("AttachGif", R.string.AttachGif);
string = str8;
z9 = false;
String str13222222222222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str13222222222222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '7':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupGame", R.string.NotificationMessageGroupGame, strArr[0], strArr[1], strArr[2]);
str9 = LocaleController.getString("AttachGame", R.string.AttachGame);
string = str8;
z9 = false;
String str132222222222222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str132222222222222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case '8':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationMessageGroupGameScored", R.string.NotificationMessageGroupGameScored, strArr[0], strArr[1], strArr[2], strArr[3]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case '9':
i8 = i172;
formatString = LocaleController.formatString("NotificationMessageGroupInvoice", R.string.NotificationMessageGroupInvoice, strArr[0], strArr[1], strArr[2]);
str9 = LocaleController.getString("PaymentInvoice", R.string.PaymentInvoice);
string = str8;
z9 = false;
String str1322222222222222222222222222222222222222222 = formatString;
string2 = str9;
formatString2 = str1322222222222222222222222222222222222222222;
if (formatString2 != null) {
}
break;
case ':':
case ';':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationInvitedToGroup", R.string.NotificationInvitedToGroup, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case '<':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationEditedGroupName", R.string.NotificationEditedGroupName, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case '=':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationEditedGroupPhoto", R.string.NotificationEditedGroupPhoto, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case '>':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupAddMember", R.string.NotificationGroupAddMember, strArr[0], strArr[1], strArr[2]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case '?':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupKickMember", R.string.NotificationGroupKickMember, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case '@':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupKickYou", R.string.NotificationGroupKickYou, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'A':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupLeftMember", R.string.NotificationGroupLeftMember, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'B':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupAddSelf", R.string.NotificationGroupAddSelf, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'C':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupAddSelfMega", R.string.NotificationGroupAddSelfMega, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'D':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupForwardedFew", R.string.NotificationGroupForwardedFew, strArr[0], strArr[1], LocaleController.formatPluralString("messages", Utilities.parseInt(strArr[2]).intValue()));
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case 'E':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, strArr[0], strArr[1], LocaleController.formatPluralString("Photos", Utilities.parseInt(strArr[2]).intValue()));
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case 'F':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, strArr[0], strArr[1], LocaleController.formatPluralString("Videos", Utilities.parseInt(strArr[2]).intValue()));
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case 'G':
i8 = i172;
formatString2 = LocaleController.formatString("NotificationGroupAlbum", R.string.NotificationGroupAlbum, strArr[0], strArr[1]);
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case 'H':
i8 = i172;
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedText", R.string.NotificationActionPinnedText, strArr[0], strArr[1], strArr[2]) : LocaleController.formatString("NotificationActionPinnedTextChannel", R.string.NotificationActionPinnedTextChannel, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'I':
i8 = i172;
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedNoText", R.string.NotificationActionPinnedNoText, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedNoTextChannel", R.string.NotificationActionPinnedNoTextChannel, strArr[0]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'J':
i8 = i172;
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedPhoto", R.string.NotificationActionPinnedPhoto, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedPhotoChannel", R.string.NotificationActionPinnedPhotoChannel, strArr[0]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'K':
i8 = i172;
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedVideo", R.string.NotificationActionPinnedVideo, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedVideoChannel", R.string.NotificationActionPinnedVideoChannel, strArr[0]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'L':
i8 = i172;
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedRound", R.string.NotificationActionPinnedRound, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedRoundChannel", R.string.NotificationActionPinnedRoundChannel, strArr[0]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'M':
i8 = i172;
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedFile", R.string.NotificationActionPinnedFile, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedFileChannel", R.string.NotificationActionPinnedFileChannel, strArr[0]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'N':
i8 = i172;
if (i15 != 0) {
formatString2 = (strArr.length <= 2 || TextUtils.isEmpty(strArr[2])) ? LocaleController.formatString("NotificationActionPinnedSticker", R.string.NotificationActionPinnedSticker, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedStickerEmoji", R.string.NotificationActionPinnedStickerEmoji, strArr[0], strArr[1], strArr[2]);
} else {
formatString2 = (strArr.length <= 1 || TextUtils.isEmpty(strArr[1])) ? LocaleController.formatString("NotificationActionPinnedStickerChannel", R.string.NotificationActionPinnedStickerChannel, strArr[0]) : LocaleController.formatString("NotificationActionPinnedStickerEmojiChannel", R.string.NotificationActionPinnedStickerEmojiChannel, strArr[0], strArr[1]);
}
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'O':
i8 = i172;
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedVoice", R.string.NotificationActionPinnedVoice, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedVoiceChannel", R.string.NotificationActionPinnedVoiceChannel, strArr[0]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'P':
i8 = i172;
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedContact2", R.string.NotificationActionPinnedContact2, strArr[0], strArr[1], strArr[2]) : LocaleController.formatString("NotificationActionPinnedContactChannel2", R.string.NotificationActionPinnedContactChannel2, strArr[0], strArr[1]);
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'Q':
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedPoll2", R.string.NotificationActionPinnedPoll2, strArr[0], strArr[1], strArr[2]) : LocaleController.formatString("NotificationActionPinnedPollChannel2", R.string.NotificationActionPinnedPollChannel2, strArr[0], strArr[1]);
i8 = i172;
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'R':
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedGeo", R.string.NotificationActionPinnedGeo, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedGeoChannel", R.string.NotificationActionPinnedGeoChannel, strArr[0]);
i8 = i172;
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'S':
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedGeoLive", R.string.NotificationActionPinnedGeoLive, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedGeoLiveChannel", R.string.NotificationActionPinnedGeoLiveChannel, strArr[0]);
i8 = i172;
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'T':
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedGame", R.string.NotificationActionPinnedGame, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedGameChannel", R.string.NotificationActionPinnedGameChannel, strArr[0]);
i8 = i172;
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'U':
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedGameScore", R.string.NotificationActionPinnedGameScore, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedGameScoreChannel", R.string.NotificationActionPinnedGameScoreChannel, strArr[0]);
i8 = i172;
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'V':
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedInvoice", R.string.NotificationActionPinnedInvoice, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedInvoiceChannel", R.string.NotificationActionPinnedInvoiceChannel, strArr[0]);
i8 = i172;
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'W':
formatString2 = i15 != 0 ? LocaleController.formatString("NotificationActionPinnedGif", R.string.NotificationActionPinnedGif, strArr[0], strArr[1]) : LocaleController.formatString("NotificationActionPinnedGifChannel", R.string.NotificationActionPinnedGifChannel, strArr[0]);
i8 = i172;
string = str8;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
case 'X':
formatString2 = LocaleController.getString("YouHaveNewMessage", R.string.YouHaveNewMessage);
str6 = LocaleController.getString("SecretChatName", R.string.SecretChatName);
i8 = i172;
string = str8;
z9 = true;
string2 = null;
if (formatString2 != null) {
}
break;
case 'Y':
case 'Z':
case '[':
case '\\':
case ']':
case '^':
case '_':
case '`':
case 'a':
i8 = i172;
string = str8;
formatString2 = null;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
break;
default:
i8 = i172;
try {
if (BuildVars.LOGS_ENABLED) {
try {
StringBuilder sb2 = new StringBuilder();
sb2.append("unhandled loc_key = ");
string = str8;
sb2.append(string);
FileLog.w(sb2.toString());
formatString2 = null;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
} catch (Throwable th17) {
th = th17;
string = str8;
i = -1;
gcmPushListenerService2 = this;
th = th;
str = string;
str2 = str3;
i2 = i6;
if (i2 == i) {
}
if (BuildVars.LOGS_ENABLED) {
}
FileLog.e(th);
}
}
string = str8;
formatString2 = null;
z9 = false;
string2 = null;
if (formatString2 != null) {
}
} catch (Throwable th18) {
th = th18;
r32 = this;
string = str8;
th = th;
str = string;
str2 = str3;
i2 = i6;
gcmPushListenerService5 = r32;
i = -1;
gcmPushListenerService2 = gcmPushListenerService5;
if (i2 == i) {
}
if (BuildVars.LOGS_ENABLED) {
}
FileLog.e(th);
}
break;
}
}
z7 = false;
z8 = false;
if (BuildVars.LOGS_ENABLED) {
}
switch (string.hashCode()) {
case -2100047043:
break;
case -2091498420:
break;
case -2053872415:
break;
case -2039746363:
break;
case -2023218804:
break;
case -1979538588:
break;
case -1979536003:
break;
case -1979535888:
break;
case -1969004705:
break;
case -1946699248:
break;
case -1528047021:
break;
case -1493579426:
break;
case -1482481933:
break;
case -1480102982:
break;
case -1478041834:
break;
case -1474543101:
break;
case -1465695932:
break;
case -1374906292:
break;
case -1372940586:
break;
case -1264245338:
break;
case -1236086700:
break;
case -1236077786:
break;
case -1235796237:
break;
case -1235686303:
break;
case -1198046100:
break;
case -1124254527:
break;
case -1085137927:
break;
case -1084856378:
break;
case -1084746444:
break;
case -819729482:
break;
case -772141857:
break;
case -638310039:
break;
case -590403924:
break;
case -589196239:
break;
case -589193654:
break;
case -589193539:
break;
case -440169325:
break;
case -412748110:
break;
case -228518075:
break;
case -213586509:
break;
case -115582002:
break;
case -112621464:
break;
case -108522133:
break;
case -107572034:
break;
case -40534265:
break;
case 65254746:
break;
case 141040782:
break;
case 309993049:
break;
case 309995634:
break;
case 309995749:
break;
case 320532812:
break;
case 328933854:
break;
case 331340546:
break;
case 344816990:
break;
case 346878138:
break;
case 350376871:
break;
case 615714517:
break;
case 715508879:
break;
case 728985323:
break;
case 731046471:
break;
case 734545204:
break;
case 802032552:
break;
case 991498806:
break;
case 1007364121:
break;
case 1019917311:
break;
case 1019926225:
break;
case 1020207774:
break;
case 1020317708:
break;
case 1060349560:
break;
case 1060358474:
break;
case 1060640023:
break;
case 1060749957:
break;
case 1073049781:
break;
case 1078101399:
break;
case 1110103437:
break;
case 1160762272:
break;
case 1172918249:
break;
case 1234591620:
break;
case 1281128640:
break;
case 1281131225:
break;
case 1281131340:
break;
case 1310789062:
break;
case 1333118583:
break;
case 1361447897:
break;
case 1498266155:
break;
case 1533804208:
break;
case 1547988151:
break;
case 1561464595:
break;
case 1563525743:
break;
case 1567024476:
break;
case 1810705077:
break;
case 1815177512:
break;
case 1963241394:
break;
case 2014789757:
break;
case 2022049433:
break;
case 2048733346:
break;
case 2099392181:
break;
case 2140162142:
break;
}
int i1722 = i14;
int i1822 = i5;
int i1922 = i3;
long j722 = r32;
boolean z1322 = z6;
boolean z1422 = z7;
long j822 = j5;
str8 = string;
switch (c3) {
}
}
}
switch (c3) {
}
} catch (Throwable th19) {
i = -1;
gcmPushListenerService2 = this;
th = th19;
str2 = str3;
i2 = i6;
str = str8;
}
if (jSONObject.has("loc_args")) {
}
String str122 = strArr[c2];
boolean has2 = jSONObject2.has("edit_date");
if (!string.startsWith("CHAT_")) {
}
z7 = false;
z8 = false;
if (BuildVars.LOGS_ENABLED) {
}
switch (string.hashCode()) {
case -2100047043:
break;
case -2091498420:
break;
case -2053872415:
break;
case -2039746363:
break;
case -2023218804:
break;
case -1979538588:
break;
case -1979536003:
break;
case -1979535888:
break;
case -1969004705:
break;
case -1946699248:
break;
case -1528047021:
break;
case -1493579426:
break;
case -1482481933:
break;
case -1480102982:
break;
case -1478041834:
break;
case -1474543101:
break;
case -1465695932:
break;
case -1374906292:
break;
case -1372940586:
break;
case -1264245338:
break;
case -1236086700:
break;
case -1236077786:
break;
case -1235796237:
break;
case -1235686303:
break;
case -1198046100:
break;
case -1124254527:
break;
case -1085137927:
break;
case -1084856378:
break;
case -1084746444:
break;
case -819729482:
break;
case -772141857:
break;
case -638310039:
break;
case -590403924:
break;
case -589196239:
break;
case -589193654:
break;
case -589193539:
break;
case -440169325:
break;
case -412748110:
break;
case -228518075:
break;
case -213586509:
break;
case -115582002:
break;
case -112621464:
break;
case -108522133:
break;
case -107572034:
break;
case -40534265:
break;
case 65254746:
break;
case 141040782:
break;
case 309993049:
break;
case 309995634:
break;
case 309995749:
break;
case 320532812:
break;
case 328933854:
break;
case 331340546:
break;
case 344816990:
break;
case 346878138:
break;
case 350376871:
break;
case 615714517:
break;
case 715508879:
break;
case 728985323:
break;
case 731046471:
break;
case 734545204:
break;
case 802032552:
break;
case 991498806:
break;
case 1007364121:
break;
case 1019917311:
break;
case 1019926225:
break;
case 1020207774:
break;
case 1020317708:
break;
case 1060349560:
break;
case 1060358474:
break;
case 1060640023:
break;
case 1060749957:
break;
case 1073049781:
break;
case 1078101399:
break;
case 1110103437:
break;
case 1160762272:
break;
case 1172918249:
break;
case 1234591620:
break;
case 1281128640:
break;
case 1281131225:
break;
case 1281131340:
break;
case 1310789062:
break;
case 1333118583:
break;
case 1361447897:
break;
case 1498266155:
break;
case 1533804208:
break;
case 1547988151:
break;
case 1561464595:
break;
case 1563525743:
break;
case 1567024476:
break;
case 1810705077:
break;
case 1815177512:
break;
case 1963241394:
break;
case 2014789757:
break;
case 2022049433:
break;
case 2048733346:
break;
case 2099392181:
break;
case 2140162142:
break;
}
int i17222 = i14;
int i18222 = i5;
int i19222 = i3;
long j7222 = r32;
boolean z13222 = z6;
boolean z14222 = z7;
long j8222 = j5;
str8 = string;
} catch (Throwable th20) {
th = th20;
r32 = this;
}
i6 = i2;
z3 = false;
} catch (Throwable th21) {
th = th21;
gcmPushListenerService7 = this;
th = th;
str = string;
str2 = str3;
gcmPushListenerService5 = gcmPushListenerService7;
i = -1;
gcmPushListenerService2 = gcmPushListenerService5;
if (i2 == i) {
}
if (BuildVars.LOGS_ENABLED) {
}
FileLog.e(th);
}
} else {
GcmPushListenerService gcmPushListenerService10 = this;
i6 = i2;
gcmPushListenerService10.countDownLatch.countDown();
r32 = gcmPushListenerService10;
}
ConnectionsManager.onInternalPushReceived(i6);
ConnectionsManager.getInstance(i6).resumeNetworkMaybe();
return;
} catch (Throwable th22) {
i = -1;
gcmPushListenerService2 = this;
th = th22;
str = string;
str2 = str3;
}
}
}
r32 = this;
str3 = str2;
i6 = i2;
ConnectionsManager.onInternalPushReceived(i6);
ConnectionsManager.getInstance(i6).resumeNetworkMaybe();
return;
} catch (Throwable th23) {
th = th23;
}
} catch (Throwable th24) {
gcmPushListenerService5 = this;
th = th24;
str = string;
}
} catch (Throwable th25) {
th = th25;
gcmPushListenerService7 = this;
str3 = str10;
}
}
th = th;
str = string;
str2 = str3;
gcmPushListenerService5 = gcmPushListenerService7;
i = -1;
gcmPushListenerService2 = gcmPushListenerService5;
if (i2 == i) {
ConnectionsManager.onInternalPushReceived(i2);
ConnectionsManager.getInstance(i2).resumeNetworkMaybe();
gcmPushListenerService2.countDownLatch.countDown();
} else {
onDecryptError();
}
if (BuildVars.LOGS_ENABLED) {
FileLog.e("error in loc_key = " + str + " json " + str2);
}
FileLog.e(th);
}
public static void lambda$null$1(int i) {
if (UserConfig.getInstance(i).getClientUserId() != 0) {
UserConfig.getInstance(i).clearConfig();
MessagesController.getInstance(i).performLogout(0);
}
}
private void onDecryptError() {
for (int i = 0; i < 3; i++) {
if (UserConfig.getInstance(i).isClientActivated()) {
ConnectionsManager.onInternalPushReceived(i);
ConnectionsManager.getInstance(i).resumeNetworkMaybe();
}
}
this.countDownLatch.countDown();
}
@Override
public void onNewToken(final String str) {
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public final void run() {
GcmPushListenerService.lambda$onNewToken$4(str);
}
});
}
public static void lambda$onNewToken$4(String str) {
if (BuildVars.LOGS_ENABLED) {
FileLog.d("Refreshed token: " + str);
}
ApplicationLoader.postInitApplication();
sendRegistrationToServer(str);
}
public static void sendRegistrationToServer(final String str) {
Utilities.stageQueue.postRunnable(new Runnable() {
@Override
public final void run() {
GcmPushListenerService.lambda$sendRegistrationToServer$6(str);
}
});
}
public static void lambda$sendRegistrationToServer$6(final String str) {
ConnectionsManager.setRegId(str, SharedConfig.pushStringStatus);
if (str == null) {
return;
}
SharedConfig.pushString = str;
for (final int i = 0; i < 3; i++) {
UserConfig userConfig = UserConfig.getInstance(i);
userConfig.registeredForPush = false;
userConfig.saveConfig(false);
if (userConfig.getClientUserId() != 0) {
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public final void run() {
MessagesController.getInstance(i).registerForPush(str);
}
});
}
}
}
public static void sendUPushRegistrationToServer(final String str) {
Utilities.stageQueue.postRunnable(new Runnable() {
@Override
public final void run() {
GcmPushListenerService.lambda$sendUPushRegistrationToServer$8(str);
}
});
}
public static void lambda$sendUPushRegistrationToServer$8(final String str) {
if (str == null) {
return;
}
for (final int i = 0; i < 3; i++) {
UserConfig userConfig = UserConfig.getInstance(i);
userConfig.registeredForPush = false;
if (userConfig.getClientUserId() != 0) {
Log.d("youmeng", "sendUPushRegistrationToServer = " + str);
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public final void run() {
MessagesController.getInstance(i).registerForUPush(str);
}
});
}
}
}
}