package p138.p176.p177.p190.p240.p241;

import java.nio.ByteBuffer;
import p138.p176.p177.p190.AbstractC3413;
import p138.p176.p177.p190.C3431;
import p138.p176.p177.p190.p193.C3511;
import p138.p176.p177.p190.p239.C4140;
import p138.p176.p177.p190.p239.C4150;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ဨ.ޓ.ؠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C4179 extends AbstractC3413 {

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public final C3511 f13356;

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public final C4140 f13357;

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public long f13358;

    /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
    public InterfaceC4178 f13359;

    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public long f13360;

    public C4179() {
        super(5);
        this.f13356 = new C3511(1);
        this.f13357 = new C4140();
    }

    @Override // p138.p176.p177.p190.AbstractC3413
    /* JADX INFO: renamed from: ֏ */
    public int mo1145(C3431 c3431) {
        return "application/x-camera-motion".equals(c3431.f10090) ? 4 : 0;
    }

    @Override // p138.p176.p177.p190.AbstractC3413, p138.p176.p177.p190.C3446.InterfaceC3448
    /* JADX INFO: renamed from: ֏ */
    public void mo1309(int i, Object obj) {
        if (i == 7) {
            this.f13359 = (InterfaceC4178) obj;
        }
    }

    @Override // p138.p176.p177.p190.InterfaceC3450
    /* JADX INFO: renamed from: ֏ */
    public void mo1149(long j, long j2) {
        float[] fArr;
        while (!mo5448() && this.f13360 < 100000 + j) {
            this.f13356.mo5803();
            if (m5438(m5457(), this.f13356, false) != -4 || this.f13356.m5805()) {
                return;
            }
            this.f13356.m5812();
            C3511 c3511 = this.f13356;
            this.f13360 = c3511.f10463;
            if (this.f13359 != null) {
                ByteBuffer byteBuffer = c3511.f10461;
                C4150.m6755(byteBuffer);
                ByteBuffer byteBuffer2 = byteBuffer;
                if (byteBuffer2.remaining() != 16) {
                    fArr = null;
                } else {
                    this.f13357.m6684(byteBuffer2.array(), byteBuffer2.limit());
                    this.f13357.m6693(byteBuffer2.arrayOffset() + 4);
                    float[] fArr2 = new float[3];
                    for (int i = 0; i < 3; i++) {
                        fArr2[i] = Float.intBitsToFloat(this.f13357.m6692());
                    }
                    fArr = fArr2;
                }
                if (fArr != null) {
                    this.f13359.mo6567(this.f13360 - this.f13358, fArr);
                }
            }
        }
    }

    @Override // p138.p176.p177.p190.AbstractC3413
    /* JADX INFO: renamed from: ֏ */
    public void mo1150(long j, boolean z) {
        this.f13360 = 0L;
        InterfaceC4178 interfaceC4178 = this.f13359;
        if (interfaceC4178 != null) {
            interfaceC4178.mo6565();
        }
    }

    @Override // p138.p176.p177.p190.AbstractC3413
    /* JADX INFO: renamed from: ֏ */
    public void mo1315(C3431[] c3431Arr, long j) {
        this.f13358 = j;
    }

    @Override // p138.p176.p177.p190.InterfaceC3450
    /* JADX INFO: renamed from: ؠ */
    public boolean mo1166() {
        return mo5448();
    }

    @Override // p138.p176.p177.p190.InterfaceC3450
    /* JADX INFO: renamed from: ރ */
    public boolean mo1169() {
        return true;
    }

    @Override // p138.p176.p177.p190.AbstractC3413
    /* JADX INFO: renamed from: ޏ */
    public void mo1170() {
        this.f13360 = 0L;
        InterfaceC4178 interfaceC4178 = this.f13359;
        if (interfaceC4178 != null) {
            interfaceC4178.mo6565();
        }
    }
}
