Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97

以下内容为反编译后的 o70.java 源代码,内容仅作参考


package com.yandex.mobile.ads.impl;

import androidx.annotation.Nullable;
import com.google.android.exoplayer2.util.MimeTypes;
import com.yandex.mobile.ads.exo.metadata.Metadata;
import com.yandex.mobile.ads.exo.metadata.mp4.MotionPhotoMetadata;
import com.yandex.mobile.ads.impl.lf0;
import com.yandex.mobile.ads.impl.p01;
import com.yandex.mobile.ads.impl.yv;
import java.io.IOException;
public final class o70 implements ut {
    private wt f6684b;
    private int c;
    private int d;
    private int e;
    @Nullable
    private MotionPhotoMetadata g;
    private vt h;
    private m41 i;
    @Nullable
    private nf0 j;
    private final mp0 a = new mp0(6);
    private long f = -1;

    @Override
    public final boolean a(vt vtVar) throws IOException {
        xn xnVar = (xn) vtVar;
        this.a.c(2);
        xnVar.b(this.a.c(), 0, 2, false);
        if (this.a.z() != 65496) {
            return false;
        }
        this.a.c(2);
        xnVar.b(this.a.c(), 0, 2, false);
        int z = this.a.z();
        this.d = z;
        if (z == 65504) {
            this.a.c(2);
            xnVar.b(this.a.c(), 0, 2, false);
            xnVar.a(false, this.a.z() - 2);
            this.a.c(2);
            xnVar.b(this.a.c(), 0, 2, false);
            this.d = this.a.z();
        }
        if (this.d != 65505) {
            return false;
        }
        xnVar.a(false, 2);
        this.a.c(6);
        xnVar.b(this.a.c(), 0, 6, false);
        return this.a.v() == 1165519206 && this.a.z() == 0;
    }

    @Override
    public final void release() {
        nf0 nf0Var = this.j;
    }

    @Override
    public final void a(wt wtVar) {
        this.f6684b = wtVar;
    }

