package p0;

import android.graphics.Matrix;
import android.graphics.Path;
import android.graphics.RectF;
import o0.C2632c;

/* JADX INFO: renamed from: p0.h, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2702h implements Q {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Path f22920a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public RectF f22921b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public float[] f22922c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public Matrix f22923d;

    public C2702h(Path path) {
        this.f22920a = path;
    }

    public final void d(C2702h c2702h, long j4) {
        if (c2702h == null) {
            throw new UnsupportedOperationException("Unable to obtain android.graphics.Path");
        }
        this.f22920a.addPath(c2702h.f22920a, Float.intBitsToFloat((int) (j4 >> 32)), Float.intBitsToFloat((int) (j4 & 4294967295L)));
    }

    public final C2632c e() {
        if (this.f22921b == null) {
            this.f22921b = new RectF();
        }
        RectF rectF = this.f22921b;
        kotlin.jvm.internal.o.e(rectF);
        this.f22920a.computeBounds(rectF, true);
        return new C2632c(rectF.left, rectF.top, rectF.right, rectF.bottom);
    }

    public final void f(float f6, float f7) {
        this.f22920a.lineTo(f6, f7);
    }

    public final boolean g(Q q6, Q q7, int i6) {
        Path.Op op = i6 == 0 ? Path.Op.DIFFERENCE : i6 == 1 ? Path.Op.INTERSECT : i6 == 4 ? Path.Op.REVERSE_DIFFERENCE : i6 == 2 ? Path.Op.UNION : Path.Op.XOR;
        if (!(q6 instanceof C2702h)) {
            throw new UnsupportedOperationException("Unable to obtain android.graphics.Path");
        }
        Path path = ((C2702h) q6).f22920a;
        if (q7 instanceof C2702h) {
            return this.f22920a.op(path, ((C2702h) q7).f22920a, op);
        }
        throw new UnsupportedOperationException("Unable to obtain android.graphics.Path");
    }

    public final void h() {
        this.f22920a.reset();
    }

    public final void i(long j4) {
        Matrix matrix = this.f22923d;
        if (matrix == null) {
            this.f22923d = new Matrix();
        } else {
            kotlin.jvm.internal.o.e(matrix);
            matrix.reset();
        }
        Matrix matrix2 = this.f22923d;
        kotlin.jvm.internal.o.e(matrix2);
        matrix2.setTranslate(Float.intBitsToFloat((int) (j4 >> 32)), Float.intBitsToFloat((int) (j4 & 4294967295L)));
        Matrix matrix3 = this.f22923d;
        kotlin.jvm.internal.o.e(matrix3);
        this.f22920a.transform(matrix3);
    }
}
