package com.ss.android.ugc.aweme.legoImp.task;

import X.8Zd;
import X.8Ze;
import X.8ec;
import X.8lp;
import X.9FH;
import X.9Ft;
import X.9Fx;
import com.bytedance.covode.number.Covode;
import java.util.List;

public class MemoryDegradationTask implements 9FH, 8Ze {
    static {
        Covode.recordClassIndex(90521);
    }

    public String[] deps() {
        return null;
    }

    public boolean meetTrigger() {
        return true;
    }

    public String prefix() {
        return "task_";
    }

    public int priority() {
        return 2;
    }

    public boolean serialExecute() {
        return false;
    }

    public int targetProcess() {
        return 1;
    }

    public List triggerOtherLegoComponents() {
        return null;
    }

    public 9Ft triggerType() {
        return 8Zd.LIZ(this);
    }

    public 9Fx scenesType() {
        return 9Fx.DEFAULT;
    }

    public 8lp threadType() {
        return 8lp.CPU;
    }

    public 8ec type() {
        return 8ec.BACKGROUND;
    }

    public String key() {
        return getClass().getSimpleName();
    }

    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* JADX WARNING: Code restructure failed: missing block: B:12:0x004e, code lost:
        r2 = X.SfZ.LJIJ.LJFF();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:13:0x0054, code lost:
        if (r2 == null) goto L_?;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:14:0x0056, code lost:
        r4.LIZIZ.LIZ(r2.LIZLLL(new X.C4311QlA(r4, r3)));
     */
    /* JADX WARNING: Code restructure failed: missing block: B:22:0x008b, code lost:
        if (r1.equals("resume") == false) goto L_0x004e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:24:0x0094, code lost:
        if (r1.equals("create") == false) goto L_0x004e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:25:0x0097, code lost:
        r2 = X.SfZ.LJIJ.LIZJ();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:26:0x009d, code lost:
        if (r2 == null) goto L_0x004e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:27:0x009f, code lost:
        r4.LIZIZ.LIZ(r2.LIZLLL(new X.C4310Ql9(r4, r3)));
     */
    /* JADX WARNING: Code restructure failed: missing block: B:28:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:31:?, code lost:
        return;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public void run(android.content.Context r7) {
        /*
            r6 = this;
            X.SfZ r0 = X.SfZ.LJIJ
            X.PgU r2 = r0.LIZJ()
            if (r2 == 0) goto L_0x0013
            X.Mjy r1 = X.C4304Ql3.LJ
            X.2YN r0 = X.C4307Ql6.LIZ
            X.2cN r0 = r2.LIZLLL(r0)
            r1.LIZ(r0)
        L_0x0013:
            X.SfZ r0 = X.SfZ.LJIJ
            X.PgU r2 = r0.LJFF()
            if (r2 == 0) goto L_0x0026
            X.Mjy r1 = X.C4304Ql3.LJ
            X.2YN r0 = X.C4306Ql5.LIZ
            X.2cN r0 = r2.LIZLLL(r0)
            r1.LIZ(r0)
        L_0x0026:
            X.QlB r4 = X.C4312QlB.LIZ()
            X.9Y3 r5 = X.9Y3.LIZ()
            java.lang.Class<X.Ql8> r3 = X.C4309Ql8.class
            X.Ql8 r2 = X.C4303Ql2.LIZ
            r1 = 1
            java.lang.String r0 = "tiktok_memory_degradation_settings"
            java.lang.Object r3 = r5.LIZ(r1, r0, r3, r2)
            X.Ql8 r3 = (X.C4309Ql8) r3
            if (r3 == 0) goto L_0x0064
            boolean r0 = r3.LIZ
            if (r0 == 0) goto L_0x0064
            java.lang.String r1 = r3.LIZJ
            r1.hashCode()
            r0 = -1
            int r0 = r1.hashCode()
            switch(r0) {
                case -1352294148: goto L_0x008e;
                case -934426579: goto L_0x0085;
                case 109757538: goto L_0x0075;
                case 1557372922: goto L_0x0065;
                default: goto L_0x004e;
            }
        L_0x004e:
            X.SfZ r0 = X.SfZ.LJIJ
            X.PgU r2 = r0.LJFF()
            if (r2 == 0) goto L_0x0064
            X.Mjy r1 = r4.LIZIZ
            X.QlA r0 = new X.QlA
            r0.<init>(r4, r3)
            X.2cN r0 = r2.LIZLLL(r0)
            r1.LIZ(r0)
        L_0x0064:
            return
        L_0x0065:
            java.lang.String r0 = "destroy"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x006e
            goto L_0x004e
        L_0x006e:
            X.SfZ r0 = X.SfZ.LJIJ
            X.PgU r2 = r0.LJFF()
            goto L_0x009d
        L_0x0075:
            java.lang.String r0 = "start"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x007e
            goto L_0x004e
        L_0x007e:
            X.SfZ r0 = X.SfZ.LJIJ
            X.PgU r2 = r0.LIZIZ()
            goto L_0x009d
        L_0x0085:
            java.lang.String r0 = "resume"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0097
            goto L_0x004e
        L_0x008e:
            java.lang.String r0 = "create"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0097
            goto L_0x004e
        L_0x0097:
            X.SfZ r0 = X.SfZ.LJIJ
            X.PgU r2 = r0.LIZJ()
        L_0x009d:
            if (r2 == 0) goto L_0x004e
            X.Mjy r1 = r4.LIZIZ
            X.Ql9 r0 = new X.Ql9
            r0.<init>(r4, r3)
            X.2cN r0 = r2.LIZLLL(r0)
            r1.LIZ(r0)
            goto L_0x004e
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.legoImp.task.MemoryDegradationTask.run(android.content.Context):void");
    }
}
