package o;

import com.google.android.gms.common.ConnectionResult;
import ir.devixor.app.service.FirebaseMessagingService;
import java.io.File;
import java.util.Set;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class P8 extends Sb0 implements SC {
    public final /* synthetic */ int p;
    public /* synthetic */ Object q;
    public final /* synthetic */ Object r;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public P8(FirebaseMessagingService firebaseMessagingService, String str, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.p = 4;
        this.r = firebaseMessagingService;
        this.q = str;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) throws Throwable {
        switch (this.p) {
            case 0:
                return ((P8) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
            case 1:
                P8 p8 = (P8) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2);
                Oh0 oh0 = Oh0.a;
                p8.n(oh0);
                return oh0;
            case 2:
                return ((P8) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
            case 3:
                return ((P8) l((AbstractC2912xa0) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
            case 4:
                P8 p82 = (P8) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2);
                Oh0 oh02 = Oh0.a;
                p82.n(oh02);
                return oh02;
            case 5:
                return ((P8) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
            case 6:
                P8 p83 = (P8) l((VQ) obj, (InterfaceC0220Im) obj2);
                Oh0 oh03 = Oh0.a;
                p83.n(oh03);
                return oh03;
            case 7:
                P8 p84 = (P8) l((VQ) obj, (InterfaceC0220Im) obj2);
                Oh0 oh04 = Oh0.a;
                p84.n(oh04);
                return oh04;
            case 8:
                P8 p85 = (P8) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2);
                Oh0 oh05 = Oh0.a;
                p85.n(oh05);
                return oh05;
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                ((P8) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
                throw null;
            case 10:
                P8 p86 = (P8) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2);
                Oh0 oh06 = Oh0.a;
                p86.n(oh06);
                return oh06;
            default:
                return ((P8) l((VQ) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
        }
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        switch (this.p) {
            case 0:
                return new P8((String) this.q, (String) this.r, interfaceC0220Im, 0);
            case 1:
                return new P8((String) this.q, (File) this.r, interfaceC0220Im, 1);
            case 2:
                P8 p8 = new P8((C0274Ko) this.r, interfaceC0220Im, 2);
                p8.q = obj;
                return p8;
            case 3:
                P8 p82 = new P8((AbstractC2912xa0) this.r, interfaceC0220Im, 3);
                p82.q = obj;
                return p82;
            case 4:
                return new P8((FirebaseMessagingService) this.r, (String) this.q, interfaceC0220Im);
            case 5:
                P8 p83 = new P8((U4) this.r, interfaceC0220Im, 5);
                p83.q = obj;
                return p83;
            case 6:
                P8 p84 = new P8((OC) this.r, interfaceC0220Im, 6);
                p84.q = obj;
                return p84;
            case 7:
                P8 p85 = new P8((Long) this.r, interfaceC0220Im, 7);
                p85.q = obj;
                return p85;
            case 8:
                P8 p86 = new P8((XK) this.r, interfaceC0220Im, 8);
                p86.q = obj;
                return p86;
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                P8 p87 = new P8((AbstractC2709vO) this.r, interfaceC0220Im, 9);
                p87.q = obj;
                return p87;
            case 10:
                return new P8((InterfaceC1191fR) this.q, (InterfaceC1191fR) this.r, interfaceC0220Im, 10);
            default:
                P8 p88 = new P8((Set) this.r, interfaceC0220Im, 11);
                p88.q = obj;
                return p88;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:50:0x0135, code lost:
    
        return r15.a();
     */
    /* JADX WARN: Code restructure failed: missing block: B:53:0x0138, code lost:
    
        r0 = move-exception;
     */
    /* JADX WARN: Code restructure failed: missing block: B:54:0x0139, code lost:
    
        r2.l();
     */
    /* JADX WARN: Code restructure failed: missing block: B:55:0x013c, code lost:
    
        throw r0;
     */
    /* JADX WARN: Multi-variable type inference failed */
    @Override // o.AbstractC0728ad
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object n(java.lang.Object r17) throws java.lang.Throwable {
        /*
            Method dump skipped, instructions count: 888
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.P8.n(java.lang.Object):java.lang.Object");
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ P8(Object obj, Object obj2, InterfaceC0220Im interfaceC0220Im, int i) {
        super(2, interfaceC0220Im);
        this.p = i;
        this.q = obj;
        this.r = obj2;
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ P8(Object obj, InterfaceC0220Im interfaceC0220Im, int i) {
        super(2, interfaceC0220Im);
        this.p = i;
        this.r = obj;
    }
}
