package k1;

import java.io.InputStream;
import java.io.OutputStream;

/* JADX INFO: loaded from: classes.dex */
public class b0 extends W {

    /* JADX INFO: renamed from: q0, reason: collision with root package name */
    InputStream f4771q0;

    /* JADX INFO: renamed from: r0, reason: collision with root package name */
    OutputStream f4772r0;

    /* JADX INFO: renamed from: s0, reason: collision with root package name */
    int f4773s0;

    public b0(String str, int i2, C0599q c0599q) {
        super(str, c0599q);
        this.f4773s0 = i2;
        this.f4739f0 = 16;
    }

    public InputStream U() {
        if (this.f4771q0 == null) {
            int i2 = this.f4773s0;
            if ((i2 & 256) == 256 || (i2 & 512) == 512) {
                this.f4771q0 = new x0(this);
            } else {
                this.f4771q0 = new Y(this, (this.f4773s0 & (-65281)) | 32);
            }
        }
        return this.f4771q0;
    }

    public OutputStream V() {
        if (this.f4772r0 == null) {
            int i2 = this.f4773s0;
            if ((i2 & 256) == 256 || (i2 & 512) == 512) {
                this.f4772r0 = new y0(this);
            } else {
                this.f4772r0 = new Z(this, false, (this.f4773s0 & (-65281)) | 32);
            }
        }
        return this.f4772r0;
    }
}
