# FrameDecoActivity_View_FrameDecoActivityRewardSlider_1752.luac
; fn @FrameDecoActivityRewardSlider.lua  line 0-0 np=0 va=1 ms=3 code=54 consts=18 upvals=1 protos=14
;   K[0]=70
;   K[1]='FrameDecoActivityRewardSlider'
;   K[2]='__index'
;   K[3]='Init'
;   K[4]='_InitModelData'
;   K[5]='_InitView'
;   K[6]='UpdateContent'
;   K[7]='_GetMiddleHorizontalNormalizedPosition'
;   K[8]='ShowRewardTip'
;   K[9]='GetHitRect'
;   K[10]='PlayHitAnim'
;   K[11]='PlayProgressAnim'
;   K[12]='GetStageBoxPosition'
;   K[13]='FrameDecoRewardBox'
;   K[14]='Init'
;   K[15]='UpdateContent'
;   K[16]='OnRewardBoxClicked'
;   K[17]='GetIconPosition'
;   upvals: _ENV
;   locals: onceProgressWidth(1-54)
0000  LOADK     R0 = K0 70
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABUP  _ENV[K1('FrameDecoActivityRewardSlider')] = R1
0003  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0004  GETTABUP  R2 = _ENV[K1('FrameDecoActivityRewardSlider')]
0005  SETTABLE  R1[K2('__index')] = R2
0006  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0007  CLOSURE   R2 = closure proto0
0008  SETTABLE  R1[K3('Init')] = R2
0009  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0010  CLOSURE   R2 = closure proto1
0011  SETTABLE  R1[K4('_InitModelData')] = R2
0012  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0013  CLOSURE   R2 = closure proto2
0014  SETTABLE  R1[K5('_InitView')] = R2
0015  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0016  CLOSURE   R2 = closure proto3
0017  SETTABLE  R1[K6('UpdateContent')] = R2
0018  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0019  CLOSURE   R2 = closure proto4
0020  SETTABLE  R1[K7('_GetMiddleHorizontalNormalizedPosition')] = R2
0021  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0022  CLOSURE   R2 = closure proto5
0023  SETTABLE  R1[K8('ShowRewardTip')] = R2
0024  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0025  CLOSURE   R2 = closure proto6
0026  SETTABLE  R1[K9('GetHitRect')] = R2
0027  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0028  CLOSURE   R2 = closure proto7
0029  SETTABLE  R1[K10('PlayHitAnim')] = R2
0030  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0031  CLOSURE   R2 = closure proto8
0032  SETTABLE  R1[K11('PlayProgressAnim')] = R2
0033  GETTABUP  R1 = _ENV[K1('FrameDecoActivityRewardSlider')]
0034  CLOSURE   R2 = closure proto9
0035  SETTABLE  R1[K12('GetStageBoxPosition')] = R2
0036  NEWTABLE  R1 = {} (0 items)
0037  SETTABUP  _ENV[K13('FrameDecoRewardBox')] = R1
0038  GETTABUP  R1 = _ENV[K13('FrameDecoRewardBox')]
0039  GETTABUP  R2 = _ENV[K13('FrameDecoRewardBox')]
0040  SETTABLE  R1[K2('__index')] = R2
0041  GETTABUP  R1 = _ENV[K13('FrameDecoRewardBox')]
0042  CLOSURE   R2 = closure proto10
0043  SETTABLE  R1[K14('Init')] = R2
0044  GETTABUP  R1 = _ENV[K13('FrameDecoRewardBox')]
0045  CLOSURE   R2 = closure proto11
0046  SETTABLE  R1[K15('UpdateContent')] = R2
0047  GETTABUP  R1 = _ENV[K13('FrameDecoRewardBox')]
0048  CLOSURE   R2 = closure proto12
0049  SETTABLE  R1[K16('OnRewardBoxClicked')] = R2
0050  GETTABUP  R1 = _ENV[K13('FrameDecoRewardBox')]
0051  CLOSURE   R2 = closure proto13
0052  SETTABLE  R1[K17('GetIconPosition')] = R2
0053  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 9-13 np=2 va=0 ms=4 code=6 consts=3 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='_InitModelData'
  ;   K[2]='_InitView'
  ;   locals: self(0-6), model(0-6)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SELF      R3 = R0[K1('_InitModelData')] (self)
  0002  CALL      R2 = call(R2, 0 args, 1 rets)
  0003  SELF      R3 = R0[K2('_InitView')] (self)
  0004  CALL      R2 = call(R2, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
; ---------- proto1 [_InitModelData] ----------
  ; fn ?  line 15-20 np=1 va=0 ms=5 code=14 consts=7 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetRewardProgressInfo'
  ;   K[2]='m_totalProgress'
  ;   K[3]='m_totalStage'
  ;   K[4]='GetTotalStage'
  ;   K[5]='m_totalContentWidth'
  ;   K[6]=45
  ;   upvals: onceProgressWidth
  ;   locals: self(0-14), _(3-14), total(3-14)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetRewardProgressInfo')] (self)
  0002  CALL      R1 = call(R1, 2 args, 1 rets)
  0003  SETTABLE  R0[K2('m_totalProgress')] = R2
  0004  GETTABLE  R3 = R0[K0('m_model')]
  0005  SELF      R4 = R3[K4('GetTotalStage')] (self)
  0006  CALL      R3 = call(R3, 1 args, 1 rets)
  0007  SETTABLE  R0[K3('m_totalStage')] = R3
  0008  GETTABLE  R3 = R0[K2('m_totalProgress')]
  0009  GETUPVAL  R4 = onceProgressWidth
  0010  MUL       R3 = R4 mul R3
  0011  ADD       R3 = K6(45) add R3
  0012  SETTABLE  R0[K5('m_totalContentWidth')] = R3
  0013  RETURN    return R0..R-1
; ---------- proto2 [_InitView] ----------
  ; fn ?  line 22-43 np=1 va=0 ms=12 code=61 consts=21 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_rewardBoxGo'
  ;   K[3]='m_arrRewardBox'
  ;   K[4]=1
  ;   K[5]='m_totalStage'
  ;   K[6]='GameObject'
  ;   K[7]='Instantiate'
  ;   K[8]='transform'
  ;   K[9]='parent'
  ;   K[10]='GetLuaTable'
  ;   K[11]='gameObject'
  ;   K[12]='Init'
  ;   K[13]='m_model'
  ;   K[14]='table'
  ;   K[15]='insert'
  ;   K[16]='SetSizeDelta'
  ;   K[17]='m_contentRect'
  ;   K[18]='m_totalContentWidth'
  ;   K[19]='m_endRewardBox'
  ;   K[20]='UpdateContent'
  ;   upvals: _ENV
  ;   locals: self(0-61), rewardBox(8-61), (for index)(12-40), (for limit)(12-40), (for step)(12-40), i(13-39)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetActive')]
  0002  GETTABLE  R2 = R0[K2('m_rewardBoxGo')]
  0003  LOADBOOL  R3 = false
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  NEWTABLE  R1 = {} (0 items)
  0006  SETTABLE  R0[K3('m_arrRewardBox')] = R1
  0007  LOADNIL   R1..R1 = nil
  0008  LOADK     R2 = K4 1
  0009  GETTABLE  R3 = R0[K5('m_totalStage')]
  0010  SUB       R3 = K4(1) sub R3
  0011  LOADK     R4 = K4 1
  0012  FORPREP   forprep R2(sBx=26)   -> 39
  0013  GETTABUP  R6 = _ENV[K6('GameObject')]
  0014  GETTABLE  R6 = R6[K7('Instantiate')]
  0015  GETTABLE  R7 = R0[K2('m_rewardBoxGo')]
  0016  GETTABLE  R8 = R0[K2('m_rewardBoxGo')]
  0017  GETTABLE  R8 = R8[K8('transform')]
  0018  GETTABLE  R8 = R8[K9('parent')]
  0019  CALL      R6 = call(R6, 1 args, 2 rets)
  0020  SELF      R7 = R6[K10('GetLuaTable')] (self)
  0021  CALL      R6 = call(R6, 1 args, 1 rets)
  0022  MOVE      R1 = R0
  0023  GETTABUP  R6 = _ENV[K0('UIUtil')]
  0024  GETTABLE  R6 = R6[K1('SetActive')]
  0025  GETTABLE  R7 = R1[K11('gameObject')]
  0026  LOADBOOL  R8 = true
  0027  CALL      R6 = call(R6, 0 args, 2 rets)
  0028  SELF      R7 = R1[K12('Init')] (self)
  0029  GETTABLE  R8 = R0[K13('m_model')]
  0030  MOVE      R9 = R0
  0031  MOVE      R10 = R0
  0032  LOADBOOL  R11 = false
  0033  CALL      R6 = call(R6, 0 args, 5 rets)
  0034  GETTABUP  R6 = _ENV[K14('table')]
  0035  GETTABLE  R6 = R6[K15('insert')]
  0036  GETTABLE  R7 = R0[K3('m_arrRewardBox')]
  0037  MOVE      R8 = R0
  0038  CALL      R6 = call(R6, 0 args, 2 rets)
  0039  FORLOOP   forloop R2(sBx=-27)   -> 13
  0040  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0041  GETTABLE  R2 = R2[K16('SetSizeDelta')]
  0042  GETTABLE  R3 = R0[K17('m_contentRect')]
  0043  GETTABLE  R4 = R0[K18('m_totalContentWidth')]
  0044  LOADNIL   R5..R5 = nil
  0045  CALL      R2 = call(R2, 0 args, 3 rets)
  0046  GETTABLE  R2 = R0[K19('m_endRewardBox')]
  0047  SELF      R3 = R2[K12('Init')] (self)
  0048  GETTABLE  R4 = R0[K13('m_model')]
  0049  GETTABLE  R5 = R0[K5('m_totalStage')]
  0050  MOVE      R6 = R0
  0051  LOADBOOL  R7 = true
  0052  CALL      R2 = call(R2, 0 args, 5 rets)
  0053  GETTABUP  R2 = _ENV[K14('table')]
  0054  GETTABLE  R2 = R2[K15('insert')]
  0055  GETTABLE  R3 = R0[K3('m_arrRewardBox')]
  0056  GETTABLE  R4 = R0[K19('m_endRewardBox')]
  0057  CALL      R2 = call(R2, 0 args, 2 rets)
  0058  SELF      R3 = R0[K20('UpdateContent')] (self)
  0059  CALL      R2 = call(R2, 0 args, 1 rets)
  0060  RETURN    return R0..R-1
; ---------- proto3 [UpdateContent] ----------
  ; fn ?  line 45-57 np=1 va=0 ms=10 code=30 consts=13 upvals=2 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetRewardProgressInfo'
  ;   K[2]='m_progressNumText'
  ;   K[3]='text'
  ;   K[4]='UIUtil'
  ;   K[5]='SetSizeDelta'
  ;   K[6]='m_fillRect'
  ;   K[7]='m_scrollRect'
  ;   K[8]='horizontalNormalizedPosition'
  ;   K[9]='_GetMiddleHorizontalNormalizedPosition'
  ;   K[10]='ipairs'
  ;   K[11]='m_arrRewardBox'
  ;   K[12]='UpdateContent'
  ;   upvals: onceProgressWidth, _ENV
  ;   locals: self(0-30), cur(3-30), fillWidth(7-30), (for generator)(24-29), (for state)(24-29), (for control)(24-29), _(25-27), rewardBox(25-27)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetRewardProgressInfo')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABLE  R2 = R0[K2('m_progressNumText')]
  0004  SETTABLE  R2[K3('text')] = R1
  0005  GETUPVAL  R2 = onceProgressWidth
  0006  MUL       R2 = R2 mul R1
  0007  GETTABUP  R3 = _ENV[K4('UIUtil')]
  0008  GETTABLE  R3 = R3[K5('SetSizeDelta')]
  0009  GETTABLE  R4 = R0[K6('m_fillRect')]
  0010  MOVE      R5 = R0
  0011  LOADNIL   R6..R6 = nil
  0012  CALL      R3 = call(R3, 0 args, 3 rets)
  0013  GETTABLE  R3 = R0[K7('m_scrollRect')]
  0014  SELF      R5 = R0[K9('_GetMiddleHorizontalNormalizedPosition')] (self)
  0015  MOVE      R6 = R0
  0016  CALL      R4 = call(R4, 1 args, 2 rets)
  0017  SETTABLE  R3[K8('horizontalNormalizedPosition')] = R4
  0018  GETTABUP  R3 = _ENV[K10('ipairs')]
  0019  GETTABLE  R4 = R0[K11('m_arrRewardBox')]
  0020  TEST      if not R4 then   -> -131049
  0021  JMP       (jump)   -> 23
  0022  NEWTABLE  R4 = {} (0 items)
  0023  CALL      R3 = call(R3, 3 args, 1 rets)
  0024  JMP       (jump)   -> 27
  0025  SELF      R9 = R7[K12('UpdateContent')] (self)
  0026  CALL      R8 = call(R8, 0 args, 1 rets)
  0027  TFORCALL  tforcall R3
  0028  TFORLOOP  tforloop R5(sBx=-4)   -> 25
  0029  RETURN    return R0..R-1
; ---------- proto4 [_GetMiddleHorizontalNormalizedPosition] ----------
  ; fn ?  line 59-67 np=2 va=0 ms=8 code=23 consts=10 upvals=2 protos=0
  ;   K[0]='m_scrollRect'
  ;   K[1]='transform'
  ;   K[2]='sizeDelta'
  ;   K[3]='x'
  ;   K[4]=2
  ;   K[5]='math'
  ;   K[6]='min'
  ;   K[7]=1
  ;   K[8]='m_totalContentWidth'
  ;   K[9]=0
  ;   upvals: onceProgressWidth, _ENV
  ;   locals: self(0-23), index(0-23), targetX(2-23), viewportWidth(6-23)
  0000  GETUPVAL  R2 = onceProgressWidth
  0001  MUL       R2 = R2 mul R1
  0002  GETTABLE  R3 = R0[K0('m_scrollRect')]
  0003  GETTABLE  R3 = R3[K1('transform')]
  0004  GETTABLE  R3 = R3[K2('sizeDelta')]
  0005  GETTABLE  R3 = R3[K3('x')]
  0006  DIV       R4 = K4(2) div R3
  0007  LT        if R0 lt R2   -> -129013
  0008  JMP       (jump)   -> 20
  0009  GETTABUP  R4 = _ENV[K5('math')]
  0010  GETTABLE  R4 = R4[K6('min')]
  0011  LOADK     R5 = K7 1
  0012  DIV       R6 = K4(2) div R3
  0013  SUB       R6 = R6 sub R2
  0014  GETTABLE  R7 = R0[K8('m_totalContentWidth')]
  0015  SUB       R7 = R3 sub R7
  0016  DIV       R6 = R7 div R6
  0017  TAILCALL  tailcall(R4, 0)
  0018  RETURN    return R4..R3
  0019  JMP       (jump)   -> 22
  0020  LOADK     R4 = K9 0
  0021  RETURN    return R4..R3
  0022  RETURN    return R0..R-1
; ---------- proto5 [ShowRewardTip] ----------
  ; fn ?  line 69-71 np=5 va=0 ms=13 code=11 consts=4 upvals=1 protos=0
  ;   K[0]='m_rewardTip'
  ;   K[1]='Show'
  ;   K[2]='ERewardScene'
  ;   K[3]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-11), rewards(0-11), rectTrans(0-11), offsetX(0-11), offsetY(0-11)
  0000  GETTABLE  R5 = R0[K0('m_rewardTip')]
  0001  SELF      R6 = R5[K1('Show')] (self)
  0002  MOVE      R7 = R0
  0003  GETTABUP  R8 = _ENV[K2('ERewardScene')]
  0004  GETTABLE  R8 = R8[K3('Other')]
  0005  MOVE      R9 = R0
  0006  MOVE      R10 = R0
  0007  MOVE      R11 = R0
  0008  LOADBOOL  R12 = true
  0009  CALL      R5 = call(R5, 0 args, 7 rets)
  0010  RETURN    return R0..R-1
