package p138.p329.p362.p364;

import java.util.Arrays;
import p138.p176.p177.p242.p246.p251.C4303;

/* JADX INFO: renamed from: ދ.ށ.މ.ރ.ؠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C6353 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final String f17734;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final String f17735;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final String f17736;

    public C6353(String str) {
        this.f17735 = null;
        this.f17734 = str;
        this.f17736 = m9569((String) null);
    }

    public C6353(String str, String str2) {
        this.f17735 = str2;
        this.f17734 = str;
        this.f17736 = m9569((String) null);
    }

    public C6353(String str, String str2, String str3) {
        this.f17735 = str2;
        this.f17734 = str;
        this.f17736 = m9569(str3);
    }

    public C6353(C6353 c6353, String str) {
        this.f17734 = c6353.f17734;
        if (!C4303.m7199(c6353.f17735)) {
            throw new IllegalArgumentException("Can only make child SmbPath of fully specified SmbPath");
        }
        this.f17735 = c6353.f17735;
        if (!C4303.m7199(c6353.f17736)) {
            this.f17736 = m9569(str);
            return;
        }
        this.f17736 = c6353.f17736 + "\\" + m9569(str);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C6353 m9568(String str) {
        String strM9569 = m9569(str);
        if (strM9569.charAt(0) == '\\') {
            strM9569 = strM9569.charAt(1) == '\\' ? strM9569.substring(2) : strM9569.substring(1);
        }
        String[] strArrSplit = strM9569.split("\\\\", 3);
        return strArrSplit.length == 1 ? new C6353(strArrSplit[0]) : strArrSplit.length == 2 ? new C6353(strArrSplit[0], strArrSplit[1]) : new C6353(strArrSplit[0], strArrSplit[1], strArrSplit[2]);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static String m9569(String str) {
        return C4303.m7199(str) ? str.replace('/', '\\') : str;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || C6353.class != obj.getClass()) {
            return false;
        }
        C6353 c6353 = (C6353) obj;
        return C4303.m7129((Object) this.f17734, (Object) c6353.f17734) && C4303.m7129((Object) this.f17735, (Object) c6353.f17735) && C4303.m7129((Object) this.f17736, (Object) c6353.f17736);
    }

    public int hashCode() {
        return Arrays.hashCode(new Object[]{this.f17734, this.f17735, this.f17736});
    }

    public String toString() {
        return m9570();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public String m9570() {
        StringBuilder sb = new StringBuilder("\\\\");
        sb.append(this.f17734);
        String str = this.f17735;
        if (str != null && !str.isEmpty()) {
            if (this.f17735.charAt(0) != '\\') {
                sb.append("\\");
            }
            sb.append(this.f17735);
            if (C4303.m7199(this.f17736)) {
                sb.append("\\");
                sb.append(this.f17736);
            }
        }
        return sb.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean m9571(C6353 c6353) {
        return c6353 != null && C4303.m7129((Object) this.f17734, (Object) c6353.f17734);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public boolean m9572(C6353 c6353) {
        return m9571(c6353) && C4303.m7129((Object) this.f17735, (Object) c6353.f17735);
    }
}
