APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Consulta Recibo Luz Guia
版本号:8.0
包名称:com.satruk.consultareciboluzcfe

MD5 校验值:d53ec1a251294bef920c76a08ee856d9

反编译源代码说明

LlsAwtCXtFvPG3dW4.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package h1nz4Fh6c0qTAAc06D3n;

import BR4mCMO2yGSGDlgv5s.d6tPitE3DTk1erIZXx;
import CNmwjkz3Y7G.V4UL8fNzd;
import DIBA2CR2UBCMUMXodM.lqF6z9HyXwKYyzb7U9q;
import DIBA2CR2UBCMUMXodM.y2L58afrPJO;
import DIBA2CR2UBCMUMXodM.zlvJasFcCb1gcY1rxU;
import Q4yxHmvMaiiS.Gcw36yU85LOl2EzjVIG0;
import Q4yxHmvMaiiS.PL5oabeYVEZVxrhN8;
import Q4yxHmvMaiiS.hRMfV4J3U068rZpbQw8TBcASIvG;
import Q4yxHmvMaiiS.osGNLnVfGGWP1KixpN8;
import Q4yxHmvMaiiS.yycNTKtNNfBQ2oa6MEm;
import hBRTgXXhcJzGjGt7p5.LpkjY9zisIANglgQ;
import hBRTgXXhcJzGjGt7p5.O9KF9KMx8LFwf2eqjN2w;
import hBRTgXXhcJzGjGt7p5.QJsqsKtomJyhrNQBw;
import hBRTgXXhcJzGjGt7p5.Zi5fvFCV311V11S;
import hBRTgXXhcJzGjGt7p5.aKp5ySsuBvnI8;
import hBRTgXXhcJzGjGt7p5.anYGCMycJorv9qKZJZX6u7G6ZEI;
import hBRTgXXhcJzGjGt7p5.ax0nGU8LIsBL;
import hBRTgXXhcJzGjGt7p5.fzEm5zhqI3YBrM7NdcW2YUauv;
import hBRTgXXhcJzGjGt7p5.kxejqrVqAU;
import hBRTgXXhcJzGjGt7p5.qck5v1bb2rYhaEqVs;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.ConnectException;
import java.net.InetSocketAddress;
import java.net.ProtocolException;
import java.net.Proxy;
import java.net.Socket;
import java.net.UnknownServiceException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.net.ssl.SSLHandshakeException;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.SSLProtocolException;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import uJesLkqn3yALlHyRT3sA.GxWXXKWJvKGS7;

public final class LlsAwtCXtFvPG3dW4 extends hRMfV4J3U068rZpbQw8TBcASIvG {
    public DIBA2CR2UBCMUMXodM.hRMfV4J3U068rZpbQw8TBcASIvG AE3aYQniE2MVzIhSQaIUIvmNJIb;
    public Socket BTzhn1XfTKC8cL901w67xnNTX;
    public Socket Dx9UYYdrV;
    public zlvJasFcCb1gcY1rxU ELZW2TfCJuaH27ILK7NhOac8P;
    public Gcw36yU85LOl2EzjVIG0 IOcwVNZBJVninyXba;
    public int aG7kT0ezy;
    public anYGCMycJorv9qKZJZX6u7G6ZEI mddTHTsghpG247Tn8aU17dbs;
    public kxejqrVqAU pYOoWpqdhXIAEqnxMp1M;
    public final ax0nGU8LIsBL qU83Vx5J8I;
    public final fzEm5zhqI3YBrM7NdcW2YUauv uaTfCKNviddAWLbck;
    public boolean uu8w11aBWYrANOCpbexEQ06dS;
    public int EM5yInA4XWx = 1;
    public final ArrayList WWEgdPrhVv = new ArrayList();
    public long n4PQOBD9XmtL4DDReRQ = Long.MAX_VALUE;

    public LlsAwtCXtFvPG3dW4(ax0nGU8LIsBL ax0ngu8lisbl, fzEm5zhqI3YBrM7NdcW2YUauv fzem5zhqi3ybrm7ndcw2yuauv) {
        this.qU83Vx5J8I = ax0ngu8lisbl;
        this.uaTfCKNviddAWLbck = fzem5zhqi3ybrm7ndcw2yuauv;
    }