; ---------- proto6 [GetHitRect] ----------
  ; fn ?  line 73-75 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_hitRect'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_hitRect')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto7 [PlayHitAnim] ----------
  ; fn ?  line 77-83 np=1 va=0 ms=6 code=25 consts=15 upvals=1 protos=0
  ;   K[0]='m_hitRect'
  ;   K[1]='localScale'
  ;   K[2]='UIUtil'
  ;   K[3]='SetLocalScale'
  ;   K[4]='x'
  ;   K[5]=0.2
  ;   K[6]='y'
  ;   K[7]='DOScale'
  ;   K[8]='m_hitEffect'
  ;   K[9]='Play'
  ;   K[10]='GM'
  ;   K[11]='AudioModel'
  ;   K[12]='PlayEffect'
  ;   K[13]='AudioFileConfigName'
  ;   K[14]='SfxTaskStart'
  ;   upvals: _ENV
  ;   locals: self(0-25), originScale(2-25)
  0000  GETTABLE  R1 = R0[K0('m_hitRect')]
  0001  GETTABLE  R1 = R1[K1('localScale')]
  0002  GETTABUP  R2 = _ENV[K2('UIUtil')]
  0003  GETTABLE  R2 = R2[K3('SetLocalScale')]
  0004  GETTABLE  R3 = R0[K0('m_hitRect')]
  0005  GETTABLE  R4 = R1[K4('x')]
  0006  ADD       R4 = K5(0.2) add R4
  0007  GETTABLE  R5 = R1[K6('y')]
  0008  ADD       R5 = K5(0.2) add R5
  0009  CALL      R2 = call(R2, 0 args, 3 rets)
  0010  GETTABLE  R2 = R0[K0('m_hitRect')]
  0011  SELF      R3 = R2[K7('DOScale')] (self)
  0012  MOVE      R4 = R0
  0013  LOADK     R5 = K5 0.2
  0014  CALL      R2 = call(R2, 0 args, 3 rets)
  0015  GETTABLE  R2 = R0[K8('m_hitEffect')]
  0016  SELF      R3 = R2[K9('Play')] (self)
  0017  CALL      R2 = call(R2, 0 args, 1 rets)
  0018  GETTABUP  R2 = _ENV[K10('GM')]
  0019  GETTABLE  R2 = R2[K11('AudioModel')]
  0020  SELF      R3 = R2[K12('PlayEffect')] (self)
  0021  GETTABUP  R4 = _ENV[K13('AudioFileConfigName')]
  0022  GETTABLE  R4 = R4[K14('SfxTaskStart')]
  0023  CALL      R2 = call(R2, 0 args, 2 rets)
  0024  RETURN    return R0..R-1
