package c5;

import androidx.annotation.Nullable;
import java.util.ArrayList;

/* JADX INFO: loaded from: classes.dex */
public final class h {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Object f4876a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public ArrayList f4877b;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public h f4879d = this;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public h f4878c = this;

    public h(Object obj) {
        this.f4876a = obj;
    }

    @Nullable
    public Object removeLast() {
        ArrayList arrayList = this.f4877b;
        int size = arrayList != null ? arrayList.size() : 0;
        if (size > 0) {
            return this.f4877b.remove(size - 1);
        }
        return null;
    }
}
