package zp;

import tp.g2;
import tp.v0;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class y extends g2 implements v0 {

    /* renamed from: r, reason: collision with root package name */
    private final Throwable f53603r;

    /* renamed from: s, reason: collision with root package name */
    private final String f53604s;

    public y(Throwable th2, String str) {
        this.f53603r = th2;
        this.f53604s = str;
    }

    /* JADX WARN: Code restructure failed: missing block: B:6:0x0023, code lost:
    
        if (r1 == null) goto L8;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    private final Void e0() {
        String str;
        if (this.f53603r == null) {
            x.d();
            throw new rm.k();
        }
        StringBuilder sb2 = new StringBuilder();
        sb2.append("Module with the Main dispatcher had failed to initialize");
        String str2 = this.f53604s;
        if (str2 != null) {
            str = ". " + str2;
        }
        str = "";
        sb2.append(str);
        throw new IllegalStateException(sb2.toString(), this.f53603r);
    }

    @Override // tp.i0
    public boolean L(vm.g gVar) {
        e0();
        throw new rm.k();
    }

    @Override // tp.g2
    public g2 X() {
        return this;
    }

    @Override // tp.i0
    /* renamed from: a0, reason: merged with bridge method [inline-methods] */
    public Void C(vm.g gVar, Runnable runnable) {
        e0();
        throw new rm.k();
    }

    @Override // tp.v0
    /* renamed from: g0, reason: merged with bridge method [inline-methods] */
    public Void g(long j10, tp.o oVar) {
        e0();
        throw new rm.k();
    }

    @Override // tp.i0
    public String toString() {
        String str;
        StringBuilder sb2 = new StringBuilder();
        sb2.append("Dispatchers.Main[missing");
        if (this.f53603r != null) {
            str = ", cause=" + this.f53603r;
        } else {
            str = "";
        }
        sb2.append(str);
        sb2.append(']');
        return sb2.toString();
    }
}