; ---------- proto8 [PlayProgressAnim] ----------
  ; fn ?  line 85-94 np=2 va=0 ms=11 code=36 consts=16 upvals=2 protos=1
  ;   K[0]=0.5
  ;   K[1]='m_model'
  ;   K[2]='GetRewardProgressInfo'
  ;   K[3]='m_scrollRect'
  ;   K[4]='horizontalNormalizedPosition'
  ;   K[5]='_GetMiddleHorizontalNormalizedPosition'
  ;   K[6]='Append'
  ;   K[7]='DOHorizontalNormalizedPos'
  ;   K[8]=1
  ;   K[9]='Join'
  ;   K[10]='m_fillRect'
  ;   K[11]='DOSizeDelta'
  ;   K[12]='Vector2'
  ;   K[13]='sizeDelta'
  ;   K[14]='y'
  ;   K[15]='AppendCallback'
  ;   upvals: _ENV, onceProgressWidth
  ;   locals: self(0-36), seq(0-36), duration(1-36), cur(4-36)
  0000  LOADK     R2 = K0 0.5
  0001  GETTABLE  R3 = R0[K1('m_model')]
  0002  SELF      R4 = R3[K2('GetRewardProgressInfo')] (self)
  0003  CALL      R3 = call(R3, 1 args, 1 rets)
  0004  GETTABLE  R4 = R0[K3('m_scrollRect')]
  0005  SELF      R6 = R0[K5('_GetMiddleHorizontalNormalizedPosition')] (self)
  0006  MOVE      R7 = R0
  0007  CALL      R5 = call(R5, 1 args, 2 rets)
  0008  SETTABLE  R4[K4('horizontalNormalizedPosition')] = R5
  0009  SELF      R5 = R1[K6('Append')] (self)
  0010  GETTABLE  R6 = R0[K3('m_scrollRect')]
  0011  SELF      R7 = R6[K7('DOHorizontalNormalizedPos')] (self)
  0012  SELF      R9 = R0[K5('_GetMiddleHorizontalNormalizedPosition')] (self)
  0013  ADD       R10 = K8(1) add R3
  0014  CALL      R8 = call(R8, 1 args, 2 rets)
  0015  MOVE      R9 = R0
  0016  CALL      R6 = call(R6, -1 args, 3 rets)
  0017  CALL      R4 = call(R4, 0 args, -1 rets)
  0018  SELF      R5 = R1[K9('Join')] (self)
  0019  GETTABLE  R6 = R0[K10('m_fillRect')]
  0020  SELF      R7 = R6[K11('DOSizeDelta')] (self)
  0021  GETTABUP  R8 = _ENV[K12('Vector2')]
  0022  ADD       R9 = K8(1) add R3
  0023  GETUPVAL  R10 = _ENV
  0024  MUL       R9 = R10 mul R9
  0025  GETTABLE  R10 = R0[K10('m_fillRect')]
  0026  GETTABLE  R10 = R10[K13('sizeDelta')]
  0027  GETTABLE  R10 = R10[K14('y')]
  0028  CALL      R8 = call(R8, 1 args, 2 rets)
  0029  MOVE      R9 = R0
  0030  CALL      R6 = call(R6, -1 args, 3 rets)
  0031  CALL      R4 = call(R4, 0 args, -1 rets)
  0032  SELF      R5 = R1[K15('AppendCallback')] (self)
  0033  CLOSURE   R6 = closure proto0
  0034  CALL      R4 = call(R4, 0 args, 2 rets)
  0035  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 91-93 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='UpdateContent'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('UpdateContent')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto9 [GetStageBoxPosition] ----------
  ; fn ?  line 96-101 np=2 va=0 ms=4 code=12 consts=4 upvals=1 protos=0
  ;   K[0]='m_arrRewardBox'
  ;   K[1]=nil
  ;   K[2]='GetIconPosition'
  ;   K[3]='V3Zero'
  ;   upvals: _ENV
  ;   locals: self(0-12), stage(0-12)
  0000  GETTABLE  R2 = R0[K0('m_arrRewardBox')]
  0001  GETTABLE  R2 = R2[R1]
  0002  EQ        if R1 eq K1(nil)   -> -129787
  0003  JMP       (jump)   -> 9
  0004  GETTABLE  R2 = R0[K0('m_arrRewardBox')]
  0005  GETTABLE  R2 = R2[R1]
  0006  SELF      R3 = R2[K2('GetIconPosition')] (self)
  0007  TAILCALL  tailcall(R2, 0)
  0008  RETURN    return R2..R1
  0009  GETTABUP  R2 = _ENV[K3('V3Zero')]
  0010  RETURN    return R2..R1
  0011  RETURN    return R0..R-1
