# DeliveryProgress_View_DeliveryProgressEntry_1494.luac
; fn @DeliveryProgressEntry.lua  line 0-0 np=0 va=1 ms=3 code=36 consts=13 upvals=1 protos=9
;   K[0]='DeliveryProgressEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='GetModel'
;   K[7]='_TryAddListeners'
;   K[8]='_InitModelData'
;   K[9]='UpdatePerSecond'
;   K[10]='OnBtnClicked'
;   K[11]='_OnStateChanged'
;   K[12]='_UpdateRedPoint'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudGeneralButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DeliveryProgressEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0006  GETTABUP  R1 = _ENV[K0('DeliveryProgressEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('GetModel')] = R1
0017  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('_TryAddListeners')] = R1
0020  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_InitModelData')] = R1
0023  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('UpdatePerSecond')] = R1
0026  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('OnBtnClicked')] = R1
0029  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('_OnStateChanged')] = R1
0032  GETTABUP  R0 = _ENV[K0('DeliveryProgressEntry')]
0033  CLOSURE   R1 = closure proto8
0034  SETTABLE  R0[K12('_UpdateRedPoint')] = R1
0035  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 10-15 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='Awake'
  ;   K[2]='_InitModelData'
  ;   K[3]='_TryAddListeners'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_InitModelData')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SELF      R2 = R0[K3('_TryAddListeners')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 18-27 np=2 va=0 ms=4 code=16 consts=8 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_activityType'
  ;   K[2]='GetType'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='GetActivityDefinition'
  ;   K[5]='UpdatePerSecond'
  ;   K[6]='_InitModelData'
  ;   K[7]='_TryAddListeners'
  ;   locals: self(0-16), model(0-16)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R2 = R0[K0('m_model')]
  0002  SELF      R3 = R2[K2('GetType')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SETTABLE  R0[K1('m_activityType')] = R2
  0005  GETTABLE  R2 = R0[K0('m_model')]
  0006  SELF      R3 = R2[K4('GetActivityDefinition')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  SETTABLE  R0[K3('m_activityDefinition')] = R2
  0009  SELF      R3 = R0[K5('UpdatePerSecond')] (self)
  0010  CALL      R2 = call(R2, 0 args, 1 rets)
  0011  SELF      R3 = R0[K6('_InitModelData')] (self)
  0012  CALL      R2 = call(R2, 0 args, 1 rets)
  0013  SELF      R3 = R0[K7('_TryAddListeners')] (self)
  0014  CALL      R2 = call(R2, 0 args, 1 rets)
  0015  RETURN    return R0..R-1
; ---------- proto2 [GetModel] ----------
  ; fn ?  line 29-31 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 33-43 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 [_InitModelData] ----------
  ; fn ?  line 45-50 np=1 va=0 ms=3 code=7 consts=3 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='_UpdateRedPoint'
  ;   locals: self(0-7)
  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  SELF      R2 = R0[K2('_UpdateRedPoint')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto5 [UpdatePerSecond] ----------
  ; fn ?  line 52-65 np=1 va=0 ms=9 code=46 consts=18 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetNextStateTime'
  ;   K[3]='GetState'
  ;   K[4]='ActivityState'
  ;   K[5]='Ended'
  ;   K[6]='Released'
  ;   K[7]='m_countDownText'
  ;   K[8]='text'
  ;   K[9]='GM'
  ;   K[10]='GameTextModel'
  ;   K[11]='GetText'
  ;   K[12]='countdown_finished'
  ;   K[13]='GameModel'
  ;   K[14]='GetServerTime'
  ;   K[15]='TimeUtil'
  ;   K[16]='ParseTimeDescription'
  ;   K[17]=2
  ;   upvals: _ENV
  ;   locals: self(0-46), nextStateTime(7-46), delta(36-45)
  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[K0('m_model')]
  0008  SELF      R3 = R2[K3('GetState')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  GETTABUP  R3 = _ENV[K4('ActivityState')]
  0011  GETTABLE  R3 = R3[K5('Ended')]
  0012  EQ        if R1 eq R3   -> -130031
  0013  JMP       (jump)   -> 21
  0014  GETTABLE  R2 = R0[K0('m_model')]
  0015  SELF      R3 = R2[K3('GetState')] (self)
  0016  CALL      R2 = call(R2, 1 args, 1 rets)
  0017  GETTABUP  R3 = _ENV[K4('ActivityState')]
  0018  GETTABLE  R3 = R3[K6('Released')]
  0019  EQ        if R0 eq R3   -> -130024
  0020  JMP       (jump)   -> 29
  0021  GETTABLE  R2 = R0[K7('m_countDownText')]
  0022  GETTABUP  R3 = _ENV[K9('GM')]
  0023  GETTABLE  R3 = R3[K10('GameTextModel')]
  0024  SELF      R4 = R3[K11('GetText')] (self)
  0025  LOADK     R5 = K12 'countdown_finished'
  0026  CALL      R3 = call(R3, 1 args, 2 rets)
  0027  SETTABLE  R2[K8('text')] = R3
  0028  JMP       (jump)   -> 45
  0029  EQ        if R1 eq K1(nil)   -> -130272
  0030  JMP       (jump)   -> 45
  0031  GETTABUP  R2 = _ENV[K9('GM')]
  0032  GETTABLE  R2 = R2[K13('GameModel')]
  0033  SELF      R3 = R2[K14('GetServerTime')] (self)
  0034  CALL      R2 = call(R2, 1 args, 1 rets)
  0035  SUB       R2 = R2 sub R1
  0036  GETTABLE  R3 = R0[K7('m_countDownText')]
  0037  GETTABUP  R4 = _ENV[K15('TimeUtil')]
  0038  GETTABLE  R4 = R4[K16('ParseTimeDescription')]
  0039  MOVE      R5 = R0
  0040  LOADK     R6 = K17 2
  0041  LOADBOOL  R7 = false
  0042  LOADBOOL  R8 = false
  0043  CALL      R4 = call(R4, 1 args, 4 rets)
  0044  SETTABLE  R3[K8('text')] = R4
  0045  RETURN    return R0..R-1
; ---------- proto6 [OnBtnClicked] ----------
  ; fn ?  line 67-69 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
; ---------- proto7 [_OnStateChanged] ----------
  ; fn ?  line 71-74 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
; ---------- proto8 [_UpdateRedPoint] ----------
  ; fn ?  line 76-81 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
