package p018f1;

import java.io.Serializable;
import p006b1.C0476f;
import p006b1.C0479g;
import p012d1.InterfaceC0629d;
import p015e1.C0666c;
import p039m1.C1470g;

/* renamed from: f1.a */
/* loaded from: classes.dex */
public abstract class AbstractC0713a implements InterfaceC0629d<Object>, InterfaceC0716d, Serializable {

    /* renamed from: d */
    public final InterfaceC0629d<Object> f2296d;

    /* renamed from: a */
    public StackTraceElement m3070a() {
        return C0718f.m3058d(this);
    }

    /* renamed from: b */
    public abstract Object m3069b(Object obj);

    /* renamed from: c */
    public void mo3068c() {
    }

    @Override // p018f1.InterfaceC0716d
    /* renamed from: f */
    public InterfaceC0716d mo593f() {
        InterfaceC0629d<Object> interfaceC0629d = this.f2296d;
        if (interfaceC0629d instanceof InterfaceC0716d) {
            return (InterfaceC0716d) interfaceC0629d;
        }
        return null;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // p012d1.InterfaceC0629d
    /* renamed from: i */
    public final void mo591i(Object obj) {
        Object m3069b;
        InterfaceC0629d interfaceC0629d = this;
        while (true) {
            C0719g.m3057a(interfaceC0629d);
            AbstractC0713a abstractC0713a = (AbstractC0713a) interfaceC0629d;
            InterfaceC0629d interfaceC0629d2 = abstractC0713a.f2296d;
            C1470g.m1295b(interfaceC0629d2);
            try {
                m3069b = abstractC0713a.m3069b(obj);
            } catch (Throwable th) {
                C0476f.C0477a c0477a = C0476f.f1684d;
                obj = C0476f.m3626a(C0479g.m3622a(th));
            }
            if (m3069b == C0666c.m3181b()) {
                return;
            }
            obj = C0476f.m3626a(m3069b);
            abstractC0713a.mo3068c();
            if (!(interfaceC0629d2 instanceof AbstractC0713a)) {
                interfaceC0629d2.mo591i(obj);
                return;
            }
            interfaceC0629d = interfaceC0629d2;
        }
    }

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("Continuation at ");
        Object m3070a = m3070a();
        if (m3070a == null) {
            m3070a = getClass().getName();
        }
        sb.append(m3070a);
        return sb.toString();
    }
}