# DeliveryProgress_View_DeliveryProgressSlider_1498.luac
; fn @DeliveryProgressSlider.lua  line 0-0 np=0 va=1 ms=2 code=15 consts=5 upvals=1 protos=3
;   K[0]='DeliveryProgressSlider'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='PlayProgressAnimation'
;   K[4]='UpdateContentByScore'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('DeliveryProgressSlider')] = R0
0002  GETTABUP  R0 = _ENV[K0('DeliveryProgressSlider')]
0003  GETTABUP  R1 = _ENV[K0('DeliveryProgressSlider')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('DeliveryProgressSlider')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('DeliveryProgressSlider')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('PlayProgressAnimation')] = R1
0011  GETTABUP  R0 = _ENV[K0('DeliveryProgressSlider')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('UpdateContentByScore')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-9 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_progressHelper'
  ;   locals: self(0-2), progressHelper(0-2)
  0000  SETTABLE  R0[K0('m_progressHelper')] = R1
  0001  RETURN    return R0..R-1
; ---------- proto1 [PlayProgressAnimation] ----------
  ; fn ?  line 11-26 np=3 va=0 ms=11 code=19 consts=7 upvals=1 protos=2
  ;   K[0]=1
  ;   K[1]='UpdateContentByScore'
  ;   K[2]='DOTween'
  ;   K[3]='To'
  ;   K[4]='SetEase'
  ;   K[5]='Ease'
  ;   K[6]='InOutSine'
  ;   upvals: _ENV
  ;   locals: self(0-19), fromScore(0-19), targetScore(0-19), sScore(1-19), eScore(2-19), duration(3-19)
  0000  MOVE      R3 = R0
  0001  MOVE      R4 = R0
  0002  LOADK     R5 = K0 1
  0003  SELF      R7 = R0[K1('UpdateContentByScore')] (self)
  0004  MOVE      R8 = R0
  0005  CALL      R6 = call(R6, 0 args, 2 rets)
  0006  GETTABUP  R6 = _ENV[K2('DOTween')]
  0007  GETTABLE  R6 = R6[K3('To')]
  0008  CLOSURE   R7 = closure proto0
  0009  CLOSURE   R8 = closure proto1
  0010  MOVE      R9 = R0
  0011  MOVE      R10 = R0
  0012  CALL      R6 = call(R6, 1 args, 4 rets)
  0013  SELF      R7 = R6[K4('SetEase')] (self)
  0014  GETTABUP  R8 = _ENV[K5('Ease')]
  0015  GETTABLE  R8 = R8[K6('InOutSine')]
  0016  TAILCALL  tailcall(R6, 0)
  0017  RETURN    return R6..R5
  0018  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 17-19 np=0 va=0 ms=2 code=3 consts=0 upvals=1 protos=0
    ;   upvals: sScore
    0000  GETUPVAL  R0 = sScore
    0001  RETURN    return R0..R-1
    0002  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 20-23 np=1 va=0 ms=6 code=10 consts=3 upvals=2 protos=0
    ;   K[0]='math'
    ;   K[1]='ceil'
    ;   K[2]='UpdateContentByScore'
    ;   upvals: _ENV, self
    ;   locals: x(0-10), num(4-10)
    0000  GETTABUP  R1 = _ENV[K0('math')]
    0001  GETTABLE  R1 = R1[K1('ceil')]
    0002  MOVE      R2 = R0
    0003  CALL      R1 = call(R1, 1 args, 1 rets)
    0004  GETUPVAL  R2 = _ENV
    0005  SELF      R3 = R2[K2('UpdateContentByScore')] (self)
    0006  MOVE      R4 = R0
    0007  SUB       R5 = R1 sub R0
    0008  CALL      R2 = call(R2, 0 args, 3 rets)
    0009  RETURN    return R0..R-1
; ---------- proto2 [UpdateContentByScore] ----------
  ; fn ?  line 28-45 np=3 va=0 ms=11 code=47 consts=21 upvals=1 protos=0
  ;   K[0]=0
  ;   K[1]='m_progressHelper'
  ;   K[2]='GetScoreFromLevelStartByScoreForDisplay'
  ;   K[3]='GetLevelByScoreForDisplay'
  ;   K[4]='GetLevelRequiredScoreFromLevelStartByLevel'
  ;   K[5]='m_slider'
  ;   K[6]='value'
  ;   K[7]='m_progressText'
  ;   K[8]='text'
  ;   K[9]='/'
  ;   K[10]='m_levelText'
  ;   K[11]='m_curLevel'
  ;   K[12]=nil
  ;   K[13]='m_singleGo'
  ;   K[14]='transform'
  ;   K[15]='UIUtil'
  ;   K[16]='SetLocalScale'
  ;   K[17]=1.2
  ;   K[18]='DOScale'
  ;   K[19]='V3One'
  ;   K[20]=0.2
  ;   upvals: _ENV
  ;   locals: self(0-47), score(0-47), decimalNum(0-47), curScore(7-47), level(11-47), curTargetScore(15-47), rect(35-45)
  0000  TEST      if not R2 then   -> -131069
  0001  JMP       (jump)   -> 3
  0002  LOADK     R2 = K0 0
  0003  GETTABLE  R3 = R0[K1('m_progressHelper')]
  0004  SELF      R4 = R3[K2('GetScoreFromLevelStartByScoreForDisplay')] (self)
  0005  MOVE      R5 = R0
  0006  CALL      R3 = call(R3, 1 args, 2 rets)
  0007  GETTABLE  R4 = R0[K1('m_progressHelper')]
  0008  SELF      R5 = R4[K3('GetLevelByScoreForDisplay')] (self)
  0009  MOVE      R6 = R0
  0010  CALL      R4 = call(R4, 1 args, 2 rets)
  0011  GETTABLE  R5 = R0[K1('m_progressHelper')]
  0012  SELF      R6 = R5[K4('GetLevelRequiredScoreFromLevelStartByLevel')] (self)
  0013  MOVE      R7 = R0
  0014  CALL      R5 = call(R5, 1 args, 2 rets)
  0015  GETTABLE  R6 = R0[K5('m_slider')]
  0016  ADD       R7 = R2 add R3
  0017  DIV       R7 = R5 div R7
  0018  SETTABLE  R6[K6('value')] = R7
  0019  GETTABLE  R6 = R0[K7('m_progressText')]
  0020  MOVE      R7 = R0
  0021  LOADK     R8 = K9 '/'
  0022  MOVE      R9 = R0
  0023  CONCAT    R7 = concat(R7..R7)
  0024  SETTABLE  R6[K8('text')] = R7
  0025  GETTABLE  R6 = R0[K10('m_levelText')]
  0026  SETTABLE  R6[K8('text')] = R4
  0027  GETTABLE  R6 = R0[K11('m_curLevel')]
  0028  EQ        if R1 eq K12(nil)   -> -127702
  0029  JMP       (jump)   -> 45
  0030  GETTABLE  R6 = R0[K11('m_curLevel')]
  0031  EQ        if R1 eq R4   -> -127963
  0032  JMP       (jump)   -> 45
  0033  GETTABLE  R6 = R0[K13('m_singleGo')]
  0034  GETTABLE  R6 = R6[K14('transform')]
  0035  GETTABUP  R7 = _ENV[K15('UIUtil')]
  0036  GETTABLE  R7 = R7[K16('SetLocalScale')]
  0037  MOVE      R8 = R0
  0038  LOADK     R9 = K17 1.2
  0039  LOADK     R10 = K17 1.2
  0040  CALL      R7 = call(R7, 0 args, 3 rets)
  0041  SELF      R8 = R6[K18('DOScale')] (self)
  0042  GETTABUP  R9 = _ENV[K19('V3One')]
  0043  LOADK     R10 = K20 0.2
  0044  CALL      R7 = call(R7, 0 args, 3 rets)
  0045  SETTABLE  R0[K11('m_curLevel')] = R4
  0046  RETURN    return R0..R-1
