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

import android.content.Context;
import android.graphics.Bitmap;
import p138.p145.p146.ComponentCallbacks2C2806;
import p138.p145.p146.p151.InterfaceC2852;
import p138.p145.p146.p151.p154.InterfaceC2932;
import p138.p145.p146.p151.p154.p155.InterfaceC2942;
import p138.p145.p146.p174.C3240;

/* JADX INFO: renamed from: ދ.ؠ.֏.ތ.ތ.ހ.ރ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC3084 implements InterfaceC2852<Bitmap> {
    /* JADX INFO: renamed from: ֏ */
    public abstract Bitmap mo2525(InterfaceC2942 interfaceC2942, Bitmap bitmap, int i, int i2);

    @Override // p138.p145.p146.p151.InterfaceC2852
    /* JADX INFO: renamed from: ֏ */
    public final InterfaceC2932<Bitmap> mo4984(Context context, InterfaceC2932<Bitmap> interfaceC2932, int i, int i2) {
        if (!C3240.m5336(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");
        }
        InterfaceC2942 interfaceC2942 = ComponentCallbacks2C2806.m4903(context).f8634;
        Bitmap bitmap = interfaceC2932.get();
        if (i == Integer.MIN_VALUE) {
            i = bitmap.getWidth();
        }
        if (i2 == Integer.MIN_VALUE) {
            i2 = bitmap.getHeight();
        }
        Bitmap bitmapMo2525 = mo2525(interfaceC2942, bitmap, i, i2);
        return bitmap.equals(bitmapMo2525) ? interfaceC2932 : C3083.m5166(bitmapMo2525, interfaceC2942);
    }
}
