package defpackage;

import android.content.Context;
import android.graphics.Bitmap;
import com.bumptech.glide.ComponentCallbacks2C0017;

/* JADX INFO: renamed from: ٴי, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public abstract class AbstractC2179 implements InterfaceC0214 {
    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public abstract Bitmap mo5689(InterfaceC5397 interfaceC5397, Bitmap bitmap, int i, int i2);

    @Override // defpackage.InterfaceC0214
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final InterfaceC1364 mo1380(Context context, InterfaceC1364 interfaceC1364, int i, int i2) {
        if (!ᵱˉˈ.ˌᵨʠᵫ(i, i2)) {
            throw new IllegalArgumentException("Cannot apply transformation on width: " + i + " or height: " + i2 + " less than or equal to zero and not Target.SIZE_ORIGINAL");
        }
        InterfaceC5397 interfaceC5397 = ComponentCallbacks2C0017.m801(context).f999;
        Bitmap bitmap = (Bitmap) interfaceC1364.get();
        if (i == Integer.MIN_VALUE) {
            i = bitmap.getWidth();
        }
        if (i2 == Integer.MIN_VALUE) {
            i2 = bitmap.getHeight();
        }
        Bitmap bitmapMo5689 = mo5689(interfaceC5397, bitmap, i, i2);
        return bitmap.equals(bitmapMo5689) ? interfaceC1364 : C4278.m9259(interfaceC5397, bitmapMo5689);
    }
}
