# FrameDecoActivity_View_FrameDecoActivityBoardEntry_1732.luac
; fn @FrameDecoActivityBoardEntry.lua  line 0-0 np=0 va=1 ms=3 code=53 consts=18 upvals=1 protos=13
;   K[0]='FrameDecoActivityBoardEntry'
;   K[1]='__index'
;   K[2]='Awake'
;   K[3]='Init'
;   K[4]='OnDestroy'
;   K[5]='GetModel'
;   K[6]='_AddListeners'
;   K[7]='UpdatePerSecond'
;   K[8]='OnMaskClicked'
;   K[9]='UpdateContent'
;   K[10]='GetIconArea'
;   K[11]='_UpdateRedPoint'
;   K[12]='GetEntryLoader'
;   K[13]='FrameDecoHudButton'
;   K[14]='setmetatable'
;   K[15]='HudBaseButton'
;   K[16]='Init'
;   K[17]='UpdateTextAnimation'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('FrameDecoActivityBoardEntry')] = R0
0002  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0003  GETTABUP  R1 = _ENV[K0('FrameDecoActivityBoardEntry')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Awake')] = R1
0008  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('GetModel')] = R1
0017  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('_AddListeners')] = R1
0020  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('UpdatePerSecond')] = R1
0023  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('OnMaskClicked')] = R1
0026  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('UpdateContent')] = R1
0029  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K10('GetIconArea')] = R1
0032  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0033  CLOSURE   R1 = closure proto9
0034  SETTABLE  R0[K11('_UpdateRedPoint')] = R1
0035  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBoardEntry')]
0036  CLOSURE   R1 = closure proto10
0037  SETTABLE  R0[K12('GetEntryLoader')] = R1
0038  GETTABUP  R0 = _ENV[K14('setmetatable')]
0039  NEWTABLE  R1 = {} (0 items)
0040  GETTABUP  R2 = _ENV[K15('HudBaseButton')]
0041  CALL      R0 = call(R0, 1 args, 2 rets)
0042  SETTABUP  _ENV[K13('FrameDecoHudButton')] = R0
0043  GETTABUP  R0 = _ENV[K13('FrameDecoHudButton')]
0044  GETTABUP  R1 = _ENV[K13('FrameDecoHudButton')]
0045  SETTABLE  R0[K1('__index')] = R1
0046  GETTABUP  R0 = _ENV[K13('FrameDecoHudButton')]
0047  CLOSURE   R1 = closure proto11
0048  SETTABLE  R0[K16('Init')] = R1
0049  GETTABUP  R0 = _ENV[K13('FrameDecoHudButton')]
0050  CLOSURE   R1 = closure proto12
0051  SETTABLE  R0[K17('UpdateTextAnimation')] = R1
0052  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 6-11 np=1 va=0 ms=3 code=11 consts=5 upvals=0 protos=0
  ;   K[0]='_AddListeners'
  ;   K[1]='m_model'
  ;   K[2]=nil
  ;   K[3]='m_activityDefinition'
  ;   K[4]='UpdateContent'
  ;   locals: self(0-11)
  0000  SELF      R2 = R0[K0('_AddListeners')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_model')]
  0003  EQ        if R1 eq K2(nil)   -> -130297
  0004  JMP       (jump)   -> 10
  0005  GETTABLE  R1 = R0[K3('m_activityDefinition')]
  0006  EQ        if R1 eq K2(nil)   -> -130294
  0007  JMP       (jump)   -> 10
  0008  SELF      R2 = R0[K4('UpdateContent')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 13-31 np=3 va=0 ms=8 code=39 consts=21 upvals=1 protos=0
  ;   K[0]='m_activityType'
  ;   K[1]='GetType'
  ;   K[2]='m_model'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='GetActivityDefinition'
  ;   K[5]='m_orderArea'
  ;   K[6]='m_iconArea'
  ;   K[7]='SetInBoardView'
  ;   K[8]='Init'
  ;   K[9]='m_entryLoader'
  ;   K[10]='activityType'
  ;   K[11]='eLocationType'
  ;   K[12]='EDependencyEntryLocationType'
  ;   K[13]='BoardEntry'
  ;   K[14]='EUILoaderConfigName'
  ;   K[15]='DependencyEntry'
  ;   K[16]='UpdateContent'
  ;   K[17]='UpdatePerSecond'
  ;   K[18]='gameObject'
  ;   K[19]='activeInHierarchy'
  ;   K[20]='_AddListeners'
  ;   upvals: _ENV
  ;   locals: self(0-39), model(0-39), orderArea(0-39)
  0000  SELF      R4 = R1[K1('GetType')] (self)
  0001  CALL      R3 = call(R3, 1 args, 1 rets)
  0002  SETTABLE  R0[K0('m_activityType')] = R3
  0003  SETTABLE  R0[K2('m_model')] = R1
  0004  GETTABLE  R3 = R0[K2('m_model')]
  0005  SELF      R4 = R3[K4('GetActivityDefinition')] (self)
  0006  CALL      R3 = call(R3, 1 args, 1 rets)
  0007  SETTABLE  R0[K3('m_activityDefinition')] = R3
  0008  SETTABLE  R0[K5('m_orderArea')] = R2
  0009  GETTABLE  R3 = R0[K6('m_iconArea')]
  0010  SELF      R4 = R3[K7('SetInBoardView')] (self)
  0011  CALL      R3 = call(R3, 0 args, 1 rets)
  0012  GETTABLE  R3 = R0[K6('m_iconArea')]
  0013  SELF      R4 = R3[K8('Init')] (self)
  0014  GETTABLE  R5 = R0[K0('m_activityType')]
  0015  CALL      R3 = call(R3, 0 args, 2 rets)
  0016  GETTABLE  R3 = R0[K9('m_entryLoader')]
  0017  SELF      R4 = R3[K8('Init')] (self)
  0018  MOVE      R5 = R0
  0019  NEWTABLE  R6 = {} (0 items)
  0020  GETTABLE  R7 = R0[K0('m_activityType')]
  0021  SETTABLE  R6[K10('activityType')] = R7
  0022  GETTABUP  R7 = _ENV[K12('EDependencyEntryLocationType')]
  0023  GETTABLE  R7 = R7[K13('BoardEntry')]
  0024  SETTABLE  R6[K11('eLocationType')] = R7
  0025  GETTABUP  R7 = _ENV[K14('EUILoaderConfigName')]
  0026  GETTABLE  R7 = R7[K15('DependencyEntry')]
  0027  CALL      R3 = call(R3, 0 args, 4 rets)
  0028  SELF      R4 = R0[K16('UpdateContent')] (self)
  0029  CALL      R3 = call(R3, 0 args, 1 rets)
  0030  SELF      R4 = R0[K17('UpdatePerSecond')] (self)
  0031  CALL      R3 = call(R3, 0 args, 1 rets)
  0032  GETTABLE  R3 = R0[K18('gameObject')]
  0033  GETTABLE  R3 = R3[K19('activeInHierarchy')]
  0034  TEST      if not R3 then   -> -131036
  0035  JMP       (jump)   -> 38
  0036  SELF      R4 = R0[K20('_AddListeners')] (self)
  0037  CALL      R3 = call(R3, 0 args, 1 rets)
  0038  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 33-35 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
; ---------- proto3 [GetModel] ----------
  ; fn ?  line 37-39 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
; ---------- proto4 [_AddListeners] ----------
  ; fn ?  line 41-50 np=1 va=0 ms=5 code=30 consts=9 upvals=1 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='m_bAddListener'
  ;   K[2]=true
  ;   K[3]='EventDispatcher'
  ;   K[4]='AddListener'
  ;   K[5]='StateChangedEvent'
  ;   K[6]='UpdateContent'
  ;   K[7]='UpdateRedPointEvent'
  ;   K[8]='ScoreChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-30)
  0000  GETTABLE  R1 = R0[K0('m_activityDefinition')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K1('m_bAddListener')]
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  SETTABLE  R0[K1('m_bAddListener')] = K2(true)
  0008  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0009  GETTABLE  R1 = R1[K4('AddListener')]
  0010  GETTABLE  R2 = R0[K0('m_activityDefinition')]
  0011  GETTABLE  R2 = R2[K5('StateChangedEvent')]
  0012  MOVE      R3 = R0
  0013  GETTABLE  R4 = R0[K6('UpdateContent')]
  0014  CALL      R1 = call(R1, 0 args, 3 rets)
  0015  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0016  GETTABLE  R1 = R1[K4('AddListener')]
  0017  GETTABLE  R2 = R0[K0('m_activityDefinition')]
  0018  GETTABLE  R2 = R2[K7('UpdateRedPointEvent')]
  0019  MOVE      R3 = R0
  0020  GETTABLE  R4 = R0[K6('UpdateContent')]
  0021  CALL      R1 = call(R1, 0 args, 3 rets)
  0022  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0023  GETTABLE  R1 = R1[K4('AddListener')]
  0024  GETTABLE  R2 = R0[K0('m_activityDefinition')]
  0025  GETTABLE  R2 = R2[K8('ScoreChangedEvent')]
  0026  MOVE      R3 = R0
  0027  GETTABLE  R4 = R0[K6('UpdateContent')]
  0028  CALL      R1 = call(R1, 0 args, 3 rets)
  0029  RETURN    return R0..R-1
; ---------- proto5 [UpdatePerSecond] ----------
  ; fn ?  line 52-58 np=1 va=0 ms=9 code=27 consts=14 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetNextStateTime'
  ;   K[2]=nil
  ;   K[3]='math'
  ;   K[4]='max'
  ;   K[5]=0
  ;   K[6]='GM'
  ;   K[7]='GameModel'
  ;   K[8]='GetServerTime'
  ;   K[9]='m_countDownText'
  ;   K[10]='text'
  ;   K[11]='TimeUtil'
  ;   K[12]='ParseTimeDescription'
  ;   K[13]=2
  ;   upvals: _ENV
  ;   locals: self(0-27), nextStateTime(6-27), delta(17-26)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K1('GetNextStateTime')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  EQ        if R1 eq K2(nil)   -> -130294
  0007  JMP       (jump)   -> 26
  0008  GETTABUP  R2 = _ENV[K3('math')]
  0009  GETTABLE  R2 = R2[K4('max')]
  0010  LOADK     R3 = K5 0
  0011  GETTABUP  R4 = _ENV[K6('GM')]
  0012  GETTABLE  R4 = R4[K7('GameModel')]
  0013  SELF      R5 = R4[K8('GetServerTime')] (self)
  0014  CALL      R4 = call(R4, 1 args, 1 rets)
  0015  SUB       R4 = R4 sub R1
  0016  CALL      R2 = call(R2, 1 args, 2 rets)
  0017  GETTABLE  R3 = R0[K9('m_countDownText')]
  0018  GETTABUP  R4 = _ENV[K11('TimeUtil')]
  0019  GETTABLE  R4 = R4[K12('ParseTimeDescription')]
  0020  MOVE      R5 = R0
  0021  LOADK     R6 = K13 2
  0022  LOADBOOL  R7 = false
  0023  LOADBOOL  R8 = false
  0024  CALL      R4 = call(R4, 1 args, 4 rets)
  0025  SETTABLE  R3[K10('text')] = R4
  0026  RETURN    return R0..R-1
; ---------- proto6 [OnMaskClicked] ----------
  ; fn ?  line 60-62 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='OnEntryClicked'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('OnEntryClicked')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto7 [UpdateContent] ----------
  ; fn ?  line 64-75 np=1 va=0 ms=7 code=26 consts=12 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetRewardProgressInfo'
  ;   K[2]=nil
  ;   K[3]=0
  ;   K[4]='m_progressSlider'
  ;   K[5]='value'
  ;   K[6]='m_progressText'
  ;   K[7]='text'
  ;   K[8]='/'
  ;   K[9]=1
  ;   K[10]=''
  ;   K[11]='_UpdateRedPoint'
  ;   locals: self(0-26), cur(3-26), target(3-26)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetRewardProgressInfo')] (self)
  0002  CALL      R1 = call(R1, 2 args, 1 rets)
  0003  EQ        if R1 eq K2(nil)   -> -130297
  0004  JMP       (jump)   -> 19
  0005  EQ        if R1 eq K2(nil)   -> -129783
  0006  JMP       (jump)   -> 19
  0007  LT        if R0 lt R2   -> 1547
  0008  JMP       (jump)   -> 19
  0009  GETTABLE  R3 = R0[K4('m_progressSlider')]
  0010  DIV       R4 = R2 div R1
  0011  SETTABLE  R3[K5('value')] = R4
  0012  GETTABLE  R3 = R0[K6('m_progressText')]
  0013  MOVE      R4 = R0
  0014  LOADK     R5 = K8 '/'
  0015  MOVE      R6 = R0
  0016  CONCAT    R4 = concat(R4..R4)
  0017  SETTABLE  R3[K7('text')] = R4
  0018  JMP       (jump)   -> 23
  0019  GETTABLE  R3 = R0[K4('m_progressSlider')]
  0020  SETTABLE  R3[K5('value')] = K9(1)
  0021  GETTABLE  R3 = R0[K6('m_progressText')]
  0022  SETTABLE  R3[K7('text')] = K10('')
  0023  SELF      R4 = R0[K11('_UpdateRedPoint')] (self)
  0024  CALL      R3 = call(R3, 0 args, 1 rets)
  0025  RETURN    return R0..R-1
; ---------- proto8 [GetIconArea] ----------
  ; fn ?  line 77-79 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
; ---------- proto9 [_UpdateRedPoint] ----------
  ; fn ?  line 81-89 np=1 va=0 ms=7 code=18 consts=7 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='IsActivityOpen'
  ;   K[2]='GetCurrentStage'
  ;   K[3]='CanClaimRewardsInStage'
  ;   K[4]='UIUtil'
  ;   K[5]='SetActive'
  ;   K[6]='m_exclamationGo'
  ;   upvals: _ENV
  ;   locals: self(0-18), model(1-18), bShouldShowRedPoint(2-18), stage(8-12)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  LOADBOOL  R2 = false
  0002  SELF      R4 = R1[K1('IsActivityOpen')] (self)
  0003  CALL      R3 = call(R3, 1 args, 1 rets)
  0004  TEST      if not R3 then   -> -131066
  0005  JMP       (jump)   -> 12
  0006  SELF      R4 = R1[K2('GetCurrentStage')] (self)
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  SELF      R5 = R1[K3('CanClaimRewardsInStage')] (self)
  0009  MOVE      R6 = R0
  0010  CALL      R4 = call(R4, 1 args, 2 rets)
  0011  MOVE      R2 = R0
  0012  GETTABUP  R3 = _ENV[K4('UIUtil')]
  0013  GETTABLE  R3 = R3[K5('SetActive')]
  0014  GETTABLE  R4 = R0[K6('m_exclamationGo')]
  0015  MOVE      R5 = R0
  0016  CALL      R3 = call(R3, 0 args, 2 rets)
  0017  RETURN    return R0..R-1
; ---------- proto10 [GetEntryLoader] ----------
  ; fn ?  line 91-93 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_entryLoader'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_entryLoader')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto11 [Init] ----------
  ; fn ?  line 99-101 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_activityType'
  ;   locals: self(0-2), activityType(0-2)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  RETURN    return R0..R-1
; ---------- proto12 [UpdateTextAnimation] ----------
  ; fn ?  line 103-107 np=5 va=0 ms=8 code=9 consts=5 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='DispatchEvent'
  ;   K[2]='EEventType'
  ;   K[3]='ActivityTokenFlyAnimEnd'
  ;   K[4]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-9), checkType(0-9), valueChange(0-9), isMiddleStep(0-9), bEndStep(0-9)
  0000  TEST      if not R4 then   -> -131070
  0001  JMP       (jump)   -> 8
  0002  GETTABUP  R5 = _ENV[K0('EventDispatcher')]
  0003  GETTABLE  R5 = R5[K1('DispatchEvent')]
  0004  GETTABUP  R6 = _ENV[K2('EEventType')]
  0005  GETTABLE  R6 = R6[K3('ActivityTokenFlyAnimEnd')]
  0006  GETTABLE  R7 = R0[K4('m_activityType')]
  0007  CALL      R5 = call(R5, 0 args, 2 rets)
  0008  RETURN    return R0..R-1
