package com.facebook;

import X.M12;
import X.M3N;
import X.M3O;
import X.M3R;
import X.M3S;
import X.M5M;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import java.net.HttpURLConnection;
import org.json.JSONObject;

public final class FacebookRequestError implements Parcelable {
    public static final Parcelable.Creator<FacebookRequestError> CREATOR = new M3R();
    public static final M3N LIZ = new M3N((byte) 0);
    public static final M3S LJIILJJIL = new M3S();
    public final int LIZIZ;
    public final int LIZJ;
    public final int LIZLLL;
    public final String LJ;
    public final String LJFF;
    public final String LJI;
    public final JSONObject LJII;
    public final JSONObject LJIIIIZZ;
    public final Object LJIIIZ;
    public final HttpURLConnection LJIIJ;
    public M5M LJIIJJI;
    public final M3O LJIIL;
    public final String LJIILIIL;
    public final String LJIILL;

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public /* synthetic */ FacebookRequestError(int r15, int r16, int r17, java.lang.String r18, java.lang.String r19, java.lang.String r20, java.lang.String r21, org.json.JSONObject r22, org.json.JSONObject r23, java.lang.Object r24, java.net.HttpURLConnection r25, boolean r26) {
        /*
            r14 = this;
            r12 = 0
            r0 = r14
            r6 = r20
            r5 = r19
            r4 = r18
            r3 = r17
            r1 = r15
            r2 = r16
            r11 = r25
            r13 = r26
            r10 = r24
            r9 = r23
            r8 = r22
            r7 = r21
            r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.facebook.FacebookRequestError.<init>(int, int, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, org.json.JSONObject, org.json.JSONObject, java.lang.Object, java.net.HttpURLConnection, boolean):void");
    }

    public /* synthetic */ FacebookRequestError(Parcel parcel, byte b) {
        this(parcel);
    }

    public final int describeContents() {
        return 0;
    }

    public final String LIZ() {
        String str = this.LJIILL;
        if (str != null) {
            return str;
        }
        M5M m5m = this.LJIIJJI;
        if (m5m == null) {
            return null;
        }
        return m5m.getLocalizedMessage();
    }

    static {
        Covode.recordClassIndex(40803);
    }

    public final String toString() {
        String str = "{HttpStatus: " + this.LIZIZ + ", errorCode: " + this.LIZJ + ", subErrorCode: " + this.LIZLLL + ", errorType: " + this.LJ + ", errorMessage: " + LIZ() + "}";
        M12.LIZ((Object) str);
        return str;
    }

    public FacebookRequestError(Parcel parcel) {
        this(parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), (JSONObject) null, (JSONObject) null, (Object) null, (HttpURLConnection) null, (M5M) null, false);
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ((Object) parcel);
        parcel.writeInt(this.LIZIZ);
        parcel.writeInt(this.LIZJ);
        parcel.writeInt(this.LIZLLL);
        parcel.writeString(this.LJ);
        parcel.writeString(LIZ());
        parcel.writeString(this.LJFF);
        parcel.writeString(this.LJI);
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public FacebookRequestError(java.net.HttpURLConnection r15, java.lang.Exception r16) {
        /*
            r14 = this;
            r12 = r16
            boolean r0 = r12 instanceof X.M5M
            if (r0 == 0) goto L_0x0019
            X.M5M r12 = (X.M5M) r12
        L_0x0008:
            r13 = 0
            r1 = -1
            r2 = -1
            r3 = -1
            r4 = 0
            r5 = 0
            r6 = 0
            r7 = 0
            r8 = 0
            r9 = 0
            r10 = 0
            r0 = r14
            r11 = r15
            r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13)
            return
        L_0x0019:
            X.M5M r0 = new X.M5M
            r0.<init>((java.lang.Throwable) r12)
            r12 = r0
            goto L_0x0008
        */
        throw new UnsupportedOperationException("Method not decompiled: com.facebook.FacebookRequestError.<init>(java.net.HttpURLConnection, java.lang.Exception):void");
    }

    public FacebookRequestError(int i, String str, String str2) {
        this(-1, i, -1, str, str2, (String) null, (String) null, (JSONObject) null, (JSONObject) null, (Object) null, (HttpURLConnection) null, (M5M) null, false);
    }

    /* JADX WARNING: Removed duplicated region for block: B:9:0x0033  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public FacebookRequestError(int r6, int r7, int r8, java.lang.String r9, java.lang.String r10, java.lang.String r11, java.lang.String r12, org.json.JSONObject r13, org.json.JSONObject r14, java.lang.Object r15, java.net.HttpURLConnection r16, X.M5M r17, boolean r18) {
        /*
            r5 = this;
            r5.<init>()
            r5.LIZIZ = r6
            r5.LIZJ = r7
            r5.LIZLLL = r8
            r5.LJ = r9
            r5.LJFF = r11
            r5.LJI = r12
            r5.LJII = r13
            r5.LJIIIIZZ = r14
            r5.LJIIIZ = r15
            r0 = r16
            r5.LJIIJ = r0
            r5.LJIILL = r10
            r2 = 1
            r0 = r17
            if (r0 == 0) goto L_0x004d
            r5.LJIIJJI = r0
            r0 = 1
        L_0x0023:
            X.M3O r4 = X.M3O.OTHER
        L_0x0025:
            r5.LJIIL = r4
            X.M3N r0 = LIZ
            X.3Tr r3 = r0.LIZ()
            if (r4 != 0) goto L_0x0033
        L_0x002f:
            r0 = 0
        L_0x0030:
            r5.LJIILIIL = r0
            return
        L_0x0033:
            int[] r1 = X.M3Q.LIZ
            int r0 = r4.ordinal()
            r1 = r1[r0]
            if (r1 == r2) goto L_0x004a
            r0 = 2
            if (r1 == r0) goto L_0x0047
            r0 = 3
            if (r1 == r0) goto L_0x0044
            goto L_0x002f
        L_0x0044:
            java.lang.String r0 = r3.LJFF
            goto L_0x0030
        L_0x0047:
            java.lang.String r0 = r3.LJI
            goto L_0x0030
        L_0x004a:
            java.lang.String r0 = r3.LJ
            goto L_0x0030
        L_0x004d:
            X.M1c r1 = new X.M1c
            java.lang.String r0 = r5.LIZ()
            r1.<init>(r5, r0)
            r5.LJIIJJI = r1
            r0 = 0
            X.M3N r0 = LIZ
            X.3Tr r3 = r0.LIZ()
            if (r18 == 0) goto L_0x0064
            X.M3O r4 = X.M3O.TRANSIENT
            goto L_0x0025
        L_0x0064:
            java.util.Map r0 = r3.LIZIZ
            if (r0 == 0) goto L_0x008f
            java.util.Map r1 = r3.LIZIZ
            java.lang.Integer r0 = java.lang.Integer.valueOf(r7)
            boolean r0 = r1.containsKey(r0)
            if (r0 == 0) goto L_0x008f
            java.util.Map r1 = r3.LIZIZ
            java.lang.Integer r0 = java.lang.Integer.valueOf(r7)
            java.lang.Object r1 = r1.get(r0)
            java.util.Set r1 = (java.util.Set) r1
            if (r1 == 0) goto L_0x008c
            java.lang.Integer r0 = java.lang.Integer.valueOf(r8)
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x008f
        L_0x008c:
            X.M3O r4 = X.M3O.OTHER
            goto L_0x0025
        L_0x008f:
            java.util.Map r0 = r3.LIZLLL
            if (r0 == 0) goto L_0x00bb
            java.util.Map r1 = r3.LIZLLL
            java.lang.Integer r0 = java.lang.Integer.valueOf(r7)
            boolean r0 = r1.containsKey(r0)
            if (r0 == 0) goto L_0x00bb
            java.util.Map r1 = r3.LIZLLL
            java.lang.Integer r0 = java.lang.Integer.valueOf(r7)
            java.lang.Object r1 = r1.get(r0)
            java.util.Set r1 = (java.util.Set) r1
            if (r1 == 0) goto L_0x00b7
            java.lang.Integer r0 = java.lang.Integer.valueOf(r8)
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x00bb
        L_0x00b7:
            X.M3O r4 = X.M3O.LOGIN_RECOVERABLE
            goto L_0x0025
        L_0x00bb:
            java.util.Map r0 = r3.LIZJ
            if (r0 == 0) goto L_0x0023
            java.util.Map r1 = r3.LIZJ
            java.lang.Integer r0 = java.lang.Integer.valueOf(r7)
            boolean r0 = r1.containsKey(r0)
            if (r0 == 0) goto L_0x0023
            java.util.Map r1 = r3.LIZJ
            java.lang.Integer r0 = java.lang.Integer.valueOf(r7)
            java.lang.Object r1 = r1.get(r0)
            java.util.Set r1 = (java.util.Set) r1
            if (r1 == 0) goto L_0x00e3
            java.lang.Integer r0 = java.lang.Integer.valueOf(r8)
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x0023
        L_0x00e3:
            X.M3O r4 = X.M3O.TRANSIENT
            goto L_0x0025
        */
        throw new UnsupportedOperationException("Method not decompiled: com.facebook.FacebookRequestError.<init>(int, int, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, org.json.JSONObject, org.json.JSONObject, java.lang.Object, java.net.HttpURLConnection, X.M5M, boolean):void");
    }
}
