package com.flurry.android;

import android.os.AsyncTask;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
public final class j extends AsyncTask<Void, Object, Object> {
    private /* synthetic */ be a;

    /* JADX INFO: Access modifiers changed from: package-private */
    public j(be beVar) {
        this.a = beVar;
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* JADX WARN: Removed duplicated region for block: B:12:0x0036 A[Catch: Throwable -> 0x0056, TRY_LEAVE, TryCatch #2 {Throwable -> 0x0056, blocks: (B:10:0x002e, B:12:0x0036), top: B:33:0x002e }] */
    @Override // android.os.AsyncTask
    /* renamed from: a */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct code enable 'Show inconsistent code' option in preferences
    */
    public java.lang.Object doInBackground(java.lang.Void... r5) {
        /*
            r4 = this;
            com.flurry.android.be r0 = r4.a
            java.io.File r0 = com.flurry.android.be.a(r0)
            boolean r0 = r0.exists()
            if (r0 == 0) goto L42
            r2 = 0
            java.io.FileInputStream r0 = new java.io.FileInputStream     // Catch: java.lang.Throwable -> L43
            com.flurry.android.be r1 = r4.a     // Catch: java.lang.Throwable -> L43
            java.io.File r1 = com.flurry.android.be.a(r1)     // Catch: java.lang.Throwable -> L43
            r0.<init>(r1)     // Catch: java.lang.Throwable -> L43
            java.io.DataInputStream r1 = new java.io.DataInputStream     // Catch: java.lang.Throwable -> L43
            r1.<init>(r0)     // Catch: java.lang.Throwable -> L43
            int r0 = r1.readUnsignedShort()     // Catch: java.lang.Throwable -> L61
            r2 = 46586(0xb5fa, float:6.5281E-41)
            if (r0 != r2) goto L2b
            com.flurry.android.be r0 = r4.a     // Catch: java.lang.Throwable -> L61
            r0.a(r1)     // Catch: java.lang.Throwable -> L61
        L2b:
            com.flurry.android.y.a(r1)
        L2e:
            com.flurry.android.be r0 = r4.a     // Catch: java.lang.Throwable -> L56
            boolean r0 = com.flurry.android.be.b(r0)     // Catch: java.lang.Throwable -> L56
            if (r0 != 0) goto L42
            com.flurry.android.be r0 = r4.a     // Catch: java.lang.Throwable -> L56
            java.io.File r0 = com.flurry.android.be.a(r0)     // Catch: java.lang.Throwable -> L56
            boolean r0 = r0.delete()     // Catch: java.lang.Throwable -> L56
            if (r0 != 0) goto L42
        L42:
            return r5
        L43:
            r0 = move-exception
            r1 = r2
        L45:
            java.lang.String r2 = com.flurry.android.be.a     // Catch: java.lang.Throwable -> L5f
            java.lang.String r3 = "Error when loading persistent file"
            com.flurry.android.bc.b(r2, r3, r0)     // Catch: java.lang.Throwable -> L5f
            com.flurry.android.y.a(r1)
            goto L2e
        L50:
            r0 = move-exception
            r1 = r2
        L52:
            com.flurry.android.y.a(r1)
            throw r0
        L56:
            r0 = move-exception
            java.lang.String r1 = com.flurry.android.be.a
            java.lang.String r2 = ""
            com.flurry.android.bc.b(r1, r2, r0)
            goto L42
        L5f:
            r0 = move-exception
            goto L52
        L61:
            r0 = move-exception
            goto L45
        */
        throw new UnsupportedOperationException("Method not decompiled: com.flurry.android.j.doInBackground(java.lang.Void[]):java.lang.Object");
    }
}
