package ῲ.ᑓ;

import android.os.Parcel;
import android.util.SparseIntArray;
import java.lang.reflect.Method;
import ඓ.K.K.K.C1293;
import ῲ.㴹.C2284;

/* renamed from: ῲ.ᑓ.ῲ  reason: contains not printable characters */
/* compiled from: VersionedParcelParcel */
public class C1616 extends AbstractC1617 {

    /* renamed from: ඓ  reason: contains not printable characters */
    public final Parcel f5804;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public int f5805;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public int f5806;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public final int f5807;

    /* renamed from: 㳳  reason: contains not printable characters */
    public int f5808;

    /* renamed from: 㴹  reason: contains not printable characters */
    public final int f5809;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final SparseIntArray f5810;

    /* renamed from: 㿎  reason: contains not printable characters */
    public final String f5811;

    public C1616(Parcel parcel) {
        this(parcel, parcel.dataPosition(), parcel.dataSize(), "", new C2284(), new C2284(), new C2284());
    }

    @Override // ῲ.ᑓ.AbstractC1617
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m4188(int i) {
        m4189();
        this.f5806 = i;
        this.f5810.put(i, this.f5804.dataPosition());
        this.f5804.writeInt(0);
        this.f5804.writeInt(i);
    }

    @Override // ῲ.ᑓ.AbstractC1617
    /* renamed from: K  reason: contains not printable characters */
    public boolean m4190(int i) {
        while (this.f5808 < this.f5807) {
            int i2 = this.f5805;
            if (i2 == i) {
                return true;
            }
            if (String.valueOf(i2).compareTo(String.valueOf(i)) > 0) {
                return false;
            }
            this.f5804.setDataPosition(this.f5808);
            int readInt = this.f5804.readInt();
            this.f5805 = this.f5804.readInt();
            this.f5808 += readInt;
        }
        if (this.f5805 == i) {
            return true;
        }
        return false;
    }

    public C1616(Parcel parcel, int i, int i2, String str, C2284<String, Method> k, C2284<String, Method> k2, C2284<String, Class> k3) {
        super(k, k2, k3);
        this.f5810 = new SparseIntArray();
        this.f5806 = -1;
        this.f5808 = 0;
        this.f5805 = -1;
        this.f5804 = parcel;
        this.f5809 = i;
        this.f5807 = i2;
        this.f5808 = this.f5809;
        this.f5811 = str;
    }

    @Override // ῲ.ᑓ.AbstractC1617
    /* renamed from: ῲ  reason: contains not printable characters */
    public AbstractC1617 m4187() {
        Parcel parcel = this.f5804;
        int dataPosition = parcel.dataPosition();
        int i = this.f5808;
        if (i == this.f5809) {
            i = this.f5807;
        }
        return new C1616(parcel, dataPosition, i, C1293.m3414(new StringBuilder(), this.f5811, "  "), this.f5814, this.f5813, this.f5812);
    }

    @Override // ῲ.ᑓ.AbstractC1617
    /* renamed from: K  reason: contains not printable characters */
    public void m4189() {
        int i = this.f5806;
        if (i >= 0) {
            int i2 = this.f5810.get(i);
            int dataPosition = this.f5804.dataPosition();
            this.f5804.setDataPosition(i2);
            this.f5804.writeInt(dataPosition - i2);
            this.f5804.setDataPosition(dataPosition);
        }
    }
}
