# DeliveryProgress_View_DeliveryProgressBoardEntry_1496.luac
; fn @DeliveryProgressBoardEntry.lua  line 0-0 np=0 va=1 ms=3 code=77 consts=24 upvals=1 protos=21
;   K[0]='DeliveryProgressBoardEntry'
;   K[1]='__index'
;   K[2]='Awake'
;   K[3]='Init'
;   K[4]='GetModel'
;   K[5]='_TryAddListeners'
;   K[6]='OnDestroy'
;   K[7]='OnEnable'
;   K[8]='_OnStateChanged'
;   K[9]='_UpdateRedPoint'
;   K[10]='UpdatePerSecond'
;   K[11]='OnBtnClicked'
;   K[12]='GetIconArea'
;   K[13]='DeliveryProgressHudButton'
;   K[14]='setmetatable'
;   K[15]='HudPropertyButton'
;   K[16]='Init'
;   K[17]='_AddListeners'
;   K[18]='_TryAddListeners'
;   K[19]='GetModel'
;   K[20]='_OnCloseView'
;   K[21]='UpdateContent'
;   K[22]='GetPropertyNum'
;   K[23]='UpdateValueText'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('DeliveryProgressBoardEntry')] = R0
0002  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0003  GETTABUP  R1 = _ENV[K0('DeliveryProgressBoardEntry')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Awake')] = R1
0008  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('GetModel')] = R1
0014  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('_TryAddListeners')] = R1
0017  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('OnDestroy')] = R1
0020  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('OnEnable')] = R1
0023  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('_OnStateChanged')] = R1
0026  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('_UpdateRedPoint')] = R1
0029  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K10('UpdatePerSecond')] = R1
0032  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0033  CLOSURE   R1 = closure proto9
0034  SETTABLE  R0[K11('OnBtnClicked')] = R1
0035  GETTABUP  R0 = _ENV[K0('DeliveryProgressBoardEntry')]
0036  CLOSURE   R1 = closure proto10
0037  SETTABLE  R0[K12('GetIconArea')] = R1
0038  GETTABUP  R0 = _ENV[K14('setmetatable')]
0039  NEWTABLE  R1 = {} (0 items)
0040  GETTABUP  R2 = _ENV[K15('HudPropertyButton')]
0041  CALL      R0 = call(R0, 1 args, 2 rets)
0042  SETTABUP  _ENV[K13('DeliveryProgressHudButton')] = R0
0043  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0044  GETTABUP  R1 = _ENV[K13('DeliveryProgressHudButton')]
0045  SETTABLE  R0[K1('__index')] = R1
0046  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0047  CLOSURE   R1 = closure proto11
0048  SETTABLE  R0[K2('Awake')] = R1
0049  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0050  CLOSURE   R1 = closure proto12
0051  SETTABLE  R0[K16('Init')] = R1
0052  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0053  CLOSURE   R1 = closure proto13
0054  SETTABLE  R0[K17('_AddListeners')] = R1
0055  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0056  CLOSURE   R1 = closure proto14
0057  SETTABLE  R0[K18('_TryAddListeners')] = R1
0058  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0059  CLOSURE   R1 = closure proto15
0060  SETTABLE  R0[K19('GetModel')] = R1
0061  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0062  CLOSURE   R1 = closure proto16
0063  SETTABLE  R0[K20('_OnCloseView')] = R1
0064  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0065  CLOSURE   R1 = closure proto17
0066  SETTABLE  R0[K21('UpdateContent')] = R1
0067  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0068  CLOSURE   R1 = closure proto18
0069  SETTABLE  R0[K22('GetPropertyNum')] = R1
0070  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0071  CLOSURE   R1 = closure proto19
0072  SETTABLE  R0[K8('_OnStateChanged')] = R1
0073  GETTABUP  R0 = _ENV[K13('DeliveryProgressHudButton')]
0074  CLOSURE   R1 = closure proto20
0075  SETTABLE  R0[K23('UpdateValueText')] = R1
0076  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 10-12 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_TryAddListeners'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_TryAddListeners')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 14-28 np=3 va=0 ms=6 code=27 consts=14 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_progressHelper'
  ;   K[2]='GetProgressHelper'
  ;   K[3]='m_activityType'
  ;   K[4]='GetType'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='m_orderArea'
  ;   K[8]='m_iconArea'
  ;   K[9]='Init'
  ;   K[10]='SetInBoardView'
  ;   K[11]='UpdatePerSecond'
  ;   K[12]='_UpdateRedPoint'
  ;   K[13]='_TryAddListeners'
  ;   locals: self(0-27), model(0-27), orderArea(0-27)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SELF      R4 = R1[K2('GetProgressHelper')] (self)
  0002  CALL      R3 = call(R3, 1 args, 1 rets)
  0003  SETTABLE  R0[K1('m_progressHelper')] = R3
  0004  GETTABLE  R3 = R0[K0('m_model')]
  0005  SELF      R4 = R3[K4('GetType')] (self)
  0006  CALL      R3 = call(R3, 1 args, 1 rets)
  0007  SETTABLE  R0[K3('m_activityType')] = R3
  0008  GETTABLE  R3 = R0[K0('m_model')]
  0009  SELF      R4 = R3[K6('GetActivityDefinition')] (self)
  0010  CALL      R3 = call(R3, 1 args, 1 rets)
  0011  SETTABLE  R0[K5('m_activityDefinition')] = R3
  0012  SETTABLE  R0[K7('m_orderArea')] = R2
  0013  GETTABLE  R3 = R0[K8('m_iconArea')]
  0014  SELF      R4 = R3[K9('Init')] (self)
  0015  GETTABLE  R5 = R0[K3('m_activityType')]
  0016  CALL      R3 = call(R3, 0 args, 2 rets)
  0017  GETTABLE  R3 = R0[K8('m_iconArea')]
  0018  SELF      R4 = R3[K10('SetInBoardView')] (self)
  0019  CALL      R3 = call(R3, 0 args, 1 rets)
  0020  SELF      R4 = R0[K11('UpdatePerSecond')] (self)
  0021  CALL      R3 = call(R3, 0 args, 1 rets)
  0022  SELF      R4 = R0[K12('_UpdateRedPoint')] (self)
  0023  CALL      R3 = call(R3, 0 args, 1 rets)
  0024  SELF      R4 = R0[K13('_TryAddListeners')] (self)
  0025  CALL      R3 = call(R3, 0 args, 1 rets)
  0026  RETURN    return R0..R-1
