package ඓ.ⁱ.K.ʬ;

import com.appsflyer.share.Constants;
import com.facebook.internal.security.CertificateUtil;
import java.util.Locale;
import org.json.JSONObject;
import ඓ.ⁱ.K.ඓ.C1252;
import ඓ.ⁱ.K.K.C1260;
import ඓ.ⁱ.K.㸾.C1276;

/* renamed from: ඓ.ⁱ.K.ʬ.䁗  reason: contains not printable characters */
/* compiled from: ResponseInfo */
public final class C1248 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final String f4897;

    /* renamed from: Ԕ  reason: contains not printable characters */
    public final C1276 f4898;

    /* renamed from: ඓ  reason: contains not printable characters */
    public final String f4899;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public final String f4900 = C1229.f4859.f4861;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public final int f4901;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final String f4902;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public final String f4903;

    /* renamed from: K  reason: contains not printable characters */
    public final int f4904;

    /* renamed from: 㑃  reason: contains not printable characters */
    public final long f4905 = (System.currentTimeMillis() / 1000);

    /* renamed from: 㗗  reason: contains not printable characters */
    public final JSONObject f4906;

    /* renamed from: 㳳  reason: contains not printable characters */
    public final String f4907;

    /* renamed from: 㴹  reason: contains not printable characters */
    public final long f4908;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final String f4909;

    /* renamed from: 㿎  reason: contains not printable characters */
    public final String f4910;

    /* renamed from: 䁗  reason: contains not printable characters */
    public final long f4911;

    /* renamed from: ඓ.ⁱ.K.ʬ.䁗$K  reason: contains not printable characters */
    /* compiled from: ResponseInfo */
    public static class C1249 extends C1260.AbstractC1261 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public final /* synthetic */ String f4912;

        /* renamed from: ඓ  reason: contains not printable characters */
        public final /* synthetic */ int f4913;

        /* renamed from: ᨨ  reason: contains not printable characters */
        public final /* synthetic */ String f4914;

        /* renamed from: ῲ  reason: contains not printable characters */
        public final /* synthetic */ String f4915;

        /* renamed from: ⁱ  reason: contains not printable characters */
        public final /* synthetic */ String f4916;

        /* renamed from: K  reason: contains not printable characters */
        public final /* synthetic */ int f4917;

        /* renamed from: 㳳  reason: contains not printable characters */
        public final /* synthetic */ long f4918;

        /* renamed from: 㴹  reason: contains not printable characters */
        public final /* synthetic */ long f4919;

        /* renamed from: 㸾  reason: contains not printable characters */
        public final /* synthetic */ String f4920;

        /* renamed from: 㿎  reason: contains not printable characters */
        public final /* synthetic */ long f4921;

        public C1249(int i, String str, String str2, String str3, int i2, long j, String str4, long j2, String str5, long j3) {
            this.f4917 = i;
            this.f4915 = str;
            this.f4912 = str2;
            this.f4920 = str3;
            this.f4913 = i2;
            this.f4919 = j;
            this.f4916 = str4;
            this.f4921 = j2;
            this.f4914 = str5;
            this.f4918 = j3;
        }

        /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */
        /* JADX WARNING: Code restructure failed: missing block: B:12:0x00a2, code lost:
            if (r1.equals("mkblk") != false) goto L_0x00be;
         */
        @Override // ඓ.ⁱ.K.K.C1260.AbstractC1261
        /* renamed from: K  reason: contains not printable characters */
        public String m3326() {
            String str;
            String[] strArr = new String[10];
            char c = 0;
            strArr[0] = this.f4917 + "";
            strArr[1] = this.f4915;
            strArr[2] = this.f4912;
            strArr[3] = this.f4920;
            strArr[4] = this.f4913 + "";
            strArr[5] = this.f4919 + "";
            strArr[6] = this.f4916;
            strArr[7] = this.f4921 + "";
            String str2 = this.f4914;
            if (str2 != null && str2.startsWith(Constants.URL_PATH_DELIMITER)) {
                if (Constants.URL_PATH_DELIMITER.equals(str2)) {
                    str = "form";
                } else {
                    int indexOf = str2.indexOf(47, 1);
                    if (indexOf >= 1) {
                        String substring = str2.substring(1, indexOf);
                        switch (substring.hashCode()) {
                            case -1072430054:
                                if (substring.equals("mkfile")) {
                                    c = 2;
                                    break;
                                }
                                c = 65535;
                                break;
                            case 111375:
                                if (substring.equals("put")) {
                                    c = 3;
                                    break;
                                }
                                c = 65535;
                                break;
                            case 3030893:
                                if (substring.equals("bput")) {
                                    c = 1;
                                    break;
                                }
                                c = 65535;
                                break;
                            case 103949059:
                                break;
                            default:
                                c = 65535;
                                break;
                        }
                        if (c == 0) {
                            str = "mkblk";
                        } else if (c == 1) {
                            str = "bput";
                        } else if (c == 2) {
                            str = "mkfile";
                        } else if (c == 3) {
                            str = "put";
                        }
                    }
                }
                strArr[8] = str;
                strArr[9] = this.f4918 + "";
                return C1252.m3344(strArr, ",");
            }
            str = "";
            strArr[8] = str;
            strArr[9] = this.f4918 + "";
            return C1252.m3344(strArr, ",");
        }
    }

    public C1248(JSONObject jSONObject, int i, String str, String str2, String str3, String str4, String str5, String str6, int i2, long j, long j2, String str7, C1276 r20, long j3) {
        this.f4906 = jSONObject;
        this.f4904 = i;
        this.f4902 = str;
        this.f4897 = str2;
        this.f4909 = str3;
        this.f4903 = str4;
        this.f4907 = str5;
        this.f4908 = j;
        this.f4899 = str7;
        this.f4910 = str6;
        this.f4901 = i2;
        this.f4911 = j2;
        this.f4898 = r20;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1248 m3321(JSONObject jSONObject, int i, String str, String str2, String str3, String str4, String str5, String str6, int i2, long j, long j2, String str7, C1276 r48, long j3) {
        String str8 = (str6 + "").split(CertificateUtil.DELIMITER)[0];
        String substring = str8.substring(Math.max(0, str8.indexOf(Constants.URL_PATH_DELIMITER) + 1));
        C1248 r0 = new C1248(jSONObject, i, str, str2, str3, str4, str5, substring, i2, j, j2, str7, r48, j3);
        C1249 k = new C1249(i, str, str4, substring, i2, j, r0.f4905 + "", j2, str5, j3);
        try {
            if (C1260.f4951 == null) {
                C1260.f4951 = new C1260("_qiniu_record_file_hs5z9lo7anx03", "https://uplog.qbox.me/log/3");
            }
            C1260.f4951.m3373(r48, k);
        } catch (Throwable unused) {
        }
        return r0;
    }

    public String toString() {
        return String.format(Locale.ENGLISH, "{ver:%s,ResponseInfo:%s,status:%d, reqId:%s, xlog:%s, xvia:%s, host:%s, path:%s, ip:%s, port:%d, duration:%d s, time:%d, sent:%d,error:%s}", "7.3.15", this.f4900, Integer.valueOf(this.f4904), this.f4902, this.f4897, this.f4909, this.f4903, this.f4907, this.f4910, Integer.valueOf(this.f4901), Long.valueOf(this.f4908), Long.valueOf(this.f4905), Long.valueOf(this.f4911), this.f4899);
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public boolean m3322() {
        return this.f4904 == 200 && this.f4899 == null && (m3324() || this.f4906 != null);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public boolean m3323() {
        int i = this.f4904;
        return i == -1 || i == -1003 || i == -1004 || i == -1001 || i == -1005;
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public boolean m3325() {
        boolean z;
        int i;
        if (this.f4904 == -2) {
            return false;
        }
        if (!m3323()) {
            int i2 = this.f4904;
            if (!((i2 >= 500 && i2 < 600 && i2 != 579) || this.f4904 == 996)) {
                z = false;
                if (!z && (i = this.f4904) != 406 && (i != 200 || this.f4899 == null)) {
                    int i3 = this.f4904;
                    if ((i3 >= 500 && i3 >= 200 && !m3324() && this.f4906 == null) || (!this.f4898.f4988.equals(""))) {
                    }
                }
                return true;
            }
        }
        z = true;
        int i32 = this.f4904;
        return i32 >= 500 && i32 >= 200 && !m3324() && this.f4906 == null ? false : false;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1248 m3320(String str) {
        return m3321(null, -5, "", "", "", "", "", "", 80, 0, 0, str, null, 0);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1248 m3319(Exception exc, C1276 r18) {
        return m3321(null, -3, "", "", "", "", "", "", 80, 0, 0, exc.getMessage(), r18, 0);
    }

    /* renamed from: K  reason: contains not printable characters */
    public boolean m3324() {
        return this.f4902 != null;
    }
}
