Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5

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


package com.yandex.mobile.ads.impl;

import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.util.MimeTypes;
import com.monetization.ads.exo.metadata.Metadata;
import com.monetization.ads.exo.metadata.mp4.MotionPhotoMetadata;
import com.yandex.mobile.ads.impl.ed1;
import com.yandex.mobile.ads.impl.um0;
import com.yandex.mobile.ads.impl.w00;
public final class gd0 implements my {
    private oy f14158b;
    private int f14159c;
    private int f14160d;
    private int f14161e;
    private MotionPhotoMetadata f14163g;
    private ny f14164h;
    private lh1 f14165i;
    private wm0 f14166j;
    private final kz0 f14157a = new kz0(6);
    private long f14162f = -1;

    @Override
    public final int a(ny nyVar, c21 c21Var) {
        String q10;
        MotionPhotoMetadata motionPhotoMetadata;
        um0 a8;
        long j10;
        int i10 = this.f14159c;
        if (i10 == 0) {
            this.f14157a.c(2);
            ((fs) nyVar).a(this.f14157a.c(), 0, 2, false);
            int z6 = this.f14157a.z();
            this.f14160d = z6;
            if (z6 == 65498) {
                if (this.f14162f != -1) {
                    this.f14159c = 4;
                } else {
                    oy oyVar = this.f14158b;
                    oyVar.getClass();
                    oyVar.a(1024, 4).a(new w00.a().b(MimeTypes.IMAGE_JPEG).a(new Metadata(new Metadata.Entry[0])).a());
                    oy oyVar2 = this.f14158b;
                    oyVar2.getClass();
                    oyVar2.b();
                    this.f14158b.a(new ed1.b(C.TIME_UNSET, 0L));
                    this.f14159c = 6;
                }
            } else if ((z6 < 65488 || z6 > 65497) && z6 != 65281) {
                this.f14159c = 1;
            }
            return 0;
        } else if (i10 == 1) {
            this.f14157a.c(2);
            ((fs) nyVar).a(this.f14157a.c(), 0, 2, false);
            this.f14161e = this.f14157a.z() - 2;
            this.f14159c = 2;
            return 0;
        } else if (i10 == 2) {
            if (this.f14160d == 65505) {
                kz0 kz0Var = new kz0(this.f14161e);
                fs fsVar = (fs) nyVar;
                fsVar.a(kz0Var.c(), 0, this.f14161e, false);
                if (this.f14163g == null && "http://ns.adobe.com/xap/1.0/".equals(kz0Var.q()) && (q10 = kz0Var.q()) != null) {
                    long a10 = fsVar.a();
                    if (a10 != -1 && (a8 = sx1.a(q10)) != null && a8.f19115b.size() >= 2) {
                        boolean z9 = false;
                        long j11 = -1;
                        long j12 = -1;
                        long j13 = -1;
                        long j14 = -1;
                        for (int size = a8.f19115b.size() - 1; size >= 0; size--) {
                            um0.a aVar = a8.f19115b.get(size);
                            z9 |= MimeTypes.VIDEO_MP4.equals(aVar.f19116a);
                            if (size == 0) {
                                j10 = a10 - aVar.f19118c;
                                a10 = 0;
                            } else {
                                long j15 = a10;
                                a10 -= aVar.f19117b;
                                j10 = j15;
                            }
                            if (z9 && a10 != j10) {
                                j13 = a10;
                                j14 = j10 - a10;
                                z9 = false;
                            }
                            if (size == 0) {
                                j11 = a10;
                                j12 = j10;
                            }
                        }
                        if (j13 != -1 && j14 != -1 && j11 != -1 && j12 != -1) {
                            motionPhotoMetadata = new MotionPhotoMetadata(j11, j12, a8.f19114a, j13, j14);
                            this.f14163g = motionPhotoMetadata;
                            if (motionPhotoMetadata != null) {
                                this.f14162f = motionPhotoMetadata.f8954d;
                            }
                        }
                    }
                    motionPhotoMetadata = null;
                    this.f14163g = motionPhotoMetadata;
                    if (motionPhotoMetadata != null) {
                    }
                }
            } else {
                ((fs) nyVar).b(this.f14161e);
            }
            this.f14159c = 0;
            return 0;
        } else if (i10 != 4) {
            if (i10 != 5) {
                if (i10 == 6) {
                    return -1;
                }
                throw new IllegalStateException();
            }
            if (this.f14165i == null || nyVar != this.f14164h) {
                this.f14164h = nyVar;
                this.f14165i = new lh1((fs) nyVar, this.f14162f);
            }
            wm0 wm0Var = this.f14166j;
            wm0Var.getClass();
            int a11 = wm0Var.a(this.f14165i, c21Var);
            if (a11 == 1) {
                c21Var.f12534a += this.f14162f;
            }
            return a11;
        } else {
            fs fsVar2 = (fs) nyVar;
            long position = fsVar2.getPosition();
            long j16 = this.f14162f;
            if (position != j16) {
                c21Var.f12534a = j16;
                return 1;
            }
            if (fsVar2.b(this.f14157a.c(), 0, 1, true)) {
                fsVar2.d();
                if (this.f14166j == null) {
                    this.f14166j = new wm0();
                }
                lh1 lh1Var = new lh1(fsVar2, this.f14162f);
                this.f14165i = lh1Var;
                if (this.f14166j.a(lh1Var)) {
                    wm0 wm0Var2 = this.f14166j;
                    long j17 = this.f14162f;
                    oy oyVar3 = this.f14158b;
                    oyVar3.getClass();
                    wm0Var2.a(new mh1(j17, oyVar3));
                    MotionPhotoMetadata motionPhotoMetadata2 = this.f14163g;
                    motionPhotoMetadata2.getClass();
                    Metadata.Entry[] entryArr = {motionPhotoMetadata2};
                    oy oyVar4 = this.f14158b;
                    oyVar4.getClass();
                    oyVar4.a(1024, 4).a(new w00.a().b(MimeTypes.IMAGE_JPEG).a(new Metadata(entryArr)).a());
                    this.f14159c = 5;
                } else {
                    oy oyVar5 = this.f14158b;
                    oyVar5.getClass();
                    oyVar5.a(1024, 4).a(new w00.a().b(MimeTypes.IMAGE_JPEG).a(new Metadata(new Metadata.Entry[0])).a());
                    oy oyVar6 = this.f14158b;
                    oyVar6.getClass();
                    oyVar6.b();
                    this.f14158b.a(new ed1.b(C.TIME_UNSET, 0L));
                    this.f14159c = 6;
                }
            } else {
                oy oyVar7 = this.f14158b;
                oyVar7.getClass();
                oyVar7.a(1024, 4).a(new w00.a().b(MimeTypes.IMAGE_JPEG).a(new Metadata(new Metadata.Entry[0])).a());
                oy oyVar8 = this.f14158b;
                oyVar8.getClass();
                oyVar8.b();
                this.f14158b.a(new ed1.b(C.TIME_UNSET, 0L));
                this.f14159c = 6;
            }
            return 0;
        }
    }

