package com.tencent.mm.plugin.traceroute.b;

import java.util.List;

class b$a implements Runnable {
    private List<Object> mFf;
    private String[] sIM;

    public b$a(String[] strArr, List<Object> list) {
        this.sIM = strArr;
        this.mFf = list;
    }

    /* JADX WARNING: Unknown top exception splitter block from list: {B:21:0x00a0=Splitter:B:21:0x00a0, B:26:0x00c1=Splitter:B:26:0x00c1, B:11:0x0048=Splitter:B:11:0x0048} */
    public final void run() {
        /*
        r12 = this;
        r4 = 0;
        r11 = 25985; // 0x6581 float:3.6413E-41 double:1.28383E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r11);
        r6 = new java.lang.StringBuilder;
        r6.<init>();
        r2 = new java.lang.ProcessBuilder;
        r0 = r12.sIM;
        r2.<init>(r0);
        r0 = 1;
        r2.redirectErrorStream(r0);
        r8 = com.tencent.mm.sdk.platformtools.bo.anU();
        r0 = com.tencent.mm.sdk.platformtools.bo.anU();
        r5 = r2.start();	 Catch:{ IOException -> 0x00f8, InterruptedException -> 0x009d, Exception -> 0x00be, all -> 0x00df }
        r2 = r5.getOutputStream();	 Catch:{ IOException -> 0x00fd, InterruptedException -> 0x00f3, Exception -> 0x00ee, all -> 0x00e9 }
        com.tencent.mm.sdk.platformtools.bo.b(r2);	 Catch:{ IOException -> 0x00fd, InterruptedException -> 0x00f3, Exception -> 0x00ee, all -> 0x00e9 }
        r0 = com.tencent.mm.sdk.platformtools.bo.anU();	 Catch:{ IOException -> 0x00fd, InterruptedException -> 0x00f3, Exception -> 0x00ee, all -> 0x00e9 }
        r3 = new java.io.BufferedReader;	 Catch:{ IOException -> 0x00fd, InterruptedException -> 0x00f3, Exception -> 0x00ee, all -> 0x00e9 }
        r2 = new java.io.InputStreamReader;	 Catch:{ IOException -> 0x00fd, InterruptedException -> 0x00f3, Exception -> 0x00ee, all -> 0x00e9 }
        r7 = r5.getInputStream();	 Catch:{ IOException -> 0x00fd, InterruptedException -> 0x00f3, Exception -> 0x00ee, all -> 0x00e9 }
        r2.<init>(r7);	 Catch:{ IOException -> 0x00fd, InterruptedException -> 0x00f3, Exception -> 0x00ee, all -> 0x00e9 }
        r7 = 8096; // 0x1fa0 float:1.1345E-41 double:4.0E-320;
        r3.<init>(r2, r7);	 Catch:{ IOException -> 0x00fd, InterruptedException -> 0x00f3, Exception -> 0x00ee, all -> 0x00e9 }
    L_0x003d:
        r2 = r3.readLine();	 Catch:{ IOException -> 0x0047, InterruptedException -> 0x00f6, Exception -> 0x00f1 }
        if (r2 == 0) goto L_0x0096;
    L_0x0043:
        r6.append(r2);	 Catch:{ IOException -> 0x0047, InterruptedException -> 0x00f6, Exception -> 0x00f1 }
        goto L_0x003d;
    L_0x0047:
        r2 = move-exception;
    L_0x0048:
        r4 = "MicroMsg.MMTraceRoute";
        r7 = new java.lang.StringBuilder;	 Catch:{ all -> 0x00ec }
        r10 = "run cmd err, io exception: ";
        r7.<init>(r10);	 Catch:{ all -> 0x00ec }
        r2 = r2.getMessage();	 Catch:{ all -> 0x00ec }
        r2 = r7.append(r2);	 Catch:{ all -> 0x00ec }
        r2 = r2.toString();	 Catch:{ all -> 0x00ec }
        com.tencent.mm.sdk.platformtools.ab.e(r4, r2);	 Catch:{ all -> 0x00ec }
        com.tencent.mm.plugin.traceroute.b.b.a(r5, r3);
    L_0x0065:
        r2 = r12.mFf;
        r3 = r6.toString();
        r2.add(r3);
        r2 = r12.mFf;
        r0 = r0 - r8;
        r0 = java.lang.Long.valueOf(r0);
        r2.add(r0);
        r0 = "MicroMsg.MMTraceRoute";
        r1 = new java.lang.StringBuilder;
        r2 = "stringbuilder: ";
        r1.<init>(r2);
        r2 = r6.toString();
        r1 = r1.append(r2);
        r1 = r1.toString();
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);
        com.tencent.matrix.trace.core.AppMethodBeat.o(r11);
        return;
    L_0x0096:
        r5.waitFor();	 Catch:{ IOException -> 0x0047, InterruptedException -> 0x00f6, Exception -> 0x00f1 }
        com.tencent.mm.plugin.traceroute.b.b.a(r5, r3);
        goto L_0x0065;
    L_0x009d:
        r2 = move-exception;
        r3 = r4;
        r5 = r4;
    L_0x00a0:
        r4 = "MicroMsg.MMTraceRoute";
        r7 = new java.lang.StringBuilder;	 Catch:{ all -> 0x00ec }
        r10 = "run cmd err, interruptedexception: ";
        r7.<init>(r10);	 Catch:{ all -> 0x00ec }
        r2 = r2.getMessage();	 Catch:{ all -> 0x00ec }
        r2 = r7.append(r2);	 Catch:{ all -> 0x00ec }
        r2 = r2.toString();	 Catch:{ all -> 0x00ec }
        com.tencent.mm.sdk.platformtools.ab.e(r4, r2);	 Catch:{ all -> 0x00ec }
        com.tencent.mm.plugin.traceroute.b.b.a(r5, r3);
        goto L_0x0065;
    L_0x00be:
        r2 = move-exception;
        r3 = r4;
        r5 = r4;
    L_0x00c1:
        r4 = "MicroMsg.MMTraceRoute";
        r7 = new java.lang.StringBuilder;	 Catch:{ all -> 0x00ec }
        r10 = "run cmd err: ";
        r7.<init>(r10);	 Catch:{ all -> 0x00ec }
        r2 = r2.getMessage();	 Catch:{ all -> 0x00ec }
        r2 = r7.append(r2);	 Catch:{ all -> 0x00ec }
        r2 = r2.toString();	 Catch:{ all -> 0x00ec }
        com.tencent.mm.sdk.platformtools.ab.e(r4, r2);	 Catch:{ all -> 0x00ec }
        com.tencent.mm.plugin.traceroute.b.b.a(r5, r3);
        goto L_0x0065;
    L_0x00df:
        r0 = move-exception;
        r3 = r4;
        r5 = r4;
    L_0x00e2:
        com.tencent.mm.plugin.traceroute.b.b.a(r5, r3);
        com.tencent.matrix.trace.core.AppMethodBeat.o(r11);
        throw r0;
    L_0x00e9:
        r0 = move-exception;
        r3 = r4;
        goto L_0x00e2;
    L_0x00ec:
        r0 = move-exception;
        goto L_0x00e2;
    L_0x00ee:
        r2 = move-exception;
        r3 = r4;
        goto L_0x00c1;
    L_0x00f1:
        r2 = move-exception;
        goto L_0x00c1;
    L_0x00f3:
        r2 = move-exception;
        r3 = r4;
        goto L_0x00a0;
    L_0x00f6:
        r2 = move-exception;
        goto L_0x00a0;
    L_0x00f8:
        r2 = move-exception;
        r3 = r4;
        r5 = r4;
        goto L_0x0048;
    L_0x00fd:
        r2 = move-exception;
        r3 = r4;
        goto L_0x0048;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.traceroute.b.b$a.run():void");
    }
}
