package o;

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.CommonStatusCodes;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final /* synthetic */ class D5 implements OC {
    public final /* synthetic */ int l;
    public final /* synthetic */ InterfaceC1191fR m;

    public /* synthetic */ D5(InterfaceC1191fR interfaceC1191fR, int i) {
        this.l = i;
        this.m = interfaceC1191fR;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        int i = this.l;
        int i2 = 0;
        Oh0 oh0 = Oh0.a;
        InterfaceC1191fR interfaceC1191fR = this.m;
        switch (i) {
            case 0:
                interfaceC1191fR.setValue((InterfaceC1184fK) obj);
                break;
            case 1:
                interfaceC1191fR.setValue((InterfaceC1184fK) obj);
                break;
            case 2:
                interfaceC1191fR.setValue(C0953cu.a((C0953cu) interfaceC1191fR.getValue(), (String) obj, null, null, null, 14));
                break;
            case 3:
                String str = (String) obj;
                C0953cu c0953cu = (C0953cu) interfaceC1191fR.getValue();
                StringBuilder sb = new StringBuilder();
                int length = str.length();
                while (i2 < length) {
                    char cCharAt = str.charAt(i2);
                    if (Character.isDigit(cCharAt)) {
                        sb.append(cCharAt);
                    }
                    i2++;
                }
                interfaceC1191fR.setValue(C0953cu.a(c0953cu, null, Za0.n0(10, sb.toString()), null, null, 13));
                break;
            case 4:
                String str2 = (String) obj;
                C0953cu c0953cu2 = (C0953cu) interfaceC1191fR.getValue();
                StringBuilder sb2 = new StringBuilder();
                int length2 = str2.length();
                while (i2 < length2) {
                    char cCharAt2 = str2.charAt(i2);
                    if (Character.isDigit(cCharAt2)) {
                        sb2.append(cCharAt2);
                    }
                    i2++;
                }
                interfaceC1191fR.setValue(C0953cu.a(c0953cu2, null, null, Za0.n0(11, sb2.toString()), null, 11));
                break;
            case 5:
                Integer num = (Integer) obj;
                num.intValue();
                interfaceC1191fR.setValue(num);
                break;
            case 6:
                Integer num2 = (Integer) obj;
                num2.intValue();
                interfaceC1191fR.setValue(num2);
                break;
            case 7:
                Integer num3 = (Integer) obj;
                num3.intValue();
                interfaceC1191fR.setValue(num3);
                break;
            case 8:
                interfaceC1191fR.setValue((HB) obj);
                break;
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                interfaceC1191fR.setValue((HB) obj);
                break;
            case 10:
                interfaceC1191fR.setValue((HB) obj);
                break;
            case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                int i3 = AbstractC2793wD.h;
                interfaceC1191fR.setValue((GB) obj);
                break;
            case 12:
                int i4 = AbstractC2793wD.h;
                interfaceC1191fR.setValue((HB) obj);
                break;
            case 13:
                int i5 = AbstractC2793wD.h;
                interfaceC1191fR.setValue((GB) obj);
                break;
            case 14:
                int i6 = AbstractC2793wD.h;
                interfaceC1191fR.setValue((HB) obj);
                break;
            case 15:
                Integer num4 = (Integer) obj;
                num4.intValue();
                int i7 = AbstractC2793wD.h;
                interfaceC1191fR.setValue(num4);
                break;
            case 16:
                Integer num5 = (Integer) obj;
                num5.intValue();
                int i8 = AbstractC2793wD.h;
                interfaceC1191fR.setValue(num5);
                break;
            case 17:
                Integer num6 = (Integer) obj;
                num6.intValue();
                int i9 = AbstractC2793wD.h;
                interfaceC1191fR.setValue(num6);
                break;
            case ConnectionResult.SERVICE_UPDATING /* 18 */:
                interfaceC1191fR.setValue((InterfaceC1184fK) obj);
                break;
            case 19:
                Float f = (Float) obj;
                f.getClass();
                break;
            case 20:
                String str3 = (String) obj;
                StringBuilder sb3 = new StringBuilder();
                int length3 = str3.length();
                while (i2 < length3) {
                    char cCharAt3 = str3.charAt(i2);
                    if (Character.isDigit(cCharAt3)) {
                        sb3.append(cCharAt3);
                    }
                    i2++;
                }
                String string = sb3.toString();
                if (string.length() <= 12) {
                    int i10 = C60.l;
                    interfaceC1191fR.setValue(string);
                    break;
                }
                break;
            case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                Boolean bool = (Boolean) obj;
                bool.booleanValue();
                int i11 = C60.l;
                interfaceC1191fR.setValue(bool);
                break;
            case 22:
                Boolean bool2 = (Boolean) obj;
                bool2.booleanValue();
                interfaceC1191fR.setValue(bool2);
                break;
            case ConnectionResult.API_DISABLED /* 23 */:
                ((OC) interfaceC1191fR.getValue()).g((C1765lT) obj);
                break;
            case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                Integer num7 = (Integer) obj;
                num7.intValue();
                int i12 = Fi0.h;
                interfaceC1191fR.setValue(num7);
                break;
            case 25:
                Integer num8 = (Integer) obj;
                num8.intValue();
                int i13 = Fi0.h;
                interfaceC1191fR.setValue(num8);
                break;
            case 26:
                Integer num9 = (Integer) obj;
                num9.intValue();
                int i14 = Fi0.h;
                interfaceC1191fR.setValue(num9);
                break;
            case 27:
                String str4 = (String) obj;
                int i15 = Fi0.h;
                interfaceC1191fR.setValue(Ei0.a((Ei0) interfaceC1191fR.getValue(), str4, null, null, null, 14));
                break;
            case 28:
                String str5 = (String) obj;
                StringBuilder sb4 = new StringBuilder();
                int length4 = str5.length();
                while (i2 < length4) {
                    char cCharAt4 = str5.charAt(i2);
                    if (Character.isDigit(cCharAt4)) {
                        sb4.append(cCharAt4);
                    }
                    i2++;
                }
                String strN0 = Za0.n0(10, sb4.toString());
                int i16 = Fi0.h;
                interfaceC1191fR.setValue(Ei0.a((Ei0) interfaceC1191fR.getValue(), null, strN0, null, null, 13));
                break;
            default:
                String str6 = (String) obj;
                StringBuilder sb5 = new StringBuilder();
                int length5 = str6.length();
                while (i2 < length5) {
                    char cCharAt5 = str6.charAt(i2);
                    if (Character.isDigit(cCharAt5)) {
                        sb5.append(cCharAt5);
                    }
                    i2++;
                }
                String strN02 = Za0.n0(11, sb5.toString());
                int i17 = Fi0.h;
                interfaceC1191fR.setValue(Ei0.a((Ei0) interfaceC1191fR.getValue(), null, null, strN02, null, 11));
                break;
        }
        return oh0;
    }
}
