package z7;

import A6.n;
import O6.r;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Paint;

/* JADX INFO: loaded from: classes.dex */
public final class g extends P6.h implements r {

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final /* synthetic */ int f19391r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ int f19392s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final /* synthetic */ byte[] f19393t;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public g(byte[] bArr, int i, int i5) {
        super(4);
        this.f19391r = i;
        this.f19392s = i5;
        this.f19393t = bArr;
    }

    @Override // O6.r
    public final Object g(Object obj, Object obj2, Object obj3, Object obj4) {
        c cVar = (c) obj;
        D7.a aVar = (D7.a) obj2;
        int iIntValue = ((Number) obj3).intValue();
        int iIntValue2 = ((Number) obj4).intValue();
        P6.g.e(cVar, "$this$null");
        P6.g.e(aVar, "canvas");
        int i = cVar.i;
        int i5 = ((i - this.f19391r) / 2) + iIntValue;
        int i8 = ((i - this.f19392s) / 2) + iIntValue2;
        byte[] bArr = this.f19393t;
        if (bArr != null && bArr.length != 0) {
            Bitmap bitmapDecodeByteArray = BitmapFactory.decodeByteArray(bArr, 0, bArr.length);
            P6.g.b(bitmapDecodeByteArray);
            aVar.f1924d.drawBitmap(bitmapDecodeByteArray, i5, i8, (Paint) null);
        }
        return n.f457a;
    }
}
