package com.tencent.mm.plugin.backup.backuppcmodel;

import com.tencent.mm.plugin.backup.g.b.d;

class c$4 implements d {
    final /* synthetic */ c jwk;

    c$4(c cVar) {
        this.jwk = cVar;
    }

    public final void a(boolean r10, int r11, byte[] r12, int r13) {
        /*
        r9 = this;
        r0 = 17502; // 0x445e float:2.4526E-41 double:8.647E-320;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r0);
        r1 = "MicroMsg.BackupPcProcessMgr";
        r2 = "onBackupPcProcessMgrNotify isLocal[%b], type[%d], seq[%d], buf[%d]";
        r0 = 4;
        r3 = new java.lang.Object[r0];
        r0 = 0;
        r4 = java.lang.Boolean.valueOf(r10);
        r3[r0] = r4;
        r0 = 1;
        r4 = java.lang.Integer.valueOf(r11);
        r3[r0] = r4;
        r0 = 2;
        r4 = java.lang.Integer.valueOf(r13);
        r3[r0] = r4;
        r4 = 3;
        if (r12 != 0) goto L_0x005e;
    L_0x0026:
        r0 = -1;
    L_0x0027:
        r0 = java.lang.Integer.valueOf(r0);
        r3[r4] = r0;
        com.tencent.mm.sdk.platformtools.ab.i(r1, r2, r3);
        if (r10 == 0) goto L_0x00bf;
    L_0x0032:
        if (r12 == 0) goto L_0x00bf;
    L_0x0034:
        r0 = 10011; // 0x271b float:1.4028E-41 double:4.946E-320;
        if (r0 != r11) goto L_0x0058;
    L_0x0038:
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();
        r0 = r0.aSu();
        r0 = r0.jqW;
        r1 = "MicroMsg.BackupPcProcessMgr";
        r2 = "onBackupPcProcessMgrNotify local disconnect, backupPcState[%d]";
        r3 = 1;
        r3 = new java.lang.Object[r3];
        r4 = 0;
        r5 = java.lang.Integer.valueOf(r0);
        r3[r4] = r5;
        com.tencent.mm.sdk.platformtools.ab.i(r1, r2, r3);
        switch(r0) {
            case -100: goto L_0x00b3;
            case -21: goto L_0x00b3;
            case -5: goto L_0x00b3;
            case 1: goto L_0x0060;
            default: goto L_0x0058;
        };
    L_0x0058:
        r0 = 17502; // 0x445e float:2.4526E-41 double:8.647E-320;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
    L_0x005d:
        return;
    L_0x005e:
        r0 = r12.length;
        goto L_0x0027;
    L_0x0060:
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.c.access$200();
        if (r0 != 0) goto L_0x008b;
    L_0x0066:
        r0 = r9.jwk;
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.c.c(r0);
        if (r0 == 0) goto L_0x0080;
    L_0x006e:
        r0 = "MicroMsg.BackupPcProcessMgr";
        r1 = "onBackupPcProcessMgrNotify stop backupConnectTimerHandler.";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);
        r0 = r9.jwk;
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.c.c(r0);
        r0.stopTimer();
    L_0x0080:
        r0 = r9.jwk;
        com.tencent.mm.plugin.backup.backuppcmodel.c.d(r0);
        r0 = 17502; // 0x445e float:2.4526E-41 double:8.647E-320;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
        goto L_0x005d;
    L_0x008b:
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();
        r0 = r0.aTa();
        r0.stop();
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();
        r0 = r0.aSu();
        r1 = -4;
        r0.jqW = r1;
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();
        r0 = r0.aTF();
        r1 = -4;
        r0.ru(r1);
        r0 = 17502; // 0x445e float:2.4526E-41 double:8.647E-320;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
        goto L_0x005d;
    L_0x00b3:
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();
        r0 = r0.aTa();
        r0.stop();
        goto L_0x0058;
    L_0x00bf:
        r0 = 17;
        if (r11 != r0) goto L_0x00e5;
    L_0x00c3:
        r0 = new com.tencent.mm.plugin.backup.i.b;
        r0.<init>();
        r0.parseFrom(r12);	 Catch:{ Exception -> 0x0153 }
        r1 = "MicroMsg.BackupPcProcessMgr";
        r2 = "onBackupPcProcessMgrNotify receive commandReq, command[%d]";
        r3 = 1;
        r3 = new java.lang.Object[r3];	 Catch:{ Exception -> 0x0153 }
        r4 = 0;
        r5 = r0.jBh;	 Catch:{ Exception -> 0x0153 }
        r5 = java.lang.Integer.valueOf(r5);	 Catch:{ Exception -> 0x0153 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0153 }
        com.tencent.mm.sdk.platformtools.ab.i(r1, r2, r3);	 Catch:{ Exception -> 0x0153 }
        r0 = r0.jBh;	 Catch:{ Exception -> 0x0153 }
        switch(r0) {
            case 1: goto L_0x014c;
            case 2: goto L_0x00e5;
            case 3: goto L_0x021b;
            case 4: goto L_0x00e5;
            case 5: goto L_0x0161;
            case 6: goto L_0x00e5;
            case 7: goto L_0x0223;
            default: goto L_0x00e5;
        };
    L_0x00e5:
        r0 = 5;
        if (r11 != r0) goto L_0x02a6;
    L_0x00e8:
        r0 = "MicroMsg.BackupPcProcessMgr";
        r1 = "onBackupPcProcessMgrNotify receive cancelReq";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);
        r0 = com.tencent.mm.plugin.report.service.h.pYm;
        r1 = 13737; // 0x35a9 float:1.925E-41 double:6.787E-320;
        r2 = 5;
        r2 = new java.lang.Object[r2];
        r3 = 0;
        r4 = 5;
        r4 = java.lang.Integer.valueOf(r4);
        r2[r3] = r4;
        r3 = 1;
        r4 = 0;
        r4 = java.lang.Integer.valueOf(r4);
        r2[r3] = r4;
        r3 = 2;
        r4 = 0;
        r4 = java.lang.Integer.valueOf(r4);
        r2[r3] = r4;
        r3 = 3;
        r4 = 0;
        r4 = java.lang.Integer.valueOf(r4);
        r2[r3] = r4;
        r3 = 4;
        r4 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();
        r4 = r4.aTE();
        r4 = r4.jwg;
        r4 = java.lang.Integer.valueOf(r4);
        r2[r3] = r4;
        r0.e(r1, r2);
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();
        r0 = r0.aSu();
        r1 = -100;
        r0.jqW = r1;
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();
        r0 = r0.aTF();
        r1 = -100;
        r0.ru(r1);
        r0 = 17502; // 0x445e float:2.4526E-41 double:8.647E-320;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
        goto L_0x005d;
    L_0x014c:
        r0 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r1 = 1;
        com.tencent.mm.plugin.backup.backuppcmodel.c.a(r0, r1, r13);	 Catch:{ Exception -> 0x0153 }
        goto L_0x00e5;
    L_0x0153:
        r0 = move-exception;
        r1 = "MicroMsg.BackupPcProcessMgr";
        r2 = "onBackupPcProcessMgrNotify buf to BackupCommandRequest error.";
        r3 = 0;
        r3 = new java.lang.Object[r3];
        com.tencent.mm.sdk.platformtools.ab.printErrStackTrace(r1, r0, r2, r3);
        goto L_0x00e5;
    L_0x0161:
        com.tencent.mm.model.aw.ZK();	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.model.c.Ry();	 Catch:{ Exception -> 0x0153 }
        r1 = com.tencent.mm.storage.ac.a.xPB;	 Catch:{ Exception -> 0x0153 }
        r2 = java.lang.Boolean.FALSE;	 Catch:{ Exception -> 0x0153 }
        r0 = r0.get(r1, r2);	 Catch:{ Exception -> 0x0153 }
        r0 = (java.lang.Boolean) r0;	 Catch:{ Exception -> 0x0153 }
        r0 = r0.booleanValue();	 Catch:{ Exception -> 0x0153 }
        if (r0 != 0) goto L_0x0189;
    L_0x0178:
        r0 = "MicroMsg.BackupPcProcessMgr";
        r1 = "onBackupPcProcessMgrNotify not backuping, start new backup.";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);	 Catch:{ Exception -> 0x0153 }
        r0 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r1 = 5;
        com.tencent.mm.plugin.backup.backuppcmodel.c.a(r0, r1, r13);	 Catch:{ Exception -> 0x0153 }
        goto L_0x00e5;
    L_0x0189:
        com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aSz();	 Catch:{ Exception -> 0x0153 }
        r1 = "BACKUP_PC_CHOOSE_SESSION";
        r2 = 0;
        r0 = r0.getString(r1, r2);	 Catch:{ Exception -> 0x0153 }
        if (r0 != 0) goto L_0x01ab;
    L_0x019a:
        r0 = "MicroMsg.BackupPcProcessMgr";
        r1 = "onBackupPcProcessMgrNotify sessionString is null, start new backup.";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);	 Catch:{ Exception -> 0x0153 }
        r0 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r1 = 5;
        com.tencent.mm.plugin.backup.backuppcmodel.c.a(r0, r1, r13);	 Catch:{ Exception -> 0x0153 }
        goto L_0x00e5;
    L_0x01ab:
        r1 = "MicroMsg.BackupPcProcessMgr";
        r2 = "onBackupPcProcessMgrNotify start continue Backup.";
        com.tencent.mm.sdk.platformtools.ab.i(r1, r2);	 Catch:{ Exception -> 0x0153 }
        r1 = com.tencent.mm.plugin.report.service.h.pYm;	 Catch:{ Exception -> 0x0153 }
        r2 = 400; // 0x190 float:5.6E-43 double:1.976E-321;
        r4 = 29;
        r6 = 1;
        r8 = 0;
        r1.a(r2, r4, r6, r8);	 Catch:{ Exception -> 0x0153 }
        r1 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r2 = 3;
        r1.jwa = r2;	 Catch:{ Exception -> 0x0153 }
        r1 = new java.util.LinkedList;	 Catch:{ Exception -> 0x0153 }
        r2 = ",";
        r0 = com.tencent.mm.plugin.backup.b.g.cX(r0, r2);	 Catch:{ Exception -> 0x0153 }
        r0 = java.util.Arrays.asList(r0);	 Catch:{ Exception -> 0x0153 }
        r1.<init>(r0);	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();	 Catch:{ Exception -> 0x0153 }
        r0 = r0.aTF();	 Catch:{ Exception -> 0x0153 }
        r0.init();	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();	 Catch:{ Exception -> 0x0153 }
        r0 = r0.aTF();	 Catch:{ Exception -> 0x0153 }
        r0.G(r1);	 Catch:{ Exception -> 0x0153 }
        r0 = 5;
        com.tencent.mm.plugin.backup.backuppcmodel.c.dA(r0, r13);	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();	 Catch:{ Exception -> 0x0153 }
        r0 = r0.aTF();	 Catch:{ Exception -> 0x0153 }
        r0.aSs();	 Catch:{ Exception -> 0x0153 }
        r0 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r1 = 6;
        r0.rs(r1);	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();	 Catch:{ Exception -> 0x0153 }
        r0 = r0.aTF();	 Catch:{ Exception -> 0x0153 }
        r1 = com.tencent.mm.plugin.backup.h.d.aUr();	 Catch:{ Exception -> 0x0153 }
        r1.aUu();	 Catch:{ Exception -> 0x0153 }
        r1 = r0.jtQ;	 Catch:{ Exception -> 0x0153 }
        r1 = r1.size();	 Catch:{ Exception -> 0x0153 }
        r2 = (long) r1;	 Catch:{ Exception -> 0x0153 }
        r0.gx(r2);	 Catch:{ Exception -> 0x0153 }
        goto L_0x00e5;
    L_0x021b:
        r0 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r1 = 3;
        com.tencent.mm.plugin.backup.backuppcmodel.c.b(r0, r1, r13);	 Catch:{ Exception -> 0x0153 }
        goto L_0x00e5;
    L_0x0223:
        com.tencent.mm.model.aw.ZK();	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.model.c.Ry();	 Catch:{ Exception -> 0x0153 }
        r1 = com.tencent.mm.storage.ac.a.xPC;	 Catch:{ Exception -> 0x0153 }
        r2 = java.lang.Boolean.FALSE;	 Catch:{ Exception -> 0x0153 }
        r0 = r0.get(r1, r2);	 Catch:{ Exception -> 0x0153 }
        r0 = (java.lang.Boolean) r0;	 Catch:{ Exception -> 0x0153 }
        r0 = r0.booleanValue();	 Catch:{ Exception -> 0x0153 }
        if (r0 != 0) goto L_0x024b;
    L_0x023a:
        r0 = "MicroMsg.BackupPcProcessMgr";
        r1 = "onBackupPcProcessMgrNotify not recovering, start new recover.";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);	 Catch:{ Exception -> 0x0153 }
        r0 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r1 = 7;
        com.tencent.mm.plugin.backup.backuppcmodel.c.b(r0, r1, r13);	 Catch:{ Exception -> 0x0153 }
        goto L_0x00e5;
    L_0x024b:
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();	 Catch:{ Exception -> 0x0153 }
        r0.aTG();	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.d.aTe();	 Catch:{ Exception -> 0x0153 }
        if (r0 != 0) goto L_0x0269;
    L_0x0258:
        r0 = "MicroMsg.BackupPcProcessMgr";
        r1 = "onBackupPcProcessMgrNotify MsgDataIdList not exist, start new recover.";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);	 Catch:{ Exception -> 0x0153 }
        r0 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r1 = 7;
        com.tencent.mm.plugin.backup.backuppcmodel.c.b(r0, r1, r13);	 Catch:{ Exception -> 0x0153 }
        goto L_0x00e5;
    L_0x0269:
        r0 = "MicroMsg.BackupPcProcessMgr";
        r1 = "onBackupPcProcessMgrNotify continue Recover.";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);	 Catch:{ Exception -> 0x0153 }
        r1 = com.tencent.mm.plugin.report.service.h.pYm;	 Catch:{ Exception -> 0x0153 }
        r2 = 400; // 0x190 float:5.6E-43 double:1.976E-321;
        r4 = 30;
        r6 = 1;
        r8 = 0;
        r1.a(r2, r4, r6, r8);	 Catch:{ Exception -> 0x0153 }
        r0 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r1 = 4;
        r0.jwa = r1;	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();	 Catch:{ Exception -> 0x0153 }
        r0 = r0.aTG();	 Catch:{ Exception -> 0x0153 }
        r0.init();	 Catch:{ Exception -> 0x0153 }
        r0 = 7;
        com.tencent.mm.plugin.backup.backuppcmodel.c.dA(r0, r13);	 Catch:{ Exception -> 0x0153 }
        r0 = com.tencent.mm.plugin.backup.backuppcmodel.b.aTD();	 Catch:{ Exception -> 0x0153 }
        r0 = r0.aTF();	 Catch:{ Exception -> 0x0153 }
        r0.aSs();	 Catch:{ Exception -> 0x0153 }
        r0 = r9.jwk;	 Catch:{ Exception -> 0x0153 }
        r1 = 8;
        r0.rs(r1);	 Catch:{ Exception -> 0x0153 }
        goto L_0x00e5;
    L_0x02a6:
        r0 = 17502; // 0x445e float:2.4526E-41 double:8.647E-320;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
        goto L_0x005d;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.backup.backuppcmodel.c$4.a(boolean, int, byte[], int):void");
    }
}
