package defpackage;

/* JADX INFO: renamed from: ᵬᵞᵧʠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4063 implements InterfaceC4844 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final InterfaceC4844 f15610;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public int f15612 = 0;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public int f15611 = -1;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public int f15613 = -1;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public Object f15614 = null;

    public C4063(InterfaceC4844 interfaceC4844) {
        this.f15610 = interfaceC4844;
    }

    @Override // defpackage.InterfaceC4844
    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public final void mo8916(int i, int i2) {
        int i3;
        if (this.f15612 == 1 && i >= (i3 = this.f15611)) {
            int i4 = this.f15613;
            if (i <= i3 + i4) {
                this.f15613 = i4 + i2;
                this.f15611 = Math.min(i, i3);
                return;
            }
        }
        m8919();
        this.f15611 = i;
        this.f15613 = i2;
        this.f15612 = 1;
    }

    @Override // defpackage.InterfaceC4844
    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    public final void mo8917(int i, int i2, Object obj) {
        int i3;
        int i4;
        int i5;
        if (this.f15612 == 3 && i <= (i4 = this.f15613 + (i3 = this.f15611)) && (i5 = i + i2) >= i3 && this.f15614 == obj) {
            this.f15611 = Math.min(i, i3);
            this.f15613 = Math.max(i4, i5) - this.f15611;
            return;
        }
        m8919();
        this.f15611 = i;
        this.f15613 = i2;
        this.f15614 = obj;
        this.f15612 = 3;
    }

    @Override // defpackage.InterfaceC4844
    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final void mo8918(int i, int i2) {
        int i3;
        if (this.f15612 == 2 && (i3 = this.f15611) >= i && i3 <= i + i2) {
            this.f15613 += i2;
            this.f15611 = i;
        } else {
            m8919();
            this.f15611 = i;
            this.f15613 = i2;
            this.f15612 = 2;
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final void m8919() {
        int i = this.f15612;
        if (i == 0) {
            return;
        }
        InterfaceC4844 interfaceC4844 = this.f15610;
        if (i == 1) {
            interfaceC4844.mo8916(this.f15611, this.f15613);
        } else if (i == 2) {
            interfaceC4844.mo8918(this.f15611, this.f15613);
        } else if (i == 3) {
            interfaceC4844.mo8917(this.f15611, this.f15613, this.f15614);
        }
        this.f15614 = null;
        this.f15612 = 0;
    }

    @Override // defpackage.InterfaceC4844
    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final void mo8920(int i, int i2) {
        m8919();
        this.f15610.mo8920(i, i2);
    }
}