; ---------- proto10 [Init] ----------
  ; fn ?  line 109-127 np=5 va=0 ms=11 code=36 consts=18 upvals=2 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_stage'
  ;   K[2]='m_stageConfig'
  ;   K[3]='GetStageRewardConfig'
  ;   K[4]='m_rewardSlider'
  ;   K[5]='m_rewards'
  ;   K[6]='GetRewards'
  ;   K[7]='GetStageTotalRedeemCount'
  ;   K[8]='m_numText'
  ;   K[9]='text'
  ;   K[10]='UIUtil'
  ;   K[11]='SetAnchoredPosition'
  ;   K[12]='transform'
  ;   K[13]='GetUICode'
  ;   K[14]='SpriteUtil'
  ;   K[15]='SetImage'
  ;   K[16]='m_icon'
  ;   K[17]='UpdateContent'
  ;   upvals: _ENV, onceProgressWidth
  ;   locals: self(0-36), model(0-36), stage(0-36), rewardSlider(0-36), bEnd(0-36), totalRedeemCount(14-36), imgKey(27-36)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SETTABLE  R0[K1('m_stage')] = R2
  0002  SELF      R6 = R1[K3('GetStageRewardConfig')] (self)
  0003  MOVE      R7 = R0
  0004  CALL      R5 = call(R5, 1 args, 2 rets)
  0005  SETTABLE  R0[K2('m_stageConfig')] = R5
  0006  SETTABLE  R0[K4('m_rewardSlider')] = R3
  0007  GETTABLE  R5 = R0[K2('m_stageConfig')]
  0008  SELF      R6 = R5[K6('GetRewards')] (self)
  0009  CALL      R5 = call(R5, 1 args, 1 rets)
  0010  SETTABLE  R0[K5('m_rewards')] = R5
  0011  SELF      R6 = R1[K7('GetStageTotalRedeemCount')] (self)
  0012  MOVE      R7 = R0
  0013  CALL      R5 = call(R5, 1 args, 2 rets)
  0014  GETTABLE  R6 = R0[K8('m_numText')]
  0015  SETTABLE  R6[K9('text')] = R5
  0016  TEST      if not R4 then   -> -131053
  0017  JMP       (jump)   -> 24
  0018  GETTABUP  R6 = _ENV[K10('UIUtil')]
  0019  GETTABLE  R6 = R6[K11('SetAnchoredPosition')]
  0020  GETTABLE  R7 = R0[K12('transform')]
  0021  GETUPVAL  R8 = _ENV
  0022  MUL       R8 = R5 mul R8
  0023  CALL      R6 = call(R6, 0 args, 2 rets)
  0024  GETTABLE  R6 = R0[K2('m_stageConfig')]
  0025  SELF      R7 = R6[K13('GetUICode')] (self)
  0026  CALL      R6 = call(R6, 1 args, 1 rets)
  0027  GETTABUP  R7 = _ENV[K14('SpriteUtil')]
  0028  GETTABLE  R7 = R7[K15('SetImage')]
  0029  GETTABLE  R8 = R0[K16('m_icon')]
  0030  MOVE      R9 = R0
  0031  LOADBOOL  R10 = true
  0032  CALL      R7 = call(R7, 0 args, 3 rets)
  0033  SELF      R8 = R0[K17('UpdateContent')] (self)
  0034  CALL      R7 = call(R7, 0 args, 1 rets)
  0035  RETURN    return R0..R-1
