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

import android.os.Bundle;
import p138.p176.p177.p242.p246.p253.C4312;
import p138.p176.p177.p242.p258.p263.C4391;
import p138.p176.p177.p242.p258.p263.C4412;
import p138.p176.p177.p242.p258.p263.InterfaceC4541;

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

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

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final /* synthetic */ C4754 f14974;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final /* synthetic */ long f14975;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final /* synthetic */ boolean f14976;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final /* synthetic */ C4765 f14977;

    public RunnableC4947(C4765 c4765, C4754 c4754, C4754 c47542, long j, boolean z) {
        this.f14977 = c4765;
        this.f14973 = c4754;
        this.f14974 = c47542;
        this.f14975 = j;
        this.f14976 = z;
    }

    /* JADX WARN: Removed duplicated region for block: B:61:0x0112  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x0127  */
    /* JADX WARN: Removed duplicated region for block: B:65:0x0131  */
    @Override // java.lang.Runnable
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void run() {
        boolean z;
        C4754 c4754;
        String str;
        C4757 c4757M8058;
        long jM8209;
        C4765 c4765 = this.f14977;
        C4754 c47542 = this.f14973;
        C4754 c47543 = this.f14974;
        long j = this.f14975;
        boolean z2 = this.f14976;
        c4765.mo8008();
        if (c4765.f14588.f15015.m8177(C4915.f14874)) {
            z = z2 && c4765.f14360 != null;
            if (z) {
                c4765.m7995(c4765.f14360, true, j);
            }
        } else {
            if (z2 && (c4754 = c4765.f14360) != null) {
                c4765.m7995(c4754, true, j);
            }
            z = false;
        }
        if ((c47543 != null && c47543.f14286 == c47542.f14286 && C4887.m8232(c47543.f14285, c47542.f14285) && C4887.m8232(c47543.f14284, c47542.f14284)) ? false : true) {
            Bundle bundle = new Bundle();
            if (c4765.f14588.f15015.m8177(C4915.f14911)) {
                bundle = new Bundle();
            }
            Bundle bundle2 = bundle;
            C4765.m7988(c47542, bundle2, true);
            if (c47543 != null) {
                String str2 = c47543.f14284;
                if (str2 != null) {
                    bundle2.putString("_pn", str2);
                }
                String str3 = c47543.f14285;
                if (str3 != null) {
                    bundle2.putString("_pc", str3);
                }
                bundle2.putLong("_pi", c47543.f14286);
            }
            if (c4765.f14588.f15015.m8177(C4915.f14874) && z) {
                if (((InterfaceC4541) C4412.f13704.mo7259()).mo7265() && c4765.f14588.f15015.m8177(C4915.f14876) && C4391.m7290() && c4765.f14588.f15015.m8177(C4915.f14908)) {
                    C4884 c4884 = c4765.m8063().f14968;
                    jM8209 = j - c4884.f14690;
                    c4884.f14690 = j;
                } else {
                    jM8209 = c4765.m8063().f14968.m8209();
                }
                if (jM8209 > 0) {
                    c4765.m8167().m8245(bundle2, jM8209);
                }
            }
            if (c4765.f14588.f15015.m8177(C4915.f14911)) {
                if (!c4765.f14588.f15015.m8190().booleanValue()) {
                    bundle2.putLong("_mt", 1L);
                }
                if (c47542.f14288) {
                    str = "app";
                }
                String str4 = str;
                c4757M8058 = c4765.m8058();
                c4757M8058.mo8055();
                c4757M8058.mo8008();
                if (((C4312) c4757M8058.f14588.f15022) != null) {
                }
            } else {
                str = "auto";
                String str42 = str;
                c4757M8058 = c4765.m8058();
                c4757M8058.mo8055();
                c4757M8058.mo8008();
                if (((C4312) c4757M8058.f14588.f15022) != null) {
                    throw null;
                }
                c4757M8058.m7969(str42, "_vs", System.currentTimeMillis(), bundle2);
            }
        }
        c4765.f14360 = c47542;
        if (c4765.f14588.f15015.m8177(C4915.f14911) && c47542.f14288) {
            c4765.f14364 = c47542;
        }
        C4987 c4987M8060 = c4765.m8060();
        c4987M8060.mo8008();
        c4987M8060.m8066();
        c4987M8060.m8514(new RunnableC4942(c4987M8060, c47542));
    }
}
