gt:       i14 = ((c)localObject2).a();
context: package org.vidogram.messenger.exoplayer.c.c;
  
  import android.util.Pair;
  import android.util.Pair<Ljava.lang.Integer;Lorg.vidogram.messenger.exoplayer.c.c.j;>;
  import android.util.Pair<Ljava.lang.String;[B>;
  import java.util.ArrayList;
  import java.util.Collections;
  import java.util.List;
  import org.vidogram.messenger.exoplayer.MediaFormat;
  import org.vidogram.messenger.exoplayer.f.c;
  import org.vidogram.messenger.exoplayer.f.k;
  import org.vidogram.messenger.exoplayer.f.k.b;
  import org.vidogram.messenger.exoplayer.f.m;
  
  final class b
  {
    private static int a(m paramm, int paramInt1, int paramInt2)
    {
      int i = paramm.d();
      while (i - paramInt1 < paramInt2)
      {
        paramm.b(i);
        int j = paramm.m();
        if (j > 0);
        for (boolean bool = true; ; bool = false)
        {
          org.vidogram.messenger.exoplayer.f.b.a(bool, "childAtomSize should be positive");
          if (paramm.m() != a.I)
            break;
          return i;
        }
        i += j;
      }
      return -1;
    }
  
    private static int a(m paramm, int paramInt1, int paramInt2, d paramd, int paramInt3)
    {
      boolean bool2 = true;
      int k = 0;
      int i = paramm.d();
      while (true)
      {
        int j = k;
        Integer localInteger;
        if (i - paramInt1 < paramInt2)
        {
          paramm.b(i);
          j = paramm.m();
          if (j <= 0)
            break label119;
          bool1 = true;
          org.vidogram.messenger.exoplayer.f.b.a(bool1, "childAtomSize should be positive");
          if (paramm.m() != a.U)
            break label131;
          paramm = b(paramm, i, j);
          localInteger = (Integer)paramm.first;
          if (localInteger == null)
            break label125;
        }
        label119: label125: for (boolean bool1 = bool2; ; bool1 = false)
        {
          org.vidogram.messenger.exoplayer.f.b.a(bool1, "frma atom is mandatory");
          paramd.a[paramInt3] = ((j)paramm.second);
          j = localInteger.intValue();
          return j;
          bool1 = false;
          break;
        }
        label131: i += j;
      }
    }
  
    private static Pair<long[], long[]> a(a.a parama)
    {
      if (parama != null)
      {
        parama = parama.d(a.P);
        if (parama != null);
      }
      else
      {
        return Pair.create(null, null);
      }
      parama = parama.aK;
      parama.b(8);
      int j = a.a(parama.m());
      int k = parama.s();
      long[] arrayOfLong1 = new long[k];
      long[] arrayOfLong2 = new long[k];
      int i = 0;
      while (i < k)
      {
        long l;
        if (j == 1)
        {
          l = parama.u();
          arrayOfLong1[i] = l;
          if (j != 1)
            break label124;
          l = parama.o();
        }
        while (true)
        {
          arrayOfLong2[i] = l;
          if (parama.i() == 1)
            break label134;
          throw new IllegalArgumentException("Unsupported media rate.");
          l = parama.k();
          break;
          label124: l = parama.m();
        }
        label134: parama.c(2);
        i += 1;
      }
      return Pair.create(arrayOfLong1, arrayOfLong2);
    }
  
    private static a a(m paramm, int paramInt)
    {
      paramm.b(paramInt + 8 + 4);
      int i = (paramm.f() & 0x3) + 1;
      if (i == 3)
        throw new IllegalStateException();
      ArrayList localArrayList = new ArrayList();
      float f = 1.0F;
      int j = paramm.f() & 0x1F;
      paramInt = 0;
      while (paramInt < j)
      {
        localArrayList.add(k.a(paramm));
        paramInt += 1;
      }
      int k = paramm.f();
      paramInt = 0;
      while (paramInt < k)
      {
        localArrayList.add(k.a(paramm));
        paramInt += 1;
      }
      if (j > 0)
      {
        paramm = new org.vidogram.messenger.exoplayer.f.l((byte[])localArrayList.get(0));
        paramm.a((i + 1) * 8);
        f = k.a(paramm).d;
      }
      return new a(localArrayList, i, f);
    }
  
    private static d a(m paramm, int paramInt1, long paramLong, int paramInt2, String paramString, boolean paramBoolean)
    {
      paramm.b(12);
      int j = paramm.m();
      d locald = new d(j);
      int i = 0;
      if (i < j)
      {
        int k = paramm.d();
        int m = paramm.m();
        boolean bool;
        label53: int n;
        if (m > 0)
        {
          bool = true;
          org.vidogram.messenger.exoplayer.f.b.a(bool, "childAtomSize should be positive");
          n = paramm.m();
          if ((n != a.b) && (n != a.c) && (n != a.Y) && (n != a.ak) && (n != a.d) && (n != a.e) && (n != a.f) && (n != a.aF) && (n != a.aG))
            break label180;
          a(paramm, n, k, m, paramInt1, paramLong, paramInt2, locald, i);
        }
        while (true)
        {
          paramm.b(k + m);
          i += 1;
          break;
          bool = false;
          break label53;
          label180: if ((n == a.i) || (n == a.Z) || (n == a.m) || (n == a.o) || (n == a.q) || (n == a.t) || (n == a.r) || (n == a.s) || (n == a.aw) || (n == a.ax) || (n == a.k) || (n == a.l))
          {
            a(paramm, n, k, m, paramInt1, paramLong, paramString, paramBoolean, locald, i);
            continue;
          }
          if (n == a.ai)
          {
            locald.b = MediaFormat.a(Integer.toString(paramInt1), "application/ttml+xml", -1, paramLong, paramString);
            continue;
          }
          if (n == a.at)
          {
            locald.b = MediaFormat.a(Integer.toString(paramInt1), "application/x-quicktime-tx3g", -1, paramLong, paramString);
            continue;
          }
          if (n == a.au)
          {
            locald.b = MediaFormat.a(Integer.toString(paramInt1), "application/x-mp4vtt", -1, paramLong, paramString);
            continue;
          }
          if (n != a.av)
            continue;
          locald.b = MediaFormat.a(Integer.toString(paramInt1), "application/ttml+xml", -1, paramLong, paramString, 0L);
        }
      }
      return locald;
    }
  
    public static i a(a.a parama, a.b paramb, long paramLong, boolean paramBoolean)
    {
      Object localObject = parama.e(a.D);
      int i = e(((a.a)localObject).d(a.R).aK);
      if ((i != i.b) && (i != i.a) && (i != i.c) && (i != i.d) && (i != i.e))
        return null;
      g localg = d(parama.d(a.N).aK);
      if (paramLong == -1L)
        paramLong = g.a(localg);
      while (true)
      {
        long l = c(paramb.aK);
        if (paramLong == -1L)
          paramLong = -1L;
        while (true)
        {
          a.a locala = ((a.a)localObject).e(a.E).e(a.F);
          paramb = f(((a.a)localObject).d(a.Q).aK);
          localObject = a(locala.d(a.S).aK, g.b(localg), paramLong, g.c(localg), (String)paramb.second, paramBoolean);
          parama = a(parama.e(a.O));
          if (((d)localObject).b != null)
            break;
          return null;
          paramLong = org.vidogram.messenger.exoplayer.f.r.a(paramLong, 1000000L, l);
        }
        return new i(g.b(localg), i, ((Long)paramb.first).longValue(), l, paramLong, ((d)localObject).b, ((d)localObject).a, ((d)localObject).c, (long[])parama.first, (long[])parama.second);
      }
    }
  
    public static l a(i parami, a.a parama)
    {
      Object localObject1 = parama.d(a.ap);
      if (localObject1 != null);
      int i14;
      for (Object localObject2 = new e((a.b)localObject1); ; localObject2 = new f((a.b)localObject1))
      {
  