; ---------- proto11 [UpdateContent] ----------
  ; fn ?  line 129-134 np=1 va=0 ms=5 code=25 consts=14 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='IsStageRewardTaken'
  ;   K[2]='m_stage'
  ;   K[3]='UIUtil'
  ;   K[4]='SetActive'
  ;   K[5]='m_checkGo'
  ;   K[6]='m_button'
  ;   K[7]='enabled'
  ;   K[8]='m_icon'
  ;   K[9]='color'
  ;   K[10]='ConvertHexColor2CSColor'
  ;   K[11]='B7C0CF'
  ;   K[12]='CSColor'
  ;   K[13]='white'
  ;   upvals: _ENV
  ;   locals: self(0-25), bRewardTaken(4-25)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('IsStageRewardTaken')] (self)
  0002  GETTABLE  R3 = R0[K2('m_stage')]
  0003  CALL      R1 = call(R1, 1 args, 2 rets)
  0004  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0005  GETTABLE  R2 = R2[K4('SetActive')]
  0006  GETTABLE  R3 = R0[K5('m_checkGo')]
  0007  MOVE      R4 = R0
  0008  CALL      R2 = call(R2, 0 args, 2 rets)
  0009  GETTABLE  R2 = R0[K6('m_button')]
  0010  NOT       R3 = not R0
  0011  SETTABLE  R2[K7('enabled')] = R3
  0012  GETTABLE  R2 = R0[K8('m_icon')]
  0013  TEST      if not R1 then   -> -131057
  0014  JMP       (jump)   -> 21
  0015  GETTABUP  R3 = _ENV[K3('UIUtil')]
  0016  GETTABLE  R3 = R3[K10('ConvertHexColor2CSColor')]
  0017  LOADK     R4 = K11 'B7C0CF'
  0018  CALL      R3 = call(R3, 1 args, 1 rets)
  0019  TEST      if not R3 then   -> -131050
  0020  JMP       (jump)   -> 23
  0021  GETTABUP  R3 = _ENV[K12('CSColor')]
  0022  GETTABLE  R3 = R3[K13('white')]
  0023  SETTABLE  R2[K9('color')] = R3
  0024  RETURN    return R0..R-1