; ---------- proto2 [GetModel] ----------
  ; fn ?  line 30-32 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto3 [_TryAddListeners] ----------
  ; fn ?  line 35-45 np=1 va=0 ms=6 code=42 consts=13 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]=nil
  ;   K[2]='gameObject'
  ;   K[3]='activeInHierarchy'
  ;   K[4]='EventDispatcher'
  ;   K[5]='AddListener'
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='StateChangedEvent'
  ;   K[8]='_OnStateChanged'
  ;   K[9]='ScoreChangedEvent'
  ;   K[10]='_UpdateRedPoint'
  ;   K[11]='QuestCompletedEvent'
  ;   K[12]='RewardAcquiredEvent'
  ;   upvals: _ENV
  ;   locals: self(0-42), model(2-42)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R1 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 8
  0004  GETTABLE  R2 = R0[K2('gameObject')]
  0005  GETTABLE  R2 = R2[K3('activeInHierarchy')]
  0006  TEST      if not R2 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0010  GETTABLE  R2 = R2[K5('AddListener')]
  0011  SELF      R4 = R1[K6('GetActivityDefinition')] (self)
  0012  CALL      R3 = call(R3, 1 args, 1 rets)
  0013  GETTABLE  R3 = R3[K7('StateChangedEvent')]
  0014  MOVE      R4 = R0
  0015  GETTABLE  R5 = R0[K8('_OnStateChanged')]
  0016  CALL      R2 = call(R2, 0 args, 3 rets)
  0017  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0018  GETTABLE  R2 = R2[K5('AddListener')]
  0019  SELF      R4 = R1[K6('GetActivityDefinition')] (self)
  0020  CALL      R3 = call(R3, 1 args, 1 rets)
  0021  GETTABLE  R3 = R3[K9('ScoreChangedEvent')]
  0022  MOVE      R4 = R0
  0023  GETTABLE  R5 = R0[K10('_UpdateRedPoint')]
  0024  CALL      R2 = call(R2, 0 args, 3 rets)
  0025  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0026  GETTABLE  R2 = R2[K5('AddListener')]
  0027  SELF      R4 = R1[K6('GetActivityDefinition')] (self)
  0028  CALL      R3 = call(R3, 1 args, 1 rets)
  0029  GETTABLE  R3 = R3[K11('QuestCompletedEvent')]
  0030  MOVE      R4 = R0
  0031  GETTABLE  R5 = R0[K10('_UpdateRedPoint')]
  0032  CALL      R2 = call(R2, 0 args, 3 rets)
  0033  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0034  GETTABLE  R2 = R2[K5('AddListener')]
  0035  SELF      R4 = R1[K6('GetActivityDefinition')] (self)
  0036  CALL      R3 = call(R3, 1 args, 1 rets)
  0037  GETTABLE  R3 = R3[K12('RewardAcquiredEvent')]
  0038  MOVE      R4 = R0
  0039  GETTABLE  R5 = R0[K10('_UpdateRedPoint')]
  0040  CALL      R2 = call(R2, 0 args, 3 rets)
  0041  RETURN    return R0..R-1
