package com.benq.platform.test;

import F1.H;
import android.widget.TextView;
import r1.AbstractC0707b;

/* JADX INFO: loaded from: classes.dex */
@kotlin.coroutines.jvm.internal.f(c = "com.benq.platform.test.ApiInvoker$registerCallbackMethod$1$callbackStub$1$onStateChange$1", f = "ApiInvoker.kt", l = {}, m = "invokeSuspend")
final class ApiInvoker$registerCallbackMethod$1$callbackStub$1$onStateChange$1 extends kotlin.coroutines.jvm.internal.l implements y1.p {
    final /* synthetic */ TextView $callbackResultTextView;
    final /* synthetic */ int $stateCode;
    int label;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    ApiInvoker$registerCallbackMethod$1$callbackStub$1$onStateChange$1(TextView textView, int i2, q1.d dVar) {
        super(2, dVar);
        this.$callbackResultTextView = textView;
        this.$stateCode = i2;
    }

    @Override // kotlin.coroutines.jvm.internal.a
    public final q1.d create(Object obj, q1.d dVar) {
        return new ApiInvoker$registerCallbackMethod$1$callbackStub$1$onStateChange$1(this.$callbackResultTextView, this.$stateCode, dVar);
    }

    @Override // y1.p
    public final Object invoke(H h2, q1.d dVar) {
        return ((ApiInvoker$registerCallbackMethod$1$callbackStub$1$onStateChange$1) create(h2, dVar)).invokeSuspend(n1.s.f5871a);
    }

    @Override // kotlin.coroutines.jvm.internal.a
    public final Object invokeSuspend(Object obj) {
        AbstractC0707b.d();
        if (this.label != 0) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        n1.m.b(obj);
        this.$callbackResultTextView.append("\nIRecordEventCallback: onStateChange(" + this.$stateCode + ")");
        return n1.s.f5871a;
    }
}
