package com.bytedance.adsdk.ugeno.yz.yz;

import android.content.Context;
import com.bytedance.adsdk.ugeno.yz.ajl;
import com.google.android.gms.measurement.internal.u1;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

/* JADX INFO: loaded from: classes.dex */
public class wu extends lb {
    private int dsz;
    private int duv;
    private int ku;

    public wu(Context context) {
        super(context);
        this.ku = -1;
        this.duv = -1;
        this.dsz = -1;
    }

    @Override // com.bytedance.adsdk.ugeno.yz.yz.lb
    public boolean fm(Object... objArr) {
        if (objArr != null && objArr.length > 0) {
            int iFm = com.bytedance.adsdk.ugeno.wsy.lb.fm(String.valueOf(objArr[0]), -1);
            int iFm2 = com.bytedance.adsdk.ugeno.wsy.lb.fm(String.valueOf(objArr[1]), -1);
            int iFm3 = com.bytedance.adsdk.ugeno.wsy.lb.fm(String.valueOf(objArr[2]), -1);
            Map<String, Object> map = this.jnr;
            if (map == null || map.isEmpty()) {
                HashMap map2 = new HashMap();
                u1.t(iFm, map2, "fromIndex", iFm2, "toIndex");
                map2.put("type", Integer.valueOf(iFm3));
                Iterator<ajl.fm> it = this.f6430lb.ro().iterator();
                while (it.hasNext()) {
                    it.next().ro(map2);
                }
                this.fm.fm(this.ro, this.ajl, this.f6430lb.ro(), this.f6430lb);
            } else {
                Object obj = this.jnr.get("fromIndex");
                if (obj != null) {
                    this.ku = com.bytedance.adsdk.ugeno.wsy.lb.fm(String.valueOf(obj), -1);
                }
                if (this.jnr.get("toIndex") != null) {
                    this.duv = com.bytedance.adsdk.ugeno.wsy.lb.fm(String.valueOf(this.jnr.get("toIndex")), -1);
                }
                if (this.jnr.get("type") != null) {
                    this.dsz = com.bytedance.adsdk.ugeno.wsy.lb.fm(String.valueOf(this.jnr.get("type")), -1);
                }
                if (iFm == this.ku && iFm2 == this.duv && iFm3 == this.dsz) {
                    this.fm.fm(this.ro, this.ajl, this.f6430lb.ro(), this.f6430lb);
                }
            }
        }
        return false;
    }
}
