# DashActivity_Common_View_DashActivityRewardProgress_799.luac
; fn @DashActivityRewardProgress.lua  line 0-0 np=0 va=1 ms=2 code=23 consts=7 upvals=1 protos=4
;   K[0]='DashActivityRewardProgress'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='PlayFadeOut'
;   K[4]='SetRewardActive'
;   K[5]='DashActivityRewardProgressCell'
;   K[6]='Init'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('DashActivityRewardProgress')] = R0
0002  GETTABUP  R0 = _ENV[K0('DashActivityRewardProgress')]
0003  GETTABUP  R1 = _ENV[K0('DashActivityRewardProgress')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('DashActivityRewardProgress')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('DashActivityRewardProgress')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('PlayFadeOut')] = R1
0011  GETTABUP  R0 = _ENV[K0('DashActivityRewardProgress')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('SetRewardActive')] = R1
0014  NEWTABLE  R0 = {} (0 items)
0015  SETTABUP  _ENV[K5('DashActivityRewardProgressCell')] = R0
0016  GETTABUP  R0 = _ENV[K5('DashActivityRewardProgressCell')]
0017  GETTABUP  R1 = _ENV[K5('DashActivityRewardProgressCell')]
0018  SETTABLE  R0[K1('__index')] = R1
0019  GETTABUP  R0 = _ENV[K5('DashActivityRewardProgressCell')]
0020  CLOSURE   R1 = closure proto3
0021  SETTABLE  R0[K6('Init')] = R1
0022  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-38 np=3 va=0 ms=17 code=71 consts=26 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetModel'
  ;   K[3]='GetLevelConfigs'
  ;   K[4]='GetLevel'
  ;   K[5]='GetMaxRewardLevel'
  ;   K[6]=1
  ;   K[7]=nil
  ;   K[8]='m_cellGo'
  ;   K[9]='rewards'
  ;   K[10]='GameObject'
  ;   K[11]='Instantiate'
  ;   K[12]='m_rewardsRectTrans'
  ;   K[13]='SetActive'
  ;   K[14]='GetLuaTable'
  ;   K[15]='Init'
  ;   K[16]='m_fillCellGo'
  ;   K[17]='m_fillsRectTrans'
  ;   K[18]='GetComponent'
  ;   K[19]='typeof'
  ;   K[20]='Image'
  ;   K[21]='sprite'
  ;   K[22]='m_fillDoneSprite'
  ;   K[23]='m_fillCurrentSprite'
  ;   K[24]='m_rewardsCanv'
  ;   K[25]='alpha'
  ;   upvals: _ENV
  ;   locals: self(0-71), activityType(0-71), allFinished(0-71), model(5-71), configs(7-71), currentLevel(9-71), maxLevel(11-71), (for index)(14-65), (for limit)(14-65), (for step)(14-65), level(15-64), config(16-64), cellName(22-35), gameObject(27-35), gameObject(44-64), image(52-64)
  0000  GETTABUP  R3 = _ENV[K0('GM')]
  0001  GETTABLE  R3 = R3[K1('ActivityManager')]
  0002  SELF      R4 = R3[K2('GetModel')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  SELF      R5 = R3[K3('GetLevelConfigs')] (self)
  0006  CALL      R4 = call(R4, 1 args, 1 rets)
  0007  SELF      R6 = R3[K4('GetLevel')] (self)
  0008  CALL      R5 = call(R5, 1 args, 1 rets)
  0009  SELF      R7 = R3[K5('GetMaxRewardLevel')] (self)
  0010  CALL      R6 = call(R6, 1 args, 1 rets)
  0011  LOADK     R7 = K6 1
  0012  MOVE      R8 = R0
  0013  LOADK     R9 = K6 1
  0014  FORPREP   forprep R7(sBx=49)   -> 64
  0015  GETTABLE  R11 = R4[R10]
  0016  EQ        if R1 eq K7(nil)   -> -125159
  0017  JMP       (jump)   -> 35
  0018  LOADK     R12 = K8 'm_cellGo'
  0019  GETTABLE  R13 = R11[K9('rewards')]
  0020  LEN       R13 = len R0
  0021  CONCAT    R12 = concat(R12..R12)
  0022  GETTABUP  R13 = _ENV[K10('GameObject')]
  0023  GETTABLE  R13 = R13[K11('Instantiate')]
  0024  GETTABLE  R14 = R0[R12]
  0025  GETTABLE  R15 = R0[K12('m_rewardsRectTrans')]
  0026  CALL      R13 = call(R13, 1 args, 2 rets)
  0027  SELF      R15 = R13[K13('SetActive')] (self)
  0028  LOADBOOL  R16 = true
  0029  CALL      R14 = call(R14, 0 args, 2 rets)
  0030  SELF      R15 = R13[K14('GetLuaTable')] (self)
  0031  CALL      R14 = call(R14, 1 args, 1 rets)
  0032  SELF      R15 = R14[K15('Init')] (self)
  0033  GETTABLE  R16 = R11[K9('rewards')]
  0034  CALL      R14 = call(R14, 0 args, 2 rets)
  0035  LE        if R1 le R5   -> -125910
  0036  JMP       (jump)   -> 39
  0037  TEST      if not R2 then   -> -131033
  0038  JMP       (jump)   -> 64
  0039  GETTABUP  R12 = _ENV[K10('GameObject')]
  0040  GETTABLE  R12 = R12[K11('Instantiate')]
  0041  GETTABLE  R13 = R0[K16('m_fillCellGo')]
  0042  GETTABLE  R14 = R0[K17('m_fillsRectTrans')]
  0043  CALL      R12 = call(R12, 1 args, 2 rets)
  0044  SELF      R14 = R12[K13('SetActive')] (self)
  0045  LOADBOOL  R15 = true
  0046  CALL      R13 = call(R13, 0 args, 2 rets)
  0047  SELF      R14 = R12[K18('GetComponent')] (self)
  0048  GETTABUP  R15 = _ENV[K19('typeof')]
  0049  GETTABUP  R16 = _ENV[K20('Image')]
  0050  CALL      R15 = call(R15, -1 args, 1 rets)
  0051  CALL      R13 = call(R13, 1 args, -1 rets)
  0052  TEST      if not R2 then   -> -131018
  0053  JMP       (jump)   -> 57
  0054  GETTABLE  R14 = R0[K22('m_fillDoneSprite')]
  0055  SETTABLE  R13[K21('sprite')] = R14
  0056  JMP       (jump)   -> 64
  0057  EQ        if R0 eq R5   -> -125888
  0058  JMP       (jump)   -> 62
  0059  GETTABLE  R14 = R0[K23('m_fillCurrentSprite')]
  0060  TEST      if not R14 then   -> -131009
  0061  JMP       (jump)   -> 63
  0062  GETTABLE  R14 = R0[K22('m_fillDoneSprite')]
  0063  SETTABLE  R13[K21('sprite')] = R14
  0064  FORLOOP   forloop R7(sBx=-50)   -> 15
  0065  GETTABLE  R7 = R0[K24('m_rewardsCanv')]
  0066  TEST      if not R7 then   -> -131004
  0067  JMP       (jump)   -> 70
  0068  GETTABLE  R7 = R0[K24('m_rewardsCanv')]
  0069  SETTABLE  R7[K25('alpha')] = K6(1)
  0070  RETURN    return R0..R-1
; ---------- proto1 [PlayFadeOut] ----------
  ; fn ?  line 40-44 np=1 va=0 ms=5 code=9 consts=4 upvals=0 protos=0
  ;   K[0]='m_rewardsCanv'
  ;   K[1]='DOFade'
  ;   K[2]=0
  ;   K[3]=0.3
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_rewardsCanv')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 8
  0003  GETTABLE  R1 = R0[K0('m_rewardsCanv')]
  0004  SELF      R2 = R1[K1('DOFade')] (self)
  0005  LOADK     R3 = K2 0
  0006  LOADK     R4 = K3 0.3
  0007  CALL      R1 = call(R1, 0 args, 3 rets)
  0008  RETURN    return R0..R-1
; ---------- proto2 [SetRewardActive] ----------
  ; fn ?  line 47-51 np=2 va=0 ms=5 code=8 consts=2 upvals=0 protos=0
  ;   K[0]='m_rewardsGo'
  ;   K[1]='SetActive'
  ;   locals: self(0-8), bActive(0-8)
  0000  GETTABLE  R2 = R0[K0('m_rewardsGo')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R2 = R0[K0('m_rewardsGo')]
  0004  SELF      R3 = R2[K1('SetActive')] (self)
  0005  MOVE      R4 = R0
  0006  CALL      R2 = call(R2, 0 args, 2 rets)
  0007  RETURN    return R0..R-1
; ---------- proto3 [Init] ----------
  ; fn ?  line 55-62 np=2 va=0 ms=13 code=22 consts=8 upvals=1 protos=0
  ;   K[0]='ipairs'
  ;   K[1]='m_image'
  ;   K[2]='enabled'
  ;   K[3]=true
  ;   K[4]='ConfigUtil'
  ;   K[5]='GetCurrencyImageName'
  ;   K[6]='SpriteUtil'
  ;   K[7]='SetImage'
  ;   upvals: _ENV
  ;   locals: self(0-22), rewards(0-22), (for generator)(3-21), (for state)(3-21), (for control)(3-21), index(4-19), reward(4-19), image(8-19), spriteName(13-19)
  0000  GETTABUP  R2 = _ENV[K0('ipairs')]
  0001  MOVE      R3 = R0
  0002  CALL      R2 = call(R2, 3 args, 1 rets)
  0003  JMP       (jump)   -> 19
  0004  LOADK     R7 = K1 'm_image'
  0005  MOVE      R8 = R0
  0006  CONCAT    R7 = concat(R7..R7)
  0007  GETTABLE  R7 = R0[R7]
  0008  SETTABLE  R7[K2('enabled')] = K3(true)
  0009  GETTABUP  R8 = _ENV[K4('ConfigUtil')]
  0010  GETTABLE  R8 = R8[K5('GetCurrencyImageName')]
  0011  MOVE      R9 = R0
  0012  CALL      R8 = call(R8, 1 args, 1 rets)
  0013  GETTABUP  R9 = _ENV[K6('SpriteUtil')]
  0014  GETTABLE  R9 = R9[K7('SetImage')]
  0015  MOVE      R10 = R0
  0016  MOVE      R11 = R0
  0017  LOADBOOL  R12 = true
  0018  CALL      R9 = call(R9, 0 args, 3 rets)
  0019  TFORCALL  tforcall R2
  0020  TFORLOOP  tforloop R4(sBx=-17)   -> 4
  0021  RETURN    return R0..R-1
