package com.bytedance.router.route;

import android.content.Context;
import android.content.Intent;
import com.bytedance.covode.number.Covode;

public class ServiceRoute extends SysComponentRoute {
    static {
        Covode.recordClassIndex(37258);
    }

    public void openComponent(Context context, Intent intent) {
        INVOKEVIRTUAL_com_bytedance_router_route_ServiceRoute_com_ss_android_ugc_aweme_lancet_StartServiceLancet_startService(context, intent);
    }

    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Missing exception handler attribute for start block: B:14:0x003c */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public static android.content.ComponentName INVOKEVIRTUAL_com_bytedance_router_route_ServiceRoute_com_ss_android_ugc_aweme_lancet_StartServiceLancet_startService(android.content.Context r9, android.content.Intent r10) {
        /*
            boolean r0 = r9 instanceof android.content.Context
            if (r0 == 0) goto L_0x006c
            boolean r0 = X.C396893n.LIZ(r9, r10)
            r8 = 0
            if (r0 == 0) goto L_0x000c
            return r8
        L_0x000c:
            r7 = 0
            com.bytedance.ies.abmock.SettingsManager r1 = com.bytedance.ies.abmock.SettingsManager.LIZ()     // Catch:{ Exception -> 0x003c }
            java.lang.String r0 = "StartServiceLancet_startService"
            boolean r0 = r1.LIZ((java.lang.String) r0, (boolean) r7)     // Catch:{ Exception -> 0x003c }
            if (r0 == 0) goto L_0x003c
            int r1 = android.os.Build.VERSION.SDK_INT     // Catch:{ Exception -> 0x003c }
            r0 = 26
            if (r1 < r0) goto L_0x003c
            boolean r0 = X.SfZ.LJIIJJI     // Catch:{ Exception -> 0x003c }
            if (r0 == 0) goto L_0x003c
            java.lang.StringBuilder r1 = new java.lang.StringBuilder     // Catch:{ Exception -> 0x003c }
            java.lang.String r0 = "dangerousStartService warning! make sure you are in forground call startService "
            r1.<init>(r0)     // Catch:{ Exception -> 0x003c }
            java.lang.Class r0 = r10.getClass()     // Catch:{ Exception -> 0x003c }
            java.lang.String r0 = r0.getName()     // Catch:{ Exception -> 0x003c }
            r1.append(r0)     // Catch:{ Exception -> 0x003c }
            java.lang.String r0 = r1.toString()     // Catch:{ Exception -> 0x003c }
            X.TSt.LIZ(r0)     // Catch:{ Exception -> 0x003c }
        L_0x003c:
            android.content.ComponentName r8 = r9.startService(r10)     // Catch:{ RuntimeException -> 0x0041 }
            goto L_0x006a
        L_0x0041:
            r6 = move-exception
            java.lang.StackTraceElement[] r5 = r6.getStackTrace()
            int r4 = r5.length
            r3 = 0
        L_0x0048:
            if (r7 >= r4) goto L_0x0068
            r2 = r5[r7]
            java.lang.String r1 = r2.getClassName()
            java.lang.String r0 = "com.ss.android.ugc.aweme.scheduler.PublishService"
            boolean r0 = r1.startsWith(r0)
            if (r0 == 0) goto L_0x0065
            java.lang.String r1 = r2.getMethodName()
            java.lang.String r0 = "show"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x0065
            r3 = 1
        L_0x0065:
            int r7 = r7 + 1
            goto L_0x0048
        L_0x0068:
            if (r3 == 0) goto L_0x006b
        L_0x006a:
            return r8
        L_0x006b:
            throw r6
        L_0x006c:
            android.content.ComponentName r0 = r9.startService(r10)
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.bytedance.router.route.ServiceRoute.INVOKEVIRTUAL_com_bytedance_router_route_ServiceRoute_com_ss_android_ugc_aweme_lancet_StartServiceLancet_startService(android.content.Context, android.content.Intent):android.content.ComponentName");
    }
}
