package o; import java.io.IOException; import java.util.ArrayList; /* loaded from: classes.dex */ public final class jIQ extends sAQ { private C9026dbu c; public jIQ(C16613piz c16613piz) { super(c16613piz); this.c = new C9026dbu(this); } @Override // o.sAQ public final kuj e() { return new kuj(); } @Override // o.sAQ public final boolean e(mEu meu) { return meu.a.equals("ftyp") || meu.a.equals("mvhd") || meu.a.equals("hdlr") || meu.a.equals("mdhd") || meu.a.equals("CNTH") || meu.a.equals("XMP_") || meu.a.equals("tkhd"); } @Override // o.sAQ public final boolean a(mEu meu) { return meu.a.equals("trak") || meu.a.equals("udta") || meu.a.equals("meta") || meu.a.equals("moov") || meu.a.equals("mdia"); } @Override // o.sAQ public final sAQ a(mEu meu, byte[] bArr, TZV tzv) throws IOException { if (bArr != null) { C0629LEh c0629LEh = new C0629LEh(bArr); if (meu.a.equals("mvhd")) { Jjo jjo = new Jjo(c0629LEh, meu); T t = this.a; BrP.b(new Object[]{t, 256, C11453efd.b(jjo.b)}, -1773350281, 1773350288, 256); BrP.b(new Object[]{t, 257, C11453efd.b(jjo.g)}, -1773350281, 1773350288, 257); t.e(259, jjo.i); t.e(258, jjo.s); t.d(260, new Axo(jjo.i, jjo.s)); int i = jjo.f; t.c(261, (((-65536) & i) >> 16) + ((i & 65535) / 16.0d)); int i2 = jjo.m; t.c(262, ((65280 & i2) >> 8) + ((i2 & 255) / 8.0d)); t.e(263, jjo.n); t.e(264, jjo.k); t.e(265, jjo.h); t.e(266, jjo.f8229o); t.e(267, jjo.l); t.e(268, jjo.c); t.e(269, jjo.j); } else if (meu.a.equals("ftyp")) { C15856jEn c15856jEn = new C15856jEn(c0629LEh, meu); T t2 = this.a; t2.e(4096, c15856jEn.c); t2.e(4097, c15856jEn.b); ArrayList arrayList = c15856jEn.d; t2.c(4098, (String[]) arrayList.toArray(new String[arrayList.size()])); } else { if (meu.a.equals("hdlr")) { UGL ugl = new UGL(c0629LEh, meu); C9026dbu c9026dbu = this.c; String str = ugl.b; C16613piz c16613piz = this.d; if (str.equals("mdir")) { return new C1154Wvb(c16613piz); } if (str.equals("mdta")) { return new Tfz(c16613piz); } if (str.equals("soun")) { return new C2955aoP(c16613piz, tzv); } if (str.equals("vide")) { return new C17320vlA(c16613piz, tzv); } if (str.equals("tmcd")) { return new XBC(c16613piz, tzv); } if (str.equals("text")) { return new Zxz(c16613piz, tzv); } if (str.equals("sbtl")) { return new rRo(c16613piz, tzv); } return str.equals("musi") ? new luM(c16613piz, tzv) : c9026dbu.a; } if (meu.a.equals("mdhd")) { new Itk(c0629LEh, meu, tzv); } else if (meu.a.equals("CNTH")) { XoC xoC = new XoC(c0629LEh); T t3 = this.a; String str2 = xoC.b; if (str2 != null) { t3.e(8192, str2); } } else if (meu.a.equals("XMP_")) { new RKF(); C16613piz c16613piz2 = this.d; T t4 = this.a; RKF.a(bArr, 0, bArr.length, c16613piz2); } else if (meu.a.equals("tkhd")) { mEK mek = new mEK(c0629LEh, meu); T t5 = this.a; if (mek.h != 0 && mek.c != 0 && t5.c(512) == null) { int[] iArr = mek.b; t5.c(270, Math.toDegrees(Math.atan2(iArr[0] + iArr[3], iArr[1] + iArr[4])) - 45.0d); } } } } else if (meu.a.equals("cmov")) { T t6 = this.a; BrP.b(new Object[]{t6, "Compressed QuickTime movies not supported"}, -1786863991, 1786863992, System.identityHashCode(t6)); } return this; } }