package com.ss.android.ugc.aweme.ad.feed.reminder;

import com.bytedance.covode.number.Covode;
import com.bytedance.router.route.IRouteAction;

public final class StickerReminderRouter implements IRouteAction {
    static {
        Covode.recordClassIndex(52708);
    }

    /* JADX WARNING: Removed duplicated region for block: B:18:0x005f  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final java.lang.Object open(android.content.Context r17, java.lang.String r18, android.os.Bundle r19) {
        /*
            r16 = this;
            android.net.Uri r1 = android.net.Uri.parse(r18)
            java.lang.String r0 = "account_name"
            java.lang.String r9 = r1.getQueryParameter(r0)
            java.lang.String r0 = "reminder_time"
            java.lang.String r10 = r1.getQueryParameter(r0)
            if (r10 != 0) goto L_0x0014
            java.lang.String r10 = "0"
        L_0x0014:
            java.lang.String r2 = ""
            kotlin.h.b.n.LIZIZ(r10, r2)
            java.lang.String r0 = "cid"
            java.lang.String r11 = r1.getQueryParameter(r0)
            if (r11 != 0) goto L_0x0022
            r11 = r2
        L_0x0022:
            kotlin.h.b.n.LIZIZ(r11, r2)
            java.lang.String r0 = "learn_more_url"
            java.lang.String r12 = r1.getQueryParameter(r0)
            java.lang.String r0 = "log_id"
            java.lang.String r13 = r1.getQueryParameter(r0)
            java.lang.String r0 = "log_extra"
            java.lang.String r14 = r1.getQueryParameter(r0)
            if (r14 != 0) goto L_0x003a
            r14 = r2
        L_0x003a:
            kotlin.h.b.n.LIZIZ(r14, r2)
            java.lang.String r0 = "enter_from"
            java.lang.String r15 = r1.getQueryParameter(r0)
            if (r15 != 0) goto L_0x0046
            r15 = r2
        L_0x0046:
            kotlin.h.b.n.LIZIZ(r15, r2)
            r7 = r17
            boolean r0 = r7 instanceof X.1hK
            r8 = 0
            if (r0 == 0) goto L_0x0072
            r8 = r7
        L_0x0051:
            X.1hK r8 = (X.1hK) r8
        L_0x0053:
            long r5 = java.lang.Long.parseLong(r10)
            long r3 = java.lang.System.currentTimeMillis()
            int r0 = (r5 > r3 ? 1 : (r5 == r3 ? 0 : -1))
            if (r0 <= 0) goto L_0x009b
            r1 = 0
            com.ss.android.ugc.aweme.framework.services.IUserService r0 = com.ss.android.ugc.aweme.services.BaseUserService.createIUserServicebyMonsterPlugin(r1)
            kotlin.h.b.n.LIZIZ(r0, r2)
            boolean r0 = r0.isLogin()
            if (r0 != 0) goto L_0x009b
            java.lang.Boolean r0 = java.lang.Boolean.valueOf(r1)
            return r0
        L_0x0072:
            boolean r0 = r7 instanceof android.view.ContextThemeWrapper
            if (r0 == 0) goto L_0x008e
            r1 = r7
            android.view.ContextThemeWrapper r1 = (android.view.ContextThemeWrapper) r1
            android.content.Context r0 = r1.getBaseContext()
            boolean r0 = r0 instanceof X.1hK
            if (r0 == 0) goto L_0x008e
            android.content.Context r1 = r1.getBaseContext()
            boolean r0 = r1 instanceof X.1hK
            if (r0 != 0) goto L_0x008c
        L_0x0089:
            X.1hK r8 = (X.1hK) r8
            goto L_0x0053
        L_0x008c:
            r8 = r1
            goto L_0x0089
        L_0x008e:
            X.SfZ r0 = X.SfZ.LJIJ
            android.app.Activity r1 = r0.LJIIIZ()
            boolean r0 = r1 instanceof X.1hK
            if (r0 != 0) goto L_0x0099
            goto L_0x0051
        L_0x0099:
            r8 = r1
            goto L_0x0051
        L_0x009b:
            X.325 r2 = X.AnonymousClass325.LIZ
            java.lang.Class<com.ss.android.ugc.aweme.ad.feed.reminder.AdNoticeApi> r1 = com.ss.android.ugc.aweme.ad.feed.reminder.AdNoticeApi.class
            java.lang.String r0 = X.C23513Cl.LIZ
            java.lang.Object r0 = r2.LIZ(r1, r0)
            com.ss.android.ugc.aweme.ad.feed.reminder.AdNoticeApi r0 = (com.ss.android.ugc.aweme.ad.feed.reminder.AdNoticeApi) r0
            X.PgU r1 = r0.getAdNotice(r11)
            X.335 r6 = new X.335
            r6.<init>(r7, r8, r9, r10, r11, r12, r13, r14, r15)
            X.336 r0 = new X.336
            r0.<init>(r8)
            r1.LIZ(r6, r0)
            r0 = 1
            java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ad.feed.reminder.StickerReminderRouter.open(android.content.Context, java.lang.String, android.os.Bundle):java.lang.Object");
    }
}