; ---------- proto12 [OnRewardBoxClicked] ----------
  ; fn ?  line 136-140 np=1 va=0 ms=7 code=15 consts=8 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='m_rewards'
  ;   K[3]='m_rewardSlider'
  ;   K[4]='ShowRewardTip'
  ;   K[5]='m_icon'
  ;   K[6]='transform'
  ;   K[7]=0
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('IsEmpty')]
  0002  GETTABLE  R2 = R0[K2('m_rewards')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 14
  0006  GETTABLE  R1 = R0[K3('m_rewardSlider')]
  0007  SELF      R2 = R1[K4('ShowRewardTip')] (self)
  0008  GETTABLE  R3 = R0[K2('m_rewards')]
  0009  GETTABLE  R4 = R0[K5('m_icon')]
  0010  GETTABLE  R4 = R4[K6('transform')]
  0011  LOADK     R5 = K7 0
  0012  LOADK     R6 = K7 0
  0013  CALL      R1 = call(R1, 0 args, 5 rets)
  0014  RETURN    return R0..R-1
; ---------- proto13 [GetIconPosition] ----------
  ; fn ?  line 142-144 np=1 va=0 ms=2 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_icon'
  ;   K[1]='transform'
  ;   K[2]='position'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_icon')]
  0001  GETTABLE  R1 = R1[K1('transform')]
  0002  GETTABLE  R1 = R1[K2('position')]
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