    public final void BTzhn1XfTKC8cL901w67xnNTX(int i, int i2, i9oQO4eiqYj7cqH.LlsAwtCXtFvPG3dW4 llsAwtCXtFvPG3dW4) {
        Socket createSocket;
        fzEm5zhqI3YBrM7NdcW2YUauv fzem5zhqi3ybrm7ndcw2yuauv = this.uaTfCKNviddAWLbck;
        Proxy proxy = fzem5zhqi3ybrm7ndcw2yuauv.qU83Vx5J8I;
        InetSocketAddress inetSocketAddress = fzem5zhqi3ybrm7ndcw2yuauv.uaTfCKNviddAWLbck;
        if (proxy.type() != Proxy.Type.DIRECT && proxy.type() != Proxy.Type.HTTP) {
            createSocket = new Socket(proxy);
        } else {
            createSocket = fzem5zhqi3ybrm7ndcw2yuauv.Xcb5jjxCoQp9OA.uaTfCKNviddAWLbck.createSocket();
        }
        this.BTzhn1XfTKC8cL901w67xnNTX = createSocket;
        llsAwtCXtFvPG3dW4.getClass();
        this.BTzhn1XfTKC8cL901w67xnNTX.setSoTimeout(i2);
        try {
            V4UL8fNzd.Xcb5jjxCoQp9OA.pYOoWpqdhXIAEqnxMp1M(this.BTzhn1XfTKC8cL901w67xnNTX, inetSocketAddress, i);
            try {
                this.ELZW2TfCJuaH27ILK7NhOac8P = new zlvJasFcCb1gcY1rxU(lqF6z9HyXwKYyzb7U9q.uaTfCKNviddAWLbck(this.BTzhn1XfTKC8cL901w67xnNTX));
                this.AE3aYQniE2MVzIhSQaIUIvmNJIb = new DIBA2CR2UBCMUMXodM.hRMfV4J3U068rZpbQw8TBcASIvG(lqF6z9HyXwKYyzb7U9q.Xcb5jjxCoQp9OA(this.BTzhn1XfTKC8cL901w67xnNTX));
            } catch (NullPointerException e) {
                if (!"throw with null exception".equals(e.getMessage())) {
                } else {
                    throw new IOException(e);
                }
            }
        } catch (ConnectException e2) {
            ConnectException connectException = new ConnectException("Failed to connect to " + inetSocketAddress);
            connectException.initCause(e2);
            throw connectException;
        }
    }

    public final void Dx9UYYdrV(int i, int i2, int i3, i9oQO4eiqYj7cqH.LlsAwtCXtFvPG3dW4 llsAwtCXtFvPG3dW4) {
        mBXmS1uee6o6kKfa.dtvWz6I0F4TVD5dVYSit3W dtvwz6i0f4tvd5dvysit3w = new mBXmS1uee6o6kKfa.dtvWz6I0F4TVD5dVYSit3W();
        fzEm5zhqI3YBrM7NdcW2YUauv fzem5zhqi3ybrm7ndcw2yuauv = this.uaTfCKNviddAWLbck;
        qck5v1bb2rYhaEqVs qck5v1bb2ryhaeqvs = fzem5zhqi3ybrm7ndcw2yuauv.Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA;
        if (qck5v1bb2ryhaeqvs != null) {
            dtvwz6i0f4tvd5dvysit3w.qU83Vx5J8I = qck5v1bb2ryhaeqvs;
            dtvwz6i0f4tvd5dvysit3w.qU83Vx5J8I("Host", wPgQ0XkYMI4vGZ.LlsAwtCXtFvPG3dW4.uu8w11aBWYrANOCpbexEQ06dS(qck5v1bb2ryhaeqvs, true));
            dtvwz6i0f4tvd5dvysit3w.qU83Vx5J8I("Proxy-Connection", "Keep-Alive");
            dtvwz6i0f4tvd5dvysit3w.qU83Vx5J8I("User-Agent", "okhttp/3.10.0");
            QJsqsKtomJyhrNQBw Xcb5jjxCoQp9OA = dtvwz6i0f4tvd5dvysit3w.Xcb5jjxCoQp9OA();
            BTzhn1XfTKC8cL901w67xnNTX(i, i2, llsAwtCXtFvPG3dW4);
            String str = "CONNECT " + wPgQ0XkYMI4vGZ.LlsAwtCXtFvPG3dW4.uu8w11aBWYrANOCpbexEQ06dS(Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA, true) + " HTTP/1.1";
            zlvJasFcCb1gcY1rxU zlvjasfccb1gcy1rxu = this.ELZW2TfCJuaH27ILK7NhOac8P;
            d6tPitE3DTk1erIZXx d6tpite3dtk1erizxx = new d6tPitE3DTk1erIZXx(null, null, zlvjasfccb1gcy1rxu, this.AE3aYQniE2MVzIhSQaIUIvmNJIb);
            y2L58afrPJO pYOoWpqdhXIAEqnxMp1M = zlvjasfccb1gcy1rxu.pYOoWpqdhXIAEqnxMp1M();
            long j = i2;
            TimeUnit timeUnit = TimeUnit.MILLISECONDS;
            pYOoWpqdhXIAEqnxMp1M.mddTHTsghpG247Tn8aU17dbs(j, timeUnit);
            this.AE3aYQniE2MVzIhSQaIUIvmNJIb.pYOoWpqdhXIAEqnxMp1M().mddTHTsghpG247Tn8aU17dbs(i3, timeUnit);
            d6tpite3dtk1erizxx.ELZW2TfCJuaH27ILK7NhOac8P(Xcb5jjxCoQp9OA.uaTfCKNviddAWLbck, str);
            d6tpite3dtk1erizxx.uaTfCKNviddAWLbck();
            aKp5ySsuBvnI8 BTzhn1XfTKC8cL901w67xnNTX = d6tpite3dtk1erizxx.BTzhn1XfTKC8cL901w67xnNTX(false);
            BTzhn1XfTKC8cL901w67xnNTX.Xcb5jjxCoQp9OA = Xcb5jjxCoQp9OA;
            LpkjY9zisIANglgQ Xcb5jjxCoQp9OA2 = BTzhn1XfTKC8cL901w67xnNTX.Xcb5jjxCoQp9OA();
            long Xcb5jjxCoQp9OA3 = GxWXXKWJvKGS7.Xcb5jjxCoQp9OA(Xcb5jjxCoQp9OA2);
            if (Xcb5jjxCoQp9OA3 == -1) {
                Xcb5jjxCoQp9OA3 = 0;
            }
            BR4mCMO2yGSGDlgv5s.JMW1nY4qeylWh mddTHTsghpG247Tn8aU17dbs = d6tpite3dtk1erizxx.mddTHTsghpG247Tn8aU17dbs(Xcb5jjxCoQp9OA3);
            wPgQ0XkYMI4vGZ.LlsAwtCXtFvPG3dW4.RscaMNZEtRAwwtDDgve7z8kw0(mddTHTsghpG247Tn8aU17dbs, Integer.MAX_VALUE, timeUnit);
            mddTHTsghpG247Tn8aU17dbs.close();
            int i4 = Xcb5jjxCoQp9OA2.TtkYTcorhV6sEsisdHh;
            if (i4 != 200) {
                if (i4 == 407) {
                    fzem5zhqi3ybrm7ndcw2yuauv.Xcb5jjxCoQp9OA.BTzhn1XfTKC8cL901w67xnNTX.getClass();
                    throw new IOException("Failed to authenticate with proxy");
                }
                throw new IOException(AeD4S2V0JTkFNNCat.MhXFz4O2fao0frTdgvSgsROV.IOcwVNZBJVninyXba("Unexpected response code for CONNECT: ", i4));
            }
            if (this.ELZW2TfCJuaH27ILK7NhOac8P.A75bpaYM06AVd.NuA3cq48IXLTICW() && this.AE3aYQniE2MVzIhSQaIUIvmNJIb.A75bpaYM06AVd.NuA3cq48IXLTICW()) {
                return;
            } else {
                throw new IOException("TLS tunnel buffered too many bytes!");
            }
        }
        throw new NullPointerException("url == null");
    }

