# DashActivity_Common_View_DashActivityOrderAnimation_794.luac
; fn @DashActivityOrderAnimation.lua  line 0-0 np=0 va=1 ms=4 code=22 consts=13 upvals=1 protos=3
;   K[0]='LessThanHalf'
;   K[1]=1
;   K[2]='MoreThanHalf'
;   K[3]=2
;   K[4]='One'
;   K[5]=3
;   K[6]='DashActivityOrderAnimation'
;   K[7]='setmetatable'
;   K[8]='BaseOrderAnimation'
;   K[9]='__index'
;   K[10]='Init'
;   K[11]='SetProgress'
;   K[12]='PlayEnterAnimation'
;   upvals: _ENV
;   locals: DashActivityOrderState(4-22)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABLE  R0[K0('LessThanHalf')] = K1(1)
0002  SETTABLE  R0[K2('MoreThanHalf')] = K3(2)
0003  SETTABLE  R0[K4('One')] = K5(3)
0004  GETTABUP  R1 = _ENV[K7('setmetatable')]
0005  NEWTABLE  R2 = {} (0 items)
0006  GETTABUP  R3 = _ENV[K8('BaseOrderAnimation')]
0007  CALL      R1 = call(R1, 1 args, 2 rets)
0008  SETTABUP  _ENV[K6('DashActivityOrderAnimation')] = R1
0009  GETTABUP  R1 = _ENV[K6('DashActivityOrderAnimation')]
0010  GETTABUP  R2 = _ENV[K6('DashActivityOrderAnimation')]
0011  SETTABLE  R1[K9('__index')] = R2
0012  GETTABUP  R1 = _ENV[K6('DashActivityOrderAnimation')]
0013  CLOSURE   R2 = closure proto0
0014  SETTABLE  R1[K10('Init')] = R2
0015  GETTABUP  R1 = _ENV[K6('DashActivityOrderAnimation')]
0016  CLOSURE   R2 = closure proto1
0017  SETTABLE  R1[K11('SetProgress')] = R2
0018  GETTABUP  R1 = _ENV[K6('DashActivityOrderAnimation')]
0019  CLOSURE   R2 = closure proto2
0020  SETTABLE  R1[K12('PlayEnterAnimation')] = R2
0021  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 12-15 np=2 va=0 ms=6 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='DashActivityDefinition'
  ;   K[1]='BaseOrderAnimation'
  ;   K[2]='Init'
  ;   K[3]='OrderAvatarAnimationName'
  ;   upvals: _ENV
  ;   locals: self(0-8), activityType(0-8), activityDefinition(2-8)
  0000  GETTABUP  R2 = _ENV[K0('DashActivityDefinition')]
  0001  GETTABLE  R2 = R2[R1]
  0002  GETTABUP  R3 = _ENV[K1('BaseOrderAnimation')]
  0003  GETTABLE  R3 = R3[K2('Init')]
  0004  MOVE      R4 = R0
  0005  GETTABLE  R5 = R2[K3('OrderAvatarAnimationName')]
  0006  CALL      R3 = call(R3, 0 args, 2 rets)
  0007  RETURN    return R0..R-1
; ---------- proto1 [SetProgress] ----------
  ; fn ?  line 17-45 np=2 va=0 ms=9 code=44 consts=10 upvals=1 protos=0
  ;   K[0]=0.5
  ;   K[1]='LessThanHalf'
  ;   K[2]=1
  ;   K[3]='MoreThanHalf'
  ;   K[4]='One'
  ;   K[5]='m_state'
  ;   K[6]='SetAnimation'
  ;   K[7]='appear'
  ;   K[8]='progress'
  ;   K[9]='finished'
  ;   upvals: DashActivityOrderState
  ;   locals: self(0-44), progress(0-44), newState(1-44)
  0000  LOADNIL   R2..R2 = nil
  0001  LT        if R0 lt K0(0.5)   -> -130301
  0002  JMP       (jump)   -> 5
  0003  GETTABUP  R2 = DashActivityOrderState[K1('LessThanHalf')]
  0004  JMP       (jump)   -> 10
  0005  LT        if R0 lt K2(1)   -> -130295
  0006  JMP       (jump)   -> 9
  0007  GETTABUP  R2 = DashActivityOrderState[K3('MoreThanHalf')]
  0008  JMP       (jump)   -> 10
  0009  GETTABUP  R2 = DashActivityOrderState[K4('One')]
  0010  GETTABLE  R3 = R0[K5('m_state')]
  0011  EQ        if R0 eq R2   -> -129521
  0012  JMP       (jump)   -> 14
  0013  RETURN    return R0..R-1
  0014  GETTABUP  R3 = DashActivityOrderState[K1('LessThanHalf')]
  0015  EQ        if R0 eq R3   -> -130028
  0016  JMP       (jump)   -> 22
  0017  SELF      R4 = R0[K6('SetAnimation')] (self)
  0018  LOADK     R5 = K7 'appear'
  0019  NEWTABLE  R6 = {} (0 items)
  0020  CALL      R3 = call(R3, 0 args, 3 rets)
  0021  JMP       (jump)   -> 42
  0022  GETTABUP  R3 = DashActivityOrderState[K3('MoreThanHalf')]
  0023  EQ        if R0 eq R3   -> -130020
  0024  JMP       (jump)   -> 32
  0025  SELF      R4 = R0[K6('SetAnimation')] (self)
  0026  LOADK     R5 = K8 'progress'
  0027  NEWTABLE  R6 = {} (1 items)
  0028  GETTABUP  R7 = DashActivityOrderState[K1('LessThanHalf')]
  0029  SETLIST   setlist R6[B=1,C=1]
  0030  CALL      R3 = call(R3, 0 args, 3 rets)
  0031  JMP       (jump)   -> 42
  0032  GETTABUP  R3 = DashActivityOrderState[K4('One')]
  0033  EQ        if R0 eq R3   -> -130010
  0034  JMP       (jump)   -> 42
  0035  SELF      R4 = R0[K6('SetAnimation')] (self)
  0036  LOADK     R5 = K9 'finished'
  0037  NEWTABLE  R6 = {} (2 items)
  0038  GETTABUP  R7 = DashActivityOrderState[K1('LessThanHalf')]
  0039  GETTABUP  R8 = DashActivityOrderState[K3('MoreThanHalf')]
  0040  SETLIST   setlist R6[B=1,C=2]
  0041  CALL      R3 = call(R3, 0 args, 3 rets)
  0042  SETTABLE  R0[K5('m_state')] = R2
  0043  RETURN    return R0..R-1
; ---------- proto2 [PlayEnterAnimation] ----------
  ; fn ?  line 47-50 np=2 va=0 ms=5 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_state'
  ;   K[1]=nil
  ;   K[2]='SetProgress'
  ;   locals: self(0-5), progress(0-5)
  0000  SETTABLE  R0[K0('m_state')] = K1(nil)
  0001  SELF      R3 = R0[K2('SetProgress')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
