content: package androidx.core.graphics;
  
  import android.graphics.BlendMode;
  import android.graphics.PorterDuff;
  import androidx.constraintlayout.widget.ConstraintLayout;
  
  class BlendModeUtils {
  
      /* renamed from: androidx.core.graphics.BlendModeUtils$1  reason: invalid class name */
      static /* synthetic */ class AnonymousClass1 {
          static final /* synthetic */ int[] $SwitchMap$androidx$core$graphics$BlendModeCompat;
  
          static {
              int[] iArr = new int[BlendModeCompat.values().length];
              $SwitchMap$androidx$core$graphics$BlendModeCompat = iArr;
              try {
                  iArr[BlendModeCompat.CLEAR.ordinal()] = 1;
              } catch (NoSuchFieldError e) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.SRC.ordinal()] = 2;
              } catch (NoSuchFieldError e2) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.DST.ordinal()] = 3;
              } catch (NoSuchFieldError e3) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.SRC_OVER.ordinal()] = 4;
              } catch (NoSuchFieldError e4) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.DST_OVER.ordinal()] = 5;
              } catch (NoSuchFieldError e5) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.SRC_IN.ordinal()] = 6;
              } catch (NoSuchFieldError e6) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.DST_IN.ordinal()] = 7;
              } catch (NoSuchFieldError e7) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.SRC_OUT.ordinal()] = 8;
              } catch (NoSuchFieldError e8) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.DST_OUT.ordinal()] = 9;
              } catch (NoSuchFieldError e9) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.SRC_ATOP.ordinal()] = 10;
              } catch (NoSuchFieldError e10) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.DST_ATOP.ordinal()] = 11;
              } catch (NoSuchFieldError e11) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.XOR.ordinal()] = 12;
              } catch (NoSuchFieldError e12) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.PLUS.ordinal()] = 13;
              } catch (NoSuchFieldError e13) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.MODULATE.ordinal()] = 14;
              } catch (NoSuchFieldError e14) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.SCREEN.ordinal()] = 15;
              } catch (NoSuchFieldError e15) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.OVERLAY.ordinal()] = 16;
              } catch (NoSuchFieldError e16) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.DARKEN.ordinal()] = 17;
              } catch (NoSuchFieldError e17) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.LIGHTEN.ordinal()] = 18;
              } catch (NoSuchFieldError e18) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.COLOR_DODGE.ordinal()] = 19;
              } catch (NoSuchFieldError e19) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.COLOR_BURN.ordinal()] = 20;
              } catch (NoSuchFieldError e20) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.HARD_LIGHT.ordinal()] = 21;
              } catch (NoSuchFieldError e21) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.SOFT_LIGHT.ordinal()] = 22;
              } catch (NoSuchFieldError e22) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.DIFFERENCE.ordinal()] = 23;
              } catch (NoSuchFieldError e23) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.EXCLUSION.ordinal()] = 24;
              } catch (NoSuchFieldError e24) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.MULTIPLY.ordinal()] = 25;
              } catch (NoSuchFieldError e25) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.HUE.ordinal()] = 26;
              } catch (NoSuchFieldError e26) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.SATURATION.ordinal()] = 27;
              } catch (NoSuchFieldError e27) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.COLOR.ordinal()] = 28;
              } catch (NoSuchFieldError e28) {
              }
              try {
                  $SwitchMap$androidx$core$graphics$BlendModeCompat[BlendModeCompat.LUMINOSITY.ordinal()] = 29;
              } catch (NoSuchFieldError e29) {
              }
          }
      }
  
      static class Api29Impl {
          private Api29Impl() {
          }
  
          static Object obtainBlendModeFromCompat(BlendModeCompat blendModeCompat) {
              switch (AnonymousClass1.$SwitchMap$androidx$core$graphics$BlendModeCompat[blendModeCompat.ordinal()]) {
                  case 1:
                      return BlendMode.CLEAR;
                  case 2:
                      return BlendMode.SRC;
                  case 3:
                      return BlendMode.DST;
                  case 4:
                      return BlendMode.SRC_OVER;
                  case 5:
                      return BlendMode.DST_OVER;
                  case 6:
                      return BlendMode.SRC_IN;
                  case 7:
                      return BlendMode.DST_IN;
                  case 8:
                      return BlendMode.SRC_OUT;
                  case 9:
                      return BlendMode.DST_OUT;
                  case 10:
                      return BlendMode.SRC_ATOP;
                  case 11:
                      return BlendMode.DST_ATOP;
                  case 12:
                      return BlendMode.XOR;
                  case 13:
                      return BlendMode.PLUS;
                  case 14:
                      return BlendMode.MODULATE;
                  case 15:
                      return BlendMode.SCREEN;
                  case 16:
                      return BlendMode.OVERLAY;
                  case 17:
                      return BlendMode.DARKEN;
                  case 18:
                      return BlendMode.LIGHTEN;
                  case 19:
                      return BlendMode.COLOR_DODGE;
                  case 20:
                      return BlendMode.COLOR_BURN;
                  case 21:
                      return BlendMode.HARD_LIGHT;
                  case 22:
                      return BlendMode.SOFT_LIGHT;
                  case 23:
                      return BlendMode.DIFFERENCE;
                  case 24:
                      return BlendMode.EXCLUSION;
                  case 25:
                      return BlendMode.MULTIPLY;
                  case 26:
                      return BlendMode.HUE;
                  case 27:
                      return BlendMode.SATURATION;
                  case 28:
                      return BlendMode.COLOR;
                  case ConstraintLayout.LayoutParams.Table.LAYOUT_CONSTRAINT_HORIZONTAL_BIAS:
                      return BlendMode.LUMINOSITY;
                  default:
                      return null;
              }
          }
      }
  
      private BlendModeUtils() {
      }
  
      static PorterDuff.Mode obtainPorterDuffFromCompat(BlendModeCompat blendModeCompat) {
          if (blendModeCompat == null) {
              return null;
          }
          switch (AnonymousClass1.$SwitchMap$androidx$core$graphics$BlendModeCompat[blendModeCompat.ordinal()]) {
              case 1:
                  return PorterDuff.Mode.CLEAR;
              case 2:
                  return PorterDuff.Mode.SRC;
              case 3:
                  return PorterDuff.Mode.DST;
              case 4:
                  return PorterDuff.Mode.SRC_OVER;
              case 5:
                  return PorterDuff.Mode.DST_OVER;
              case 6:
                  return PorterDuff.Mode.SRC_IN;
              case 7:
                  return PorterDuff.Mode.DST_IN;
              case 8:
                  return PorterDuff.Mode.SRC_OUT;
              case 9:
                  return PorterDuff.Mode.DST_OUT;
              case 10:
                  return PorterDuff.Mode.SRC_ATOP;
              case 11:
                  return PorterDuff.Mode.DST_ATOP;
              case 12:
                  return PorterDuff.Mode.XOR;
              case 13:
                  return PorterDuff.Mode.ADD;
              case 14:
                  return PorterDuff.Mode.MULTIPLY;
              case 15:
                  return PorterDuff.Mode.SCREEN;
              case 16:
                  return PorterDuff.Mode.OVERLAY;
              case 17:
                  return PorterDuff.Mode.DARKEN;
              case 18:
                  return PorterDuff.Mode.LIGHTEN;
              default:
                  return null;
          }
      }
  }
  