导航菜单

页面标题

页面副标题

Kaspi.kz v5.85.1 - FirebaseNoSignedInUserException.java 源代码

正在查看: Kaspi.kz v5.85.1 应用的 FirebaseNoSignedInUserException.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package o;

import androidx.datastore.preferences.protobuf.CodedOutputStream;
import androidx.datastore.preferences.protobuf.InvalidProtocolBufferException;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import o.isLastFetchFailed;

public abstract class FirebaseNoSignedInUserException {
    private static final int IconCompatParcelizer = Integer.MAX_VALUE;
    private static final int setElement = 100;
    private static final int setFieldValue = 4096;
    private boolean read;
    int setBackground;
    int setError;
    r8lambdavJ_ijnislX2JLJx5rFvt8ObqNeg setLabel;
    int setOptions;

    public static int setFieldValue(int i) {
        return (i >>> 1) ^ (-(i & 1));
    }

    public static long setOptions(long j) {
        return (j >>> 1) ^ (-(1 & j));
    }

    public abstract float AudioAttributesCompatParcelizer() throws IOException;

    public abstract int AudioAttributesImplApi21Parcelizer() throws IOException;

    public abstract int AudioAttributesImplApi26Parcelizer() throws IOException;

    public abstract long AudioAttributesImplBaseParcelizer() throws IOException;

    public abstract String ComponentActivity2() throws IOException;

    public abstract void ComponentActivity3() throws IOException;

    public abstract void ComponentActivity6();

    public abstract boolean IconCompatParcelizer() throws IOException;

    public abstract int MediaBrowserCompatCustomActionResultReceiver() throws IOException;

    public abstract long MediaBrowserCompatItemReceiver() throws IOException;

    public abstract int MediaBrowserCompatMediaItem() throws IOException;

    public abstract long MediaBrowserCompatSearchResultReceiver() throws IOException;

    public abstract long MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver() throws IOException;

    public abstract byte MediaDescriptionCompat() throws IOException;

    public abstract int MediaMetadataCompat() throws IOException;

    public abstract int MediaSessionCompatQueueItem() throws IOException;

    public abstract long MediaSessionCompatResultReceiverWrapper() throws IOException;

    public abstract int MediaSessionCompatToken() throws IOException;

    public abstract String ParcelableVolumeInfo() throws IOException;

    public abstract int PlaybackStateCompat() throws IOException;

    public abstract int PlaybackStateCompatCustomAction() throws IOException;

    abstract long RatingCompat() throws IOException;

    public abstract ByteBuffer RemoteActionCompatParcelizer() throws IOException;

    public abstract long getLifecycleRegistry() throws IOException;

    public abstract byte[] read() throws IOException;

    public abstract int setBackground();

    public abstract <T extends isLastFetchFailed> T setBackground(putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException;

    public abstract byte[] setBackground(int i) throws IOException;

    public abstract long setContentView() throws IOException;

    public abstract FirebaseInstallationsKtxRegistrar setElement() throws IOException;

    public abstract boolean setElement(int i) throws IOException;

    public abstract int setError(int i) throws InvalidProtocolBufferException;

    public abstract void setError(int i, isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException;

    public abstract boolean setFieldValue() throws IOException;

    public abstract int setLabel();

    public abstract <T extends isLastFetchFailed> T setLabel(int i, putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException;

    public abstract void setLabel(int i);

    public abstract void setLabel(isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException;

    public abstract void setLabel(boolean z);

    @Deprecated
    public abstract boolean setLabel(int i, CodedOutputStream codedOutputStream) throws IOException;

    public abstract int setOptions();

    public abstract void setOptions(int i) throws InvalidProtocolBufferException;

    @Deprecated
    public abstract void setOptions(int i, isLastFetchFailed.setFieldValue setfieldvalue) throws IOException;

    public abstract void setOptions(CodedOutputStream codedOutputStream) throws IOException;

    public abstract double write() throws IOException;

    public abstract void write(int i) throws IOException;

    public static FirebaseNoSignedInUserException setError(InputStream inputStream) {
        return setBackground(inputStream, 4096);
    }

    public static FirebaseNoSignedInUserException setBackground(InputStream inputStream, int i) {
        if (i <= 0) {
            throw new IllegalArgumentException("bufferSize must be > 0");
        }
        if (inputStream == null) {
            return setLabel(r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setBackground);
        }
        return new setBackground(inputStream, i);
    }

    public static FirebaseNoSignedInUserException setOptions(Iterable<ByteBuffer> iterable) {
        if (!setFieldValue.addContentView()) {
            return setError(new onUpdateAppState(iterable));
        }
        return setBackground(iterable, false);
    }

    static FirebaseNoSignedInUserException setBackground(Iterable<ByteBuffer> iterable, boolean z) {
        int i = 0;
        int i2 = 0;
        for (ByteBuffer byteBuffer : iterable) {
            i2 += byteBuffer.remaining();
            if (byteBuffer.hasArray()) {
                i |= 1;
            } else {
                i = byteBuffer.isDirect() ? i | 2 : i | 4;
            }
        }
        if (i == 2) {
            return new setLabel(iterable, i2, z);
        }
        return setError(new onUpdateAppState(iterable));
    }

    public static FirebaseNoSignedInUserException setLabel(byte[] bArr) {
        return setLabel(bArr, 0, bArr.length);
    }

    public static FirebaseNoSignedInUserException setLabel(byte[] bArr, int i, int i2) {
        return setLabel(bArr, i, i2, false);
    }

    static FirebaseNoSignedInUserException setLabel(byte[] bArr, int i, int i2, boolean z) {
        setError seterror = new setError(bArr, i, i2, z);
        try {
            seterror.setError(i2);
            return seterror;
        } catch (InvalidProtocolBufferException e) {
            throw new IllegalArgumentException(e);
        }
    }

    public static FirebaseNoSignedInUserException setLabel(ByteBuffer byteBuffer) {
        return setLabel(byteBuffer, false);
    }

    static FirebaseNoSignedInUserException setLabel(ByteBuffer byteBuffer, boolean z) {
        if (byteBuffer.hasArray()) {
            return setLabel(byteBuffer.array(), byteBuffer.arrayOffset() + byteBuffer.position(), byteBuffer.remaining(), z);
        }
        if (byteBuffer.isDirect() && setFieldValue.addContentView()) {
            return new setFieldValue(byteBuffer, z);
        }
        int remaining = byteBuffer.remaining();
        byte[] bArr = new byte[remaining];
        byteBuffer.duplicate().get(bArr);
        return setLabel(bArr, 0, remaining, true);
    }

    private FirebaseNoSignedInUserException() {
        this.setOptions = 100;
        this.setBackground = Integer.MAX_VALUE;
        this.read = false;
    }

    public final int IconCompatParcelizer(int i) {
        if (i < 0) {
            throw new IllegalArgumentException("Recursion limit cannot be negative: " + i);
        }
        int i2 = this.setOptions;
        this.setOptions = i;
        return i2;
    }

    public final int RemoteActionCompatParcelizer(int i) {
        if (i < 0) {
            throw new IllegalArgumentException("Size limit cannot be negative: " + i);
        }
        int i2 = this.setBackground;
        this.setBackground = i;
        return i2;
    }

    final void setError() {
        this.read = true;
    }

    final void r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI() {
        this.read = false;
    }

    final boolean ComponentActivity4() {
        return this.read;
    }

    public static int setBackground(int i, InputStream inputStream) throws IOException {
        if ((i & 128) == 0) {
            return i;
        }
        int i2 = i & 127;
        int i3 = 7;
        while (i3 < 32) {
            int read = inputStream.read();
            if (read == -1) {
                throw InvalidProtocolBufferException.setElement();
            }
            i2 |= (read & 127) << i3;
            if ((read & 128) == 0) {
                return i2;
            }
            i3 += 7;
        }
        while (i3 < 64) {
            int read2 = inputStream.read();
            if (read2 == -1) {
                throw InvalidProtocolBufferException.setElement();
            }
            if ((read2 & 128) == 0) {
                return i2;
            }
            i3 += 7;
        }
        throw InvalidProtocolBufferException.setLabel();
    }

    static int setOptions(InputStream inputStream) throws IOException {
        int read = inputStream.read();
        if (read == -1) {
            throw InvalidProtocolBufferException.setElement();
        }
        return setBackground(read, inputStream);
    }

    static final class setError extends FirebaseNoSignedInUserException {
        private int AudioAttributesCompatParcelizer;
        private int AudioAttributesImplApi21Parcelizer;
        private boolean IconCompatParcelizer;
        private int MediaBrowserCompatCustomActionResultReceiver;
        private int RemoteActionCompatParcelizer;
        private final boolean read;
        private int setElement;
        private final byte[] setFieldValue;
        private int write;

        private setError(byte[] bArr, int i, int i2, boolean z) {
            super();
            this.write = Integer.MAX_VALUE;
            this.setFieldValue = bArr;
            this.MediaBrowserCompatCustomActionResultReceiver = i2 + i;
            this.AudioAttributesImplApi21Parcelizer = i;
            this.AudioAttributesCompatParcelizer = i;
            this.read = z;
        }

        @Override
        public int PlaybackStateCompat() throws IOException {
            if (setFieldValue()) {
                this.setElement = 0;
                return 0;
            }
            int MediaMetadataCompat = MediaMetadataCompat();
            this.setElement = MediaMetadataCompat;
            if (FirebaseRemoteConfigFetchThrottledException.setError(MediaMetadataCompat) == 0) {
                throw InvalidProtocolBufferException.setError();
            }
            return this.setElement;
        }

        @Override
        public void setOptions(int i) throws InvalidProtocolBufferException {
            if (this.setElement != i) {
                throw InvalidProtocolBufferException.setOptions();
            }
        }

        @Override
        public int setOptions() {
            return this.setElement;
        }

        @Override
        public boolean setElement(int i) throws IOException {
            int label = FirebaseRemoteConfigFetchThrottledException.setLabel(i);
            if (label == 0) {
                getOnBackPressedDispatcherannotations();
                return true;
            }
            if (label == 1) {
                write(8);
                return true;
            }
            if (label == 2) {
                write(MediaMetadataCompat());
                return true;
            }
            if (label == 3) {
                ComponentActivity3();
                setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(FirebaseRemoteConfigFetchThrottledException.setError(i), 4));
                return true;
            }
            if (label == 4) {
                return false;
            }
            if (label == 5) {
                write(4);
                return true;
            }
            throw InvalidProtocolBufferException.setBackground();
        }

        @Override
        public boolean setLabel(int i, CodedOutputStream codedOutputStream) throws IOException {
            int label = FirebaseRemoteConfigFetchThrottledException.setLabel(i);
            if (label == 0) {
                long MediaBrowserCompatSearchResultReceiver = MediaBrowserCompatSearchResultReceiver();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.AudioAttributesCompatParcelizer(MediaBrowserCompatSearchResultReceiver);
                return true;
            }
            if (label == 1) {
                long MediaBrowserCompatItemReceiver = MediaBrowserCompatItemReceiver();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.write(MediaBrowserCompatItemReceiver);
                return true;
            }
            if (label == 2) {
                FirebaseInstallationsKtxRegistrar element = setElement();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.setFieldValue(element);
                return true;
            }
            if (label == 3) {
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                setOptions(codedOutputStream);
                int label2 = FirebaseRemoteConfigFetchThrottledException.setLabel(FirebaseRemoteConfigFetchThrottledException.setError(i), 4);
                setOptions(label2);
                codedOutputStream.MediaBrowserCompatMediaItem(label2);
                return true;
            }
            if (label == 4) {
                return false;
            }
            if (label == 5) {
                int MediaBrowserCompatMediaItem = MediaBrowserCompatMediaItem();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.AudioAttributesImplBaseParcelizer(MediaBrowserCompatMediaItem);
                return true;
            }
            throw InvalidProtocolBufferException.setBackground();
        }

        @Override
        public void ComponentActivity3() throws IOException {
            int PlaybackStateCompat;
            do {
                PlaybackStateCompat = PlaybackStateCompat();
                if (PlaybackStateCompat == 0) {
                    return;
                }
            } while (setElement(PlaybackStateCompat));
        }

        @Override
        public void setOptions(CodedOutputStream codedOutputStream) throws IOException {
            int PlaybackStateCompat;
            do {
                PlaybackStateCompat = PlaybackStateCompat();
                if (PlaybackStateCompat == 0) {
                    return;
                }
            } while (setLabel(PlaybackStateCompat, codedOutputStream));
        }

        @Override
        public double write() throws IOException {
            return Double.longBitsToDouble(MediaBrowserCompatItemReceiver());
        }

        @Override
        public float AudioAttributesCompatParcelizer() throws IOException {
            return Float.intBitsToFloat(MediaBrowserCompatMediaItem());
        }

        @Override
        public long getLifecycleRegistry() throws IOException {
            return MediaSessionCompatResultReceiverWrapper();
        }

        @Override
        public long MediaBrowserCompatSearchResultReceiver() throws IOException {
            return MediaSessionCompatResultReceiverWrapper();
        }

        @Override
        public int AudioAttributesImplApi26Parcelizer() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public long AudioAttributesImplBaseParcelizer() throws IOException {
            return MediaBrowserCompatItemReceiver();
        }

        @Override
        public int MediaBrowserCompatCustomActionResultReceiver() throws IOException {
            return MediaBrowserCompatMediaItem();
        }

        @Override
        public boolean IconCompatParcelizer() throws IOException {
            return MediaSessionCompatResultReceiverWrapper() != 0;
        }

        @Override
        public String ComponentActivity2() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0) {
                int i = this.MediaBrowserCompatCustomActionResultReceiver;
                int i2 = this.AudioAttributesImplApi21Parcelizer;
                if (MediaMetadataCompat <= i - i2) {
                    String str = new String(this.setFieldValue, i2, MediaMetadataCompat, r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setLabel);
                    this.AudioAttributesImplApi21Parcelizer += MediaMetadataCompat;
                    return str;
                }
            }
            if (MediaMetadataCompat == 0) {
                return "";
            }
            if (MediaMetadataCompat < 0) {
                throw InvalidProtocolBufferException.read();
            }
            throw InvalidProtocolBufferException.setElement();
        }

        @Override
        public String ParcelableVolumeInfo() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0) {
                int i = this.MediaBrowserCompatCustomActionResultReceiver;
                int i2 = this.AudioAttributesImplApi21Parcelizer;
                if (MediaMetadataCompat <= i - i2) {
                    String options = FirebaseInitProvider.setOptions(this.setFieldValue, i2, MediaMetadataCompat);
                    this.AudioAttributesImplApi21Parcelizer += MediaMetadataCompat;
                    return options;
                }
            }
            if (MediaMetadataCompat == 0) {
                return "";
            }
            if (MediaMetadataCompat <= 0) {
                throw InvalidProtocolBufferException.read();
            }
            throw InvalidProtocolBufferException.setElement();
        }

