package com.tencent.mm.plugin.freewifi.model;

import android.content.BroadcastReceiver;

class b$1 extends BroadcastReceiver {
    final /* synthetic */ b mvD;

    b$1(b bVar) {
        this.mvD = bVar;
    }

    /* JADX WARNING: Unknown top exception splitter block from list: {B:39:0x0156=Splitter:B:39:0x0156, B:51:0x01b6=Splitter:B:51:0x01b6} */
    public final void onReceive(android.content.Context r10, android.content.Intent r11) {
        /*
        r9 = this;
        r8 = 1;
        r7 = 20688; // 0x50d0 float:2.899E-41 double:1.0221E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r7);
        r0 = r11.getAction();
        r1 = "android.net.conn.CONNECTIVITY_CHANGE";
        r0 = r0.equals(r1);
        if (r0 == 0) goto L_0x0274;
    L_0x0013:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "connChangedBroadcastReceiver";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);	 Catch:{ Exception -> 0x0250 }
        r0 = "networkInfo";
        r0 = r11.getParcelableExtra(r0);	 Catch:{ Exception -> 0x0250 }
        r0 = (android.net.NetworkInfo) r0;	 Catch:{ Exception -> 0x0250 }
        if (r0 != 0) goto L_0x0034;
    L_0x0027:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "networkInfo is null";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
    L_0x0033:
        return;
    L_0x0034:
        r1 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r2 = new java.lang.StringBuilder;	 Catch:{ Exception -> 0x0250 }
        r3 = "networkInfo=";
        r2.<init>(r3);	 Catch:{ Exception -> 0x0250 }
        r3 = r0.toString();	 Catch:{ Exception -> 0x0250 }
        r2 = r2.append(r3);	 Catch:{ Exception -> 0x0250 }
        r3 = "; networkInfo.isConnected()=%b, networkInfo.getState()=%s, networkInfo.getDetailedState()=%s, networkInfo.getExtraInfo()=%s, networkInfo.isConnectedOrConnecting()=%b, networkInfo.isAvailable()=%b, ";
        r2 = r2.append(r3);	 Catch:{ Exception -> 0x0250 }
        r2 = r2.toString();	 Catch:{ Exception -> 0x0250 }
        r3 = 6;
        r3 = new java.lang.Object[r3];	 Catch:{ Exception -> 0x0250 }
        r4 = 0;
        r5 = r0.isConnected();	 Catch:{ Exception -> 0x0250 }
        r5 = java.lang.Boolean.valueOf(r5);	 Catch:{ Exception -> 0x0250 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0250 }
        r4 = 1;
        r5 = r0.getState();	 Catch:{ Exception -> 0x0250 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0250 }
        r4 = 2;
        r5 = r0.getDetailedState();	 Catch:{ Exception -> 0x0250 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0250 }
        r4 = 3;
        r5 = r0.getExtraInfo();	 Catch:{ Exception -> 0x0250 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0250 }
        r4 = 4;
        r5 = r0.isConnectedOrConnecting();	 Catch:{ Exception -> 0x0250 }
        r5 = java.lang.Boolean.valueOf(r5);	 Catch:{ Exception -> 0x0250 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0250 }
        r4 = 5;
        r5 = r0.isAvailable();	 Catch:{ Exception -> 0x0250 }
        r5 = java.lang.Boolean.valueOf(r5);	 Catch:{ Exception -> 0x0250 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0250 }
        com.tencent.mm.sdk.platformtools.ab.v(r1, r2, r3);	 Catch:{ Exception -> 0x0250 }
        r1 = r0.isConnected();	 Catch:{ Exception -> 0x0250 }
        if (r1 != 0) goto L_0x00a1;
    L_0x0094:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "network is not connected.";
        com.tencent.mm.sdk.platformtools.ab.v(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x00a1:
        r1 = r0.getType();	 Catch:{ Exception -> 0x0250 }
        if (r1 == 0) goto L_0x00bb;
    L_0x00a7:
        r1 = r0.getType();	 Catch:{ Exception -> 0x0250 }
        if (r1 == r8) goto L_0x00bb;
    L_0x00ad:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "network type is not wifi or mobile.";
        com.tencent.mm.sdk.platformtools.ab.v(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x00bb:
        if (r10 != 0) goto L_0x00cb;
    L_0x00bd:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "context is null.";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x00cb:
        r1 = r0.getType();	 Catch:{ Exception -> 0x0250 }
        if (r1 != r8) goto L_0x0182;
    L_0x00d1:
        r1 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = com.tencent.mm.plugin.freewifi.m.Mx(r1);	 Catch:{ Exception -> 0x0250 }
        r1 = com.tencent.mm.plugin.freewifi.m.Mv(r1);	 Catch:{ Exception -> 0x0250 }
        r2 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r2 = com.tencent.mm.plugin.freewifi.m.My(r2);	 Catch:{ Exception -> 0x0250 }
        r2 = r2.toLowerCase();	 Catch:{ Exception -> 0x0250 }
        r0 = r0.getExtraInfo();	 Catch:{ Exception -> 0x0250 }
        r0 = com.tencent.mm.plugin.freewifi.m.Mw(r0);	 Catch:{ Exception -> 0x0250 }
        r0 = com.tencent.mm.plugin.freewifi.m.Mv(r0);	 Catch:{ Exception -> 0x0250 }
        r3 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r4 = "networkInfo.getExtraInfo()=%s, wifiInfo.getSsid()=%s, wifiInfo.getBssid=%s";
        r5 = 3;
        r5 = new java.lang.Object[r5];	 Catch:{ Exception -> 0x0250 }
        r6 = 0;
        r5[r6] = r0;	 Catch:{ Exception -> 0x0250 }
        r6 = 1;
        r5[r6] = r1;	 Catch:{ Exception -> 0x0250 }
        r6 = 2;
        r5[r6] = r2;	 Catch:{ Exception -> 0x0250 }
        com.tencent.mm.sdk.platformtools.ab.i(r3, r4, r5);	 Catch:{ Exception -> 0x0250 }
        r0 = com.tencent.mm.plugin.freewifi.m.Mw(r0);	 Catch:{ Exception -> 0x0250 }
        r0 = r0.equals(r1);	 Catch:{ Exception -> 0x0250 }
        if (r0 != 0) goto L_0x0120;
    L_0x0112:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "wifiManage ssid is not equal to networkInfo.getExtraInfo(). networkwork might changed. return.";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x0120:
        r0 = r9.mvD;	 Catch:{ Exception -> 0x0250 }
        r0 = r0.mvB;	 Catch:{ Exception -> 0x0250 }
        r0 = r0.type;	 Catch:{ Exception -> 0x0250 }
        if (r0 != r8) goto L_0x0156;
    L_0x0128:
        r0 = r9.mvD;	 Catch:{ Exception -> 0x0250 }
        r0 = r0.mvB;	 Catch:{ Exception -> 0x0250 }
        r0 = r0.ssid;	 Catch:{ Exception -> 0x0250 }
        r0 = com.tencent.mm.plugin.freewifi.m.Mw(r0);	 Catch:{ Exception -> 0x0250 }
        r0 = r0.equals(r1);	 Catch:{ Exception -> 0x0250 }
        if (r0 == 0) goto L_0x0156;
    L_0x0138:
        r0 = r9.mvD;	 Catch:{ Exception -> 0x0250 }
        r0 = r0.mvB;	 Catch:{ Exception -> 0x0250 }
        r0 = r0.bssid;	 Catch:{ Exception -> 0x0250 }
        r0 = com.tencent.mm.plugin.freewifi.m.Mw(r0);	 Catch:{ Exception -> 0x0250 }
        r0 = r0.equals(r2);	 Catch:{ Exception -> 0x0250 }
        if (r0 == 0) goto L_0x0156;
    L_0x0148:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "Dulplicated intent.";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x0156:
        r0 = new com.tencent.mm.plugin.freewifi.model.b$a;	 Catch:{ Exception -> 0x0250 }
        r3 = 0;
        r0.<init>(r3);	 Catch:{ Exception -> 0x0250 }
        r4 = java.lang.System.currentTimeMillis();	 Catch:{ Exception -> 0x0250 }
        r0.mvE = r4;	 Catch:{ Exception -> 0x0250 }
        r3 = 1;
        r0.type = r3;	 Catch:{ Exception -> 0x0250 }
        r0.ssid = r1;	 Catch:{ Exception -> 0x0250 }
        r0.bssid = r2;	 Catch:{ Exception -> 0x0250 }
        r1 = "";
        r0.mvF = r1;	 Catch:{ Exception -> 0x0250 }
        r1 = r9.mvD;	 Catch:{ Exception -> 0x0250 }
        r1 = r1.mvB;	 Catch:{ Exception -> 0x0250 }
        r1 = r1.byG();	 Catch:{ Exception -> 0x0250 }
        com.tencent.mm.plugin.freewifi.model.b.b(r1, r0);	 Catch:{ Exception -> 0x0250 }
        r1 = r9.mvD;	 Catch:{ Exception -> 0x0250 }
        r1.mvB = r0;	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x0182:
        r1 = r0.getType();	 Catch:{ Exception -> 0x0250 }
        if (r1 != 0) goto L_0x024b;
    L_0x0188:
        r1 = r9.mvD;	 Catch:{ Exception -> 0x0250 }
        r1 = r1.mvB;	 Catch:{ Exception -> 0x0250 }
        r1 = r1.type;	 Catch:{ Exception -> 0x0250 }
        if (r1 != 0) goto L_0x01b6;
    L_0x0190:
        r1 = r9.mvD;	 Catch:{ Exception -> 0x0250 }
        r1 = r1.mvB;	 Catch:{ Exception -> 0x0250 }
        r1 = r1.mvF;	 Catch:{ Exception -> 0x0250 }
        r1 = com.tencent.mm.plugin.freewifi.m.Mw(r1);	 Catch:{ Exception -> 0x0250 }
        r2 = r0.getExtraInfo();	 Catch:{ Exception -> 0x0250 }
        r2 = com.tencent.mm.plugin.freewifi.m.Mw(r2);	 Catch:{ Exception -> 0x0250 }
        r1 = r1.equals(r2);	 Catch:{ Exception -> 0x0250 }
        if (r1 == 0) goto L_0x01b6;
    L_0x01a8:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "Dulplicated intent.";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x01b6:
        r1 = "connectivity";
        r1 = r10.getSystemService(r1);	 Catch:{ Exception -> 0x0250 }
        r1 = (android.net.ConnectivityManager) r1;	 Catch:{ Exception -> 0x0250 }
        if (r1 != 0) goto L_0x01cf;
    L_0x01c1:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "connManager is null.";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x01cf:
        r2 = 1;
        r1 = r1.getNetworkInfo(r2);	 Catch:{ Exception -> 0x0250 }
        if (r1 != 0) goto L_0x01e4;
    L_0x01d6:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "networkInfoWifi is null.";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x01e4:
        r2 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r3 = "networkInfoWifi.getState()=%s, networkInfoWifi.getDetailedState()=%s";
        r4 = 2;
        r4 = new java.lang.Object[r4];	 Catch:{ Exception -> 0x0250 }
        r5 = 0;
        r6 = r1.getState();	 Catch:{ Exception -> 0x0250 }
        r4[r5] = r6;	 Catch:{ Exception -> 0x0250 }
        r5 = 1;
        r6 = r1.getDetailedState();	 Catch:{ Exception -> 0x0250 }
        r4[r5] = r6;	 Catch:{ Exception -> 0x0250 }
        com.tencent.mm.sdk.platformtools.ab.i(r2, r3, r4);	 Catch:{ Exception -> 0x0250 }
        r1 = r1.getDetailedState();	 Catch:{ Exception -> 0x0250 }
        r2 = android.net.NetworkInfo.DetailedState.DISCONNECTED;	 Catch:{ Exception -> 0x0250 }
        if (r1 == r2) goto L_0x0214;
    L_0x0206:
        r0 = "MicroMsg.FreeWifi.FreeWifiConnChangedManager";
        r1 = "It receives a type mobile connected event, but wifi network is not disconnected, so in fact user is probably switching wifi among ssids, not trying to connect to mobile network. ";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x0214:
        r1 = new com.tencent.mm.plugin.freewifi.model.b$a;	 Catch:{ Exception -> 0x0250 }
        r2 = 0;
        r1.<init>(r2);	 Catch:{ Exception -> 0x0250 }
        r2 = java.lang.System.currentTimeMillis();	 Catch:{ Exception -> 0x0250 }
        r1.mvE = r2;	 Catch:{ Exception -> 0x0250 }
        r2 = 0;
        r1.type = r2;	 Catch:{ Exception -> 0x0250 }
        r2 = "";
        r1.ssid = r2;	 Catch:{ Exception -> 0x0250 }
        r2 = "";
        r1.bssid = r2;	 Catch:{ Exception -> 0x0250 }
        r0 = r0.getExtraInfo();	 Catch:{ Exception -> 0x0250 }
        r0 = com.tencent.mm.plugin.freewifi.m.Mw(r0);	 Catch:{ Exception -> 0x0250 }
        r1.mvF = r0;	 Catch:{ Exception -> 0x0250 }
        r0 = r9.mvD;	 Catch:{ Exception -> 0x0250 }
        r0 = r0.mvB;	 Catch:{ Exception -> 0x0250 }
        r0 = r0.byG();	 Catch:{ Exception -> 0x0250 }
        com.tencent.mm.plugin.freewifi.model.b.a(r0, r1);	 Catch:{ Exception -> 0x0250 }
        r0 = r9.mvD;	 Catch:{ Exception -> 0x0250 }
        r0.mvB = r1;	 Catch:{ Exception -> 0x0250 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x024b:
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
    L_0x0250:
        r0 = move-exception;
        r1 = com.tencent.mm.plugin.freewifi.k.byo();
        r2 = "UnExpectedException";
        r1.cuH = r2;
        r2 = -1;
        r1.result = r2;
        r2 = com.tencent.mm.plugin.freewifi.m.g(r0);
        r1.ehr = r2;
        r1 = r1.byq();
        r1.byp();
        r1 = "MicroMsg.FreeWifi.UnExcepctedException";
        r0 = com.tencent.mm.plugin.freewifi.m.h(r0);
        com.tencent.mm.sdk.platformtools.ab.e(r1, r0);
    L_0x0274:
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        goto L_0x0033;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.freewifi.model.b$1.onReceive(android.content.Context, android.content.Intent):void");
    }
}
