package defpackage;

import android.os.Bundle;
import android.os.SystemClock;
import j$.util.concurrent.ConcurrentHashMap;

/* renamed from: ᵤﾞᵳ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3476 extends AbstractC1165 {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public C5491 f13019;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public C5465 f13020;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public volatile C5465 f13021;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public volatile boolean f13022;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final ConcurrentHashMap f13023;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public C5465 f13024;

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public final Object f13025;

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public boolean f13026;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public volatile C5465 f13027;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public volatile C5465 f13028;

    public C3476(C4205 c4205) {
        super(c4205);
        this.f13025 = new Object();
        this.f13023 = new ConcurrentHashMap();
    }

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public final void m7906(C5465 c5465, boolean z, long j) {
        C4205 c4205 = (C4205) ((ᵢˇᵭ) this).ᵧᵾˀˈ;
        C4198 c4198 = c4205.f15709;
        C4205.m9133(c4198);
        c4205.f15721.getClass();
        c4198.m9117(SystemClock.elapsedRealtime());
        boolean z2 = c5465 != null && c5465.f20522;
        C1682 c1682 = c4205.f15712;
        C4205.m9130(c1682);
        if (!c1682.f6703.m7388(j, z2, z) || c5465 == null) {
            return;
        }
        c5465.f20522 = false;
    }

    @Override // defpackage.AbstractC1165
    /* renamed from: ˎˑː */
    public final boolean mo1735() {
        return false;
    }

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public final void m7907(C5491 c5491, Bundle bundle) {
        Bundle bundle2;
        if (!((C4205) ((ᵢˇᵭ) this).ᵧᵾˀˈ).f15726.m5345() || bundle == null || (bundle2 = bundle.getBundle("com.google.app_measurement.screen_service")) == null) {
            return;
        }
        this.f13023.put(Integer.valueOf(c5491.f20592), new C5465(bundle2.getLong("id"), bundle2.getString("name"), bundle2.getString("referrer_name")));
    }

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public final String m7908(String str) {
        if (str == null) {
            return "Activity";
        }
        String[] strArrSplit = str.split("\\.");
        int length = strArrSplit.length;
        String str2 = length > 0 ? strArrSplit[length - 1] : "";
        C4205 c4205 = (C4205) ((ᵢˇᵭ) this).ᵧᵾˀˈ;
        int length2 = str2.length();
        c4205.f15726.getClass();
        if (length2 <= 500) {
            return str2;
        }
        c4205.f15726.getClass();
        return str2.substring(0, 500);
    }

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public final C5465 m7909(boolean z) {
        m3663();
        m6590();
        C5465 c5465 = this.f13024;
        return (z && c5465 == null) ? this.f13020 : c5465;
    }

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final void m7910(String str, C5465 c5465, boolean z) {
        C5465 c54652;
        C5465 c54653 = this.f13028 == null ? this.f13027 : this.f13028;
        if (c5465.f20521 == null) {
            c54652 = new C5465(c5465.f20520, str != null ? m7908(str) : null, c5465.f20519, c5465.f20516, c5465.f20518, c5465.f20517);
        } else {
            c54652 = c5465;
        }
        this.f13027 = this.f13028;
        this.f13028 = c54652;
        C4205 c4205 = (C4205) ((ᵢˇᵭ) this).ᵧᵾˀˈ;
        c4205.f15721.getClass();
        long jElapsedRealtime = SystemClock.elapsedRealtime();
        C1325 c1325 = c4205.f15698;
        C4205.m9132(c1325);
        c1325.m4043(new RunnableC1020(this, c54652, c54653, jElapsedRealtime, z));
    }

    /* JADX WARN: Removed duplicated region for block: B:10:0x0033  */
    /* JADX WARN: Removed duplicated region for block: B:46:0x00b5  */
    /* renamed from: ᵺʙ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void m7911(defpackage.C5465 r20, defpackage.C5465 r21, long r22, boolean r24, android.os.Bundle r25) {
        /*
            Method dump skipped, instructions count: 257
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C3476.m7911(ᵾᵼᐧᵔ, ᵾᵼᐧᵔ, long, boolean, android.os.Bundle):void");
    }

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public final C5465 m7912(C5491 c5491) {
        ᵩʛʽ.ᵝᵵᵺ(c5491);
        Integer numValueOf = Integer.valueOf(c5491.f20592);
        ConcurrentHashMap concurrentHashMap = this.f13023;
        C5465 c5465 = (C5465) concurrentHashMap.get(numValueOf);
        if (c5465 == null) {
            String strM7908 = m7908(c5491.f20591);
            C4864 c4864 = ((C4205) ((ᵢˇᵭ) this).ᵧᵾˀˈ).f15708;
            C4205.m9134(c4864);
            C5465 c54652 = new C5465(c4864.m10212(), null, strM7908);
            concurrentHashMap.put(numValueOf, c54652);
            c5465 = c54652;
        }
        return this.f13021 != null ? this.f13021 : c5465;
    }
}
