package XnFJ5_9.Ft6VRog_36.Xgtqvk_8;

import XnFJ5_9.EANXC_30;
import XnFJ5_9.G83uNX_24;
import java.net.Proxy;
/* compiled from: RequestLine.java */
/* loaded from: classes.dex */
public final class Xgtqvk_8 {
    public static String KQgRr5e_0(EANXC_30 eanxc_30, Proxy.Type type) {
        StringBuilder sb = new StringBuilder();
        sb.append(eanxc_30.m664KQgRr5e_0());
        sb.append(' ');
        if (m737KQgRr5e_0(eanxc_30, type)) {
            sb.append(eanxc_30.m661KQgRr5e_0());
        } else {
            sb.append(KQgRr5e_0(eanxc_30.m661KQgRr5e_0()));
        }
        sb.append(" HTTP/1.1");
        return sb.toString();
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public static boolean m737KQgRr5e_0(EANXC_30 eanxc_30, Proxy.Type type) {
        return !eanxc_30.m665KQgRr5e_0() && type == Proxy.Type.HTTP;
    }

    public static String KQgRr5e_0(G83uNX_24 g83uNX_24) {
        String PGPF6hQ_2 = g83uNX_24.PGPF6hQ_2();
        String Mqv2r_32 = g83uNX_24.Mqv2r_3();
        if (Mqv2r_32 != null) {
            return PGPF6hQ_2 + '?' + Mqv2r_32;
        }
        return PGPF6hQ_2;
    }
}
