package u9;

import android.view.View;
import com.bumptech.glide.h;
import com.google.android.material.sidesheet.SideSheetBehavior;
import tv.danmaku.ijk.media.player.IjkEventListener;

/* JADX INFO: loaded from: classes2.dex */
public final class a extends h {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final SideSheetBehavior f33378b;

    public /* synthetic */ a(SideSheetBehavior sideSheetBehavior, int i10) {
        this.f33377a = i10;
        this.f33378b = sideSheetBehavior;
    }

    public final float E(int i10) {
        switch (this.f33377a) {
            case 0:
                float fG = G();
                return (i10 - fG) / (F() - fG);
            default:
                float fG2 = G();
                return (fG2 - i10) / (fG2 - F());
        }
    }

    public final int F() {
        int i10 = this.f33377a;
        SideSheetBehavior sideSheetBehavior = this.f33378b;
        switch (i10) {
            case 0:
                return Math.max(0, sideSheetBehavior.f23196k + sideSheetBehavior.f23197l);
            default:
                return Math.max(0, (G() - sideSheetBehavior.f23194i) - sideSheetBehavior.f23197l);
        }
    }

    public final int G() {
        int i10 = this.f33377a;
        SideSheetBehavior sideSheetBehavior = this.f33378b;
        switch (i10) {
            case 0:
                return (-sideSheetBehavior.f23194i) - sideSheetBehavior.f23197l;
            default:
                return sideSheetBehavior.f23195j;
        }
    }

    public final boolean H(float f10) {
        switch (this.f33377a) {
            case 0:
                if (f10 > 0.0f) {
                }
                break;
            default:
                if (f10 < 0.0f) {
                }
                break;
        }
        return true;
    }

    public final boolean I(View view) {
        switch (this.f33377a) {
            case 0:
                if (view.getRight() < (F() - G()) / 2) {
                }
                break;
            default:
                if (view.getLeft() > (F() + G()) / 2) {
                }
                break;
        }
        return true;
    }

    public final boolean J(float f10, float f11) {
        int i10 = this.f33377a;
        SideSheetBehavior sideSheetBehavior = this.f33378b;
        switch (i10) {
            case 0:
                if (Math.abs(f10) > Math.abs(f11)) {
                    float fAbs = Math.abs(f10);
                    sideSheetBehavior.getClass();
                    if (fAbs > IjkEventListener.BUFFERING_START) {
                    }
                }
                break;
            default:
                if (Math.abs(f10) > Math.abs(f11)) {
                    float fAbs2 = Math.abs(f10);
                    sideSheetBehavior.getClass();
                    if (fAbs2 > IjkEventListener.BUFFERING_START) {
                    }
                }
                break;
        }
        return true;
    }

    public final boolean K(float f10, View view) {
        int i10 = this.f33377a;
        SideSheetBehavior sideSheetBehavior = this.f33378b;
        switch (i10) {
            case 0:
                if (Math.abs((f10 * sideSheetBehavior.f23193h) + view.getLeft()) > 0.5f) {
                }
                break;
            default:
                if (Math.abs((f10 * sideSheetBehavior.f23193h) + view.getRight()) > 0.5f) {
                }
                break;
        }
        return true;
    }
}
