package ඓ.ⁱ.K.㸾;

import android.util.Log;
import org.json.JSONObject;
import ඓ.ⁱ.K.ʬ.AbstractC1231;
import ඓ.ⁱ.K.ʬ.AbstractC1242;
import ඓ.ⁱ.K.ʬ.C1241;
import ඓ.ⁱ.K.ʬ.C1243;
import ඓ.ⁱ.K.ʬ.C1248;
import ῲ.ᨨ.㳳.C1841;

/* renamed from: ඓ.ⁱ.K.㸾.㸾  reason: contains not printable characters */
/* compiled from: FormUploader */
public final class C1280 implements AbstractC1242 {

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

    /* renamed from: ඓ  reason: contains not printable characters */
    public final /* synthetic */ C1276 f4992;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public final /* synthetic */ AbstractC1231 f4993;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final /* synthetic */ AbstractC1278 f4994;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public final /* synthetic */ C1243 f4995;

    /* renamed from: K  reason: contains not printable characters */
    public final /* synthetic */ C1269 f4996;

    /* renamed from: 㴹  reason: contains not printable characters */
    public final /* synthetic */ String f4997;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final /* synthetic */ C1272 f4998;

    /* renamed from: 㿎  reason: contains not printable characters */
    public final /* synthetic */ C1241 f4999;

    /* renamed from: ඓ.ⁱ.K.㸾.㸾$K  reason: contains not printable characters */
    /* compiled from: FormUploader */
    public class C1281 implements AbstractC1242 {

        /* renamed from: K  reason: contains not printable characters */
        public final /* synthetic */ String f5001;

        /* renamed from: ඓ.ⁱ.K.㸾.㸾$K$K  reason: contains not printable characters */
        /* compiled from: FormUploader */
        public class C1282 implements AbstractC1242 {

            /* renamed from: K  reason: contains not printable characters */
            public final /* synthetic */ String f5003;

            public C1282(String str) {
                this.f5003 = str;
            }

            @Override // ඓ.ⁱ.K.ʬ.AbstractC1242
            /* renamed from: K  reason: contains not printable characters */
            public void m3388(C1248 r5, JSONObject jSONObject) {
                if (r5.m3322()) {
                    C1280 r0 = C1280.this;
                    ((C1266) r0.f4996.f4964).m3375(r0.f4991, 1.0d);
                } else if (r5.m3325()) {
                    C1280.this.f4998.f4971.m3366(this.f5003);
                }
                C1280 r02 = C1280.this;
                r02.f4994.m3385(r02.f4991, r5, jSONObject);
            }
        }

        public C1281(String str) {
            this.f5001 = str;
        }

        @Override // ඓ.ⁱ.K.ʬ.AbstractC1242
        /* renamed from: K  reason: contains not printable characters */
        public void m3387(C1248 r10, JSONObject jSONObject) {
            if (r10.m3322()) {
                C1280 r0 = C1280.this;
                ((C1266) r0.f4996.f4964).m3375(r0.f4991, 1.0d);
                C1280 r02 = C1280.this;
                r02.f4994.m3385(r02.f4991, r10, jSONObject);
            } else if (r10.m3325()) {
                C1280 r102 = C1280.this;
                C1272 r11 = r102.f4998;
                String r3 = r11.f4971.m3364(r102.f4992.f4990, r11.f4975, this.f5001);
                Log.d("Qiniu.FormUploader", "retry upload second time use up host " + r3);
                C1282 k = new C1282(r3);
                C1280 r103 = C1280.this;
                r103.f4995.m3313(r3, r103.f4999, r103.f4992, r103.f4993, k, r103.f4996.f4968);
            } else {
                C1280 r03 = C1280.this;
                r03.f4994.m3385(r03.f4991, r10, jSONObject);
            }
        }
    }

    public C1280(C1269 r1, AbstractC1278 r2, String str, C1272 r4, C1276 r5, String str2, C1243 r7, C1241 r8, AbstractC1231 r9) {
        this.f4996 = r1;
        this.f4994 = r2;
        this.f4991 = str;
        this.f4998 = r4;
        this.f4992 = r5;
        this.f4997 = str2;
        this.f4995 = r7;
        this.f4999 = r8;
        this.f4993 = r9;
    }

    @Override // ඓ.ⁱ.K.ʬ.AbstractC1242
    /* renamed from: K  reason: contains not printable characters */
    public void m3386(C1248 r10, JSONObject jSONObject) {
        if (r10.m3323() && !C1841.m4747()) {
            ((C1267) this.f4996.f4965).m3376();
            if (!C1841.m4747()) {
                this.f4994.m3385(this.f4991, r10, jSONObject);
                return;
            }
        }
        if (r10.m3322()) {
            ((C1266) this.f4996.f4964).m3375(this.f4991, 1.0d);
            this.f4994.m3385(this.f4991, r10, jSONObject);
        } else if (r10.m3325()) {
            C1272 r102 = this.f4998;
            String r3 = r102.f4971.m3364(this.f4992.f4990, r102.f4975, this.f4997);
            Log.d("Qiniu.FormUploader", "retry upload first time use up host " + r3);
            this.f4995.m3313(r3, this.f4999, this.f4992, this.f4993, new C1281(r3), this.f4996.f4968);
        } else {
            this.f4994.m3385(this.f4991, r10, jSONObject);
        }
    }
}
