得物.apk(点击下载) / FaceDetectMainFragment$loadRemoteResources$1.java
package com.shizhuang.duapp.modules.productv2.facedetect.detect.ui;
import android.graphics.Bitmap;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.libs.animation.DuAnimationView;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import ik1.f;
import java.io.File;
import kotlin.Metadata;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.Deferred;
import kotlinx.coroutines.DeferredCoroutine;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H@¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;", "invoke", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"}, k = 3, mv = {1, 4, 2})
@DebugMetadata(c = "com.shizhuang.duapp.modules.productv2.facedetect.detect.ui.FaceDetectMainFragment$loadRemoteResources$1", f = "FaceDetectMainFragment.kt", i = {0}, l = {175, 175}, m = "invokeSuspend", n = {"mp4"}, s = {"L$0"})
/* compiled from: FaceDetectMainFragment.kt */
public final class FaceDetectMainFragment$loadRemoteResources$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
public static ChangeQuickRedirect changeQuickRedirect;
private /* synthetic */ Object L$0;
public Object L$1;
public int label;
public final /* synthetic */ FaceDetectMainFragment this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public FaceDetectMainFragment$loadRemoteResources$1(FaceDetectMainFragment faceDetectMainFragment, Continuation continuation) {
super(2, continuation);
this.this$0 = faceDetectMainFragment;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
@NotNull
public final Continuation<Unit> create(@Nullable Object obj, @NotNull Continuation<?> continuation) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, continuation}, this, changeQuickRedirect, false, 293361, new Class[]{Object.class, Continuation.class}, Continuation.class);
if (proxy.isSupported) {
return (Continuation) proxy.result;
}
FaceDetectMainFragment$loadRemoteResources$1 faceDetectMainFragment$loadRemoteResources$1 = new FaceDetectMainFragment$loadRemoteResources$1(this.this$0, continuation);
faceDetectMainFragment$loadRemoteResources$1.L$0 = obj;
return faceDetectMainFragment$loadRemoteResources$1;
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{coroutineScope, continuation}, this, changeQuickRedirect, false, 293362, new Class[]{Object.class, Object.class}, Object.class);
return proxy.isSupported ? proxy.result : ((FaceDetectMainFragment$loadRemoteResources$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
}
/* JADX WARNING: Removed duplicated region for block: B:21:0x00b7 */
/* JADX WARNING: Removed duplicated region for block: B:22:0x00c0 */
/* JADX WARNING: Removed duplicated region for block: B:27:0x00e7 */
/* JADX WARNING: Removed duplicated region for block: B:28:0x00ed */
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
@Nullable
public final Object invokeSuspend(@NotNull Object obj) {
Object obj2;
FaceDetectMainFragment faceDetectMainFragment;
Bitmap bitmap;
PatchProxyResult proxy;
Object obj3;
Deferred deferred;
boolean z = true;
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 293360, new Class[]{Object.class}, Object.class);
if (proxy2.isSupported) {
return proxy2.result;
}
Object coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.label;
if (i == 0) {
ResultKt.throwOnFailure(obj);
CoroutineScope coroutineScope = (CoroutineScope) this.L$0;
Deferred b = f.b(coroutineScope, null, null, new FaceDetectMainFragment$loadRemoteResources$1$bg$1(this, null), 3, null);
deferred = f.b(coroutineScope, null, null, new FaceDetectMainFragment$loadRemoteResources$1$mp4$1(this, null), 3, null);
faceDetectMainFragment = this.this$0;
this.L$0 = deferred;
this.L$1 = faceDetectMainFragment;
this.label = 1;
obj3 = DeferredCoroutine.R((DeferredCoroutine) b, this);
if (obj3 == coroutine_suspended) {
return coroutine_suspended;
}
} else if (i == 1) {
faceDetectMainFragment = (FaceDetectMainFragment) this.L$1;
deferred = (Deferred) this.L$0;
ResultKt.throwOnFailure(obj);
obj3 = obj;
} else if (i == 2) {
bitmap = (Bitmap) this.L$1;
faceDetectMainFragment = (FaceDetectMainFragment) this.L$0;
ResultKt.throwOnFailure(obj);
obj2 = obj;
File file = (File) obj2;
proxy = PatchProxy.proxy(new Object[]{bitmap, file}, faceDetectMainFragment, FaceDetectMainFragment.changeQuickRedirect, false, 293327, new Class[]{Bitmap.class, File.class}, Boolean.TYPE);
if (!proxy.isSupported) {
z = ((Boolean) proxy.result).booleanValue();
} else if (bitmap == null || file == null) {
z = false;
} else {
((DuImageLoaderView) faceDetectMainFragment._$_findCachedViewById(R.id.imgBackground)).e(bitmap);
((DuAnimationView) faceDetectMainFragment._$_findCachedViewById(R.id.imgDisplay)).F("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/product/facedetect_animation_new.mp4").s();
}
if (!z) {
this.this$0.showDataView();
} else {
this.this$0.showErrorView();
}
return Unit.INSTANCE;
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
Bitmap bitmap2 = (Bitmap) obj3;
this.L$0 = faceDetectMainFragment;
this.L$1 = bitmap2;
this.label = 2;
obj2 = deferred.await(this);
if (obj2 == coroutine_suspended) {
return coroutine_suspended;
}
bitmap = bitmap2;
File file2 = (File) obj2;
proxy = PatchProxy.proxy(new Object[]{bitmap, file2}, faceDetectMainFragment, FaceDetectMainFragment.changeQuickRedirect, false, 293327, new Class[]{Bitmap.class, File.class}, Boolean.TYPE);
if (!proxy.isSupported) {
}
if (!z) {
}
return Unit.INSTANCE;
}
}