package androidx.compose.ui.platform;

import java.util.Arrays;

/* loaded from: classes.dex */
public abstract class w1 {
    public static final String a(Object obj, String str) {
        if (str == null) {
            str = obj.getClass().isAnonymousClass() ? obj.getClass().getName() : obj.getClass().getSimpleName();
        }
        StringBuilder sb2 = new StringBuilder();
        sb2.append(str);
        sb2.append('@');
        kotlin.jvm.internal.u0 u0Var = kotlin.jvm.internal.u0.f26205a;
        String format = String.format("%07x", Arrays.copyOf(new Object[]{Integer.valueOf(System.identityHashCode(obj))}, 1));
        kotlin.jvm.internal.t.f(format, "format(format, *args)");
        sb2.append(format);
        return sb2.toString();
    }
}
