package androidx.work;

import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import o.BH;
import o.C0559Vo;
import o.C0585Wo;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class OverwritingInputMerger extends BH {
    @Override // o.BH
    public final C0585Wo a(ArrayList arrayList) throws Throwable {
        C0559Vo c0559Vo = new C0559Vo(0);
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            linkedHashMap.putAll(Collections.unmodifiableMap(((C0585Wo) obj).a));
        }
        c0559Vo.a(linkedHashMap);
        C0585Wo c0585Wo = new C0585Wo(c0559Vo.a);
        C0585Wo.b(c0585Wo);
        return c0585Wo;
    }
}
