package com.bytedance.router.arg;

import X.0CB;
import X.0CH;
import X.0CN;
import X.6Is;
import X.Leb;
import X.Ls2;
import com.bytedance.covode.number.Covode;
import java.lang.ref.WeakReference;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public final class RouteArgInjector$register$$inlined$let$lambda$1 implements 6Is {
    public final /* synthetic */ Ls2 $onInjected$inlined;
    public final /* synthetic */ 0CH $owner$inlined;

    static {
        Covode.recordClassIndex(37204);
    }

    public final void onStateChanged(0CH r2, 0CB r3) {
        if (r3 == 0CB.ON_DESTROY) {
            onDestroy();
        }
    }

    @0CN(LIZ = 0CB.ON_DESTROY)
    public final void onDestroy() {
        ConcurrentHashMap access$getMap$p = RouteArgInjector.map;
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        for (Map.Entry entry : access$getMap$p.entrySet()) {
            if (((WeakReference) entry.getKey()).get() == this.$owner$inlined) {
                linkedHashMap.put(entry.getKey(), entry.getValue());
            }
        }
        ConcurrentHashMap access$getMap$p2 = RouteArgInjector.map;
        Leb.LIZIZ(access$getMap$p2.keySet(), linkedHashMap.keySet());
    }

    public RouteArgInjector$register$$inlined$let$lambda$1(0CH r1, Ls2 ls2) {
        this.$owner$inlined = r1;
        this.$onInjected$inlined = ls2;
    }
}
