package defpackage;

import com.hierynomus.security.SecurityException;
import java.util.EnumSet;
import java.util.Iterator;
import java.util.UUID;

/* renamed from: ˉˎʾ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1172 extends AbstractC0681 {

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

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public Object f4986;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final /* synthetic */ int f4987 = 1;

    public /* synthetic */ C1172(int i, EnumC2857 enumC2857, EnumC2703 enumC2703, long j, long j2) {
        super(i, enumC2857, enumC2703, j, j2);
    }

    public C1172(C2354 c2354, AbstractC0681 abstractC0681) {
        this.f4986 = c2354;
        this.f4985 = abstractC0681;
    }

    @Override // defpackage.AbstractC0681
    public String toString() {
        switch (this.f4987) {
            case 0:
                return ((AbstractC0681) this.f4985).toString();
            default:
                return super.toString();
        }
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public InterfaceC4029 m3683() {
        switch (this.f4987) {
            case 0:
                return (C0663) ((AbstractC0681) this.f4985).ˌᵜᵹᵩ();
            default:
                return super.ˌᵜᵹᵩ();
        }
    }

    @Override // defpackage.AbstractC0681
    /* renamed from: ˏˋٴ */
    public /* bridge */ /* synthetic */ void mo2653(C3702 c3702) {
        switch (this.f4987) {
            case 0:
                mo2653(c3702);
                break;
            default:
                super.mo2653(c3702);
                break;
        }
    }

    @Override // defpackage.AbstractC0681
    /* renamed from: ˑᵥˁ */
    public AbstractC0681 mo2654() {
        switch (this.f4987) {
            case 0:
                return ((AbstractC0681) this.f4985).mo2654();
            default:
                return this;
        }
    }

    @Override // defpackage.AbstractC0681
    /* renamed from: ᵡˎ */
    public int mo2655() {
        switch (this.f4987) {
            case 0:
                return ((AbstractC0681) this.f4985).mo2655();
            default:
                return super.mo2655();
        }
    }

    @Override // defpackage.AbstractC0681
    /* renamed from: ᵧـˌᵎ */
    public void mo1527(C3702 c3702) {
        switch (this.f4987) {
            case 1:
                c3702.m9338(this.f3335);
                EnumSet enumSet = (EnumSet) this.f4985;
                c3702.m9338(enumSet.size());
                c3702.m9338(1);
                c3702.m8331(2);
                Iterator it = enumSet.iterator();
                while (it.hasNext()) {
                    if (((EnumC2857) it.next()).m6987()) {
                        C0190.m1432("SMB 3.x support is not yet implemented");
                        break;
                    }
                }
                c3702.m8333();
                UUID uuid = (UUID) this.f4986;
                long leastSignificantBits = uuid.getLeastSignificantBits();
                long mostSignificantBits = uuid.getMostSignificantBits();
                c3702.m9348(mostSignificantBits >>> 32);
                c3702.m9338((int) ((mostSignificantBits >>> 16) & 65535));
                c3702.m9338((int) (mostSignificantBits & 65535));
                C3253.f12251.m7614(c3702, leastSignificantBits);
                EnumC2857 enumC2857 = EnumC2857.f11073;
                if (!enumSet.contains(enumC2857)) {
                    c3702.m8333();
                    c3702.m8333();
                    Iterator it2 = enumSet.iterator();
                    while (it2.hasNext()) {
                        c3702.m9338(((EnumC2857) it2.next()).f11079);
                    }
                    int size = ((enumSet.size() * 2) + 34) % 8;
                    if (size > 0) {
                        c3702.m8331(8 - size);
                    }
                    if (enumSet.contains(enumC2857)) {
                        C0190.m1432("SMB 3.x support is not yet implemented");
                        break;
                    }
                } else {
                    C0190.m1432("SMB 3.x support is not yet implemented");
                    break;
                }
                break;
            default:
                super.mo1527(c3702);
                break;
        }
    }

    @Override // defpackage.AbstractC0681
    /* renamed from: ᵮᵠـˌ */
    public void mo2653(C3702 c3702) {
        switch (this.f4987) {
            case 0:
                AbstractC0681 abstractC0681 = (AbstractC0681) this.f4985;
                try {
                    ((C0663) abstractC0681.ˌᵜᵹᵩ()).f3294 |= 8;
                    int i = c3702.f16317;
                    C1793 c1793 = new C1793(this, c3702);
                    abstractC0681.mo2653(c1793);
                    System.arraycopy(c1793.f7201.mo3173(), 0, c3702.f16315, i + 48, 16);
                    break;
                } catch (SecurityException e) {
                    C2707.m6713(e);
                    return;
                }
            default:
                super.mo2653(c3702);
                break;
        }
    }
}
