# FrameDecoActivity_View_FrameDecoActivityEntry_1730.luac
; fn @FrameDecoActivityEntry.lua  line 0-0 np=0 va=1 ms=3 code=33 consts=12 upvals=1 protos=8
;   K[0]='FrameDecoActivityEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='_TryAddListeners'
;   K[7]='GetModel'
;   K[8]='_UpdateRedPoint'
;   K[9]='UpdatePerSecond'
;   K[10]='OnBtnClicked'
;   K[11]='IconScaleAnimation'
;   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('FrameDecoActivityEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('FrameDecoActivityEntry')]
0006  GETTABUP  R1 = _ENV[K0('FrameDecoActivityEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('FrameDecoActivityEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('FrameDecoActivityEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('FrameDecoActivityEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_TryAddListeners')] = R1
0017  GETTABUP  R0 = _ENV[K0('FrameDecoActivityEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('GetModel')] = R1
0020  GETTABUP  R0 = _ENV[K0('FrameDecoActivityEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_UpdateRedPoint')] = R1
0023  GETTABUP  R0 = _ENV[K0('FrameDecoActivityEntry')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('UpdatePerSecond')] = R1
0026  GETTABUP  R0 = _ENV[K0('FrameDecoActivityEntry')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('OnBtnClicked')] = R1
0029  GETTABUP  R0 = _ENV[K0('FrameDecoActivityEntry')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('IconScaleAnimation')] = R1
0032  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 9-15 np=1 va=0 ms=3 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='Awake'
  ;   K[2]='_TryAddListeners'
  ;   K[3]='m_model'
  ;   K[4]=nil
  ;   K[5]='_UpdateRedPoint'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  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('_TryAddListeners')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  GETTABLE  R1 = R0[K3('m_model')]
  0007  EQ        if R1 eq K4(nil)   -> -130291
  0008  JMP       (jump)   -> 11
  0009  SELF      R2 = R0[K5('_UpdateRedPoint')] (self)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 17-27 np=2 va=0 ms=4 code=19 consts=9 upvals=0 protos=0
  ;   K[0]=nil
  ;   K[1]='m_model'
  ;   K[2]='m_activityType'
  ;   K[3]='GetType'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='GetActivityDefinition'
  ;   K[6]='UpdatePerSecond'
  ;   K[7]='_UpdateRedPoint'
  ;   K[8]='_TryAddListeners'
  ;   locals: self(0-19), model(0-19)
  0000  EQ        if R0 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 3
  0002  RETURN    return R0..R-1
  0003  SETTABLE  R0[K1('m_model')] = R1
  0004  GETTABLE  R2 = R0[K1('m_model')]
  0005  SELF      R3 = R2[K3('GetType')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  SETTABLE  R0[K2('m_activityType')] = R2
  0008  GETTABLE  R2 = R0[K1('m_model')]
  0009  SELF      R3 = R2[K5('GetActivityDefinition')] (self)
  0010  CALL      R2 = call(R2, 1 args, 1 rets)
  0011  SETTABLE  R0[K4('m_activityDefinition')] = R2
  0012  SELF      R3 = R0[K6('UpdatePerSecond')] (self)
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  SELF      R3 = R0[K7('_UpdateRedPoint')] (self)
  0015  CALL      R2 = call(R2, 0 args, 1 rets)
  0016  SELF      R3 = R0[K8('_TryAddListeners')] (self)
  0017  CALL      R2 = call(R2, 0 args, 1 rets)
  0018  RETURN    return R0..R-1
; ---------- proto2 [_TryAddListeners] ----------
  ; fn ?  line 29-37 np=1 va=0 ms=6 code=26 consts=10 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]='UpdateRedPointEvent'
  ;   K[8]='_UpdateRedPoint'
  ;   K[9]='ScoreChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-26), model(2-26)
  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('UpdateRedPointEvent')]
  0014  MOVE      R4 = R0
  0015  GETTABLE  R5 = R0[K8('_UpdateRedPoint')]
  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[K8('_UpdateRedPoint')]
  0024  CALL      R2 = call(R2, 0 args, 3 rets)
  0025  RETURN    return R0..R-1
; ---------- proto3 [GetModel] ----------
  ; fn ?  line 39-41 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 [_UpdateRedPoint] ----------
  ; fn ?  line 43-51 np=1 va=0 ms=7 code=19 consts=7 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='IsActivityOpen'
  ;   K[2]='GetCurrentStage'
  ;   K[3]='CanClaimRewardsInStage'
  ;   K[4]='UIUtil'
  ;   K[5]='SetActive'
  ;   K[6]='m_exclamationGo'
  ;   upvals: _ENV
  ;   locals: self(0-19), model(2-19), bShouldShowRedPoint(3-19), stage(9-13)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  LOADBOOL  R2 = false
  0003  SELF      R4 = R1[K1('IsActivityOpen')] (self)
  0004  CALL      R3 = call(R3, 1 args, 1 rets)
  0005  TEST      if not R3 then   -> -131065
  0006  JMP       (jump)   -> 13
  0007  SELF      R4 = R1[K2('GetCurrentStage')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  SELF      R5 = R1[K3('CanClaimRewardsInStage')] (self)
  0010  MOVE      R6 = R0
  0011  CALL      R4 = call(R4, 1 args, 2 rets)
  0012  MOVE      R2 = R0
  0013  GETTABUP  R3 = _ENV[K4('UIUtil')]
  0014  GETTABLE  R3 = R3[K5('SetActive')]
  0015  GETTABLE  R4 = R0[K6('m_exclamationGo')]
  0016  MOVE      R5 = R0
  0017  CALL      R3 = call(R3, 0 args, 2 rets)
  0018  RETURN    return R0..R-1
; ---------- proto5 [UpdatePerSecond] ----------
  ; fn ?  line 53-67 np=1 va=0 ms=10 code=48 consts=21 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   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]='math'
  ;   K[14]='max'
  ;   K[15]=0
  ;   K[16]='GameModel'
  ;   K[17]='GetServerTime'
  ;   K[18]='TimeUtil'
  ;   K[19]='ParseTimeDescription'
  ;   K[20]=2
  ;   upvals: _ENV
  ;   locals: self(0-48), model(2-48), nextStateTime(7-48), delta(38-47)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R0 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  SELF      R3 = R1[K2('GetNextStateTime')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  SELF      R4 = R1[K3('GetState')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  GETTABUP  R4 = _ENV[K4('ActivityState')]
  0010  GETTABLE  R4 = R4[K5('Ended')]
  0011  EQ        if R1 eq R4   -> -129519
  0012  JMP       (jump)   -> 19
  0013  SELF      R4 = R1[K3('GetState')] (self)
  0014  CALL      R3 = call(R3, 1 args, 1 rets)
  0015  GETTABUP  R4 = _ENV[K4('ActivityState')]
  0016  GETTABLE  R4 = R4[K6('Released')]
  0017  EQ        if R0 eq R4   -> -129513
  0018  JMP       (jump)   -> 27
  0019  GETTABLE  R3 = R0[K7('m_countDownText')]
  0020  GETTABUP  R4 = _ENV[K9('GM')]
  0021  GETTABLE  R4 = R4[K10('GameTextModel')]
  0022  SELF      R5 = R4[K11('GetText')] (self)
  0023  LOADK     R6 = K12 'countdown_finished'
  0024  CALL      R4 = call(R4, 1 args, 2 rets)
  0025  SETTABLE  R3[K8('text')] = R4
  0026  JMP       (jump)   -> 47
  0027  EQ        if R1 eq K1(nil)   -> -129762
  0028  JMP       (jump)   -> 47
  0029  GETTABUP  R3 = _ENV[K13('math')]
  0030  GETTABLE  R3 = R3[K14('max')]
  0031  LOADK     R4 = K15 0
  0032  GETTABUP  R5 = _ENV[K9('GM')]
  0033  GETTABLE  R5 = R5[K16('GameModel')]
  0034  SELF      R6 = R5[K17('GetServerTime')] (self)
  0035  CALL      R5 = call(R5, 1 args, 1 rets)
  0036  SUB       R5 = R5 sub R2
  0037  CALL      R3 = call(R3, 1 args, 2 rets)
  0038  GETTABLE  R4 = R0[K7('m_countDownText')]
  0039  GETTABUP  R5 = _ENV[K18('TimeUtil')]
  0040  GETTABLE  R5 = R5[K19('ParseTimeDescription')]
  0041  MOVE      R6 = R0
  0042  LOADK     R7 = K20 2
  0043  LOADBOOL  R8 = false
  0044  LOADBOOL  R9 = false
  0045  CALL      R5 = call(R5, 1 args, 4 rets)
  0046  SETTABLE  R4[K8('text')] = R5
  0047  RETURN    return R0..R-1
; ---------- proto6 [OnBtnClicked] ----------
  ; fn ?  line 69-71 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 [IconScaleAnimation] ----------
  ; fn ?  line 73-80 np=2 va=0 ms=5 code=19 consts=11 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='IconScaleAnimation'
  ;   K[2]='GM'
  ;   K[3]='AudioModel'
  ;   K[4]='PlayEffectWithFrameLimit'
  ;   K[5]='AudioFileConfigName'
  ;   K[6]='SfxRewardCrush'
  ;   K[7]='PlatformInterface'
  ;   K[8]='Vibrate'
  ;   K[9]='EVibrationType'
  ;   K[10]='Light'
  ;   upvals: _ENV
  ;   locals: self(0-19), needEffect(0-19)
  0000  GETTABUP  R2 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R2 = R2[K1('IconScaleAnimation')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  TEST      if not R1 then   -> -131065
  0006  JMP       (jump)   -> 18
  0007  GETTABUP  R2 = _ENV[K2('GM')]
  0008  GETTABLE  R2 = R2[K3('AudioModel')]
  0009  SELF      R3 = R2[K4('PlayEffectWithFrameLimit')] (self)
  0010  GETTABUP  R4 = _ENV[K5('AudioFileConfigName')]
  0011  GETTABLE  R4 = R4[K6('SfxRewardCrush')]
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  GETTABUP  R2 = _ENV[K7('PlatformInterface')]
  0014  GETTABLE  R2 = R2[K8('Vibrate')]
  0015  GETTABUP  R3 = _ENV[K9('EVibrationType')]
  0016  GETTABLE  R3 = R3[K10('Light')]
  0017  CALL      R2 = call(R2, 0 args, 1 rets)
  0018  RETURN    return R0..R-1
