# DayExtraRewardActivity_View_DayExtraRewardActivityDecoration_1405.luac
; fn @DayExtraRewardActivityDecoration.lua  line 0-0 np=0 va=1 ms=2 code=24 consts=8 upvals=1 protos=6
;   K[0]='DayExtraRewardActivityDecoration'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnEnable'
;   K[4]='OnDestroy'
;   K[5]='GetModel'
;   K[6]='UpdatePerSecond'
;   K[7]='HideBubbles'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('DayExtraRewardActivityDecoration')] = R0
0002  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityDecoration')]
0003  GETTABUP  R1 = _ENV[K0('DayExtraRewardActivityDecoration')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityDecoration')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityDecoration')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnEnable')] = R1
0011  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityDecoration')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityDecoration')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('GetModel')] = R1
0017  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityDecoration')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('UpdatePerSecond')] = R1
0020  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityDecoration')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('HideBubbles')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 18-24 np=5 va=0 ms=11 code=24 consts=13 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]='m_destroyCallback'
  ;   K[5]='m_rewardContent'
  ;   K[6]='Init'
  ;   K[7]='ERewardScene'
  ;   K[8]='Other'
  ;   K[9]='m_bIsAnimatorMode'
  ;   K[10]='m_triggerEndTime'
  ;   K[11]='GetTriggerEndTime'
  ;   K[12]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-24), activityType(0-24), parent(0-24), destroyCallback(0-24), maxDisplayCount(0-24)
  0000  GETTABUP  R5 = _ENV[K1('GM')]
  0001  GETTABLE  R5 = R5[K2('ActivityManager')]
  0002  SELF      R6 = R5[K3('GetModel')] (self)
  0003  MOVE      R7 = R0
  0004  CALL      R5 = call(R5, 1 args, 2 rets)
  0005  SETTABLE  R0[K0('m_model')] = R5
  0006  SETTABLE  R0[K4('m_destroyCallback')] = R3
  0007  GETTABLE  R5 = R0[K5('m_rewardContent')]
  0008  SELF      R6 = R5[K6('Init')] (self)
  0009  SELF      R8 = R0[K3('GetModel')] (self)
  0010  CALL      R7 = call(R7, 1 args, 1 rets)
  0011  GETTABUP  R8 = _ENV[K7('ERewardScene')]
  0012  GETTABLE  R8 = R8[K8('Other')]
  0013  GETTABLE  R9 = R0[K9('m_bIsAnimatorMode')]
  0014  MOVE      R10 = R0
  0015  CALL      R5 = call(R5, 0 args, 5 rets)
  0016  SELF      R6 = R0[K3('GetModel')] (self)
  0017  CALL      R5 = call(R5, 1 args, 1 rets)
  0018  SELF      R6 = R5[K11('GetTriggerEndTime')] (self)
  0019  CALL      R5 = call(R5, 1 args, 1 rets)
  0020  SETTABLE  R0[K10('m_triggerEndTime')] = R5
  0021  SELF      R6 = R0[K12('UpdatePerSecond')] (self)
  0022  CALL      R5 = call(R5, 0 args, 1 rets)
  0023  RETURN    return R0..R-1
; ---------- proto1 [OnEnable] ----------
  ; fn ?  line 26-30 np=1 va=0 ms=3 code=7 consts=3 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]=nil
  ;   K[2]='UpdatePerSecond'
  ;   locals: self(0-7)
  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)   -> 6
  0004  SELF      R2 = R0[K2('UpdatePerSecond')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 32-37 np=1 va=0 ms=3 code=9 consts=3 upvals=1 protos=0
  ;   K[0]='IsFunction'
  ;   K[1]='m_destroyCallback'
  ;   K[2]=nil
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('IsFunction')]
  0001  GETTABLE  R2 = R0[K1('m_destroyCallback')]
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 8
  0005  GETTABLE  R1 = R0[K1('m_destroyCallback')]
  0006  CALL      R1 = call(R1, 0 args, 0 rets)
  0007  SETTABLE  R0[K1('m_destroyCallback')] = K2(nil)
  0008  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 [UpdatePerSecond] ----------
  ; fn ?  line 43-50 np=1 va=0 ms=6 code=22 consts=12 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetLeftDuration'
  ;   K[2]=0
  ;   K[3]='m_countDownText'
  ;   K[4]='text'
  ;   K[5]='GM'
  ;   K[6]='GameTextModel'
  ;   K[7]='GetText'
  ;   K[8]='countdown_finished'
  ;   K[9]='TimeUtil'
  ;   K[10]='ParseTimeDescription'
  ;   K[11]=2
  ;   upvals: _ENV
  ;   locals: self(0-22), leftDuration(4-22)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('GetLeftDuration')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  LE        if R0 le K2(0)   -> -130296
  0005  JMP       (jump)   -> 14
  0006  GETTABLE  R2 = R0[K3('m_countDownText')]
  0007  GETTABUP  R3 = _ENV[K5('GM')]
  0008  GETTABLE  R3 = R3[K6('GameTextModel')]
  0009  SELF      R4 = R3[K7('GetText')] (self)
  0010  LOADK     R5 = K8 'countdown_finished'
  0011  CALL      R3 = call(R3, 1 args, 2 rets)
  0012  SETTABLE  R2[K4('text')] = R3
  0013  JMP       (jump)   -> 21
  0014  GETTABLE  R2 = R0[K3('m_countDownText')]
  0015  GETTABUP  R3 = _ENV[K9('TimeUtil')]
  0016  GETTABLE  R3 = R3[K10('ParseTimeDescription')]
  0017  MOVE      R4 = R0
  0018  LOADK     R5 = K11 2
  0019  CALL      R3 = call(R3, 1 args, 2 rets)
  0020  SETTABLE  R2[K4('text')] = R3
  0021  RETURN    return R0..R-1
; ---------- proto5 [HideBubbles] ----------
  ; fn ?  line 53-57 np=1 va=0 ms=4 code=12 consts=4 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='IsEmptyComponent'
  ;   K[2]='m_countDownGo'
  ;   K[3]='SetActive'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('IsEmptyComponent')]
  0002  GETTABLE  R2 = R0[K2('m_countDownGo')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 11
  0006  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0007  GETTABLE  R1 = R1[K3('SetActive')]
  0008  GETTABLE  R2 = R0[K2('m_countDownGo')]
  0009  LOADBOOL  R3 = false
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  RETURN    return R0..R-1
