package p138.p145.p146.p151.p160.p161;

import android.graphics.Bitmap;
import java.io.IOException;
import java.io.InputStream;
import p138.p145.p146.p151.C2848;
import p138.p145.p146.p151.InterfaceC2850;
import p138.p145.p146.p151.p154.InterfaceC2932;
import p138.p145.p146.p151.p154.p155.InterfaceC2940;
import p138.p145.p146.p151.p154.p155.InterfaceC2942;
import p138.p145.p146.p151.p160.p161.C3095;
import p138.p145.p146.p174.C3232;
import p138.p145.p146.p174.C3238;

/* JADX INFO: renamed from: ދ.ؠ.֏.ތ.ތ.ހ.ޕ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C3113 implements InterfaceC2850<InputStream, Bitmap> {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C3095 f9344;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final InterfaceC2940 f9345;

    /* JADX INFO: renamed from: ދ.ؠ.֏.ތ.ތ.ހ.ޕ$֏, reason: contains not printable characters */
    public static class C3114 implements C3095.InterfaceC3097 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final C3110 f9346;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final C3232 f9347;

        public C3114(C3110 c3110, C3232 c3232) {
            this.f9346 = c3110;
            this.f9347 = c3232;
        }

        @Override // p138.p145.p146.p151.p160.p161.C3095.InterfaceC3097
        /* JADX INFO: renamed from: ֏ */
        public void mo5182() {
            this.f9346.m5195();
        }

        @Override // p138.p145.p146.p151.p160.p161.C3095.InterfaceC3097
        /* JADX INFO: renamed from: ֏ */
        public void mo5183(InterfaceC2942 interfaceC2942, Bitmap bitmap) throws IOException {
            IOException iOException = this.f9347.f9577;
            if (iOException != null) {
                if (bitmap == null) {
                    throw iOException;
                }
                interfaceC2942.mo5088(bitmap);
                throw iOException;
            }
        }
    }

    public C3113(C3095 c3095, InterfaceC2940 interfaceC2940) {
        this.f9344 = c3095;
        this.f9345 = interfaceC2940;
    }

    @Override // p138.p145.p146.p151.InterfaceC2850
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC2932<Bitmap> mo4981(InputStream inputStream, int i, int i2, C2848 c2848) {
        C3110 c3110;
        boolean z;
        InputStream inputStream2 = inputStream;
        if (inputStream2 instanceof C3110) {
            c3110 = (C3110) inputStream2;
            z = false;
        } else {
            c3110 = new C3110(inputStream2, this.f9345);
            z = true;
        }
        C3232 c3232M5317 = C3232.m5317(c3110);
        try {
            return this.f9344.m5180(new C3238(c3232M5317), i, i2, c2848, new C3114(c3110, c3232M5317));
        } finally {
            c3232M5317.m5318();
            if (z) {
                c3110.m5196();
            }
        }
    }

    @Override // p138.p145.p146.p151.InterfaceC2850
    /* JADX INFO: renamed from: ֏ */
    public boolean mo4982(InputStream inputStream, C2848 c2848) {
        if (this.f9344 != null) {
            return true;
        }
        throw null;
    }
}
