package defpackage;

import androidx.media3.container.NalUnitUtil;
import java.nio.charset.Charset;
import kotlin.Metadata;
import kotlin.coroutines.jvm.internal.ContinuationImpl;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lft2;", "Lqd1;", "ktor-serialization-kotlinx-json"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final class ft2 implements qd1 {
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    @Override // defpackage.qd1
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object a(Charset charset, fz9 fz9Var, bn0 bn0Var, ContinuationImpl continuationImpl) {
        dt2 dt2Var;
        if (continuationImpl instanceof dt2) {
            dt2Var = (dt2) continuationImpl;
            int i = dt2Var.c;
            if ((i & Integer.MIN_VALUE) != 0) {
                dt2Var.c = i - Integer.MIN_VALUE;
            } else {
                dt2Var = new dt2(this, continuationImpl);
            }
        }
        Object obj = dt2Var.a;
        ck1 ck1Var = ck1.a;
        int i2 = dt2Var.c;
        if (i2 == 0) {
            s38.b(obj);
            throw null;
        }
        if (i2 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        s38.b(obj);
        try {
            throw null;
        } catch (Throwable th) {
            throw new ny4("Illegal input: " + th.getMessage(), th);
        }
    }
}
