package p138.p176.p177.p242.p265.p266;

import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Pair;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ބ.֏.إ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class RunnableC4873 implements Runnable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final /* synthetic */ C4757 f14644;

    public RunnableC4873(C4757 c4757) {
        this.f14644 = c4757;
    }

    @Override // java.lang.Runnable
    public final void run() {
        C4768 c4768 = this.f14644.f14332;
        c4768.f14371.mo8163().mo8008();
        if (c4768.m8001()) {
            if (c4768.m8000()) {
                c4768.f14371.m8501().f14671.m8084(null);
                Bundle bundle = new Bundle();
                bundle.putString("source", "(not set)");
                bundle.putString("medium", "(not set)");
                bundle.putString("_cis", "intent");
                bundle.putLong("_cc", 1L);
                c4768.f14371.m8503().m7972("auto", "_cmpx", bundle);
            } else {
                String strM8083 = c4768.f14371.m8501().f14671.m8083();
                if (TextUtils.isEmpty(strM8083)) {
                    c4768.f14371.mo8165().f14445.m8034("Cache still valid but referrer not found");
                } else {
                    long jM8316 = ((c4768.f14371.m8501().f14672.m8316() / 3600000) - 1) * 3600000;
                    Uri uri = Uri.parse(strM8083);
                    Bundle bundle2 = new Bundle();
                    Pair pair = new Pair(uri.getPath(), bundle2);
                    for (String str : uri.getQueryParameterNames()) {
                        bundle2.putString(str, uri.getQueryParameter(str));
                    }
                    ((Bundle) pair.second).putLong("_cc", jM8316);
                    c4768.f14371.m8503().m7972((String) pair.first, "_cmp", (Bundle) pair.second);
                }
                c4768.f14371.m8501().f14671.m8084(null);
            }
            c4768.f14371.m8501().f14672.m8317(0L);
        }
    }
}