    public final boolean ELZW2TfCJuaH27ILK7NhOac8P(qck5v1bb2rYhaEqVs qck5v1bb2ryhaeqvs) {
        int i = qck5v1bb2ryhaeqvs.Dx9UYYdrV;
        qck5v1bb2rYhaEqVs qck5v1bb2ryhaeqvs2 = this.uaTfCKNviddAWLbck.Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA;
        if (i != qck5v1bb2ryhaeqvs2.Dx9UYYdrV) {
            return false;
        }
        String str = qck5v1bb2ryhaeqvs.BTzhn1XfTKC8cL901w67xnNTX;
        if (str.equals(qck5v1bb2ryhaeqvs2.BTzhn1XfTKC8cL901w67xnNTX)) {
            return true;
        }
        kxejqrVqAU kxejqrvqau = this.pYOoWpqdhXIAEqnxMp1M;
        if (kxejqrvqau == null || !refFl5uTjOFgv.dtvWz6I0F4TVD5dVYSit3W.uaTfCKNviddAWLbck(str, (X509Certificate) kxejqrvqau.uaTfCKNviddAWLbck.get(0))) {
            return false;
        }
        return true;
    }

    public final uJesLkqn3yALlHyRT3sA.xgYehFlZAxMDizbH0hKTuJMEFk IOcwVNZBJVninyXba(hBRTgXXhcJzGjGt7p5.y2L58afrPJO y2l58afrpjo, uJesLkqn3yALlHyRT3sA.d6tPitE3DTk1erIZXx d6tpite3dtk1erizxx, JMW1nY4qeylWh jMW1nY4qeylWh) {
        if (this.IOcwVNZBJVninyXba != null) {
            return new osGNLnVfGGWP1KixpN8(d6tpite3dtk1erizxx, jMW1nY4qeylWh, this.IOcwVNZBJVninyXba);
        }
        Socket socket = this.Dx9UYYdrV;
        int i = d6tpite3dtk1erizxx.AE3aYQniE2MVzIhSQaIUIvmNJIb;
        socket.setSoTimeout(i);
        TimeUnit timeUnit = TimeUnit.MILLISECONDS;
        this.ELZW2TfCJuaH27ILK7NhOac8P.pYOoWpqdhXIAEqnxMp1M().mddTHTsghpG247Tn8aU17dbs(i, timeUnit);
        this.AE3aYQniE2MVzIhSQaIUIvmNJIb.pYOoWpqdhXIAEqnxMp1M().mddTHTsghpG247Tn8aU17dbs(d6tpite3dtk1erizxx.uu8w11aBWYrANOCpbexEQ06dS, timeUnit);
        return new d6tPitE3DTk1erIZXx(y2l58afrpjo, jMW1nY4qeylWh, this.ELZW2TfCJuaH27ILK7NhOac8P, this.AE3aYQniE2MVzIhSQaIUIvmNJIb);
    }

