package com.discord.widgets.chat.list.adapter; import android.graphics.drawable.TransitionDrawable; import c.i.a.f.e.o.f; import d0.l; import d0.w.h.c; import d0.w.i.a.e; import d0.w.i.a.k; import d0.z.d.m; import kotlin.Unit; import kotlin.coroutines.Continuation; import kotlin.jvm.functions.Function2; import kotlinx.coroutines.CoroutineScope; /* compiled from: WidgetChatListAdapter.kt */ @e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$ScrollToWithHighlight$animateHighlight$1", f = "WidgetChatListAdapter.kt", l = {421}, m = "invokeSuspend") public final class WidgetChatListAdapter$ScrollToWithHighlight$animateHighlight$1 extends k implements Function2, Object> { public final /* synthetic */ TransitionDrawable $transition; public int label; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public WidgetChatListAdapter$ScrollToWithHighlight$animateHighlight$1(TransitionDrawable transitionDrawable, Continuation continuation) { super(2, continuation); this.$transition = transitionDrawable; } @Override // d0.w.i.a.a public final Continuation create(Object obj, Continuation continuation) { m.checkNotNullParameter(continuation, "completion"); return new WidgetChatListAdapter$ScrollToWithHighlight$animateHighlight$1(this.$transition, continuation); } /* 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 continuation) { return ((WidgetChatListAdapter$ScrollToWithHighlight$animateHighlight$1) create(coroutineScope, continuation)).invokeSuspend(Unit.a); } @Override // d0.w.i.a.a public final Object invokeSuspend(Object obj) { Object coroutine_suspended = c.getCOROUTINE_SUSPENDED(); int i = this.label; if (i == 0) { l.throwOnFailure(obj); this.label = 1; if (f.I(500, this) == coroutine_suspended) { return coroutine_suspended; } } else if (i == 1) { l.throwOnFailure(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } this.$transition.reverseTransition(500); return Unit.a; } }