    @Override
    public final int a(vt vtVar, cs0 cs0Var) throws IOException {
        String q;
        MotionPhotoMetadata motionPhotoMetadata;
        lf0 a;
        long j;
        int i = this.c;
        if (i == 0) {
            this.a.c(2);
            ((xn) vtVar).a(this.a.c(), 0, 2, false);
            int z = this.a.z();
            this.d = z;
            if (z == 65498) {
                if (this.f != -1) {
                    this.c = 4;
                } else {
                    wt wtVar = this.f6684b;
                    wtVar.getClass();
                    wtVar.a(1024, 4).a(new yv.a().b(MimeTypes.IMAGE_JPEG).a(new Metadata(new Metadata.Entry[0])).a());
                    wt wtVar2 = this.f6684b;
                    wtVar2.getClass();
                    wtVar2.a();
                    this.f6684b.a(new p01.b(-9223372036854775807L, 0L));
                    this.c = 6;
                }
            } else if ((z < 65488 || z > 65497) && z != 65281) {
                this.c = 1;
            }
            return 0;
        } else if (i == 1) {
            this.a.c(2);
            ((xn) vtVar).a(this.a.c(), 0, 2, false);
            this.e = this.a.z() - 2;
            this.c = 2;
            return 0;
        } else if (i == 2) {
            if (this.d == 65505) {
                mp0 mp0Var = new mp0(this.e);
                xn xnVar = (xn) vtVar;
                xnVar.a(mp0Var.c(), 0, this.e, false);
                if (this.g == null && "http://ns.adobe.com/xap/1.0/".equals(mp0Var.q()) && (q = mp0Var.q()) != null) {
                    long a2 = xnVar.a();
                    if (a2 != -1 && (a = hk1.a(q)) != null && a.f6513b.size() >= 2) {
                        boolean z2 = false;
                        long j2 = -1;
                        long j3 = -1;
                        long j4 = -1;
                        long j5 = -1;
                        for (int size = a.f6513b.size() - 1; size >= 0; size--) {
                            lf0.a aVar = a.f6513b.get(size);
                            z2 |= "video/mp4".equals(aVar.a);
                            if (size == 0) {
                                j = a2 - aVar.c;
                                a2 = 0;
                            } else {
                                long j6 = a2;
                                a2 -= aVar.f6514b;
                                j = j6;
                            }
                            if (z2 && a2 != j) {
                                j4 = a2;
                                j5 = j - a2;
                                z2 = false;
                            }
                            if (size == 0) {
                                j2 = a2;
                                j3 = j;
                            }
                        }
                        if (j4 != -1 && j5 != -1 && j2 != -1 && j3 != -1) {
                            motionPhotoMetadata = new MotionPhotoMetadata(j2, j3, a.a, j4, j5);
                            this.g = motionPhotoMetadata;
                            if (motionPhotoMetadata != null) {
                                this.f = motionPhotoMetadata.d;
                            }
                        }
                    }
                    motionPhotoMetadata = null;
                    this.g = motionPhotoMetadata;
                    if (motionPhotoMetadata != null) {
                    }
                }
            } else {
                ((xn) vtVar).a(this.e);
            }
            this.c = 0;
            return 0;
        } else if (i != 4) {
            if (i != 5) {
                if (i == 6) {
                    return -1;
                }
                throw new IllegalStateException();
            }
            if (this.i == null || vtVar != this.h) {
                this.h = vtVar;
                this.i = new m41((xn) vtVar, this.f);
            }
            nf0 nf0Var = this.j;
            nf0Var.getClass();
            int a3 = nf0Var.a(this.i, cs0Var);
            if (a3 == 1) {
                cs0Var.a += this.f;
            }
            return a3;
        } else {
            xn xnVar2 = (xn) vtVar;
            long position = xnVar2.getPosition();
            long j7 = this.f;
            if (position != j7) {
                cs0Var.a = j7;
                return 1;
            }
            if (!xnVar2.b(this.a.c(), 0, 1, true)) {
                wt wtVar3 = this.f6684b;
                wtVar3.getClass();
                wtVar3.a(1024, 4).a(new yv.a().b(MimeTypes.IMAGE_JPEG).a(new Metadata(new Metadata.Entry[0])).a());
                wt wtVar4 = this.f6684b;
                wtVar4.getClass();
                wtVar4.a();
                this.f6684b.a(new p01.b(-9223372036854775807L, 0L));
                this.c = 6;
            } else {
                xnVar2.c();
                if (this.j == null) {
                    this.j = new nf0();
                }
                m41 m41Var = new m41(xnVar2, this.f);
                this.i = m41Var;
                if (this.j.a(m41Var)) {
                    nf0 nf0Var2 = this.j;
                    long j8 = this.f;
                    wt wtVar5 = this.f6684b;
                    wtVar5.getClass();
                    nf0Var2.a(new n41(j8, wtVar5));
                    MotionPhotoMetadata motionPhotoMetadata2 = this.g;
                    motionPhotoMetadata2.getClass();
                    Metadata.Entry[] entryArr = {motionPhotoMetadata2};
                    wt wtVar6 = this.f6684b;
                    wtVar6.getClass();
                    wtVar6.a(1024, 4).a(new yv.a().b(MimeTypes.IMAGE_JPEG).a(new Metadata(entryArr)).a());
                    this.c = 5;
                } else {
                    wt wtVar7 = this.f6684b;
                    wtVar7.getClass();
                    wtVar7.a(1024, 4).a(new yv.a().b(MimeTypes.IMAGE_JPEG).a(new Metadata(new Metadata.Entry[0])).a());
                    wt wtVar8 = this.f6684b;
                    wtVar8.getClass();
                    wtVar8.a();
                    this.f6684b.a(new p01.b(-9223372036854775807L, 0L));
                    this.c = 6;
                }
            }
            return 0;
        }
    }

    @Override
    public final void a(long j, long j2) {
        if (j == 0) {
            this.c = 0;
            this.j = null;
        } else if (this.c == 5) {
            nf0 nf0Var = this.j;
            nf0Var.getClass();
            nf0Var.a(j, j2);
        }
    }
}