package defpackage;

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

/* renamed from: ᵾﹶᵝ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC5467 implements InterfaceC3731 {
    /* renamed from: ˏᵙ */
    public abstract Bitmap mo1351(InterfaceC2157 interfaceC2157, Bitmap bitmap, int i, int i2);

    @Override // defpackage.InterfaceC3731
    /* renamed from: ᵥᵯˎ */
    public final InterfaceC1725 mo5998(Context context, InterfaceC1725 interfaceC1725, 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");
        }
        InterfaceC2157 interfaceC2157 = ComponentCallbacks2C0017.m802(context).f998;
        Bitmap bitmap = (Bitmap) interfaceC1725.get();
        if (i == Integer.MIN_VALUE) {
            i = bitmap.getWidth();
        }
        if (i2 == Integer.MIN_VALUE) {
            i2 = bitmap.getHeight();
        }
        Bitmap bitmapMo1351 = mo1351(interfaceC2157, bitmap, i, i2);
        return bitmap.equals(bitmapMo1351) ? interfaceC1725 : C2017.m5545(interfaceC2157, bitmapMo1351);
    }
}
