# PassActivity_Common_View_PassActivityProgressCell_819.luac
; fn @PassActivityProgressCell.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=6 upvals=1 protos=4
;   K[0]='PassActivityProgressCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='UpdateLevel'
;   K[4]='TryPlayAnimation'
;   K[5]='UpdateState'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('PassActivityProgressCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('PassActivityProgressCell')]
0003  GETTABUP  R1 = _ENV[K0('PassActivityProgressCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('PassActivityProgressCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('PassActivityProgressCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdateLevel')] = R1
0011  GETTABUP  R0 = _ENV[K0('PassActivityProgressCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('TryPlayAnimation')] = R1
0014  GETTABUP  R0 = _ENV[K0('PassActivityProgressCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('UpdateState')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-12 np=3 va=0 ms=6 code=14 consts=8 upvals=1 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='PassActivityDefinition'
  ;   K[2]='m_level'
  ;   K[3]='UpdateLevel'
  ;   K[4]='m_model'
  ;   K[5]='GM'
  ;   K[6]='ActivityManager'
  ;   K[7]='GetModel'
  ;   upvals: _ENV
  ;   locals: self(0-14), activityType(0-14), level(0-14)
  0000  GETTABUP  R3 = _ENV[K1('PassActivityDefinition')]
  0001  GETTABLE  R3 = R3[R1]
  0002  SETTABLE  R0[K0('m_activityDefinition')] = R3
  0003  SETTABLE  R0[K2('m_level')] = R2
  0004  SELF      R4 = R0[K3('UpdateLevel')] (self)
  0005  MOVE      R5 = R0
  0006  CALL      R3 = call(R3, 0 args, 2 rets)
  0007  GETTABUP  R3 = _ENV[K5('GM')]
  0008  GETTABLE  R3 = R3[K6('ActivityManager')]
  0009  SELF      R4 = R3[K7('GetModel')] (self)
  0010  MOVE      R5 = R0
  0011  CALL      R3 = call(R3, 1 args, 2 rets)
  0012  SETTABLE  R0[K4('m_model')] = R3
  0013  RETURN    return R0..R-1
; ---------- proto1 [UpdateLevel] ----------
  ; fn ?  line 14-16 np=2 va=0 ms=3 code=3 consts=2 upvals=0 protos=0
  ;   K[0]='m_levelText'
  ;   K[1]='text'
  ;   locals: self(0-3), level(0-3)
  0000  GETTABLE  R2 = R0[K0('m_levelText')]
  0001  SETTABLE  R2[K1('text')] = R1
  0002  RETURN    return R0..R-1
; ---------- proto2 [TryPlayAnimation] ----------
  ; fn ?  line 18-28 np=1 va=0 ms=5 code=24 consts=8 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetCurrentLevel'
  ;   K[2]='m_level'
  ;   K[3]='HasShownProgressEffect'
  ;   K[4]=1
  ;   K[5]='m_effectGo'
  ;   K[6]='SetActive'
  ;   K[7]='SetShownProgressEffect'
  ;   locals: self(0-24), currentLevel(3-24)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetCurrentLevel')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABLE  R2 = R0[K2('m_level')]
  0004  LE        if R0 le R1   -> -130041
  0005  JMP       (jump)   -> 23
  0006  GETTABLE  R2 = R0[K0('m_model')]
  0007  SELF      R3 = R2[K3('HasShownProgressEffect')] (self)
  0008  GETTABLE  R4 = R0[K2('m_level')]
  0009  CALL      R2 = call(R2, 1 args, 2 rets)
  0010  TEST      if not R2 then   -> -131059
  0011  JMP       (jump)   -> 23
  0012  GETTABLE  R2 = R0[K2('m_level')]
  0013  EQ        if R1 eq K4(1)   -> -129773
  0014  JMP       (jump)   -> 19
  0015  GETTABLE  R2 = R0[K5('m_effectGo')]
  0016  SELF      R3 = R2[K6('SetActive')] (self)
  0017  LOADBOOL  R4 = true
  0018  CALL      R2 = call(R2, 0 args, 2 rets)
  0019  GETTABLE  R2 = R0[K0('m_model')]
  0020  SELF      R3 = R2[K7('SetShownProgressEffect')] (self)
  0021  GETTABLE  R4 = R0[K2('m_level')]
  0022  CALL      R2 = call(R2, 0 args, 2 rets)
  0023  RETURN    return R0..R-1
; ---------- proto3 [UpdateState] ----------
  ; fn ?  line 30-48 np=2 va=0 ms=7 code=68 consts=21 upvals=1 protos=0
  ;   K[0]='m_level'
  ;   K[1]=1
  ;   K[2]='m_firstLevelSprite'
  ;   K[3]=nil
  ;   K[4]='IsNull'
  ;   K[5]='m_iconImage'
  ;   K[6]='sprite'
  ;   K[7]='SpriteUtil'
  ;   K[8]='SetNativeSize'
  ;   K[9]='m_levelText'
  ;   K[10]='gameObject'
  ;   K[11]='SetActive'
  ;   K[12]='m_previousLevelSprite'
  ;   K[13]='m_levelOutline'
  ;   K[14]='SetColor'
  ;   K[15]='UIUtil'
  ;   K[16]='ConvertHexColor2CSColor'
  ;   K[17]='m_activityDefinition'
  ;   K[18]='PreviousProgressTextOutlineColor'
  ;   K[19]='PreviousProgressTextColor'
  ;   K[20]='color'
  ;   upvals: _ENV
  ;   locals: self(0-68), tokenLevel(0-68)
  0000  GETTABLE  R2 = R0[K0('m_level')]
  0001  EQ        if R0 eq K1(1)   -> -129788
  0002  JMP       (jump)   -> 24
  0003  GETTABLE  R2 = R0[K2('m_firstLevelSprite')]
  0004  EQ        if R1 eq K3(nil)   -> -129783
  0005  JMP       (jump)   -> 24
  0006  GETTABLE  R2 = R0[K2('m_firstLevelSprite')]
  0007  SELF      R3 = R2[K4('IsNull')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 24
  0011  GETTABLE  R2 = R0[K5('m_iconImage')]
  0012  GETTABLE  R3 = R0[K2('m_firstLevelSprite')]
  0013  SETTABLE  R2[K6('sprite')] = R3
  0014  GETTABUP  R2 = _ENV[K7('SpriteUtil')]
  0015  GETTABLE  R2 = R2[K8('SetNativeSize')]
  0016  GETTABLE  R3 = R0[K5('m_iconImage')]
  0017  CALL      R2 = call(R2, 0 args, 1 rets)
  0018  GETTABLE  R2 = R0[K9('m_levelText')]
  0019  GETTABLE  R2 = R2[K10('gameObject')]
  0020  SELF      R3 = R2[K11('SetActive')] (self)
  0021  LOADBOOL  R4 = false
  0022  CALL      R2 = call(R2, 0 args, 2 rets)
  0023  JMP       (jump)   -> 67
  0024  GETTABLE  R2 = R0[K0('m_level')]
  0025  LE        if R0 le R1   -> -130020
  0026  JMP       (jump)   -> 67
  0027  GETTABLE  R2 = R0[K5('m_iconImage')]
  0028  GETTABLE  R3 = R0[K12('m_previousLevelSprite')]
  0029  SETTABLE  R2[K6('sprite')] = R3
  0030  GETTABUP  R2 = _ENV[K7('SpriteUtil')]
  0031  GETTABLE  R2 = R2[K8('SetNativeSize')]
  0032  GETTABLE  R3 = R0[K5('m_iconImage')]
  0033  CALL      R2 = call(R2, 0 args, 1 rets)
  0034  GETTABLE  R2 = R0[K9('m_levelText')]
  0035  GETTABLE  R2 = R2[K10('gameObject')]
  0036  SELF      R3 = R2[K11('SetActive')] (self)
  0037  LOADBOOL  R4 = true
  0038  CALL      R2 = call(R2, 0 args, 2 rets)
  0039  GETTABLE  R2 = R0[K13('m_levelOutline')]
  0040  TEST      if not R2 then   -> -131030
  0041  JMP       (jump)   -> 56
  0042  GETTABLE  R2 = R0[K13('m_levelOutline')]
  0043  SELF      R3 = R2[K4('IsNull')] (self)
  0044  CALL      R2 = call(R2, 1 args, 1 rets)
  0045  TEST      if not R2 then   -> -131024
  0046  JMP       (jump)   -> 56
  0047  GETTABLE  R2 = R0[K13('m_levelOutline')]
  0048  SELF      R3 = R2[K14('SetColor')] (self)
  0049  GETTABUP  R4 = _ENV[K15('UIUtil')]
  0050  GETTABLE  R4 = R4[K16('ConvertHexColor2CSColor')]
  0051  GETTABLE  R5 = R0[K17('m_activityDefinition')]
  0052  GETTABLE  R5 = R5[K18('PreviousProgressTextOutlineColor')]
  0053  LOADBOOL  R6 = true
  0054  CALL      R4 = call(R4, -1 args, 2 rets)
  0055  CALL      R2 = call(R2, 0 args, -1 rets)
  0056  GETTABLE  R2 = R0[K17('m_activityDefinition')]
  0057  GETTABLE  R2 = R2[K19('PreviousProgressTextColor')]
  0058  TEST      if not R2 then   -> -131012
  0059  JMP       (jump)   -> 67
  0060  GETTABLE  R2 = R0[K9('m_levelText')]
  0061  GETTABUP  R3 = _ENV[K15('UIUtil')]
  0062  GETTABLE  R3 = R3[K16('ConvertHexColor2CSColor')]
  0063  GETTABLE  R4 = R0[K17('m_activityDefinition')]
  0064  GETTABLE  R4 = R4[K19('PreviousProgressTextColor')]
  0065  CALL      R3 = call(R3, 1 args, 1 rets)
  0066  SETTABLE  R2[K20('color')] = R3
  0067  RETURN    return R0..R-1