; ---------- proto4 [OnDestroy] ----------
  ; fn ?  line 47-49 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto5 [OnEnable] ----------
  ; fn ?  line 51-53 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='UpdatePerSecond'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('UpdatePerSecond')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto6 [_OnStateChanged] ----------
  ; fn ?  line 55-58 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='UpdatePerSecond'
  ;   K[1]='_UpdateRedPoint'
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('UpdatePerSecond')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  SELF      R2 = R0[K1('_UpdateRedPoint')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto7 [_UpdateRedPoint] ----------
  ; fn ?  line 60-65 np=1 va=0 ms=7 code=16 consts=9 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='ShouldShowRedPoint'
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='m_exclamationGo'
  ;   K[5]='m_exclamationText'
  ;   K[6]='text'
  ;   K[7]='tostring'
  ;   K[8]='GetRedPointCount'
  ;   upvals: _ENV
  ;   locals: self(0-16), model(2-16), bShouldShowRedPoint(4-16)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K1('ShouldShowRedPoint')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  GETTABUP  R3 = _ENV[K2('UIUtil')]
  0005  GETTABLE  R3 = R3[K3('SetActive')]
  0006  GETTABLE  R4 = R0[K4('m_exclamationGo')]
  0007  MOVE      R5 = R0
  0008  CALL      R3 = call(R3, 0 args, 2 rets)
  0009  GETTABLE  R3 = R0[K5('m_exclamationText')]
  0010  GETTABUP  R4 = _ENV[K7('tostring')]
  0011  SELF      R6 = R1[K8('GetRedPointCount')] (self)
  0012  CALL      R5 = call(R5, -1 args, 1 rets)
  0013  CALL      R4 = call(R4, 1 args, -1 rets)
  0014  SETTABLE  R3[K6('text')] = R4
  0015  RETURN    return R0..R-1
; ---------- proto8 [UpdatePerSecond] ----------
  ; fn ?  line 67-79 np=1 va=0 ms=9 code=51 consts=20 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetNextStateTime'
  ;   K[3]='m_progressHelper'
  ;   K[4]='HasFinishedAllLevel'
  ;   K[5]='GetState'
  ;   K[6]='ActivityState'
  ;   K[7]='Ended'
  ;   K[8]='Released'
  ;   K[9]='m_countDownText'
  ;   K[10]='text'
  ;   K[11]='GM'
  ;   K[12]='GameTextModel'
  ;   K[13]='GetText'
  ;   K[14]='countdown_finished'
  ;   K[15]='GameModel'
  ;   K[16]='GetServerTime'
  ;   K[17]='TimeUtil'
  ;   K[18]='ParseTimeDescription'
  ;   K[19]=2
  ;   upvals: _ENV
  ;   locals: self(0-51), nextStateTime(7-51), delta(41-50)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K0('m_model')]
  0005  SELF      R2 = R1[K2('GetNextStateTime')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  GETTABLE  R2 = R0[K3('m_progressHelper')]
  0008  SELF      R3 = R2[K4('HasFinishedAllLevel')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  TEST      if not R2 then   -> -131059
  0011  JMP       (jump)   -> 26
  0012  GETTABLE  R2 = R0[K0('m_model')]
  0013  SELF      R3 = R2[K5('GetState')] (self)
  0014  CALL      R2 = call(R2, 1 args, 1 rets)
  0015  GETTABUP  R3 = _ENV[K6('ActivityState')]
  0016  GETTABLE  R3 = R3[K7('Ended')]
  0017  EQ        if R1 eq R3   -> -130026
  0018  JMP       (jump)   -> 26
  0019  GETTABLE  R2 = R0[K0('m_model')]
  0020  SELF      R3 = R2[K5('GetState')] (self)
  0021  CALL      R2 = call(R2, 1 args, 1 rets)
  0022  GETTABUP  R3 = _ENV[K6('ActivityState')]
  0023  GETTABLE  R3 = R3[K8('Released')]
  0024  EQ        if R0 eq R3   -> -130019
  0025  JMP       (jump)   -> 34
  0026  GETTABLE  R2 = R0[K9('m_countDownText')]
  0027  GETTABUP  R3 = _ENV[K11('GM')]
  0028  GETTABLE  R3 = R3[K12('GameTextModel')]
  0029  SELF      R4 = R3[K13('GetText')] (self)
  0030  LOADK     R5 = K14 'countdown_finished'
  0031  CALL      R3 = call(R3, 1 args, 2 rets)
  0032  SETTABLE  R2[K10('text')] = R3
  0033  JMP       (jump)   -> 50
  0034  EQ        if R1 eq K1(nil)   -> -130267
  0035  JMP       (jump)   -> 50
  0036  GETTABUP  R2 = _ENV[K11('GM')]
  0037  GETTABLE  R2 = R2[K15('GameModel')]
  0038  SELF      R3 = R2[K16('GetServerTime')] (self)
  0039  CALL      R2 = call(R2, 1 args, 1 rets)
  0040  SUB       R2 = R2 sub R1
  0041  GETTABLE  R3 = R0[K9('m_countDownText')]
  0042  GETTABUP  R4 = _ENV[K17('TimeUtil')]
  0043  GETTABLE  R4 = R4[K18('ParseTimeDescription')]
  0044  MOVE      R5 = R0
  0045  LOADK     R6 = K19 2
  0046  LOADBOOL  R7 = false
  0047  LOADBOOL  R8 = false
  0048  CALL      R4 = call(R4, 1 args, 4 rets)
  0049  SETTABLE  R3[K10('text')] = R4
  0050  RETURN    return R0..R-1
; ---------- proto9 [OnBtnClicked] ----------
  ; fn ?  line 81-83 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='OnEntryClicked'
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('OnEntryClicked')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto10 [GetIconArea] ----------
  ; fn ?  line 85-87 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_iconArea'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_iconArea')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto11 [Awake] ----------
  ; fn ?  line 95-99 np=1 va=0 ms=3 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='Awake'
  ;   K[2]='_TryAddListeners'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_TryAddListeners')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto12 [Init] ----------
  ; fn ?  line 101-107 np=2 va=0 ms=5 code=23 consts=12 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='GetActivityDefinition'
  ;   K[6]='m_progressHelper'
  ;   K[7]='GetProgressHelper'
  ;   K[8]='HudPropertyButton'
  ;   K[9]='Init'
  ;   K[10]='ActivityTokenPropertyType'
  ;   K[11]='_TryAddListeners'
  ;   upvals: _ENV
  ;   locals: self(0-23), activityType(0-23)
  0000  GETTABUP  R2 = _ENV[K1('GM')]
  0001  GETTABLE  R2 = R2[K2('ActivityManager')]
  0002  SELF      R3 = R2[K3('GetModel')] (self)
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  SETTABLE  R0[K0('m_model')] = R2
  0006  GETTABLE  R2 = R0[K0('m_model')]
  0007  SELF      R3 = R2[K5('GetActivityDefinition')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  SETTABLE  R0[K4('m_activityDefinition')] = R2
  0010  GETTABLE  R2 = R0[K0('m_model')]
  0011  SELF      R3 = R2[K7('GetProgressHelper')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  SETTABLE  R0[K6('m_progressHelper')] = R2
  0014  GETTABUP  R2 = _ENV[K8('HudPropertyButton')]
  0015  GETTABLE  R2 = R2[K9('Init')]
  0016  MOVE      R3 = R0
  0017  GETTABLE  R4 = R0[K4('m_activityDefinition')]
  0018  GETTABLE  R4 = R4[K10('ActivityTokenPropertyType')]
  0019  CALL      R2 = call(R2, 0 args, 2 rets)
  0020  SELF      R3 = R0[K11('_TryAddListeners')] (self)
  0021  CALL      R2 = call(R2, 0 args, 1 rets)
  0022  RETURN    return R0..R-1
; ---------- proto13 [_AddListeners] ----------
  ; fn ?  line 109-113 np=1 va=0 ms=5 code=14 consts=7 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='_AddListeners'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='EEventType'
  ;   K[5]='ChangeGameModeFinished'
  ;   K[6]='UpdateContent'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('_AddListeners')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 13
  0006  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0007  GETTABLE  R1 = R1[K3('AddListener')]
  0008  GETTABUP  R2 = _ENV[K4('EEventType')]
  0009  GETTABLE  R2 = R2[K5('ChangeGameModeFinished')]
  0010  MOVE      R3 = R0
  0011  GETTABLE  R4 = R0[K6('UpdateContent')]
  0012  CALL      R1 = call(R1, 0 args, 3 rets)
  0013  RETURN    return R0..R-1
; ---------- proto14 [_TryAddListeners] ----------
  ; fn ?  line 116-125 np=1 va=0 ms=6 code=34 consts=12 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]=nil
  ;   K[2]='gameObject'
  ;   K[3]='activeInHierarchy'
  ;   K[4]='EventDispatcher'
  ;   K[5]='AddListener'
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='StateChangedEvent'
  ;   K[8]='_OnStateChanged'
  ;   K[9]='QuestCompletedEvent'
  ;   K[10]='SyncToModelValue'
  ;   K[11]='RewardAcquiredEvent'
  ;   upvals: _ENV
  ;   locals: self(0-34), model(2-34)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R1 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 8
  0004  GETTABLE  R2 = R0[K2('gameObject')]
  0005  GETTABLE  R2 = R2[K3('activeInHierarchy')]
  0006  TEST      if not R2 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0010  GETTABLE  R2 = R2[K5('AddListener')]
  0011  SELF      R4 = R1[K6('GetActivityDefinition')] (self)
  0012  CALL      R3 = call(R3, 1 args, 1 rets)
  0013  GETTABLE  R3 = R3[K7('StateChangedEvent')]
  0014  MOVE      R4 = R0
  0015  GETTABLE  R5 = R0[K8('_OnStateChanged')]
  0016  CALL      R2 = call(R2, 0 args, 3 rets)
  0017  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0018  GETTABLE  R2 = R2[K5('AddListener')]
  0019  SELF      R4 = R1[K6('GetActivityDefinition')] (self)
  0020  CALL      R3 = call(R3, 1 args, 1 rets)
  0021  GETTABLE  R3 = R3[K9('QuestCompletedEvent')]
  0022  MOVE      R4 = R0
  0023  GETTABLE  R5 = R0[K10('SyncToModelValue')]
  0024  CALL      R2 = call(R2, 0 args, 3 rets)
  0025  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0026  GETTABLE  R2 = R2[K5('AddListener')]
  0027  SELF      R4 = R1[K6('GetActivityDefinition')] (self)
  0028  CALL      R3 = call(R3, 1 args, 1 rets)
  0029  GETTABLE  R3 = R3[K11('RewardAcquiredEvent')]
  0030  MOVE      R4 = R0
  0031  GETTABLE  R5 = R0[K10('SyncToModelValue')]
  0032  CALL      R2 = call(R2, 0 args, 3 rets)
  0033  RETURN    return R0..R-1
; ---------- proto15 [GetModel] ----------
  ; fn ?  line 127-129 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto16 [_OnCloseView] ----------
  ; fn ?  line 131-138 np=2 va=0 ms=4 code=14 consts=6 upvals=0 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]=nil
  ;   K[2]='name'
  ;   K[3]='MainWindowPrefabName'
  ;   K[4]='_DelaySyncModelValue'
  ;   K[5]='SyncToModelValue'
  ;   locals: self(0-14), msg(0-14)
  0000  GETTABLE  R2 = R0[K0('m_activityDefinition')]
  0001  EQ        if R1 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 8
  0003  GETTABLE  R2 = R1[K2('name')]
  0004  GETTABLE  R3 = R0[K0('m_activityDefinition')]
  0005  GETTABLE  R3 = R3[K3('MainWindowPrefabName')]
  0006  EQ        if R1 eq R3   -> -130037
  0007  JMP       (jump)   -> 11
  0008  SELF      R3 = R0[K4('_DelaySyncModelValue')] (self)
  0009  CALL      R2 = call(R2, 0 args, 1 rets)
  0010  JMP       (jump)   -> 13
  0011  SELF      R3 = R0[K5('SyncToModelValue')] (self)
  0012  CALL      R2 = call(R2, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
; ---------- proto17 [UpdateContent] ----------
  ; fn ?  line 140-142 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='SyncToModelValue'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('SyncToModelValue')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto18 [GetPropertyNum] ----------
  ; fn ?  line 144-146 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_progressHelper'
  ;   K[1]='GetScoreForDisplay'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_progressHelper')]
  0001  SELF      R2 = R1[K1('GetScoreForDisplay')] (self)
  0002  TAILCALL  tailcall(R1, 0)
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto19 [_OnStateChanged] ----------
  ; fn ?  line 148-153 np=1 va=0 ms=3 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Ended'
  ;   K[4]='SyncToModelValue'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('GetState')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0005  GETTABLE  R2 = R2[K3('Ended')]
  0006  EQ        if R1 eq R2   -> -130550
  0007  JMP       (jump)   -> 10
  0008  SELF      R2 = R0[K4('SyncToModelValue')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto20 [UpdateValueText] ----------
  ; fn ?  line 155-165 np=1 va=0 ms=9 code=32 consts=16 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='UpdateValueText'
  ;   K[2]='m_value'
  ;   K[3]='m_progressHelper'
  ;   K[4]='GetScoreFromLevelStartByScoreForDisplay'
  ;   K[5]='GetLevelByScoreForDisplay'
  ;   K[6]='GetLevelRequiredScoreFromLevelStartByLevel'
  ;   K[7]='m_slider'
  ;   K[8]='value'
  ;   K[9]='m_valueText'
  ;   K[10]='text'
  ;   K[11]='math'
  ;   K[12]='floor'
  ;   K[13]=0.5
  ;   K[14]='/'
  ;   K[15]='m_levelText'
  ;   upvals: _ENV
  ;   locals: self(0-32), score(5-32), curScore(9-32), level(13-32), curTargetScore(17-32)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('UpdateValueText')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_value')]
  0005  GETTABLE  R2 = R0[K3('m_progressHelper')]
  0006  SELF      R3 = R2[K4('GetScoreFromLevelStartByScoreForDisplay')] (self)
  0007  MOVE      R4 = R0
  0008  CALL      R2 = call(R2, 1 args, 2 rets)
  0009  GETTABLE  R3 = R0[K3('m_progressHelper')]
  0010  SELF      R4 = R3[K5('GetLevelByScoreForDisplay')] (self)
  0011  MOVE      R5 = R0
  0012  CALL      R3 = call(R3, 1 args, 2 rets)
  0013  GETTABLE  R4 = R0[K3('m_progressHelper')]
  0014  SELF      R5 = R4[K6('GetLevelRequiredScoreFromLevelStartByLevel')] (self)
  0015  MOVE      R6 = R0
  0016  CALL      R4 = call(R4, 1 args, 2 rets)
  0017  GETTABLE  R5 = R0[K7('m_slider')]
  0018  DIV       R6 = R4 div R2
  0019  SETTABLE  R5[K8('value')] = R6
  0020  GETTABLE  R5 = R0[K9('m_valueText')]
  0021  GETTABUP  R6 = _ENV[K11('math')]
  0022  GETTABLE  R6 = R6[K12('floor')]
  0023  ADD       R7 = K13(0.5) add R2
  0024  CALL      R6 = call(R6, 1 args, 1 rets)
  0025  LOADK     R7 = K14 '/'
  0026  MOVE      R8 = R0
  0027  CONCAT    R6 = concat(R6..R6)
  0028  SETTABLE  R5[K10('text')] = R6
  0029  GETTABLE  R5 = R0[K15('m_levelText')]
  0030  SETTABLE  R5[K10('text')] = R3
  0031  RETURN    return R0..R-1