    @Override
    public final void Xcb5jjxCoQp9OA(Gcw36yU85LOl2EzjVIG0 gcw36yU85LOl2EzjVIG0) {
        int i;
        synchronized (this.qU83Vx5J8I) {
            try {
                synchronized (gcw36yU85LOl2EzjVIG0) {
                    bU6nVanxCx1XZefIjrUEN.V4UL8fNzd v4UL8fNzd = gcw36yU85LOl2EzjVIG0.mfdHVWQyXVJqsexCvsHF2;
                    if ((v4UL8fNzd.Xcb5jjxCoQp9OA & 16) != 0) {
                        i = ((int[]) v4UL8fNzd.qU83Vx5J8I)[4];
                    } else {
                        i = Integer.MAX_VALUE;
                    }
                }
                this.EM5yInA4XWx = i;
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public final boolean mddTHTsghpG247Tn8aU17dbs(hBRTgXXhcJzGjGt7p5.MhXFz4O2fao0frTdgvSgsROV mhXFz4O2fao0frTdgvSgsROV, fzEm5zhqI3YBrM7NdcW2YUauv fzem5zhqi3ybrm7ndcw2yuauv) {
        if (this.WWEgdPrhVv.size() < this.EM5yInA4XWx && !this.uu8w11aBWYrANOCpbexEQ06dS) {
            i9oQO4eiqYj7cqH.LlsAwtCXtFvPG3dW4 llsAwtCXtFvPG3dW4 = i9oQO4eiqYj7cqH.LlsAwtCXtFvPG3dW4.IU8ibgBs6x00oZ;
            fzEm5zhqI3YBrM7NdcW2YUauv fzem5zhqi3ybrm7ndcw2yuauv2 = this.uaTfCKNviddAWLbck;
            hBRTgXXhcJzGjGt7p5.MhXFz4O2fao0frTdgvSgsROV mhXFz4O2fao0frTdgvSgsROV2 = fzem5zhqi3ybrm7ndcw2yuauv2.Xcb5jjxCoQp9OA;
            llsAwtCXtFvPG3dW4.getClass();
            if (!mhXFz4O2fao0frTdgvSgsROV2.Xcb5jjxCoQp9OA(mhXFz4O2fao0frTdgvSgsROV)) {
                return false;
            }
            qck5v1bb2rYhaEqVs qck5v1bb2ryhaeqvs = mhXFz4O2fao0frTdgvSgsROV.Xcb5jjxCoQp9OA;
            if (qck5v1bb2ryhaeqvs.BTzhn1XfTKC8cL901w67xnNTX.equals(fzem5zhqi3ybrm7ndcw2yuauv2.Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA.BTzhn1XfTKC8cL901w67xnNTX)) {
                return true;
            }
            if (this.IOcwVNZBJVninyXba == null || fzem5zhqi3ybrm7ndcw2yuauv == null || fzem5zhqi3ybrm7ndcw2yuauv.qU83Vx5J8I.type() != Proxy.Type.DIRECT || fzem5zhqi3ybrm7ndcw2yuauv2.qU83Vx5J8I.type() != Proxy.Type.DIRECT || !fzem5zhqi3ybrm7ndcw2yuauv2.uaTfCKNviddAWLbck.equals(fzem5zhqi3ybrm7ndcw2yuauv.uaTfCKNviddAWLbck) || fzem5zhqi3ybrm7ndcw2yuauv.Xcb5jjxCoQp9OA.AE3aYQniE2MVzIhSQaIUIvmNJIb != refFl5uTjOFgv.dtvWz6I0F4TVD5dVYSit3W.Xcb5jjxCoQp9OA || !ELZW2TfCJuaH27ILK7NhOac8P(qck5v1bb2ryhaeqvs)) {
                return false;
            }
            try {
                mhXFz4O2fao0frTdgvSgsROV.uu8w11aBWYrANOCpbexEQ06dS.Xcb5jjxCoQp9OA(qck5v1bb2ryhaeqvs.BTzhn1XfTKC8cL901w67xnNTX, this.pYOoWpqdhXIAEqnxMp1M.uaTfCKNviddAWLbck);
                return true;
            } catch (SSLPeerUnverifiedException unused) {
            }
        }
        return false;
    }

    public final void pYOoWpqdhXIAEqnxMp1M(MhXFz4O2fao0frTdgvSgsROV mhXFz4O2fao0frTdgvSgsROV, i9oQO4eiqYj7cqH.LlsAwtCXtFvPG3dW4 llsAwtCXtFvPG3dW4) {
        SSLSocket sSLSocket;
        boolean z;
        anYGCMycJorv9qKZJZX6u7G6ZEI anygcmycjorv9qkzjzx6u7g6zei;
        boolean z2;
        int i;
        if (this.uaTfCKNviddAWLbck.Xcb5jjxCoQp9OA.ELZW2TfCJuaH27ILK7NhOac8P == null) {
            this.mddTHTsghpG247Tn8aU17dbs = anYGCMycJorv9qKZJZX6u7G6ZEI.HTTP_1_1;
            this.Dx9UYYdrV = this.BTzhn1XfTKC8cL901w67xnNTX;
            return;
        }
        llsAwtCXtFvPG3dW4.getClass();
        hBRTgXXhcJzGjGt7p5.MhXFz4O2fao0frTdgvSgsROV mhXFz4O2fao0frTdgvSgsROV2 = this.uaTfCKNviddAWLbck.Xcb5jjxCoQp9OA;
        SSLSocketFactory sSLSocketFactory = mhXFz4O2fao0frTdgvSgsROV2.ELZW2TfCJuaH27ILK7NhOac8P;
        qck5v1bb2rYhaEqVs qck5v1bb2ryhaeqvs = mhXFz4O2fao0frTdgvSgsROV2.Xcb5jjxCoQp9OA;
        String str = null;
        try {
            try {
                sSLSocket = (SSLSocket) sSLSocketFactory.createSocket(this.BTzhn1XfTKC8cL901w67xnNTX, qck5v1bb2ryhaeqvs.BTzhn1XfTKC8cL901w67xnNTX, qck5v1bb2ryhaeqvs.Dx9UYYdrV, true);
            } catch (AssertionError e) {
                e = e;
            }
        } catch (Throwable th) {
            th = th;
            sSLSocket = null;
        }
        try {
            boolean z3 = mhXFz4O2fao0frTdgvSgsROV.Xcb5jjxCoQp9OA(sSLSocket).qU83Vx5J8I;
            if (z3) {
                V4UL8fNzd.Xcb5jjxCoQp9OA.Dx9UYYdrV(sSLSocket, qck5v1bb2ryhaeqvs.BTzhn1XfTKC8cL901w67xnNTX, mhXFz4O2fao0frTdgvSgsROV2.Dx9UYYdrV);
            }
            sSLSocket.startHandshake();
            SSLSession session = sSLSocket.getSession();
            if (!"NONE".equals(session.getProtocol()) && !"SSL_NULL_WITH_NULL_NULL".equals(session.getCipherSuite())) {
                z = true;
            } else {
                z = false;
            }
            if (z) {
                kxejqrVqAU Xcb5jjxCoQp9OA = kxejqrVqAU.Xcb5jjxCoQp9OA(session);
                boolean verify = mhXFz4O2fao0frTdgvSgsROV2.AE3aYQniE2MVzIhSQaIUIvmNJIb.verify(qck5v1bb2ryhaeqvs.BTzhn1XfTKC8cL901w67xnNTX, session);
                List list = Xcb5jjxCoQp9OA.uaTfCKNviddAWLbck;
                if (verify) {
                    mhXFz4O2fao0frTdgvSgsROV2.uu8w11aBWYrANOCpbexEQ06dS.Xcb5jjxCoQp9OA(qck5v1bb2ryhaeqvs.BTzhn1XfTKC8cL901w67xnNTX, list);
                    if (z3) {
                        str = V4UL8fNzd.Xcb5jjxCoQp9OA.IOcwVNZBJVninyXba(sSLSocket);
                    }
                    this.Dx9UYYdrV = sSLSocket;
                    this.ELZW2TfCJuaH27ILK7NhOac8P = new zlvJasFcCb1gcY1rxU(lqF6z9HyXwKYyzb7U9q.uaTfCKNviddAWLbck(sSLSocket));
                    this.AE3aYQniE2MVzIhSQaIUIvmNJIb = new DIBA2CR2UBCMUMXodM.hRMfV4J3U068rZpbQw8TBcASIvG(lqF6z9HyXwKYyzb7U9q.Xcb5jjxCoQp9OA(this.Dx9UYYdrV));
                    this.pYOoWpqdhXIAEqnxMp1M = Xcb5jjxCoQp9OA;
                    if (str != null) {
                        anygcmycjorv9qkzjzx6u7g6zei = anYGCMycJorv9qKZJZX6u7G6ZEI.BTzhn1XfTKC8cL901w67xnNTX(str);
                    } else {
                        anygcmycjorv9qkzjzx6u7g6zei = anYGCMycJorv9qKZJZX6u7G6ZEI.HTTP_1_1;
                    }
                    this.mddTHTsghpG247Tn8aU17dbs = anygcmycjorv9qkzjzx6u7g6zei;
                    V4UL8fNzd.Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA(sSLSocket);
                    if (this.mddTHTsghpG247Tn8aU17dbs == anYGCMycJorv9qKZJZX6u7G6ZEI.HTTP_2) {
                        this.Dx9UYYdrV.setSoTimeout(0);
                        PL5oabeYVEZVxrhN8 pL5oabeYVEZVxrhN8 = new PL5oabeYVEZVxrhN8();
                        Socket socket = this.Dx9UYYdrV;
                        String str2 = this.uaTfCKNviddAWLbck.Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA.BTzhn1XfTKC8cL901w67xnNTX;
                        zlvJasFcCb1gcY1rxU zlvjasfccb1gcy1rxu = this.ELZW2TfCJuaH27ILK7NhOac8P;
                        DIBA2CR2UBCMUMXodM.hRMfV4J3U068rZpbQw8TBcASIvG hrmfv4j3u068rzpbqw8tbcasivg = this.AE3aYQniE2MVzIhSQaIUIvmNJIb;
                        pL5oabeYVEZVxrhN8.Xcb5jjxCoQp9OA = socket;
                        pL5oabeYVEZVxrhN8.qU83Vx5J8I = str2;
                        pL5oabeYVEZVxrhN8.uaTfCKNviddAWLbck = zlvjasfccb1gcy1rxu;
                        pL5oabeYVEZVxrhN8.BTzhn1XfTKC8cL901w67xnNTX = hrmfv4j3u068rzpbqw8tbcasivg;
                        pL5oabeYVEZVxrhN8.Dx9UYYdrV = this;
                        pL5oabeYVEZVxrhN8.pYOoWpqdhXIAEqnxMp1M = 0;
                        Gcw36yU85LOl2EzjVIG0 gcw36yU85LOl2EzjVIG0 = new Gcw36yU85LOl2EzjVIG0(pL5oabeYVEZVxrhN8);
                        this.IOcwVNZBJVninyXba = gcw36yU85LOl2EzjVIG0;
                        Q4yxHmvMaiiS.QJsqsKtomJyhrNQBw qJsqsKtomJyhrNQBw = gcw36yU85LOl2EzjVIG0.TjAOC8jZOBCO3MlZKRtsjRLkj;
                        synchronized (qJsqsKtomJyhrNQBw) {
                            if (!qJsqsKtomJyhrNQBw.pVE8a9LohqkcL1bZ2zWppzAz) {
                                if (qJsqsKtomJyhrNQBw.knZa8G5Dnyom3a) {
                                    Logger logger = Q4yxHmvMaiiS.QJsqsKtomJyhrNQBw.ZFBSAcaG2VliO0t5HzdI;
                                    if (logger.isLoggable(Level.FINE)) {
                                        logger.fine(wPgQ0XkYMI4vGZ.LlsAwtCXtFvPG3dW4.AE3aYQniE2MVzIhSQaIUIvmNJIb(">> CONNECTION %s", Q4yxHmvMaiiS.d6tPitE3DTk1erIZXx.Xcb5jjxCoQp9OA.aG7kT0ezy()));
                                    }
                                    qJsqsKtomJyhrNQBw.A75bpaYM06AVd.write((byte[]) Q4yxHmvMaiiS.d6tPitE3DTk1erIZXx.Xcb5jjxCoQp9OA.A75bpaYM06AVd.clone());
                                    qJsqsKtomJyhrNQBw.A75bpaYM06AVd.flush();
                                }
                            } else {
                                throw new IOException("closed");
                            }
                        }
                        Q4yxHmvMaiiS.QJsqsKtomJyhrNQBw qJsqsKtomJyhrNQBw2 = gcw36yU85LOl2EzjVIG0.TjAOC8jZOBCO3MlZKRtsjRLkj;
                        bU6nVanxCx1XZefIjrUEN.V4UL8fNzd v4UL8fNzd = gcw36yU85LOl2EzjVIG0.ZSVjoavKPobbV9;
                        synchronized (qJsqsKtomJyhrNQBw2) {
                            if (!qJsqsKtomJyhrNQBw2.pVE8a9LohqkcL1bZ2zWppzAz) {
                                qJsqsKtomJyhrNQBw2.Dx9UYYdrV(0, Integer.bitCount(v4UL8fNzd.Xcb5jjxCoQp9OA) * 6, (byte) 4, (byte) 0);
                                for (int i2 = 0; i2 < 10; i2++) {
                                    if (((1 << i2) & v4UL8fNzd.Xcb5jjxCoQp9OA) != 0) {
                                        z2 = true;
                                    } else {
                                        z2 = false;
                                    }
                                    if (z2) {
                                        if (i2 == 4) {
                                            i = 3;
                                        } else if (i2 == 7) {
                                            i = 4;
                                        } else {
                                            i = i2;
                                        }
                                        qJsqsKtomJyhrNQBw2.A75bpaYM06AVd.writeShort(i);
                                        qJsqsKtomJyhrNQBw2.A75bpaYM06AVd.writeInt(((int[]) v4UL8fNzd.qU83Vx5J8I)[i2]);
                                    }
                                }
                                qJsqsKtomJyhrNQBw2.A75bpaYM06AVd.flush();
                            } else {
                                throw new IOException("closed");
                            }
                        }
                        if (gcw36yU85LOl2EzjVIG0.ZSVjoavKPobbV9.uaTfCKNviddAWLbck() != 65535) {
                            gcw36yU85LOl2EzjVIG0.TjAOC8jZOBCO3MlZKRtsjRLkj.WWEgdPrhVv(0, r11 - 65535);
                        }
                        new Thread(gcw36yU85LOl2EzjVIG0.J6AwR2IyPT).start();
                        return;
                    }
                    return;
                }
                X509Certificate x509Certificate = (X509Certificate) list.get(0);
                throw new SSLPeerUnverifiedException("Hostname " + qck5v1bb2ryhaeqvs.BTzhn1XfTKC8cL901w67xnNTX + " not verified:\n    certificate: " + O9KF9KMx8LFwf2eqjN2w.qU83Vx5J8I(x509Certificate) + "\n    DN: " + x509Certificate.getSubjectDN().getName() + "\n    subjectAltNames: " + refFl5uTjOFgv.dtvWz6I0F4TVD5dVYSit3W.Xcb5jjxCoQp9OA(x509Certificate));
            }
            throw new IOException("a valid ssl session was not established");
        } catch (AssertionError e2) {
            e = e2;
            if (wPgQ0XkYMI4vGZ.LlsAwtCXtFvPG3dW4.n4PQOBD9XmtL4DDReRQ(e)) {
                throw new IOException(e);
            }
            throw e;
        } catch (Throwable th2) {
            th = th2;
            if (sSLSocket != null) {
                V4UL8fNzd.Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA(sSLSocket);
            }
            wPgQ0XkYMI4vGZ.LlsAwtCXtFvPG3dW4.BTzhn1XfTKC8cL901w67xnNTX(sSLSocket);
            throw th;
        }
    }

    @Override
    public final void qU83Vx5J8I(yycNTKtNNfBQ2oa6MEm yycntktnnfbq2oa6mem) {
        yycntktnnfbq2oa6mem.uaTfCKNviddAWLbck(Q4yxHmvMaiiS.LlsAwtCXtFvPG3dW4.REFUSED_STREAM);
    }

    public final String toString() {
        Object obj;
        StringBuilder sb = new StringBuilder("Connection{");
        fzEm5zhqI3YBrM7NdcW2YUauv fzem5zhqi3ybrm7ndcw2yuauv = this.uaTfCKNviddAWLbck;
        sb.append(fzem5zhqi3ybrm7ndcw2yuauv.Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA.BTzhn1XfTKC8cL901w67xnNTX);
        sb.append(":");
        sb.append(fzem5zhqi3ybrm7ndcw2yuauv.Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA.Dx9UYYdrV);
        sb.append(", proxy=");
        sb.append(fzem5zhqi3ybrm7ndcw2yuauv.qU83Vx5J8I);
        sb.append(" hostAddress=");
        sb.append(fzem5zhqi3ybrm7ndcw2yuauv.uaTfCKNviddAWLbck);
        sb.append(" cipherSuite=");
        kxejqrVqAU kxejqrvqau = this.pYOoWpqdhXIAEqnxMp1M;
        if (kxejqrvqau != null) {
            obj = kxejqrvqau.qU83Vx5J8I;
        } else {
            obj = "none";
        }
        sb.append(obj);
        sb.append(" protocol=");
        sb.append(this.mddTHTsghpG247Tn8aU17dbs);
        sb.append('}');
        return sb.toString();
    }

    public final void uaTfCKNviddAWLbck(int i, int i2, int i3, boolean z, i9oQO4eiqYj7cqH.LlsAwtCXtFvPG3dW4 llsAwtCXtFvPG3dW4) {
        boolean z2;
        boolean z3;
        boolean z4;
        fzEm5zhqI3YBrM7NdcW2YUauv fzem5zhqi3ybrm7ndcw2yuauv;
        int i4;
        if (this.mddTHTsghpG247Tn8aU17dbs == null) {
            hBRTgXXhcJzGjGt7p5.MhXFz4O2fao0frTdgvSgsROV mhXFz4O2fao0frTdgvSgsROV = this.uaTfCKNviddAWLbck.Xcb5jjxCoQp9OA;
            List list = mhXFz4O2fao0frTdgvSgsROV.pYOoWpqdhXIAEqnxMp1M;
            MhXFz4O2fao0frTdgvSgsROV mhXFz4O2fao0frTdgvSgsROV2 = new MhXFz4O2fao0frTdgvSgsROV(list);
            if (mhXFz4O2fao0frTdgvSgsROV.ELZW2TfCJuaH27ILK7NhOac8P == null) {
                if (list.contains(Zi5fvFCV311V11S.pYOoWpqdhXIAEqnxMp1M)) {
                    String str = this.uaTfCKNviddAWLbck.Xcb5jjxCoQp9OA.Xcb5jjxCoQp9OA.BTzhn1XfTKC8cL901w67xnNTX;
                    if (!V4UL8fNzd.Xcb5jjxCoQp9OA.AE3aYQniE2MVzIhSQaIUIvmNJIb(str)) {
                        throw new dtvWz6I0F4TVD5dVYSit3W(new UnknownServiceException(com.applovin.exoplayer2.ui.LlsAwtCXtFvPG3dW4.aG7kT0ezy("CLEARTEXT communication to ", str, " not permitted by network security policy")));
                    }
                } else {
                    throw new dtvWz6I0F4TVD5dVYSit3W(new UnknownServiceException("CLEARTEXT communication not enabled for client"));
                }
            }
            dtvWz6I0F4TVD5dVYSit3W dtvwz6i0f4tvd5dvysit3w = null;
            do {
                boolean z5 = true;
                z2 = false;
                try {
                    fzEm5zhqI3YBrM7NdcW2YUauv fzem5zhqi3ybrm7ndcw2yuauv2 = this.uaTfCKNviddAWLbck;
                    if (fzem5zhqi3ybrm7ndcw2yuauv2.Xcb5jjxCoQp9OA.ELZW2TfCJuaH27ILK7NhOac8P != null && fzem5zhqi3ybrm7ndcw2yuauv2.qU83Vx5J8I.type() == Proxy.Type.HTTP) {
                        z4 = true;
                    } else {
                        z4 = false;
                    }
                    if (z4) {
                        Dx9UYYdrV(i, i2, i3, llsAwtCXtFvPG3dW4);
                        if (this.BTzhn1XfTKC8cL901w67xnNTX == null) {
                            fzem5zhqi3ybrm7ndcw2yuauv = this.uaTfCKNviddAWLbck;
                            if (fzem5zhqi3ybrm7ndcw2yuauv.Xcb5jjxCoQp9OA.ELZW2TfCJuaH27ILK7NhOac8P != null || fzem5zhqi3ybrm7ndcw2yuauv.qU83Vx5J8I.type() != Proxy.Type.HTTP) {
                                z5 = false;
                            }
                            if (!z5 && this.BTzhn1XfTKC8cL901w67xnNTX == null) {
                                throw new dtvWz6I0F4TVD5dVYSit3W(new ProtocolException("Too many tunnel connections attempted: 21"));
                            }
                            if (this.IOcwVNZBJVninyXba == null) {
                                synchronized (this.qU83Vx5J8I) {
                                    Gcw36yU85LOl2EzjVIG0 gcw36yU85LOl2EzjVIG0 = this.IOcwVNZBJVninyXba;
                                    synchronized (gcw36yU85LOl2EzjVIG0) {
                                        bU6nVanxCx1XZefIjrUEN.V4UL8fNzd v4UL8fNzd = gcw36yU85LOl2EzjVIG0.mfdHVWQyXVJqsexCvsHF2;
                                        if ((v4UL8fNzd.Xcb5jjxCoQp9OA & 16) != 0) {
                                            i4 = ((int[]) v4UL8fNzd.qU83Vx5J8I)[4];
                                        } else {
                                            i4 = Integer.MAX_VALUE;
                                        }
                                    }
                                    this.EM5yInA4XWx = i4;
                                }
                                return;
                            }
                            return;
                        }
                    } else {
                        BTzhn1XfTKC8cL901w67xnNTX(i, i2, llsAwtCXtFvPG3dW4);
                    }
                    pYOoWpqdhXIAEqnxMp1M(mhXFz4O2fao0frTdgvSgsROV2, llsAwtCXtFvPG3dW4);
                    InetSocketAddress inetSocketAddress = this.uaTfCKNviddAWLbck.uaTfCKNviddAWLbck;
                    llsAwtCXtFvPG3dW4.getClass();
                    fzem5zhqi3ybrm7ndcw2yuauv = this.uaTfCKNviddAWLbck;
                    if (fzem5zhqi3ybrm7ndcw2yuauv.Xcb5jjxCoQp9OA.ELZW2TfCJuaH27ILK7NhOac8P != null) {
                    }
                    z5 = false;
                    if (!z5) {
                    }
                    if (this.IOcwVNZBJVninyXba == null) {
                    }
                } catch (IOException e) {
                    wPgQ0XkYMI4vGZ.LlsAwtCXtFvPG3dW4.BTzhn1XfTKC8cL901w67xnNTX(this.Dx9UYYdrV);
                    wPgQ0XkYMI4vGZ.LlsAwtCXtFvPG3dW4.BTzhn1XfTKC8cL901w67xnNTX(this.BTzhn1XfTKC8cL901w67xnNTX);
                    this.Dx9UYYdrV = null;
                    this.BTzhn1XfTKC8cL901w67xnNTX = null;
                    this.ELZW2TfCJuaH27ILK7NhOac8P = null;
                    this.AE3aYQniE2MVzIhSQaIUIvmNJIb = null;
                    this.pYOoWpqdhXIAEqnxMp1M = null;
                    this.mddTHTsghpG247Tn8aU17dbs = null;
                    this.IOcwVNZBJVninyXba = null;
                    InetSocketAddress inetSocketAddress2 = this.uaTfCKNviddAWLbck.uaTfCKNviddAWLbck;
                    llsAwtCXtFvPG3dW4.getClass();
                    if (dtvwz6i0f4tvd5dvysit3w == null) {
                        dtvwz6i0f4tvd5dvysit3w = new dtvWz6I0F4TVD5dVYSit3W(e);
                    } else {
                        IOException iOException = dtvwz6i0f4tvd5dvysit3w.A75bpaYM06AVd;
                        Method method = dtvWz6I0F4TVD5dVYSit3W.knZa8G5Dnyom3a;
                        if (method != null) {
                            try {
                                method.invoke(e, iOException);
                            } catch (IllegalAccessException | InvocationTargetException unused) {
                            }
                        }
                        dtvwz6i0f4tvd5dvysit3w.A75bpaYM06AVd = e;
                    }
                    if (z) {
                        mhXFz4O2fao0frTdgvSgsROV2.BTzhn1XfTKC8cL901w67xnNTX = true;
                        if (mhXFz4O2fao0frTdgvSgsROV2.uaTfCKNviddAWLbck && !(e instanceof ProtocolException) && !(e instanceof InterruptedIOException) && ((!((z3 = e instanceof SSLHandshakeException)) || !(e.getCause() instanceof CertificateException)) && !(e instanceof SSLPeerUnverifiedException))) {
                            if (!z3 && !(e instanceof SSLProtocolException)) {
                                z5 = false;
                            }
                            z2 = z5;
                        }
                    } else {
                        throw dtvwz6i0f4tvd5dvysit3w;
                    }
                }
            } while (z2);
            throw dtvwz6i0f4tvd5dvysit3w;
        }
        throw new IllegalStateException("already connected");
    }
}