package com.apiguard3.internal;

import X.8e1;
import X.8e2;
import X.8eG;
import X.8eL;
import com.bytedance.covode.number.Covode;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;

public class FU {
    public static int getBody = 1;
    public static int getUrl;

    public interface getHeaders<D> {
        static {
            Covode.recordClassIndex(2426);
        }

        void getHeaders(D d);

        void getMethod();
    }

    static {
        Covode.recordClassIndex(2424);
    }

    public static ExecutorService INVOKESTATIC_com_apiguard3_internal_FU_com_ss_android_ugc_aweme_lancet_thread_ThreadPoolLancet_newSingleThreadExecutor() {
        8e1 LIZ = 8e2.LIZ(8eG.FIXED);
        LIZ.LIZJ = 1;
        return 8eL.LIZ(LIZ.LIZ());
    }

    public static <T> Future<Void> AGRequest(final Future<T> future, final getHeaders<T> getheaders) {
        Future<Void> submit = INVOKESTATIC_com_apiguard3_internal_FU_com_ss_android_ugc_aweme_lancet_thread_ThreadPoolLancet_newSingleThreadExecutor().submit(new Callable<Void>() {
            public static int AGRequest;
            public static int getBody = 1;

            static {
                Covode.recordClassIndex(2425);
            }

            public final /* synthetic */ Object call() {
                int i = AGRequest + 93;
                getBody = i % 128;
                int i2 = i % 2;
                Void method = getMethod();
                int i3 = getBody + 11;
                AGRequest = i3 % 128;
                int i4 = i3 % 2;
                return method;
            }

            private Void getMethod() {
                getHeaders getheaders;
                Object obj;
                int i = getBody + 33;
                AGRequest = i % 128;
                if (i % 2 == 0) {
                    try {
                        getheaders = getheaders;
                        obj = future.get();
                    } catch (Throwable th) {
                        getHeaders getheaders2 = getheaders;
                        th.getCause();
                        getheaders2.getMethod();
                        if (th.getCause() instanceof Exception) {
                            throw th.getCause();
                        }
                        throw th;
                    }
                } else {
                    getheaders = getheaders;
                    obj = future.get();
                }
                getheaders.getHeaders(obj);
                int i2 = getBody + 27;
                AGRequest = i2 % 128;
                int i3 = i2 % 2;
                return null;
            }
        });
        int i = getUrl + 51;
        getBody = i % 128;
        int i2 = i % 2;
        return submit;
    }
}