        @Override
        public void setError(int i, isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException {
            int i2 = this.setError;
            if (i2 >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            this.setError = i2 + 1;
            setfieldvalue.setOptions(this, handlemessageintent);
            setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(i, 4));
            this.setError--;
        }

        @Override
        public <T extends isLastFetchFailed> T setLabel(int i, putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException {
            int i2 = this.setError;
            if (i2 >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            this.setError = i2 + 1;
            T label = putmetric.setLabel(this, handlemessageintent);
            setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(i, 4));
            this.setError--;
            return label;
        }

        @Override
        @Deprecated
        public void setOptions(int i, isLastFetchFailed.setFieldValue setfieldvalue) throws IOException {
            setError(i, setfieldvalue, handleMessageIntent.setFieldValue());
        }

        @Override
        public void setLabel(isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (this.setError >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            int error = setError(MediaMetadataCompat);
            this.setError++;
            setfieldvalue.setOptions(this, handlemessageintent);
            setOptions(0);
            this.setError--;
            setLabel(error);
        }

        @Override
        public <T extends isLastFetchFailed> T setBackground(putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (this.setError >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            int error = setError(MediaMetadataCompat);
            this.setError++;
            T label = putmetric.setLabel(this, handlemessageintent);
            setOptions(0);
            this.setError--;
            setLabel(error);
            return label;
        }

        @Override
        public FirebaseInstallationsKtxRegistrar setElement() throws IOException {
            FirebaseInstallationsKtxRegistrar fieldValue;
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0) {
                int i = this.MediaBrowserCompatCustomActionResultReceiver;
                int i2 = this.AudioAttributesImplApi21Parcelizer;
                if (MediaMetadataCompat <= i - i2) {
                    if (this.read && this.IconCompatParcelizer) {
                        fieldValue = FirebaseInstallationsKtxRegistrar.setBackground(this.setFieldValue, i2, MediaMetadataCompat);
                    } else {
                        fieldValue = FirebaseInstallationsKtxRegistrar.setFieldValue(this.setFieldValue, i2, MediaMetadataCompat);
                    }
                    this.AudioAttributesImplApi21Parcelizer += MediaMetadataCompat;
                    return fieldValue;
                }
            }
            if (MediaMetadataCompat == 0) {
                return FirebaseInstallationsKtxRegistrar.setOptions;
            }
            return FirebaseInstallationsKtxRegistrar.setLabel(setBackground(MediaMetadataCompat));
        }

        @Override
        public byte[] read() throws IOException {
            return setBackground(MediaMetadataCompat());
        }

        @Override
        public ByteBuffer RemoteActionCompatParcelizer() throws IOException {
            ByteBuffer wrap;
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0) {
                int i = this.MediaBrowserCompatCustomActionResultReceiver;
                int i2 = this.AudioAttributesImplApi21Parcelizer;
                if (MediaMetadataCompat <= i - i2) {
                    if (!this.read && this.IconCompatParcelizer) {
                        wrap = ByteBuffer.wrap(this.setFieldValue, i2, MediaMetadataCompat).slice();
                    } else {
                        wrap = ByteBuffer.wrap(Arrays.copyOfRange(this.setFieldValue, i2, i2 + MediaMetadataCompat));
                    }
                    this.AudioAttributesImplApi21Parcelizer += MediaMetadataCompat;
                    return wrap;
                }
            }
            if (MediaMetadataCompat == 0) {
                return r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setFieldValue;
            }
            if (MediaMetadataCompat < 0) {
                throw InvalidProtocolBufferException.read();
            }
            throw InvalidProtocolBufferException.setElement();
        }

        @Override
        public int PlaybackStateCompatCustomAction() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public int AudioAttributesImplApi21Parcelizer() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public int MediaSessionCompatQueueItem() throws IOException {
            return MediaBrowserCompatMediaItem();
        }

        @Override
        public long MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver() throws IOException {
            return MediaBrowserCompatItemReceiver();
        }

        @Override
        public int MediaSessionCompatToken() throws IOException {
            return FirebaseNoSignedInUserException.setFieldValue(MediaMetadataCompat());
        }

        @Override
        public long setContentView() throws IOException {
            return FirebaseNoSignedInUserException.setOptions(MediaSessionCompatResultReceiverWrapper());
        }

        @Override
        public int MediaMetadataCompat() throws IOException {
            int i;
            int i2 = this.AudioAttributesImplApi21Parcelizer;
            int i3 = this.MediaBrowserCompatCustomActionResultReceiver;
            if (i3 != i2) {
                byte[] bArr = this.setFieldValue;
                int i4 = i2 + 1;
                byte b = bArr[i2];
                if (b >= 0) {
                    this.AudioAttributesImplApi21Parcelizer = i4;
                    return b;
                }
                if (i3 - i4 >= 9) {
                    int i5 = i2 + 2;
                    int i6 = (bArr[i4] << 7) ^ b;
                    if (i6 < 0) {
                        i = i6 ^ (-128);
                    } else {
                        int i7 = i2 + 3;
                        int i8 = (bArr[i5] << 14) ^ i6;
                        if (i8 >= 0) {
                            i = i8 ^ 16256;
                        } else {
                            int i9 = i2 + 4;
                            int i10 = i8 ^ (bArr[i7] << 21);
                            if (i10 < 0) {
                                i = (-2080896) ^ i10;
                            } else {
                                i7 = i2 + 5;
                                byte b2 = bArr[i9];
                                int i11 = (i10 ^ (b2 << 28)) ^ 266354560;
                                if (b2 < 0) {
                                    i9 = i2 + 6;
                                    if (bArr[i7] < 0) {
                                        i7 = i2 + 7;
                                        if (bArr[i9] < 0) {
                                            i9 = i2 + 8;
                                            if (bArr[i7] < 0) {
                                                i7 = i2 + 9;
                                                if (bArr[i9] < 0) {
                                                    if (bArr[i7] >= 0) {
                                                        i5 = i2 + 10;
                                                        i = i11;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    i = i11;
                                }
                                i = i11;
                            }
                            i5 = i9;
                        }
                        i5 = i7;
                    }
                    this.AudioAttributesImplApi21Parcelizer = i5;
                    return i;
                }
            }
            return (int) RatingCompat();
        }

        private void getOnBackPressedDispatcherannotations() throws IOException {
            if (this.MediaBrowserCompatCustomActionResultReceiver - this.AudioAttributesImplApi21Parcelizer >= 10) {
                getLifecycle();
            } else {
                addContentView();
            }
        }

        private void getLifecycle() throws IOException {
            for (int i = 0; i < 10; i++) {
                byte[] bArr = this.setFieldValue;
                int i2 = this.AudioAttributesImplApi21Parcelizer;
                this.AudioAttributesImplApi21Parcelizer = i2 + 1;
                if (bArr[i2] >= 0) {
                    return;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        private void addContentView() throws IOException {
            for (int i = 0; i < 10; i++) {
                if (MediaDescriptionCompat() >= 0) {
                    return;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        @Override
        public long MediaSessionCompatResultReceiverWrapper() throws IOException {
            long j;
            long j2;
            long j3;
            int i = this.AudioAttributesImplApi21Parcelizer;
            int i2 = this.MediaBrowserCompatCustomActionResultReceiver;
            if (i2 != i) {
                byte[] bArr = this.setFieldValue;
                int i3 = i + 1;
                byte b = bArr[i];
                if (b >= 0) {
                    this.AudioAttributesImplApi21Parcelizer = i3;
                    return b;
                }
                if (i2 - i3 >= 9) {
                    int i4 = i + 2;
                    int i5 = (bArr[i3] << 7) ^ b;
                    if (i5 < 0) {
                        j = i5 ^ (-128);
                    } else {
                        int i6 = i + 3;
                        int i7 = (bArr[i4] << 14) ^ i5;
                        if (i7 >= 0) {
                            j = i7 ^ 16256;
                            i4 = i6;
                        } else {
                            int i8 = i + 4;
                            int i9 = i7 ^ (bArr[i6] << 21);
                            if (i9 < 0) {
                                long j4 = (-2080896) ^ i9;
                                i4 = i8;
                                j = j4;
                            } else {
                                long j5 = i9;
                                i4 = i + 5;
                                long j6 = j5 ^ (bArr[i8] << 28);
                                if (j6 >= 0) {
                                    j3 = 266354560;
                                } else {
                                    int i10 = i + 6;
                                    long j7 = j6 ^ (bArr[i4] << 35);
                                    if (j7 < 0) {
                                        j2 = -34093383808L;
                                    } else {
                                        i4 = i + 7;
                                        j6 = j7 ^ (bArr[i10] << 42);
                                        if (j6 >= 0) {
                                            j3 = 4363953127296L;
                                        } else {
                                            i10 = i + 8;
                                            j7 = j6 ^ (bArr[i4] << 49);
                                            if (j7 < 0) {
                                                j2 = -558586000294016L;
                                            } else {
                                                i4 = i + 9;
                                                long j8 = (j7 ^ (bArr[i10] << 56)) ^ 71499008037633920L;
                                                if (j8 < 0) {
                                                    if (bArr[i4] >= 0) {
                                                        i4 = i + 10;
                                                    }
                                                }
                                                j = j8;
                                            }
                                        }
                                    }
                                    j = j7 ^ j2;
                                    i4 = i10;
                                }
                                j = j6 ^ j3;
                            }
                        }
                    }
                    this.AudioAttributesImplApi21Parcelizer = i4;
                    return j;
                }
            }
            return RatingCompat();
        }

        @Override
        long RatingCompat() throws IOException {
            long j = 0;
            for (int i = 0; i < 64; i += 7) {
                j |= (r3 & Byte.MAX_VALUE) << i;
                if ((MediaDescriptionCompat() & 128) == 0) {
                    return j;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        @Override
        public int MediaBrowserCompatMediaItem() throws IOException {
            int i = this.AudioAttributesImplApi21Parcelizer;
            if (this.MediaBrowserCompatCustomActionResultReceiver - i < 4) {
                throw InvalidProtocolBufferException.setElement();
            }
            byte[] bArr = this.setFieldValue;
            this.AudioAttributesImplApi21Parcelizer = i + 4;
            return ((bArr[i + 3] & 255) << 24) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16);
        }

        @Override
        public long MediaBrowserCompatItemReceiver() throws IOException {
            int i = this.AudioAttributesImplApi21Parcelizer;
            if (this.MediaBrowserCompatCustomActionResultReceiver - i < 8) {
                throw InvalidProtocolBufferException.setElement();
            }
            byte[] bArr = this.setFieldValue;
            this.AudioAttributesImplApi21Parcelizer = i + 8;
            return ((bArr[i + 7] & 255) << 56) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16) | ((bArr[i + 3] & 255) << 24) | ((bArr[i + 4] & 255) << 32) | ((bArr[i + 5] & 255) << 40) | ((bArr[i + 6] & 255) << 48);
        }

        @Override
        public void setLabel(boolean z) {
            this.IconCompatParcelizer = z;
        }

        @Override
        public void ComponentActivity6() {
            this.AudioAttributesCompatParcelizer = this.AudioAttributesImplApi21Parcelizer;
        }

        @Override
        public int setError(int i) throws InvalidProtocolBufferException {
            if (i < 0) {
                throw InvalidProtocolBufferException.read();
            }
            int background = i + setBackground();
            int i2 = this.write;
            if (background > i2) {
                throw InvalidProtocolBufferException.setElement();
            }
            this.write = background;
            onBackPressedDispatcherlambda1();
            return i2;
        }

        private void onBackPressedDispatcherlambda1() {
            int i = this.MediaBrowserCompatCustomActionResultReceiver + this.RemoteActionCompatParcelizer;
            this.MediaBrowserCompatCustomActionResultReceiver = i;
            int i2 = i - this.AudioAttributesCompatParcelizer;
            int i3 = this.write;
            if (i2 > i3) {
                int i4 = i2 - i3;
                this.RemoteActionCompatParcelizer = i4;
                this.MediaBrowserCompatCustomActionResultReceiver = i - i4;
                return;
            }
            this.RemoteActionCompatParcelizer = 0;
        }

        @Override
        public void setLabel(int i) {
            this.write = i;
            onBackPressedDispatcherlambda1();
        }

        @Override
        public int setLabel() {
            int i = this.write;
            if (i == Integer.MAX_VALUE) {
                return -1;
            }
            return i - setBackground();
        }

        @Override
        public boolean setFieldValue() throws IOException {
            return this.AudioAttributesImplApi21Parcelizer == this.MediaBrowserCompatCustomActionResultReceiver;
        }

        @Override
        public int setBackground() {
            return this.AudioAttributesImplApi21Parcelizer - this.AudioAttributesCompatParcelizer;
        }

        @Override
        public byte MediaDescriptionCompat() throws IOException {
            int i = this.AudioAttributesImplApi21Parcelizer;
            if (i == this.MediaBrowserCompatCustomActionResultReceiver) {
                throw InvalidProtocolBufferException.setElement();
            }
            byte[] bArr = this.setFieldValue;
            this.AudioAttributesImplApi21Parcelizer = i + 1;
            return bArr[i];
        }

        @Override
        public byte[] setBackground(int i) throws IOException {
            if (i > 0) {
                int i2 = this.MediaBrowserCompatCustomActionResultReceiver;
                int i3 = this.AudioAttributesImplApi21Parcelizer;
                if (i <= i2 - i3) {
                    int i4 = i + i3;
                    this.AudioAttributesImplApi21Parcelizer = i4;
                    return Arrays.copyOfRange(this.setFieldValue, i3, i4);
                }
            }
            if (i > 0) {
                throw InvalidProtocolBufferException.setElement();
            }
            if (i == 0) {
                return r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setBackground;
            }
            throw InvalidProtocolBufferException.read();
        }

        @Override
        public void write(int i) throws IOException {
            if (i >= 0) {
                int i2 = this.MediaBrowserCompatCustomActionResultReceiver;
                int i3 = this.AudioAttributesImplApi21Parcelizer;
                if (i <= i2 - i3) {
                    this.AudioAttributesImplApi21Parcelizer = i3 + i;
                    return;
                }
            }
            if (i < 0) {
                throw InvalidProtocolBufferException.read();
            }
            throw InvalidProtocolBufferException.setElement();
        }
    }

    static final class setFieldValue extends FirebaseNoSignedInUserException {
        private long AudioAttributesCompatParcelizer;
        private long AudioAttributesImplApi21Parcelizer;
        private long AudioAttributesImplApi26Parcelizer;
        private int AudioAttributesImplBaseParcelizer;
        private int IconCompatParcelizer;
        private final boolean RemoteActionCompatParcelizer;
        private final ByteBuffer read;
        private boolean setElement;
        private final long setFieldValue;
        private int write;

        static boolean addContentView() {
            return initializeGaugeMetadataManager.setFieldValue();
        }

        private setFieldValue(ByteBuffer byteBuffer, boolean z) {
            super();
            this.write = Integer.MAX_VALUE;
            this.read = byteBuffer;
            long label = initializeGaugeMetadataManager.setLabel(byteBuffer);
            this.setFieldValue = label;
            this.AudioAttributesImplApi26Parcelizer = byteBuffer.limit() + label;
            long position = label + byteBuffer.position();
            this.AudioAttributesImplApi21Parcelizer = position;
            this.AudioAttributesCompatParcelizer = position;
            this.RemoteActionCompatParcelizer = z;
        }

        @Override
        public int PlaybackStateCompat() throws IOException {
            if (setFieldValue()) {
                this.AudioAttributesImplBaseParcelizer = 0;
                return 0;
            }
            int MediaMetadataCompat = MediaMetadataCompat();
            this.AudioAttributesImplBaseParcelizer = MediaMetadataCompat;
            if (FirebaseRemoteConfigFetchThrottledException.setError(MediaMetadataCompat) == 0) {
                throw InvalidProtocolBufferException.setError();
            }
            return this.AudioAttributesImplBaseParcelizer;
        }

        @Override
        public void setOptions(int i) throws InvalidProtocolBufferException {
            if (this.AudioAttributesImplBaseParcelizer != i) {
                throw InvalidProtocolBufferException.setOptions();
            }
        }

        @Override
        public int setOptions() {
            return this.AudioAttributesImplBaseParcelizer;
        }

        @Override
        public boolean setElement(int i) throws IOException {
            int label = FirebaseRemoteConfigFetchThrottledException.setLabel(i);
            if (label == 0) {
                onBackPressedDispatcherlambda1();
                return true;
            }
            if (label == 1) {
                write(8);
                return true;
            }
            if (label == 2) {
                write(MediaMetadataCompat());
                return true;
            }
            if (label == 3) {
                ComponentActivity3();
                setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(FirebaseRemoteConfigFetchThrottledException.setError(i), 4));
                return true;
            }
            if (label == 4) {
                return false;
            }
            if (label == 5) {
                write(4);
                return true;
            }
            throw InvalidProtocolBufferException.setBackground();
        }

        @Override
        public boolean setLabel(int i, CodedOutputStream codedOutputStream) throws IOException {
            int label = FirebaseRemoteConfigFetchThrottledException.setLabel(i);
            if (label == 0) {
                long MediaBrowserCompatSearchResultReceiver = MediaBrowserCompatSearchResultReceiver();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.AudioAttributesCompatParcelizer(MediaBrowserCompatSearchResultReceiver);
                return true;
            }
            if (label == 1) {
                long MediaBrowserCompatItemReceiver = MediaBrowserCompatItemReceiver();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.write(MediaBrowserCompatItemReceiver);
                return true;
            }
            if (label == 2) {
                FirebaseInstallationsKtxRegistrar element = setElement();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.setFieldValue(element);
                return true;
            }
            if (label == 3) {
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                setOptions(codedOutputStream);
                int label2 = FirebaseRemoteConfigFetchThrottledException.setLabel(FirebaseRemoteConfigFetchThrottledException.setError(i), 4);
                setOptions(label2);
                codedOutputStream.MediaBrowserCompatMediaItem(label2);
                return true;
            }
            if (label == 4) {
                return false;
            }
            if (label == 5) {
                int MediaBrowserCompatMediaItem = MediaBrowserCompatMediaItem();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.AudioAttributesImplBaseParcelizer(MediaBrowserCompatMediaItem);
                return true;
            }
            throw InvalidProtocolBufferException.setBackground();
        }

        @Override
        public void ComponentActivity3() throws IOException {
            int PlaybackStateCompat;
            do {
                PlaybackStateCompat = PlaybackStateCompat();
                if (PlaybackStateCompat == 0) {
                    return;
                }
            } while (setElement(PlaybackStateCompat));
        }

        @Override
        public void setOptions(CodedOutputStream codedOutputStream) throws IOException {
            int PlaybackStateCompat;
            do {
                PlaybackStateCompat = PlaybackStateCompat();
                if (PlaybackStateCompat == 0) {
                    return;
                }
            } while (setLabel(PlaybackStateCompat, codedOutputStream));
        }

        @Override
        public double write() throws IOException {
            return Double.longBitsToDouble(MediaBrowserCompatItemReceiver());
        }

        @Override
        public float AudioAttributesCompatParcelizer() throws IOException {
            return Float.intBitsToFloat(MediaBrowserCompatMediaItem());
        }

        @Override
        public long getLifecycleRegistry() throws IOException {
            return MediaSessionCompatResultReceiverWrapper();
        }

        @Override
        public long MediaBrowserCompatSearchResultReceiver() throws IOException {
            return MediaSessionCompatResultReceiverWrapper();
        }

        @Override
        public int AudioAttributesImplApi26Parcelizer() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public long AudioAttributesImplBaseParcelizer() throws IOException {
            return MediaBrowserCompatItemReceiver();
        }

        @Override
        public int MediaBrowserCompatCustomActionResultReceiver() throws IOException {
            return MediaBrowserCompatMediaItem();
        }

        @Override
        public boolean IconCompatParcelizer() throws IOException {
            return MediaSessionCompatResultReceiverWrapper() != 0;
        }

        @Override
        public String ComponentActivity2() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat <= 0 || MediaMetadataCompat > getLifecycle()) {
                if (MediaMetadataCompat == 0) {
                    return "";
                }
                if (MediaMetadataCompat < 0) {
                    throw InvalidProtocolBufferException.read();
                }
                throw InvalidProtocolBufferException.setElement();
            }
            byte[] bArr = new byte[MediaMetadataCompat];
            long j = MediaMetadataCompat;
            initializeGaugeMetadataManager.setFieldValue(this.AudioAttributesImplApi21Parcelizer, bArr, 0L, j);
            String str = new String(bArr, r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setLabel);
            this.AudioAttributesImplApi21Parcelizer += j;
            return str;
        }

        @Override
        public String ParcelableVolumeInfo() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0 && MediaMetadataCompat <= getLifecycle()) {
                String label = FirebaseInitProvider.setLabel(this.read, setFieldValue(this.AudioAttributesImplApi21Parcelizer), MediaMetadataCompat);
                this.AudioAttributesImplApi21Parcelizer += MediaMetadataCompat;
                return label;
            }
            if (MediaMetadataCompat == 0) {
                return "";
            }
            if (MediaMetadataCompat <= 0) {
                throw InvalidProtocolBufferException.read();
            }
            throw InvalidProtocolBufferException.setElement();
        }

        @Override
        public void setError(int i, isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException {
            int i2 = this.setError;
            if (i2 >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            this.setError = i2 + 1;
            setfieldvalue.setOptions(this, handlemessageintent);
            setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(i, 4));
            this.setError--;
        }

        @Override
        public <T extends isLastFetchFailed> T setLabel(int i, putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException {
            int i2 = this.setError;
            if (i2 >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            this.setError = i2 + 1;
            T label = putmetric.setLabel(this, handlemessageintent);
            setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(i, 4));
            this.setError--;
            return label;
        }

        @Override
        @Deprecated
        public void setOptions(int i, isLastFetchFailed.setFieldValue setfieldvalue) throws IOException {
            setError(i, setfieldvalue, handleMessageIntent.setFieldValue());
        }

        @Override
        public void setLabel(isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (this.setError >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            int error = setError(MediaMetadataCompat);
            this.setError++;
            setfieldvalue.setOptions(this, handlemessageintent);
            setOptions(0);
            this.setError--;
            setLabel(error);
        }

        @Override
        public <T extends isLastFetchFailed> T setBackground(putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (this.setError >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            int error = setError(MediaMetadataCompat);
            this.setError++;
            T label = putmetric.setLabel(this, handlemessageintent);
            setOptions(0);
            this.setError--;
            setLabel(error);
            return label;
        }

        @Override
        public FirebaseInstallationsKtxRegistrar setElement() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat <= 0 || MediaMetadataCompat > getLifecycle()) {
                if (MediaMetadataCompat == 0) {
                    return FirebaseInstallationsKtxRegistrar.setOptions;
                }
                if (MediaMetadataCompat < 0) {
                    throw InvalidProtocolBufferException.read();
                }
                throw InvalidProtocolBufferException.setElement();
            }
            if (this.RemoteActionCompatParcelizer && this.setElement) {
                long j = this.AudioAttributesImplApi21Parcelizer;
                long j2 = MediaMetadataCompat;
                ByteBuffer label = setLabel(j, j + j2);
                this.AudioAttributesImplApi21Parcelizer += j2;
                return FirebaseInstallationsKtxRegistrar.setFieldValue(label);
            }
            byte[] bArr = new byte[MediaMetadataCompat];
            long j3 = MediaMetadataCompat;
            initializeGaugeMetadataManager.setFieldValue(this.AudioAttributesImplApi21Parcelizer, bArr, 0L, j3);
            this.AudioAttributesImplApi21Parcelizer += j3;
            return FirebaseInstallationsKtxRegistrar.setLabel(bArr);
        }

        @Override
        public byte[] read() throws IOException {
            return setBackground(MediaMetadataCompat());
        }

        @Override
        public ByteBuffer RemoteActionCompatParcelizer() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat <= 0 || MediaMetadataCompat > getLifecycle()) {
                if (MediaMetadataCompat == 0) {
                    return r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setFieldValue;
                }
                if (MediaMetadataCompat < 0) {
                    throw InvalidProtocolBufferException.read();
                }
                throw InvalidProtocolBufferException.setElement();
            }
            if (!this.RemoteActionCompatParcelizer && this.setElement) {
                long j = this.AudioAttributesImplApi21Parcelizer;
                long j2 = MediaMetadataCompat;
                ByteBuffer label = setLabel(j, j + j2);
                this.AudioAttributesImplApi21Parcelizer += j2;
                return label;
            }
            byte[] bArr = new byte[MediaMetadataCompat];
            long j3 = MediaMetadataCompat;
            initializeGaugeMetadataManager.setFieldValue(this.AudioAttributesImplApi21Parcelizer, bArr, 0L, j3);
            this.AudioAttributesImplApi21Parcelizer += j3;
            return ByteBuffer.wrap(bArr);
        }

        @Override
        public int PlaybackStateCompatCustomAction() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public int AudioAttributesImplApi21Parcelizer() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public int MediaSessionCompatQueueItem() throws IOException {
            return MediaBrowserCompatMediaItem();
        }

        @Override
        public long MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver() throws IOException {
            return MediaBrowserCompatItemReceiver();
        }

        @Override
        public int MediaSessionCompatToken() throws IOException {
            return FirebaseNoSignedInUserException.setFieldValue(MediaMetadataCompat());
        }

        @Override
        public long setContentView() throws IOException {
            return FirebaseNoSignedInUserException.setOptions(MediaSessionCompatResultReceiverWrapper());
        }

        @Override
        public int MediaMetadataCompat() throws IOException {
            int i;
            long j = this.AudioAttributesImplApi21Parcelizer;
            if (this.AudioAttributesImplApi26Parcelizer != j) {
                long j2 = 1 + j;
                byte background = initializeGaugeMetadataManager.setBackground(j);
                if (background >= 0) {
                    this.AudioAttributesImplApi21Parcelizer = j2;
                    return background;
                }
                if (this.AudioAttributesImplApi26Parcelizer - j2 >= 9) {
                    long j3 = 2 + j;
                    int background2 = (initializeGaugeMetadataManager.setBackground(j2) << 7) ^ background;
                    if (background2 < 0) {
                        i = background2 ^ (-128);
                    } else {
                        long j4 = 3 + j;
                        int background3 = background2 ^ (initializeGaugeMetadataManager.setBackground(j3) << 14);
                        if (background3 >= 0) {
                            i = background3 ^ 16256;
                        } else {
                            j3 = 4 + j;
                            int background4 = background3 ^ (initializeGaugeMetadataManager.setBackground(j4) << 21);
                            if (background4 < 0) {
                                i = (-2080896) ^ background4;
                            } else {
                                j4 = 5 + j;
                                byte background5 = initializeGaugeMetadataManager.setBackground(j3);
                                int i2 = (background4 ^ (background5 << 28)) ^ 266354560;
                                if (background5 < 0) {
                                    j3 = 6 + j;
                                    if (initializeGaugeMetadataManager.setBackground(j4) < 0) {
                                        j4 = 7 + j;
                                        if (initializeGaugeMetadataManager.setBackground(j3) < 0) {
                                            j3 = 8 + j;
                                            if (initializeGaugeMetadataManager.setBackground(j4) < 0) {
                                                j4 = j + 9;
                                                if (initializeGaugeMetadataManager.setBackground(j3) < 0) {
                                                    long j5 = j + 10;
                                                    if (initializeGaugeMetadataManager.setBackground(j4) >= 0) {
                                                        j3 = j5;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    i = i2;
                                }
                                i = i2;
                            }
                        }
                        j3 = j4;
                    }
                    this.AudioAttributesImplApi21Parcelizer = j3;
                    return i;
                }
            }
            return (int) RatingCompat();
        }

        private void onBackPressedDispatcherlambda1() throws IOException {
            if (getLifecycle() >= 10) {
                getOnBackPressedDispatcher();
            } else {
                initializeViewTreeOwners();
            }
        }

        private void getOnBackPressedDispatcher() throws IOException {
            for (int i = 0; i < 10; i++) {
                long j = this.AudioAttributesImplApi21Parcelizer;
                this.AudioAttributesImplApi21Parcelizer = 1 + j;
                if (initializeGaugeMetadataManager.setBackground(j) >= 0) {
                    return;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        private void initializeViewTreeOwners() throws IOException {
            for (int i = 0; i < 10; i++) {
                if (MediaDescriptionCompat() >= 0) {
                    return;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        @Override
        public long MediaSessionCompatResultReceiverWrapper() throws IOException {
            long j;
            long j2;
            long j3;
            long j4;
            int i;
            long j5 = this.AudioAttributesImplApi21Parcelizer;
            if (this.AudioAttributesImplApi26Parcelizer != j5) {
                long j6 = 1 + j5;
                byte background = initializeGaugeMetadataManager.setBackground(j5);
                if (background >= 0) {
                    this.AudioAttributesImplApi21Parcelizer = j6;
                    return background;
                }
                if (this.AudioAttributesImplApi26Parcelizer - j6 >= 9) {
                    long j7 = 2 + j5;
                    int background2 = (initializeGaugeMetadataManager.setBackground(j6) << 7) ^ background;
                    if (background2 >= 0) {
                        j = 3 + j5;
                        int background3 = background2 ^ (initializeGaugeMetadataManager.setBackground(j7) << 14);
                        if (background3 >= 0) {
                            j2 = background3 ^ 16256;
                        } else {
                            j7 = 4 + j5;
                            int background4 = background3 ^ (initializeGaugeMetadataManager.setBackground(j) << 21);
                            if (background4 < 0) {
                                i = (-2080896) ^ background4;
                            } else {
                                long j8 = 5 + j5;
                                long background5 = background4 ^ (initializeGaugeMetadataManager.setBackground(j7) << 28);
                                if (background5 >= 0) {
                                    j4 = 266354560;
                                } else {
                                    long j9 = 6 + j5;
                                    long background6 = background5 ^ (initializeGaugeMetadataManager.setBackground(j8) << 35);
                                    if (background6 < 0) {
                                        j3 = -34093383808L;
                                    } else {
                                        j8 = 7 + j5;
                                        background5 = background6 ^ (initializeGaugeMetadataManager.setBackground(j9) << 42);
                                        if (background5 >= 0) {
                                            j4 = 4363953127296L;
                                        } else {
                                            j9 = 8 + j5;
                                            background6 = background5 ^ (initializeGaugeMetadataManager.setBackground(j8) << 49);
                                            if (background6 < 0) {
                                                j3 = -558586000294016L;
                                            } else {
                                                long j10 = j5 + 9;
                                                long background7 = (background6 ^ (initializeGaugeMetadataManager.setBackground(j9) << 56)) ^ 71499008037633920L;
                                                if (background7 >= 0) {
                                                    j2 = background7;
                                                    j = j10;
                                                } else if (initializeGaugeMetadataManager.setBackground(j10) >= 0) {
                                                    long j11 = j5 + 10;
                                                    j2 = background7;
                                                    j = j11;
                                                }
                                            }
                                        }
                                    }
                                    j2 = j3 ^ background6;
                                    j = j9;
                                }
                                j2 = j4 ^ background5;
                                j = j8;
                            }
                        }
                        this.AudioAttributesImplApi21Parcelizer = j;
                        return j2;
                    }
                    i = background2 ^ (-128);
                    j2 = i;
                    j = j7;
                    this.AudioAttributesImplApi21Parcelizer = j;
                    return j2;
                }
            }
            return RatingCompat();
        }

        @Override
        long RatingCompat() throws IOException {
            long j = 0;
            for (int i = 0; i < 64; i += 7) {
                j |= (r3 & Byte.MAX_VALUE) << i;
                if ((MediaDescriptionCompat() & 128) == 0) {
                    return j;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        @Override
        public int MediaBrowserCompatMediaItem() throws IOException {
            long j = this.AudioAttributesImplApi21Parcelizer;
            if (this.AudioAttributesImplApi26Parcelizer - j < 4) {
                throw InvalidProtocolBufferException.setElement();
            }
            this.AudioAttributesImplApi21Parcelizer = 4 + j;
            return ((initializeGaugeMetadataManager.setBackground(j + 3) & 255) << 24) | (initializeGaugeMetadataManager.setBackground(j) & 255) | ((initializeGaugeMetadataManager.setBackground(1 + j) & 255) << 8) | ((initializeGaugeMetadataManager.setBackground(2 + j) & 255) << 16);
        }

        @Override
        public long MediaBrowserCompatItemReceiver() throws IOException {
            long j = this.AudioAttributesImplApi21Parcelizer;
            if (this.AudioAttributesImplApi26Parcelizer - j < 8) {
                throw InvalidProtocolBufferException.setElement();
            }
            this.AudioAttributesImplApi21Parcelizer = 8 + j;
            return ((initializeGaugeMetadataManager.setBackground(j + 7) & 255) << 56) | (initializeGaugeMetadataManager.setBackground(j) & 255) | ((initializeGaugeMetadataManager.setBackground(1 + j) & 255) << 8) | ((initializeGaugeMetadataManager.setBackground(2 + j) & 255) << 16) | ((initializeGaugeMetadataManager.setBackground(3 + j) & 255) << 24) | ((initializeGaugeMetadataManager.setBackground(4 + j) & 255) << 32) | ((initializeGaugeMetadataManager.setBackground(5 + j) & 255) << 40) | ((initializeGaugeMetadataManager.setBackground(6 + j) & 255) << 48);
        }

        @Override
        public void setLabel(boolean z) {
            this.setElement = z;
        }

        @Override
        public void ComponentActivity6() {
            this.AudioAttributesCompatParcelizer = this.AudioAttributesImplApi21Parcelizer;
        }

        @Override
        public int setError(int i) throws InvalidProtocolBufferException {
            if (i < 0) {
                throw InvalidProtocolBufferException.read();
            }
            int background = i + setBackground();
            int i2 = this.write;
            if (background > i2) {
                throw InvalidProtocolBufferException.setElement();
            }
            this.write = background;
            getOnBackPressedDispatcherannotations();
            return i2;
        }

        @Override
        public void setLabel(int i) {
            this.write = i;
            getOnBackPressedDispatcherannotations();
        }

        @Override
        public int setLabel() {
            int i = this.write;
            if (i == Integer.MAX_VALUE) {
                return -1;
            }
            return i - setBackground();
        }

        @Override
        public boolean setFieldValue() throws IOException {
            return this.AudioAttributesImplApi21Parcelizer == this.AudioAttributesImplApi26Parcelizer;
        }

        @Override
        public int setBackground() {
            return (int) (this.AudioAttributesImplApi21Parcelizer - this.AudioAttributesCompatParcelizer);
        }

        @Override
        public byte MediaDescriptionCompat() throws IOException {
            long j = this.AudioAttributesImplApi21Parcelizer;
            if (j == this.AudioAttributesImplApi26Parcelizer) {
                throw InvalidProtocolBufferException.setElement();
            }
            this.AudioAttributesImplApi21Parcelizer = 1 + j;
            return initializeGaugeMetadataManager.setBackground(j);
        }

        @Override
        public byte[] setBackground(int i) throws IOException {
            if (i < 0 || i > getLifecycle()) {
                if (i > 0) {
                    throw InvalidProtocolBufferException.setElement();
                }
                if (i == 0) {
                    return r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setBackground;
                }
                throw InvalidProtocolBufferException.read();
            }
            byte[] bArr = new byte[i];
            long j = this.AudioAttributesImplApi21Parcelizer;
            long j2 = i;
            setLabel(j, j + j2).get(bArr);
            this.AudioAttributesImplApi21Parcelizer += j2;
            return bArr;
        }

        @Override
        public void write(int i) throws IOException {
            if (i >= 0 && i <= getLifecycle()) {
                this.AudioAttributesImplApi21Parcelizer += i;
            } else {
                if (i < 0) {
                    throw InvalidProtocolBufferException.read();
                }
                throw InvalidProtocolBufferException.setElement();
            }
        }

        private void getOnBackPressedDispatcherannotations() {
            long j = this.AudioAttributesImplApi26Parcelizer + this.IconCompatParcelizer;
            this.AudioAttributesImplApi26Parcelizer = j;
            int i = (int) (j - this.AudioAttributesCompatParcelizer);
            int i2 = this.write;
            if (i > i2) {
                int i3 = i - i2;
                this.IconCompatParcelizer = i3;
                this.AudioAttributesImplApi26Parcelizer = j - i3;
                return;
            }
            this.IconCompatParcelizer = 0;
        }

        private int getLifecycle() {
            return (int) (this.AudioAttributesImplApi26Parcelizer - this.AudioAttributesImplApi21Parcelizer);
        }

        private int setFieldValue(long j) {
            return (int) (j - this.setFieldValue);
        }

        private ByteBuffer setLabel(long j, long j2) throws IOException {
            int position = this.read.position();
            int limit = this.read.limit();
            try {
                try {
                    this.read.position(setFieldValue(j));
                    this.read.limit(setFieldValue(j2));
                    return this.read.slice();
                } catch (IllegalArgumentException unused) {
                    throw InvalidProtocolBufferException.setElement();
                }
            } finally {
                this.read.position(position);
                this.read.limit(limit);
            }
        }
    }

    static final class setBackground extends FirebaseNoSignedInUserException {
        private int AudioAttributesImplApi26Parcelizer;
        private int AudioAttributesImplBaseParcelizer;
        private int IconCompatParcelizer;
        private InterfaceC0020setBackground MediaBrowserCompatCustomActionResultReceiver;
        private final InputStream RemoteActionCompatParcelizer;
        private int read;
        private int setElement;
        private final byte[] setFieldValue;
        private int write;

        interface InterfaceC0020setBackground {
            void setError();
        }

        @Override
        public void setLabel(boolean z) {
        }

        private setBackground(InputStream inputStream, int i) {
            super();
            this.read = Integer.MAX_VALUE;
            this.MediaBrowserCompatCustomActionResultReceiver = null;
            r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setOptions(inputStream, "input");
            this.RemoteActionCompatParcelizer = inputStream;
            this.setFieldValue = new byte[i];
            this.setElement = 0;
            this.AudioAttributesImplApi26Parcelizer = 0;
            this.AudioAttributesImplBaseParcelizer = 0;
        }

        @Override
        public int PlaybackStateCompat() throws IOException {
            if (setFieldValue()) {
                this.IconCompatParcelizer = 0;
                return 0;
            }
            int MediaMetadataCompat = MediaMetadataCompat();
            this.IconCompatParcelizer = MediaMetadataCompat;
            if (FirebaseRemoteConfigFetchThrottledException.setError(MediaMetadataCompat) == 0) {
                throw InvalidProtocolBufferException.setError();
            }
            return this.IconCompatParcelizer;
        }

        @Override
        public void setOptions(int i) throws InvalidProtocolBufferException {
            if (this.IconCompatParcelizer != i) {
                throw InvalidProtocolBufferException.setOptions();
            }
        }

        @Override
        public int setOptions() {
            return this.IconCompatParcelizer;
        }

        @Override
        public boolean setElement(int i) throws IOException {
            int label = FirebaseRemoteConfigFetchThrottledException.setLabel(i);
            if (label == 0) {
                getOnBackPressedDispatcher();
                return true;
            }
            if (label == 1) {
                write(8);
                return true;
            }
            if (label == 2) {
                write(MediaMetadataCompat());
                return true;
            }
            if (label == 3) {
                ComponentActivity3();
                setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(FirebaseRemoteConfigFetchThrottledException.setError(i), 4));
                return true;
            }
            if (label == 4) {
                return false;
            }
            if (label == 5) {
                write(4);
                return true;
            }
            throw InvalidProtocolBufferException.setBackground();
        }

        @Override
        public boolean setLabel(int i, CodedOutputStream codedOutputStream) throws IOException {
            int label = FirebaseRemoteConfigFetchThrottledException.setLabel(i);
            if (label == 0) {
                long MediaBrowserCompatSearchResultReceiver = MediaBrowserCompatSearchResultReceiver();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.AudioAttributesCompatParcelizer(MediaBrowserCompatSearchResultReceiver);
                return true;
            }
            if (label == 1) {
                long MediaBrowserCompatItemReceiver = MediaBrowserCompatItemReceiver();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.write(MediaBrowserCompatItemReceiver);
                return true;
            }
            if (label == 2) {
                FirebaseInstallationsKtxRegistrar element = setElement();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.setFieldValue(element);
                return true;
            }
            if (label == 3) {
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                setOptions(codedOutputStream);
                int label2 = FirebaseRemoteConfigFetchThrottledException.setLabel(FirebaseRemoteConfigFetchThrottledException.setError(i), 4);
                setOptions(label2);
                codedOutputStream.MediaBrowserCompatMediaItem(label2);
                return true;
            }
            if (label == 4) {
                return false;
            }
            if (label == 5) {
                int MediaBrowserCompatMediaItem = MediaBrowserCompatMediaItem();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.AudioAttributesImplBaseParcelizer(MediaBrowserCompatMediaItem);
                return true;
            }
            throw InvalidProtocolBufferException.setBackground();
        }

        @Override
        public void ComponentActivity3() throws IOException {
            int PlaybackStateCompat;
            do {
                PlaybackStateCompat = PlaybackStateCompat();
                if (PlaybackStateCompat == 0) {
                    return;
                }
            } while (setElement(PlaybackStateCompat));
        }

        @Override
        public void setOptions(CodedOutputStream codedOutputStream) throws IOException {
            int PlaybackStateCompat;
            do {
                PlaybackStateCompat = PlaybackStateCompat();
                if (PlaybackStateCompat == 0) {
                    return;
                }
            } while (setLabel(PlaybackStateCompat, codedOutputStream));
        }

        class setFieldValue implements InterfaceC0020setBackground {
            private int setError;
            private ByteArrayOutputStream setFieldValue;

            private setFieldValue() {
                this.setError = setBackground.this.AudioAttributesImplApi26Parcelizer;
            }

            @Override
            public void setError() {
                if (this.setFieldValue == null) {
                    this.setFieldValue = new ByteArrayOutputStream();
                }
                this.setFieldValue.write(setBackground.this.setFieldValue, this.setError, setBackground.this.AudioAttributesImplApi26Parcelizer - this.setError);
                this.setError = 0;
            }

            ByteBuffer setOptions() {
                ByteArrayOutputStream byteArrayOutputStream = this.setFieldValue;
                if (byteArrayOutputStream == null) {
                    return ByteBuffer.wrap(setBackground.this.setFieldValue, this.setError, setBackground.this.AudioAttributesImplApi26Parcelizer - this.setError);
                }
                byteArrayOutputStream.write(setBackground.this.setFieldValue, this.setError, setBackground.this.AudioAttributesImplApi26Parcelizer);
                return ByteBuffer.wrap(this.setFieldValue.toByteArray());
            }
        }

        @Override
        public double write() throws IOException {
            return Double.longBitsToDouble(MediaBrowserCompatItemReceiver());
        }

        @Override
        public float AudioAttributesCompatParcelizer() throws IOException {
            return Float.intBitsToFloat(MediaBrowserCompatMediaItem());
        }

        @Override
        public long getLifecycleRegistry() throws IOException {
            return MediaSessionCompatResultReceiverWrapper();
        }

        @Override
        public long MediaBrowserCompatSearchResultReceiver() throws IOException {
            return MediaSessionCompatResultReceiverWrapper();
        }

        @Override
        public int AudioAttributesImplApi26Parcelizer() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public long AudioAttributesImplBaseParcelizer() throws IOException {
            return MediaBrowserCompatItemReceiver();
        }

        @Override
        public int MediaBrowserCompatCustomActionResultReceiver() throws IOException {
            return MediaBrowserCompatMediaItem();
        }

        @Override
        public boolean IconCompatParcelizer() throws IOException {
            return MediaSessionCompatResultReceiverWrapper() != 0;
        }

        @Override
        public String ComponentActivity2() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0) {
                int i = this.setElement;
                int i2 = this.AudioAttributesImplApi26Parcelizer;
                if (MediaMetadataCompat <= i - i2) {
                    String str = new String(this.setFieldValue, i2, MediaMetadataCompat, r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setLabel);
                    this.AudioAttributesImplApi26Parcelizer += MediaMetadataCompat;
                    return str;
                }
            }
            if (MediaMetadataCompat == 0) {
                return "";
            }
            if (MediaMetadataCompat <= this.setElement) {
                AudioAttributesImplApi21Parcelizer(MediaMetadataCompat);
                String str2 = new String(this.setFieldValue, this.AudioAttributesImplApi26Parcelizer, MediaMetadataCompat, r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setLabel);
                this.AudioAttributesImplApi26Parcelizer += MediaMetadataCompat;
                return str2;
            }
            return new String(setFieldValue(MediaMetadataCompat, false), r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setLabel);
        }

        @Override
        public String ParcelableVolumeInfo() throws IOException {
            byte[] fieldValue;
            int MediaMetadataCompat = MediaMetadataCompat();
            int i = this.AudioAttributesImplApi26Parcelizer;
            int i2 = this.setElement;
            if (MediaMetadataCompat <= i2 - i && MediaMetadataCompat > 0) {
                fieldValue = this.setFieldValue;
                this.AudioAttributesImplApi26Parcelizer = i + MediaMetadataCompat;
            } else {
                if (MediaMetadataCompat == 0) {
                    return "";
                }
                i = 0;
                if (MediaMetadataCompat <= i2) {
                    AudioAttributesImplApi21Parcelizer(MediaMetadataCompat);
                    fieldValue = this.setFieldValue;
                    this.AudioAttributesImplApi26Parcelizer = MediaMetadataCompat;
                } else {
                    fieldValue = setFieldValue(MediaMetadataCompat, false);
                }
            }
            return FirebaseInitProvider.setOptions(fieldValue, i, MediaMetadataCompat);
        }

        @Override
        public void setError(int i, isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException {
            int i2 = this.setError;
            if (i2 >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            this.setError = i2 + 1;
            setfieldvalue.setOptions(this, handlemessageintent);
            setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(i, 4));
            this.setError--;
        }

        @Override
        public <T extends isLastFetchFailed> T setLabel(int i, putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException {
            int i2 = this.setError;
            if (i2 >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            this.setError = i2 + 1;
            T label = putmetric.setLabel(this, handlemessageintent);
            setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(i, 4));
            this.setError--;
            return label;
        }

        @Override
        @Deprecated
        public void setOptions(int i, isLastFetchFailed.setFieldValue setfieldvalue) throws IOException {
            setError(i, setfieldvalue, handleMessageIntent.setFieldValue());
        }

        @Override
        public void setLabel(isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (this.setError >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            int error = setError(MediaMetadataCompat);
            this.setError++;
            setfieldvalue.setOptions(this, handlemessageintent);
            setOptions(0);
            this.setError--;
            setLabel(error);
        }

        @Override
        public <T extends isLastFetchFailed> T setBackground(putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (this.setError >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            int error = setError(MediaMetadataCompat);
            this.setError++;
            T label = putmetric.setLabel(this, handlemessageintent);
            setOptions(0);
            this.setError--;
            setLabel(error);
            return label;
        }

        @Override
        public FirebaseInstallationsKtxRegistrar setElement() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            int i = this.setElement;
            int i2 = this.AudioAttributesImplApi26Parcelizer;
            if (MediaMetadataCompat > i - i2 || MediaMetadataCompat <= 0) {
                if (MediaMetadataCompat == 0) {
                    return FirebaseInstallationsKtxRegistrar.setOptions;
                }
                return read(MediaMetadataCompat);
            }
            FirebaseInstallationsKtxRegistrar fieldValue = FirebaseInstallationsKtxRegistrar.setFieldValue(this.setFieldValue, i2, MediaMetadataCompat);
            this.AudioAttributesImplApi26Parcelizer += MediaMetadataCompat;
            return fieldValue;
        }

        @Override
        public byte[] read() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            int i = this.setElement;
            int i2 = this.AudioAttributesImplApi26Parcelizer;
            if (MediaMetadataCompat <= i - i2 && MediaMetadataCompat > 0) {
                byte[] copyOfRange = Arrays.copyOfRange(this.setFieldValue, i2, i2 + MediaMetadataCompat);
                this.AudioAttributesImplApi26Parcelizer += MediaMetadataCompat;
                return copyOfRange;
            }
            return setFieldValue(MediaMetadataCompat, false);
        }

        @Override
        public ByteBuffer RemoteActionCompatParcelizer() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            int i = this.setElement;
            int i2 = this.AudioAttributesImplApi26Parcelizer;
            if (MediaMetadataCompat > i - i2 || MediaMetadataCompat <= 0) {
                if (MediaMetadataCompat == 0) {
                    return r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setFieldValue;
                }
                return ByteBuffer.wrap(setFieldValue(MediaMetadataCompat, true));
            }
            ByteBuffer wrap = ByteBuffer.wrap(Arrays.copyOfRange(this.setFieldValue, i2, i2 + MediaMetadataCompat));
            this.AudioAttributesImplApi26Parcelizer += MediaMetadataCompat;
            return wrap;
        }

        @Override
        public int PlaybackStateCompatCustomAction() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public int AudioAttributesImplApi21Parcelizer() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public int MediaSessionCompatQueueItem() throws IOException {
            return MediaBrowserCompatMediaItem();
        }

        @Override
        public long MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver() throws IOException {
            return MediaBrowserCompatItemReceiver();
        }

        @Override
        public int MediaSessionCompatToken() throws IOException {
            return FirebaseNoSignedInUserException.setFieldValue(MediaMetadataCompat());
        }

        @Override
        public long setContentView() throws IOException {
            return FirebaseNoSignedInUserException.setOptions(MediaSessionCompatResultReceiverWrapper());
        }

        @Override
        public int MediaMetadataCompat() throws IOException {
            int i;
            int i2 = this.AudioAttributesImplApi26Parcelizer;
            int i3 = this.setElement;
            if (i3 != i2) {
                byte[] bArr = this.setFieldValue;
                int i4 = i2 + 1;
                byte b = bArr[i2];
                if (b >= 0) {
                    this.AudioAttributesImplApi26Parcelizer = i4;
                    return b;
                }
                if (i3 - i4 >= 9) {
                    int i5 = i2 + 2;
                    int i6 = (bArr[i4] << 7) ^ b;
                    if (i6 < 0) {
                        i = i6 ^ (-128);
                    } else {
                        int i7 = i2 + 3;
                        int i8 = (bArr[i5] << 14) ^ i6;
                        if (i8 >= 0) {
                            i = i8 ^ 16256;
                        } else {
                            int i9 = i2 + 4;
                            int i10 = i8 ^ (bArr[i7] << 21);
                            if (i10 < 0) {
                                i = (-2080896) ^ i10;
                            } else {
                                i7 = i2 + 5;
                                byte b2 = bArr[i9];
                                int i11 = (i10 ^ (b2 << 28)) ^ 266354560;
                                if (b2 < 0) {
                                    i9 = i2 + 6;
                                    if (bArr[i7] < 0) {
                                        i7 = i2 + 7;
                                        if (bArr[i9] < 0) {
                                            i9 = i2 + 8;
                                            if (bArr[i7] < 0) {
                                                i7 = i2 + 9;
                                                if (bArr[i9] < 0) {
                                                    if (bArr[i7] >= 0) {
                                                        i5 = i2 + 10;
                                                        i = i11;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    i = i11;
                                }
                                i = i11;
                            }
                            i5 = i9;
                        }
                        i5 = i7;
                    }
                    this.AudioAttributesImplApi26Parcelizer = i5;
                    return i;
                }
            }
            return (int) RatingCompat();
        }

        private void getOnBackPressedDispatcher() throws IOException {
            if (this.setElement - this.AudioAttributesImplApi26Parcelizer >= 10) {
                getOnBackPressedDispatcherannotations();
            } else {
                addContentView();
            }
        }

        private void getOnBackPressedDispatcherannotations() throws IOException {
            for (int i = 0; i < 10; i++) {
                byte[] bArr = this.setFieldValue;
                int i2 = this.AudioAttributesImplApi26Parcelizer;
                this.AudioAttributesImplApi26Parcelizer = i2 + 1;
                if (bArr[i2] >= 0) {
                    return;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        private void addContentView() throws IOException {
            for (int i = 0; i < 10; i++) {
                if (MediaDescriptionCompat() >= 0) {
                    return;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        @Override
        public long MediaSessionCompatResultReceiverWrapper() throws IOException {
            long j;
            long j2;
            long j3;
            int i = this.AudioAttributesImplApi26Parcelizer;
            int i2 = this.setElement;
            if (i2 != i) {
                byte[] bArr = this.setFieldValue;
                int i3 = i + 1;
                byte b = bArr[i];
                if (b >= 0) {
                    this.AudioAttributesImplApi26Parcelizer = i3;
                    return b;
                }
                if (i2 - i3 >= 9) {
                    int i4 = i + 2;
                    int i5 = (bArr[i3] << 7) ^ b;
                    if (i5 < 0) {
                        j = i5 ^ (-128);
                    } else {
                        int i6 = i + 3;
                        int i7 = (bArr[i4] << 14) ^ i5;
                        if (i7 >= 0) {
                            j = i7 ^ 16256;
                            i4 = i6;
                        } else {
                            int i8 = i + 4;
                            int i9 = i7 ^ (bArr[i6] << 21);
                            if (i9 < 0) {
                                long j4 = (-2080896) ^ i9;
                                i4 = i8;
                                j = j4;
                            } else {
                                long j5 = i9;
                                i4 = i + 5;
                                long j6 = j5 ^ (bArr[i8] << 28);
                                if (j6 >= 0) {
                                    j3 = 266354560;
                                } else {
                                    int i10 = i + 6;
                                    long j7 = j6 ^ (bArr[i4] << 35);
                                    if (j7 < 0) {
                                        j2 = -34093383808L;
                                    } else {
                                        i4 = i + 7;
                                        j6 = j7 ^ (bArr[i10] << 42);
                                        if (j6 >= 0) {
                                            j3 = 4363953127296L;
                                        } else {
                                            i10 = i + 8;
                                            j7 = j6 ^ (bArr[i4] << 49);
                                            if (j7 < 0) {
                                                j2 = -558586000294016L;
                                            } else {
                                                i4 = i + 9;
                                                long j8 = (j7 ^ (bArr[i10] << 56)) ^ 71499008037633920L;
                                                if (j8 < 0) {
                                                    if (bArr[i4] >= 0) {
                                                        i4 = i + 10;
                                                    }
                                                }
                                                j = j8;
                                            }
                                        }
                                    }
                                    j = j7 ^ j2;
                                    i4 = i10;
                                }
                                j = j6 ^ j3;
                            }
                        }
                    }
                    this.AudioAttributesImplApi26Parcelizer = i4;
                    return j;
                }
            }
            return RatingCompat();
        }

        @Override
        long RatingCompat() throws IOException {
            long j = 0;
            for (int i = 0; i < 64; i += 7) {
                j |= (r3 & Byte.MAX_VALUE) << i;
                if ((MediaDescriptionCompat() & 128) == 0) {
                    return j;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        @Override
        public int MediaBrowserCompatMediaItem() throws IOException {
            int i = this.AudioAttributesImplApi26Parcelizer;
            if (this.setElement - i < 4) {
                AudioAttributesImplApi21Parcelizer(4);
                i = this.AudioAttributesImplApi26Parcelizer;
            }
            byte[] bArr = this.setFieldValue;
            this.AudioAttributesImplApi26Parcelizer = i + 4;
            return ((bArr[i + 3] & 255) << 24) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16);
        }

        @Override
        public long MediaBrowserCompatItemReceiver() throws IOException {
            int i = this.AudioAttributesImplApi26Parcelizer;
            if (this.setElement - i < 8) {
                AudioAttributesImplApi21Parcelizer(8);
                i = this.AudioAttributesImplApi26Parcelizer;
            }
            byte[] bArr = this.setFieldValue;
            this.AudioAttributesImplApi26Parcelizer = i + 8;
            return ((bArr[i + 7] & 255) << 56) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16) | ((bArr[i + 3] & 255) << 24) | ((bArr[i + 4] & 255) << 32) | ((bArr[i + 5] & 255) << 40) | ((bArr[i + 6] & 255) << 48);
        }

        @Override
        public void ComponentActivity6() {
            this.AudioAttributesImplBaseParcelizer = -this.AudioAttributesImplApi26Parcelizer;
        }

        @Override
        public int setError(int i) throws InvalidProtocolBufferException {
            if (i < 0) {
                throw InvalidProtocolBufferException.read();
            }
            int i2 = i + this.AudioAttributesImplBaseParcelizer + this.AudioAttributesImplApi26Parcelizer;
            int i3 = this.read;
            if (i2 > i3) {
                throw InvalidProtocolBufferException.setElement();
            }
            this.read = i2;
            getLifecycle();
            return i3;
        }

        private void getLifecycle() {
            int i = this.setElement + this.write;
            this.setElement = i;
            int i2 = this.AudioAttributesImplBaseParcelizer + i;
            int i3 = this.read;
            if (i2 > i3) {
                int i4 = i2 - i3;
                this.write = i4;
                this.setElement = i - i4;
                return;
            }
            this.write = 0;
        }

        @Override
        public void setLabel(int i) {
            this.read = i;
            getLifecycle();
        }

        @Override
        public int setLabel() {
            int i = this.read;
            if (i == Integer.MAX_VALUE) {
                return -1;
            }
            return i - (this.AudioAttributesImplBaseParcelizer + this.AudioAttributesImplApi26Parcelizer);
        }

        @Override
        public boolean setFieldValue() throws IOException {
            return this.AudioAttributesImplApi26Parcelizer == this.setElement && !AudioAttributesCompatParcelizer(1);
        }

        @Override
        public int setBackground() {
            return this.AudioAttributesImplBaseParcelizer + this.AudioAttributesImplApi26Parcelizer;
        }

        private void AudioAttributesImplApi21Parcelizer(int i) throws IOException {
            if (AudioAttributesCompatParcelizer(i)) {
                return;
            }
            if (i > (this.setBackground - this.AudioAttributesImplBaseParcelizer) - this.AudioAttributesImplApi26Parcelizer) {
                throw InvalidProtocolBufferException.IconCompatParcelizer();
            }
            throw InvalidProtocolBufferException.setElement();
        }

        private boolean AudioAttributesCompatParcelizer(int i) throws IOException {
            int i2 = this.AudioAttributesImplApi26Parcelizer;
            if (i2 + i <= this.setElement) {
                throw new IllegalStateException("refillBuffer() called when " + i + " bytes were already available in buffer");
            }
            int i3 = this.setBackground;
            int i4 = this.AudioAttributesImplBaseParcelizer;
            if (i > (i3 - i4) - i2 || i4 + i2 + i > this.read) {
                return false;
            }
            InterfaceC0020setBackground interfaceC0020setBackground = this.MediaBrowserCompatCustomActionResultReceiver;
            if (interfaceC0020setBackground != null) {
                interfaceC0020setBackground.setError();
            }
            int i5 = this.AudioAttributesImplApi26Parcelizer;
            if (i5 > 0) {
                int i6 = this.setElement;
                if (i6 > i5) {
                    byte[] bArr = this.setFieldValue;
                    System.arraycopy(bArr, i5, bArr, 0, i6 - i5);
                }
                this.AudioAttributesImplBaseParcelizer += i5;
                this.setElement -= i5;
                this.AudioAttributesImplApi26Parcelizer = 0;
            }
            InputStream inputStream = this.RemoteActionCompatParcelizer;
            byte[] bArr2 = this.setFieldValue;
            int i7 = this.setElement;
            int read = inputStream.read(bArr2, i7, Math.min(bArr2.length - i7, (this.setBackground - this.AudioAttributesImplBaseParcelizer) - i7));
            if (read == 0 || read < -1 || read > this.setFieldValue.length) {
                throw new IllegalStateException(this.RemoteActionCompatParcelizer.getClass() + "#read(byte[]) returned invalid result: " + read + "\nThe InputStream implementation is buggy.");
            }
            if (read <= 0) {
                return false;
            }
            this.setElement += read;
            getLifecycle();
            if (this.setElement >= i) {
                return true;
            }
            return AudioAttributesCompatParcelizer(i);
        }

        @Override
        public byte MediaDescriptionCompat() throws IOException {
            if (this.AudioAttributesImplApi26Parcelizer == this.setElement) {
                AudioAttributesImplApi21Parcelizer(1);
            }
            byte[] bArr = this.setFieldValue;
            int i = this.AudioAttributesImplApi26Parcelizer;
            this.AudioAttributesImplApi26Parcelizer = i + 1;
            return bArr[i];
        }

        @Override
        public byte[] setBackground(int i) throws IOException {
            int i2 = this.AudioAttributesImplApi26Parcelizer;
            if (i <= this.setElement - i2 && i > 0) {
                int i3 = i + i2;
                this.AudioAttributesImplApi26Parcelizer = i3;
                return Arrays.copyOfRange(this.setFieldValue, i2, i3);
            }
            return setFieldValue(i, false);
        }

        private byte[] setFieldValue(int i, boolean z) throws IOException {
            byte[] AudioAttributesImplBaseParcelizer = AudioAttributesImplBaseParcelizer(i);
            if (AudioAttributesImplBaseParcelizer != null) {
                return z ? (byte[]) AudioAttributesImplBaseParcelizer.clone() : AudioAttributesImplBaseParcelizer;
            }
            int i2 = this.AudioAttributesImplApi26Parcelizer;
            int i3 = this.setElement;
            int i4 = i3 - i2;
            this.AudioAttributesImplBaseParcelizer += i3;
            this.AudioAttributesImplApi26Parcelizer = 0;
            this.setElement = 0;
            List<byte[]> AudioAttributesImplApi26Parcelizer = AudioAttributesImplApi26Parcelizer(i - i4);
            byte[] bArr = new byte[i];
            System.arraycopy(this.setFieldValue, i2, bArr, 0, i4);
            for (byte[] bArr2 : AudioAttributesImplApi26Parcelizer) {
                System.arraycopy(bArr2, 0, bArr, i4, bArr2.length);
                i4 += bArr2.length;
            }
            return bArr;
        }

        private byte[] AudioAttributesImplBaseParcelizer(int i) throws IOException {
            if (i == 0) {
                return r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setBackground;
            }
            if (i < 0) {
                throw InvalidProtocolBufferException.read();
            }
            int i2 = this.AudioAttributesImplBaseParcelizer;
            int i3 = this.AudioAttributesImplApi26Parcelizer;
            int i4 = i2 + i3 + i;
            if (i4 - this.setBackground > 0) {
                throw InvalidProtocolBufferException.IconCompatParcelizer();
            }
            int i5 = this.read;
            if (i4 > i5) {
                write((i5 - i2) - i3);
                throw InvalidProtocolBufferException.setElement();
            }
            int i6 = this.setElement - i3;
            int i7 = i - i6;
            if (i7 >= 4096 && i7 > this.RemoteActionCompatParcelizer.available()) {
                return null;
            }
            byte[] bArr = new byte[i];
            System.arraycopy(this.setFieldValue, this.AudioAttributesImplApi26Parcelizer, bArr, 0, i6);
            this.AudioAttributesImplBaseParcelizer += this.setElement;
            this.AudioAttributesImplApi26Parcelizer = 0;
            this.setElement = 0;
            while (i6 < i) {
                int read = this.RemoteActionCompatParcelizer.read(bArr, i6, i - i6);
                if (read == -1) {
                    throw InvalidProtocolBufferException.setElement();
                }
                this.AudioAttributesImplBaseParcelizer += read;
                i6 += read;
            }
            return bArr;
        }

        private List<byte[]> AudioAttributesImplApi26Parcelizer(int i) throws IOException {
            ArrayList arrayList = new ArrayList();
            while (i > 0) {
                int min = Math.min(i, 4096);
                byte[] bArr = new byte[min];
                int i2 = 0;
                while (i2 < min) {
                    int read = this.RemoteActionCompatParcelizer.read(bArr, i2, min - i2);
                    if (read == -1) {
                        throw InvalidProtocolBufferException.setElement();
                    }
                    this.AudioAttributesImplBaseParcelizer += read;
                    i2 += read;
                }
                i -= min;
                arrayList.add(bArr);
            }
            return arrayList;
        }

        private FirebaseInstallationsKtxRegistrar read(int i) throws IOException {
            byte[] AudioAttributesImplBaseParcelizer = AudioAttributesImplBaseParcelizer(i);
            if (AudioAttributesImplBaseParcelizer != null) {
                return FirebaseInstallationsKtxRegistrar.setError(AudioAttributesImplBaseParcelizer);
            }
            int i2 = this.AudioAttributesImplApi26Parcelizer;
            int i3 = this.setElement;
            int i4 = i3 - i2;
            this.AudioAttributesImplBaseParcelizer += i3;
            this.AudioAttributesImplApi26Parcelizer = 0;
            this.setElement = 0;
            List<byte[]> AudioAttributesImplApi26Parcelizer = AudioAttributesImplApi26Parcelizer(i - i4);
            byte[] bArr = new byte[i];
            System.arraycopy(this.setFieldValue, i2, bArr, 0, i4);
            for (byte[] bArr2 : AudioAttributesImplApi26Parcelizer) {
                System.arraycopy(bArr2, 0, bArr, i4, bArr2.length);
                i4 += bArr2.length;
            }
            return FirebaseInstallationsKtxRegistrar.setLabel(bArr);
        }

        @Override
        public void write(int i) throws IOException {
            int i2 = this.setElement;
            int i3 = this.AudioAttributesImplApi26Parcelizer;
            if (i <= i2 - i3 && i >= 0) {
                this.AudioAttributesImplApi26Parcelizer = i3 + i;
            } else {
                MediaBrowserCompatCustomActionResultReceiver(i);
            }
        }

        private void MediaBrowserCompatCustomActionResultReceiver(int i) throws IOException {
            if (i < 0) {
                throw InvalidProtocolBufferException.read();
            }
            int i2 = this.AudioAttributesImplBaseParcelizer;
            int i3 = this.AudioAttributesImplApi26Parcelizer;
            int i4 = this.read;
            int i5 = i2 + i3;
            if (i5 + i > i4) {
                write((i4 - i2) - i3);
                throw InvalidProtocolBufferException.setElement();
            }
            int i6 = 0;
            if (this.MediaBrowserCompatCustomActionResultReceiver == null) {
                this.AudioAttributesImplBaseParcelizer = i5;
                int i7 = this.setElement;
                this.setElement = 0;
                this.AudioAttributesImplApi26Parcelizer = 0;
                i6 = i7 - i3;
                while (i6 < i) {
                    try {
                        long j = i - i6;
                        long skip = this.RemoteActionCompatParcelizer.skip(j);
                        if (skip < 0 || skip > j) {
                            throw new IllegalStateException(this.RemoteActionCompatParcelizer.getClass() + "#skip returned invalid result: " + skip + "\nThe InputStream implementation is buggy.");
                        }
                        if (skip == 0) {
                            break;
                        } else {
                            i6 += (int) skip;
                        }
                    } finally {
                        this.AudioAttributesImplBaseParcelizer += i6;
                        getLifecycle();
                    }
                }
            }
            if (i6 >= i) {
                return;
            }
            int i8 = this.setElement;
            int i9 = i8 - this.AudioAttributesImplApi26Parcelizer;
            this.AudioAttributesImplApi26Parcelizer = i8;
            AudioAttributesImplApi21Parcelizer(1);
            while (true) {
                int i10 = i - i9;
                int i11 = this.setElement;
                if (i10 > i11) {
                    i9 += i11;
                    this.AudioAttributesImplApi26Parcelizer = i11;
                    AudioAttributesImplApi21Parcelizer(1);
                } else {
                    this.AudioAttributesImplApi26Parcelizer = i10;
                    return;
                }
            }
        }
    }

    static final class setLabel extends FirebaseNoSignedInUserException {
        private boolean AudioAttributesCompatParcelizer;
        private int AudioAttributesImplApi21Parcelizer;
        private Iterable<ByteBuffer> AudioAttributesImplApi26Parcelizer;
        private boolean AudioAttributesImplBaseParcelizer;
        private long IconCompatParcelizer;
        private Iterator<ByteBuffer> MediaBrowserCompatCustomActionResultReceiver;
        private int MediaBrowserCompatMediaItem;
        private int MediaBrowserCompatSearchResultReceiver;
        private int MediaDescriptionCompat;
        private int MediaMetadataCompat;
        private long RemoteActionCompatParcelizer;
        private long read;
        private long setElement;
        private int setFieldValue;
        private ByteBuffer write;

        private setLabel(Iterable<ByteBuffer> iterable, int i, boolean z) {
            super();
            this.AudioAttributesImplApi21Parcelizer = Integer.MAX_VALUE;
            this.MediaDescriptionCompat = i;
            this.AudioAttributesImplApi26Parcelizer = iterable;
            this.MediaBrowserCompatCustomActionResultReceiver = iterable.iterator();
            this.AudioAttributesCompatParcelizer = z;
            this.MediaBrowserCompatSearchResultReceiver = 0;
            this.MediaMetadataCompat = 0;
            if (i == 0) {
                this.write = r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setFieldValue;
                this.read = 0L;
                this.RemoteActionCompatParcelizer = 0L;
                this.setElement = 0L;
                this.IconCompatParcelizer = 0L;
                return;
            }
            onCreate();
        }

        private void getLifecycle() throws InvalidProtocolBufferException {
            if (!this.MediaBrowserCompatCustomActionResultReceiver.hasNext()) {
                throw InvalidProtocolBufferException.setElement();
            }
            onCreate();
        }

        private void onCreate() {
            ByteBuffer next = this.MediaBrowserCompatCustomActionResultReceiver.next();
            this.write = next;
            this.MediaBrowserCompatSearchResultReceiver += (int) (this.read - this.RemoteActionCompatParcelizer);
            long position = next.position();
            this.read = position;
            this.RemoteActionCompatParcelizer = position;
            this.setElement = this.write.limit();
            long label = initializeGaugeMetadataManager.setLabel(this.write);
            this.IconCompatParcelizer = label;
            this.read += label;
            this.RemoteActionCompatParcelizer += label;
            this.setElement += label;
        }

        @Override
        public int PlaybackStateCompat() throws IOException {
            if (setFieldValue()) {
                this.MediaBrowserCompatMediaItem = 0;
                return 0;
            }
            int MediaMetadataCompat = MediaMetadataCompat();
            this.MediaBrowserCompatMediaItem = MediaMetadataCompat;
            if (FirebaseRemoteConfigFetchThrottledException.setError(MediaMetadataCompat) == 0) {
                throw InvalidProtocolBufferException.setError();
            }
            return this.MediaBrowserCompatMediaItem;
        }

        @Override
        public void setOptions(int i) throws InvalidProtocolBufferException {
            if (this.MediaBrowserCompatMediaItem != i) {
                throw InvalidProtocolBufferException.setOptions();
            }
        }

        @Override
        public int setOptions() {
            return this.MediaBrowserCompatMediaItem;
        }

        @Override
        public boolean setElement(int i) throws IOException {
            int label = FirebaseRemoteConfigFetchThrottledException.setLabel(i);
            if (label == 0) {
                getOnBackPressedDispatcher();
                return true;
            }
            if (label == 1) {
                write(8);
                return true;
            }
            if (label == 2) {
                write(MediaMetadataCompat());
                return true;
            }
            if (label == 3) {
                ComponentActivity3();
                setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(FirebaseRemoteConfigFetchThrottledException.setError(i), 4));
                return true;
            }
            if (label == 4) {
                return false;
            }
            if (label == 5) {
                write(4);
                return true;
            }
            throw InvalidProtocolBufferException.setBackground();
        }

        @Override
        public boolean setLabel(int i, CodedOutputStream codedOutputStream) throws IOException {
            int label = FirebaseRemoteConfigFetchThrottledException.setLabel(i);
            if (label == 0) {
                long MediaBrowserCompatSearchResultReceiver = MediaBrowserCompatSearchResultReceiver();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.AudioAttributesCompatParcelizer(MediaBrowserCompatSearchResultReceiver);
                return true;
            }
            if (label == 1) {
                long MediaBrowserCompatItemReceiver = MediaBrowserCompatItemReceiver();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.write(MediaBrowserCompatItemReceiver);
                return true;
            }
            if (label == 2) {
                FirebaseInstallationsKtxRegistrar element = setElement();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.setFieldValue(element);
                return true;
            }
            if (label == 3) {
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                setOptions(codedOutputStream);
                int label2 = FirebaseRemoteConfigFetchThrottledException.setLabel(FirebaseRemoteConfigFetchThrottledException.setError(i), 4);
                setOptions(label2);
                codedOutputStream.MediaBrowserCompatMediaItem(label2);
                return true;
            }
            if (label == 4) {
                return false;
            }
            if (label == 5) {
                int MediaBrowserCompatMediaItem = MediaBrowserCompatMediaItem();
                codedOutputStream.MediaBrowserCompatMediaItem(i);
                codedOutputStream.AudioAttributesImplBaseParcelizer(MediaBrowserCompatMediaItem);
                return true;
            }
            throw InvalidProtocolBufferException.setBackground();
        }

        @Override
        public void ComponentActivity3() throws IOException {
            int PlaybackStateCompat;
            do {
                PlaybackStateCompat = PlaybackStateCompat();
                if (PlaybackStateCompat == 0) {
                    return;
                }
            } while (setElement(PlaybackStateCompat));
        }

        @Override
        public void setOptions(CodedOutputStream codedOutputStream) throws IOException {
            int PlaybackStateCompat;
            do {
                PlaybackStateCompat = PlaybackStateCompat();
                if (PlaybackStateCompat == 0) {
                    return;
                }
            } while (setLabel(PlaybackStateCompat, codedOutputStream));
        }

        @Override
        public double write() throws IOException {
            return Double.longBitsToDouble(MediaBrowserCompatItemReceiver());
        }

        @Override
        public float AudioAttributesCompatParcelizer() throws IOException {
            return Float.intBitsToFloat(MediaBrowserCompatMediaItem());
        }

        @Override
        public long getLifecycleRegistry() throws IOException {
            return MediaSessionCompatResultReceiverWrapper();
        }

        @Override
        public long MediaBrowserCompatSearchResultReceiver() throws IOException {
            return MediaSessionCompatResultReceiverWrapper();
        }

        @Override
        public int AudioAttributesImplApi26Parcelizer() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public long AudioAttributesImplBaseParcelizer() throws IOException {
            return MediaBrowserCompatItemReceiver();
        }

        @Override
        public int MediaBrowserCompatCustomActionResultReceiver() throws IOException {
            return MediaBrowserCompatMediaItem();
        }

        @Override
        public boolean IconCompatParcelizer() throws IOException {
            return MediaSessionCompatResultReceiverWrapper() != 0;
        }

        @Override
        public String ComponentActivity2() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0) {
                long j = MediaMetadataCompat;
                long j2 = this.setElement;
                long j3 = this.read;
                if (j <= j2 - j3) {
                    byte[] bArr = new byte[MediaMetadataCompat];
                    initializeGaugeMetadataManager.setFieldValue(j3, bArr, 0L, j);
                    String str = new String(bArr, r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setLabel);
                    this.read += j;
                    return str;
                }
            }
            if (MediaMetadataCompat > 0 && MediaMetadataCompat <= getOnBackPressedDispatcherannotations()) {
                byte[] bArr2 = new byte[MediaMetadataCompat];
                setFieldValue(bArr2, 0, MediaMetadataCompat);
                return new String(bArr2, r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setLabel);
            }
            if (MediaMetadataCompat == 0) {
                return "";
            }
            if (MediaMetadataCompat < 0) {
                throw InvalidProtocolBufferException.read();
            }
            throw InvalidProtocolBufferException.setElement();
        }

        @Override
        public String ParcelableVolumeInfo() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0) {
                long j = MediaMetadataCompat;
                long j2 = this.setElement;
                long j3 = this.read;
                if (j <= j2 - j3) {
                    String label = FirebaseInitProvider.setLabel(this.write, (int) (j3 - this.RemoteActionCompatParcelizer), MediaMetadataCompat);
                    this.read += j;
                    return label;
                }
            }
            if (MediaMetadataCompat >= 0 && MediaMetadataCompat <= getOnBackPressedDispatcherannotations()) {
                byte[] bArr = new byte[MediaMetadataCompat];
                setFieldValue(bArr, 0, MediaMetadataCompat);
                return FirebaseInitProvider.setOptions(bArr, 0, MediaMetadataCompat);
            }
            if (MediaMetadataCompat == 0) {
                return "";
            }
            if (MediaMetadataCompat <= 0) {
                throw InvalidProtocolBufferException.read();
            }
            throw InvalidProtocolBufferException.setElement();
        }

        @Override
        public void setError(int i, isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException {
            int i2 = this.setError;
            if (i2 >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            this.setError = i2 + 1;
            setfieldvalue.setOptions(this, handlemessageintent);
            setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(i, 4));
            this.setError--;
        }

        @Override
        public <T extends isLastFetchFailed> T setLabel(int i, putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException {
            int i2 = this.setError;
            if (i2 >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            this.setError = i2 + 1;
            T label = putmetric.setLabel(this, handlemessageintent);
            setOptions(FirebaseRemoteConfigFetchThrottledException.setLabel(i, 4));
            this.setError--;
            return label;
        }

        @Override
        @Deprecated
        public void setOptions(int i, isLastFetchFailed.setFieldValue setfieldvalue) throws IOException {
            setError(i, setfieldvalue, handleMessageIntent.setFieldValue());
        }

        @Override
        public void setLabel(isLastFetchFailed.setFieldValue setfieldvalue, handleMessageIntent handlemessageintent) throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (this.setError >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            int error = setError(MediaMetadataCompat);
            this.setError++;
            setfieldvalue.setOptions(this, handlemessageintent);
            setOptions(0);
            this.setError--;
            setLabel(error);
        }

        @Override
        public <T extends isLastFetchFailed> T setBackground(putMetric<T> putmetric, handleMessageIntent handlemessageintent) throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (this.setError >= this.setOptions) {
                throw InvalidProtocolBufferException.write();
            }
            int error = setError(MediaMetadataCompat);
            this.setError++;
            T label = putmetric.setLabel(this, handlemessageintent);
            setOptions(0);
            this.setError--;
            setLabel(error);
            return label;
        }

        @Override
        public FirebaseInstallationsKtxRegistrar setElement() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0) {
                long j = MediaMetadataCompat;
                long j2 = this.setElement;
                long j3 = this.read;
                if (j <= j2 - j3) {
                    if (this.AudioAttributesCompatParcelizer && this.AudioAttributesImplBaseParcelizer) {
                        int i = (int) (j3 - this.IconCompatParcelizer);
                        FirebaseInstallationsKtxRegistrar fieldValue = FirebaseInstallationsKtxRegistrar.setFieldValue(setError(i, MediaMetadataCompat + i));
                        this.read += j;
                        return fieldValue;
                    }
                    byte[] bArr = new byte[MediaMetadataCompat];
                    initializeGaugeMetadataManager.setFieldValue(j3, bArr, 0L, j);
                    this.read += j;
                    return FirebaseInstallationsKtxRegistrar.setLabel(bArr);
                }
            }
            if (MediaMetadataCompat > 0 && MediaMetadataCompat <= getOnBackPressedDispatcherannotations()) {
                byte[] bArr2 = new byte[MediaMetadataCompat];
                setFieldValue(bArr2, 0, MediaMetadataCompat);
                return FirebaseInstallationsKtxRegistrar.setLabel(bArr2);
            }
            if (MediaMetadataCompat == 0) {
                return FirebaseInstallationsKtxRegistrar.setOptions;
            }
            if (MediaMetadataCompat < 0) {
                throw InvalidProtocolBufferException.read();
            }
            throw InvalidProtocolBufferException.setElement();
        }

        @Override
        public byte[] read() throws IOException {
            return setBackground(MediaMetadataCompat());
        }

        @Override
        public ByteBuffer RemoteActionCompatParcelizer() throws IOException {
            int MediaMetadataCompat = MediaMetadataCompat();
            if (MediaMetadataCompat > 0) {
                long j = MediaMetadataCompat;
                if (j <= addContentView()) {
                    if (!this.AudioAttributesCompatParcelizer && this.AudioAttributesImplBaseParcelizer) {
                        long j2 = this.read + j;
                        this.read = j2;
                        long j3 = j2 - this.IconCompatParcelizer;
                        return setError((int) (j3 - j), (int) j3);
                    }
                    byte[] bArr = new byte[MediaMetadataCompat];
                    initializeGaugeMetadataManager.setFieldValue(this.read, bArr, 0L, j);
                    this.read += j;
                    return ByteBuffer.wrap(bArr);
                }
            }
            if (MediaMetadataCompat > 0 && MediaMetadataCompat <= getOnBackPressedDispatcherannotations()) {
                byte[] bArr2 = new byte[MediaMetadataCompat];
                setFieldValue(bArr2, 0, MediaMetadataCompat);
                return ByteBuffer.wrap(bArr2);
            }
            if (MediaMetadataCompat == 0) {
                return r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setFieldValue;
            }
            if (MediaMetadataCompat < 0) {
                throw InvalidProtocolBufferException.read();
            }
            throw InvalidProtocolBufferException.setElement();
        }

        @Override
        public int PlaybackStateCompatCustomAction() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public int AudioAttributesImplApi21Parcelizer() throws IOException {
            return MediaMetadataCompat();
        }

        @Override
        public int MediaSessionCompatQueueItem() throws IOException {
            return MediaBrowserCompatMediaItem();
        }

        @Override
        public long MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver() throws IOException {
            return MediaBrowserCompatItemReceiver();
        }

        @Override
        public int MediaSessionCompatToken() throws IOException {
            return FirebaseNoSignedInUserException.setFieldValue(MediaMetadataCompat());
        }

        @Override
        public long setContentView() throws IOException {
            return FirebaseNoSignedInUserException.setOptions(MediaSessionCompatResultReceiverWrapper());
        }

        @Override
        public int MediaMetadataCompat() throws IOException {
            int i;
            long j = this.read;
            if (this.setElement != j) {
                byte background = initializeGaugeMetadataManager.setBackground(j);
                if (background >= 0) {
                    this.read++;
                    return background;
                }
                if (this.setElement - this.read >= 10) {
                    long j2 = 2 + j;
                    int background2 = background ^ (initializeGaugeMetadataManager.setBackground(1 + j) << 7);
                    if (background2 < 0) {
                        i = background2 ^ (-128);
                    } else {
                        long j3 = 3 + j;
                        int background3 = background2 ^ (initializeGaugeMetadataManager.setBackground(j2) << 14);
                        if (background3 >= 0) {
                            i = background3 ^ 16256;
                        } else {
                            j2 = 4 + j;
                            int background4 = background3 ^ (initializeGaugeMetadataManager.setBackground(j3) << 21);
                            if (background4 < 0) {
                                i = (-2080896) ^ background4;
                            } else {
                                j3 = 5 + j;
                                byte background5 = initializeGaugeMetadataManager.setBackground(j2);
                                int i2 = (background4 ^ (background5 << 28)) ^ 266354560;
                                if (background5 < 0) {
                                    j2 = 6 + j;
                                    if (initializeGaugeMetadataManager.setBackground(j3) < 0) {
                                        j3 = 7 + j;
                                        if (initializeGaugeMetadataManager.setBackground(j2) < 0) {
                                            j2 = 8 + j;
                                            if (initializeGaugeMetadataManager.setBackground(j3) < 0) {
                                                j3 = 9 + j;
                                                if (initializeGaugeMetadataManager.setBackground(j2) < 0) {
                                                    if (initializeGaugeMetadataManager.setBackground(j3) >= 0) {
                                                        j2 = j + 10;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    i = i2;
                                }
                                i = i2;
                            }
                        }
                        j2 = j3;
                    }
                    this.read = j2;
                    return i;
                }
            }
            return (int) RatingCompat();
        }

        @Override
        public long MediaSessionCompatResultReceiverWrapper() throws IOException {
            long j;
            long j2;
            long j3;
            int i;
            long j4 = this.read;
            if (this.setElement != j4) {
                byte background = initializeGaugeMetadataManager.setBackground(j4);
                if (background >= 0) {
                    this.read++;
                    return background;
                }
                if (this.setElement - this.read >= 10) {
                    long j5 = 2 + j4;
                    int background2 = background ^ (initializeGaugeMetadataManager.setBackground(1 + j4) << 7);
                    if (background2 >= 0) {
                        long j6 = 3 + j4;
                        int background3 = background2 ^ (initializeGaugeMetadataManager.setBackground(j5) << 14);
                        if (background3 >= 0) {
                            j = background3 ^ 16256;
                            j5 = j6;
                        } else {
                            j5 = 4 + j4;
                            int background4 = background3 ^ (initializeGaugeMetadataManager.setBackground(j6) << 21);
                            if (background4 < 0) {
                                i = (-2080896) ^ background4;
                            } else {
                                long j7 = 5 + j4;
                                long background5 = background4 ^ (initializeGaugeMetadataManager.setBackground(j5) << 28);
                                if (background5 >= 0) {
                                    j3 = 266354560;
                                } else {
                                    long j8 = 6 + j4;
                                    long background6 = background5 ^ (initializeGaugeMetadataManager.setBackground(j7) << 35);
                                    if (background6 < 0) {
                                        j2 = -34093383808L;
                                    } else {
                                        j7 = 7 + j4;
                                        background5 = background6 ^ (initializeGaugeMetadataManager.setBackground(j8) << 42);
                                        if (background5 >= 0) {
                                            j3 = 4363953127296L;
                                        } else {
                                            j8 = 8 + j4;
                                            background6 = background5 ^ (initializeGaugeMetadataManager.setBackground(j7) << 49);
                                            if (background6 < 0) {
                                                j2 = -558586000294016L;
                                            } else {
                                                j7 = 9 + j4;
                                                long background7 = (background6 ^ (initializeGaugeMetadataManager.setBackground(j8) << 56)) ^ 71499008037633920L;
                                                if (background7 >= 0) {
                                                    j = background7;
                                                    j5 = j7;
                                                } else if (initializeGaugeMetadataManager.setBackground(j7) >= 0) {
                                                    j5 = j4 + 10;
                                                    j = background7;
                                                }
                                            }
                                        }
                                    }
                                    j5 = j8;
                                    j = j2 ^ background6;
                                }
                                j = j3 ^ background5;
                                j5 = j7;
                            }
                        }
                        this.read = j5;
                        return j;
                    }
                    i = background2 ^ (-128);
                    j = i;
                    this.read = j5;
                    return j;
                }
            }
            return RatingCompat();
        }

        @Override
        long RatingCompat() throws IOException {
            long j = 0;
            for (int i = 0; i < 64; i += 7) {
                j |= (r3 & Byte.MAX_VALUE) << i;
                if ((MediaDescriptionCompat() & 128) == 0) {
                    return j;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        @Override
        public int MediaBrowserCompatMediaItem() throws IOException {
            int MediaDescriptionCompat;
            int MediaDescriptionCompat2;
            if (addContentView() >= 4) {
                long j = this.read;
                this.read = 4 + j;
                byte background = initializeGaugeMetadataManager.setBackground(j);
                byte background2 = initializeGaugeMetadataManager.setBackground(1 + j);
                byte background3 = initializeGaugeMetadataManager.setBackground(2 + j);
                MediaDescriptionCompat = (initializeGaugeMetadataManager.setBackground(j + 3) & 255) << 24;
                MediaDescriptionCompat2 = (background & 255) | ((background2 & 255) << 8) | ((background3 & 255) << 16);
            } else {
                MediaDescriptionCompat = (MediaDescriptionCompat() & 255) | ((MediaDescriptionCompat() & 255) << 8) | ((MediaDescriptionCompat() & 255) << 16);
                MediaDescriptionCompat2 = (MediaDescriptionCompat() & 255) << 24;
            }
            return MediaDescriptionCompat | MediaDescriptionCompat2;
        }

        @Override
        public long MediaBrowserCompatItemReceiver() throws IOException {
            long MediaDescriptionCompat;
            byte MediaDescriptionCompat2;
            if (addContentView() >= 8) {
                long j = this.read;
                this.read = 8 + j;
                long background = initializeGaugeMetadataManager.setBackground(j);
                long background2 = initializeGaugeMetadataManager.setBackground(1 + j);
                long background3 = (initializeGaugeMetadataManager.setBackground(j + 4) & 255) << 32;
                long background4 = (initializeGaugeMetadataManager.setBackground(j + 5) & 255) << 40;
                MediaDescriptionCompat = background4 | background3 | ((initializeGaugeMetadataManager.setBackground(j + 2) & 255) << 16) | (background & 255) | ((background2 & 255) << 8) | ((initializeGaugeMetadataManager.setBackground(j + 3) & 255) << 24) | ((initializeGaugeMetadataManager.setBackground(6 + j) & 255) << 48);
                MediaDescriptionCompat2 = initializeGaugeMetadataManager.setBackground(j + 7);
            } else {
                MediaDescriptionCompat = (MediaDescriptionCompat() & 255) | ((MediaDescriptionCompat() & 255) << 8) | ((MediaDescriptionCompat() & 255) << 16) | ((MediaDescriptionCompat() & 255) << 24) | ((MediaDescriptionCompat() & 255) << 32) | ((MediaDescriptionCompat() & 255) << 40) | ((MediaDescriptionCompat() & 255) << 48);
                MediaDescriptionCompat2 = MediaDescriptionCompat();
            }
            return MediaDescriptionCompat | ((MediaDescriptionCompat2 & 255) << 56);
        }

        @Override
        public void setLabel(boolean z) {
            this.AudioAttributesImplBaseParcelizer = z;
        }

        @Override
        public void ComponentActivity6() {
            this.MediaMetadataCompat = (int) ((this.MediaBrowserCompatSearchResultReceiver + this.read) - this.RemoteActionCompatParcelizer);
        }

        @Override
        public int setError(int i) throws InvalidProtocolBufferException {
            if (i < 0) {
                throw InvalidProtocolBufferException.read();
            }
            int background = i + setBackground();
            int i2 = this.AudioAttributesImplApi21Parcelizer;
            if (background > i2) {
                throw InvalidProtocolBufferException.setElement();
            }
            this.AudioAttributesImplApi21Parcelizer = background;
            onBackPressedDispatcherlambda1();
            return i2;
        }

        private void onBackPressedDispatcherlambda1() {
            int i = this.MediaDescriptionCompat + this.setFieldValue;
            this.MediaDescriptionCompat = i;
            int i2 = i - this.MediaMetadataCompat;
            int i3 = this.AudioAttributesImplApi21Parcelizer;
            if (i2 > i3) {
                int i4 = i2 - i3;
                this.setFieldValue = i4;
                this.MediaDescriptionCompat = i - i4;
                return;
            }
            this.setFieldValue = 0;
        }

        @Override
        public void setLabel(int i) {
            this.AudioAttributesImplApi21Parcelizer = i;
            onBackPressedDispatcherlambda1();
        }

        @Override
        public int setLabel() {
            int i = this.AudioAttributesImplApi21Parcelizer;
            if (i == Integer.MAX_VALUE) {
                return -1;
            }
            return i - setBackground();
        }

        @Override
        public boolean setFieldValue() throws IOException {
            return (((long) this.MediaBrowserCompatSearchResultReceiver) + this.read) - this.RemoteActionCompatParcelizer == ((long) this.MediaDescriptionCompat);
        }

        @Override
        public int setBackground() {
            return (int) (((this.MediaBrowserCompatSearchResultReceiver - this.MediaMetadataCompat) + this.read) - this.RemoteActionCompatParcelizer);
        }

        @Override
        public byte MediaDescriptionCompat() throws IOException {
            if (addContentView() == 0) {
                getLifecycle();
            }
            long j = this.read;
            this.read = 1 + j;
            return initializeGaugeMetadataManager.setBackground(j);
        }

        @Override
        public byte[] setBackground(int i) throws IOException {
            if (i >= 0) {
                long j = i;
                if (j <= addContentView()) {
                    byte[] bArr = new byte[i];
                    initializeGaugeMetadataManager.setFieldValue(this.read, bArr, 0L, j);
                    this.read += j;
                    return bArr;
                }
            }
            if (i >= 0 && i <= getOnBackPressedDispatcherannotations()) {
                byte[] bArr2 = new byte[i];
                setFieldValue(bArr2, 0, i);
                return bArr2;
            }
            if (i > 0) {
                throw InvalidProtocolBufferException.setElement();
            }
            if (i == 0) {
                return r8lambdagIko9kgvZihcrkYfHloMTUCUsQE.setBackground;
            }
            throw InvalidProtocolBufferException.read();
        }

        private void setFieldValue(byte[] bArr, int i, int i2) throws IOException {
            if (i2 < 0 || i2 > getOnBackPressedDispatcherannotations()) {
                if (i2 > 0) {
                    throw InvalidProtocolBufferException.setElement();
                }
                if (i2 != 0) {
                    throw InvalidProtocolBufferException.read();
                }
                return;
            }
            int i3 = i2;
            while (i3 > 0) {
                if (addContentView() == 0) {
                    getLifecycle();
                }
                int min = Math.min(i3, (int) addContentView());
                long j = min;
                initializeGaugeMetadataManager.setFieldValue(this.read, bArr, (i2 - i3) + i, j);
                i3 -= min;
                this.read += j;
            }
        }

        @Override
        public void write(int i) throws IOException {
            if (i < 0 || i > ((this.MediaDescriptionCompat - this.MediaBrowserCompatSearchResultReceiver) - this.read) + this.RemoteActionCompatParcelizer) {
                if (i < 0) {
                    throw InvalidProtocolBufferException.read();
                }
                throw InvalidProtocolBufferException.setElement();
            }
            while (i > 0) {
                if (addContentView() == 0) {
                    getLifecycle();
                }
                int min = Math.min(i, (int) addContentView());
                i -= min;
                this.read += min;
            }
        }

        private void getOnBackPressedDispatcher() throws IOException {
            for (int i = 0; i < 10; i++) {
                if (MediaDescriptionCompat() >= 0) {
                    return;
                }
            }
            throw InvalidProtocolBufferException.setLabel();
        }

        private int getOnBackPressedDispatcherannotations() {
            return (int) (((this.MediaDescriptionCompat - this.MediaBrowserCompatSearchResultReceiver) - this.read) + this.RemoteActionCompatParcelizer);
        }

        private long addContentView() {
            return this.setElement - this.read;
        }

        private ByteBuffer setError(int i, int i2) throws IOException {
            int position = this.write.position();
            int limit = this.write.limit();
            try {
                try {
                    this.write.position(i);
                    this.write.limit(i2);
                    return this.write.slice();
                } catch (IllegalArgumentException unused) {
                    throw InvalidProtocolBufferException.setElement();
                }
            } finally {
                this.write.position(position);
                this.write.limit(limit);
            }
        }
    }
}