APKPure.apk分析 / x.java


package e.g.a.c.m;

import com.apkpure.aegon.app.newcard.model.AppCardData;
import com.apkpure.aegon.application.AegonApplication;
import com.apkpure.aegon.application.RealApplicationLike;
import com.apkpure.aegon.widgets.webview.CustomWebView;
import com.yalantis.ucrop.R;
import java.util.Objects;
import k.g.c;
import o.m;
import o.p.d;
import o.p.j.a.e;
import o.p.j.a.i;
import o.s.b.l;
import o.s.b.p;
import o.s.b.q;
import o.s.c.j;
import o.s.c.k;
import p.a.b0;

@e(c = "com.apkpure.aegon.ads.taboola.TaboolaRequest$request$1", f = "TaboolaRequest.kt", l = {R.styleable.AppCompatTheme_dividerVertical}, m = "invokeSuspend")
public final class x extends i implements p<b0, d<? super m>, Object> {
    public final /* synthetic */ l<t, m> $listener;
    public final /* synthetic */ b0 $mainScope;
    public int label;
    public final /* synthetic */ w this$0;

    public static final class a extends k implements q<t, Integer, Boolean, m> {
        public final /* synthetic */ l<t, m> $listener;
        public final /* synthetic */ b0 $mainScope;
        public final /* synthetic */ long $requestStartTime;
        public final /* synthetic */ w this$0;

        /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: o.s.b.l<? super e.g.a.c.m.t, o.m> */
        /* JADX WARN: Multi-variable type inference failed */
        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public a(w wVar, l<? super t, m> lVar, long j2, b0 b0Var) {
            super(3);
            this.this$0 = wVar;
            this.$listener = lVar;
            this.$requestStartTime = j2;
            this.$mainScope = b0Var;
        }

        /* Return type fixed from 'java.lang.Object' to match base method */
        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object] */
        @Override // o.s.b.q
        public m d(t tVar, Integer num, Boolean bool) {
            int intValue = num.intValue();
            e.g.a.i0.f2.a.d().post(new d(this.this$0, this.$listener, tVar, bool.booleanValue(), intValue, this.$requestStartTime, this.$mainScope));
            return m.f15828a;
        }
    }

    /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: o.s.b.l<? super e.g.a.c.m.t, o.m> */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public x(w wVar, l<? super t, m> lVar, b0 b0Var, d<? super x> dVar) {
        super(2, dVar);
        this.this$0 = wVar;
        this.$listener = lVar;
        this.$mainScope = b0Var;
    }

    @Override // o.p.j.a.a
    public final d<m> create(Object obj, d<?> dVar) {
        return new x(this.this$0, this.$listener, this.$mainScope, dVar);
    }

    @Override // o.p.j.a.a
    public final Object invokeSuspend(Object obj) {
        o.p.i.a aVar = o.p.i.a.COROUTINE_SUSPENDED;
        int i2 = this.label;
        if (i2 == 0) {
            c.u0(obj);
            try {
                int i3 = AegonApplication.f1165e;
                CustomWebView customWebView = new CustomWebView(RealApplicationLike.getContext(), null);
                customWebView.getSettings();
                w wVar = this.this$0;
                String A = i.i.d.c.A(customWebView.getSettings().s());
                j.d(A, "getWebViewUserAgent(webView)");
                wVar.f5012g = A;
                customWebView.c();
            } catch (Exception unused) {
            }
            e.f.a.e.c.j0("AppAdRequest", AppCardData.KEY_SCENE, 0, 0, 0, 28);
            long currentTimeMillis = System.currentTimeMillis();
            w wVar2 = this.this$0;
            Objects.requireNonNull(wVar2);
            a aVar2 = new a(this.this$0, this.$listener, currentTimeMillis, this.$mainScope);
            this.label = 1;
            if (w.a(wVar2, "https://api.sve.cc/v1/apkpure", false, aVar2, this) == aVar) {
                return aVar;
            }
        } else if (i2 == 1) {
            c.u0(obj);
        } else {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        return m.f15828a;
    }

    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
    @Override // o.s.b.p
    public Object j(b0 b0Var, d<? super m> dVar) {
        return new x(this.this$0, this.$listener, this.$mainScope, dVar).invokeSuspend(m.f15828a);
    }
}