    @Override
    public final void a(long j10, long j11) {
        if (j10 == 0) {
            this.f14159c = 0;
            this.f14166j = null;
        } else if (this.f14159c == 5) {
            wm0 wm0Var = this.f14166j;
            wm0Var.getClass();
            wm0Var.a(j10, j11);
        }
    }

    @Override
    public final void a(oy oyVar) {
        this.f14158b = oyVar;
    }

    @Override
    public final boolean a(ny nyVar) {
        fs fsVar = (fs) nyVar;
        this.f14157a.c(2);
        fsVar.b(this.f14157a.c(), 0, 2, false);
        if (this.f14157a.z() != 65496) {
            return false;
        }
        this.f14157a.c(2);
        fsVar.b(this.f14157a.c(), 0, 2, false);
        int z6 = this.f14157a.z();
        this.f14160d = z6;
        if (z6 == 65504) {
            this.f14157a.c(2);
            fsVar.b(this.f14157a.c(), 0, 2, false);
            fsVar.a(false, this.f14157a.z() - 2);
            this.f14157a.c(2);
            fsVar.b(this.f14157a.c(), 0, 2, false);
            this.f14160d = this.f14157a.z();
        }
        if (this.f14160d != 65505) {
            return false;
        }
        fsVar.a(false, 2);
        this.f14157a.c(6);
        fsVar.b(this.f14157a.c(), 0, 6, false);
        return this.f14157a.v() == 1165519206 && this.f14157a.z() == 0;
    }

    @Override
    public final void release() {
    }
}