package com.bytedance.ext_power_list;

import X.0CB;
import X.0CC;
import X.0CH;
import X.1Bj;
import X.C0346Cti;
import X.C0470Cyc;
import X.M12;
import com.bytedance.covode.number.Covode;

public final /* synthetic */ class AssemPowerCell$$Lambda$0 implements 1Bj {
    public final AssemPowerCell LIZ;

    static {
        Covode.recordClassIndex(25796);
    }

    public AssemPowerCell$$Lambda$0(AssemPowerCell assemPowerCell) {
        this.LIZ = assemPowerCell;
    }

    public final void onStateChanged(0CH r4, 0CB r5) {
        AssemPowerCell assemPowerCell = this.LIZ;
        M12.LIZ(assemPowerCell, r4, r5);
        switch (C0346Cti.LIZ[r5.ordinal()]) {
            case 1:
                C0470Cyc LJ = assemPowerCell.LJ();
                if (LJ.LIZLLL.LIZ().compareTo(0CC.CREATED) < 0) {
                    LJ.cZ_();
                } else {
                    if (LJ.LIZLLL.LIZ().compareTo(0CC.STARTED) > 0) {
                        LJ.LJIIL();
                    }
                    if (LJ.LIZLLL.LIZ().compareTo(0CC.CREATED) > 0) {
                        LJ.LJIILJJIL();
                    }
                }
                LJ.LIZLLL.LIZ(0CB.ON_CREATE);
                return;
            case 2:
                C0470Cyc LJ2 = assemPowerCell.LJ();
                if (LJ2.LIZLLL.LIZ().compareTo(0CC.STARTED) < 0) {
                    if (LJ2.LIZLLL.LIZ().compareTo(0CC.CREATED) < 0) {
                        LJ2.cZ_();
                    }
                    LJ2.dc_();
                } else if (LJ2.LIZLLL.LIZ().compareTo(0CC.STARTED) > 0) {
                    LJ2.LJIIL();
                }
                LJ2.LIZLLL.LIZ(0CB.ON_START);
                return;
            case 3:
                C0470Cyc LJ3 = assemPowerCell.LJ();
                if (LJ3.LIZLLL.LIZ().compareTo(0CC.RESUMED) < 0) {
                    if (LJ3.LIZLLL.LIZ().compareTo(0CC.CREATED) < 0) {
                        LJ3.cZ_();
                    }
                    if (LJ3.LIZLLL.LIZ().compareTo(0CC.STARTED) < 0) {
                        LJ3.dc_();
                    }
                    LJ3.LJIIJ();
                }
                LJ3.LIZLLL.LIZ(0CB.ON_RESUME);
                return;
            case 4:
                C0470Cyc LJ4 = assemPowerCell.LJ();
                LJ4.LIZLLL.LIZ(0CB.ON_PAUSE);
                LJ4.LJIIL();
                return;
            case 5:
                C0470Cyc LJ5 = assemPowerCell.LJ();
                LJ5.LIZLLL.LIZ(0CB.ON_STOP);
                LJ5.LJIILJJIL();
                return;
            case 6:
                C0470Cyc LJ6 = assemPowerCell.LJ();
                LJ6.LIZLLL.LIZ(0CB.ON_DESTROY);
                LJ6.LJIILLIIL();
                return;
            default:
                return;
        }
    }
}
