# UI_Window_Notice_NoticeCell_674.luac
; fn @NoticeCell.lua  line 0-0 np=0 va=1 ms=2 code=21 consts=7 upvals=1 protos=5
;   K[0]='NoticeCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='UpdatePerSecond'
;   K[4]='_UpdateDisappearTime'
;   K[5]='UpdateState'
;   K[6]='OnClicked'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('NoticeCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('NoticeCell')]
0003  GETTABUP  R1 = _ENV[K0('NoticeCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('NoticeCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('NoticeCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdatePerSecond')] = R1
0011  GETTABUP  R0 = _ENV[K0('NoticeCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('_UpdateDisappearTime')] = R1
0014  GETTABUP  R0 = _ENV[K0('NoticeCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('UpdateState')] = R1
0017  GETTABUP  R0 = _ENV[K0('NoticeCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('OnClicked')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-14 np=2 va=0 ms=6 code=17 consts=12 upvals=1 protos=0
  ;   K[0]='m_notice'
  ;   K[1]='m_titleText'
  ;   K[2]='text'
  ;   K[3]='Title'
  ;   K[4]='m_releaseTimeText'
  ;   K[5]='TimeUtil'
  ;   K[6]='ToDate'
  ;   K[7]='ReleaseTime'
  ;   K[8]='ETimeFormat'
  ;   K[9]='MDY'
  ;   K[10]='_UpdateDisappearTime'
  ;   K[11]='UpdateState'
  ;   upvals: _ENV
  ;   locals: self(0-17), notice(0-17)
  0000  SETTABLE  R0[K0('m_notice')] = R1
  0001  GETTABLE  R2 = R0[K1('m_titleText')]
  0002  GETTABLE  R3 = R1[K3('Title')]
  0003  SETTABLE  R2[K2('text')] = R3
  0004  GETTABLE  R2 = R0[K4('m_releaseTimeText')]
  0005  GETTABUP  R3 = _ENV[K5('TimeUtil')]
  0006  GETTABLE  R3 = R3[K6('ToDate')]
  0007  GETTABLE  R4 = R1[K7('ReleaseTime')]
  0008  GETTABUP  R5 = _ENV[K8('ETimeFormat')]
  0009  GETTABLE  R5 = R5[K9('MDY')]
  0010  CALL      R3 = call(R3, 1 args, 2 rets)
  0011  SETTABLE  R2[K2('text')] = R3
  0012  SELF      R3 = R0[K10('_UpdateDisappearTime')] (self)
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  SELF      R3 = R0[K11('UpdateState')] (self)
  0015  CALL      R2 = call(R2, 0 args, 1 rets)
  0016  RETURN    return R0..R-1
; ---------- proto1 [UpdatePerSecond] ----------
  ; fn ?  line 16-18 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_UpdateDisappearTime'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_UpdateDisappearTime')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto2 [_UpdateDisappearTime] ----------
  ; fn ?  line 20-27 np=1 va=0 ms=10 code=31 consts=17 upvals=1 protos=0
  ;   K[0]='m_notice'
  ;   K[1]='DisappearTime'
  ;   K[2]='GM'
  ;   K[3]='GameModel'
  ;   K[4]='GetServerTime'
  ;   K[5]='math'
  ;   K[6]='max'
  ;   K[7]=0
  ;   K[8]='TimeUtil'
  ;   K[9]='ToNearestUnit'
  ;   K[10]='<color=#F26286>'
  ;   K[11]='</color>'
  ;   K[12]='m_disappearTimeText'
  ;   K[13]='text'
  ;   K[14]='GameTextModel'
  ;   K[15]='GetText'
  ;   K[16]='mail_window_end_time'
  ;   upvals: _ENV
  ;   locals: self(0-31), delta(7-31), time(17-31), unit(17-31), msg(22-31)
  0000  GETTABLE  R1 = R0[K0('m_notice')]
  0001  GETTABLE  R1 = R1[K1('DisappearTime')]
  0002  GETTABUP  R2 = _ENV[K2('GM')]
  0003  GETTABLE  R2 = R2[K3('GameModel')]
  0004  SELF      R3 = R2[K4('GetServerTime')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  SUB       R1 = R2 sub R1
  0007  GETTABUP  R2 = _ENV[K5('math')]
  0008  GETTABLE  R2 = R2[K6('max')]
  0009  MOVE      R3 = R0
  0010  LOADK     R4 = K7 0
  0011  CALL      R2 = call(R2, 1 args, 2 rets)
  0012  MOVE      R1 = R0
  0013  GETTABUP  R2 = _ENV[K8('TimeUtil')]
  0014  GETTABLE  R2 = R2[K9('ToNearestUnit')]
  0015  MOVE      R3 = R0
  0016  CALL      R2 = call(R2, 2 args, 1 rets)
  0017  LOADK     R4 = K10 '<color=#F26286>'
  0018  MOVE      R5 = R0
  0019  MOVE      R6 = R0
  0020  LOADK     R7 = K11 '</color>'
  0021  CONCAT    R4 = concat(R4..R4)
  0022  GETTABLE  R5 = R0[K12('m_disappearTimeText')]
  0023  GETTABUP  R6 = _ENV[K2('GM')]
  0024  GETTABLE  R6 = R6[K14('GameTextModel')]
  0025  SELF      R7 = R6[K15('GetText')] (self)
  0026  LOADK     R8 = K16 'mail_window_end_time'
  0027  MOVE      R9 = R0
  0028  CALL      R6 = call(R6, 1 args, 3 rets)
  0029  SETTABLE  R5[K13('text')] = R6
  0030  RETURN    return R0..R-1
; ---------- proto3 [UpdateState] ----------
  ; fn ?  line 29-41 np=1 va=0 ms=6 code=55 consts=18 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='NoticeModel'
  ;   K[2]='GetNoticeState'
  ;   K[3]='m_notice'
  ;   K[4]='Rewards'
  ;   K[5]=nil
  ;   K[6]='SpriteUtil'
  ;   K[7]='SetImage'
  ;   K[8]='m_iconImage'
  ;   K[9]='ImageFileConfigName'
  ;   K[10]='notice_gift'
  ;   K[11]='NoticeState'
  ;   K[12]='Read'
  ;   K[13]='notice_letter_open'
  ;   K[14]='notice_letter_close'
  ;   K[15]='m_readMaskGo'
  ;   K[16]='SetActive'
  ;   K[17]='m_exclamationGo'
  ;   upvals: _ENV
  ;   locals: self(0-55), state(5-55)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('NoticeModel')]
  0002  SELF      R2 = R1[K2('GetNoticeState')] (self)
  0003  GETTABLE  R3 = R0[K3('m_notice')]
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  GETTABLE  R2 = R0[K3('m_notice')]
  0006  GETTABLE  R2 = R2[K4('Rewards')]
  0007  EQ        if R1 eq K5(nil)   -> -129778
  0008  JMP       (jump)   -> 17
  0009  GETTABUP  R2 = _ENV[K6('SpriteUtil')]
  0010  GETTABLE  R2 = R2[K7('SetImage')]
  0011  GETTABLE  R3 = R0[K8('m_iconImage')]
  0012  GETTABUP  R4 = _ENV[K9('ImageFileConfigName')]
  0013  GETTABLE  R4 = R4[K10('notice_gift')]
  0014  LOADBOOL  R5 = true
  0015  CALL      R2 = call(R2, 0 args, 3 rets)
  0016  JMP       (jump)   -> 36
  0017  GETTABUP  R2 = _ENV[K11('NoticeState')]
  0018  GETTABLE  R2 = R2[K12('Read')]
  0019  EQ        if R0 eq R2   -> -130537
  0020  JMP       (jump)   -> 29
  0021  GETTABUP  R2 = _ENV[K6('SpriteUtil')]
  0022  GETTABLE  R2 = R2[K7('SetImage')]
  0023  GETTABLE  R3 = R0[K8('m_iconImage')]
  0024  GETTABUP  R4 = _ENV[K9('ImageFileConfigName')]
  0025  GETTABLE  R4 = R4[K13('notice_letter_open')]
  0026  LOADBOOL  R5 = true
  0027  CALL      R2 = call(R2, 0 args, 3 rets)
  0028  JMP       (jump)   -> 36
  0029  GETTABUP  R2 = _ENV[K6('SpriteUtil')]
  0030  GETTABLE  R2 = R2[K7('SetImage')]
  0031  GETTABLE  R3 = R0[K8('m_iconImage')]
  0032  GETTABUP  R4 = _ENV[K9('ImageFileConfigName')]
  0033  GETTABLE  R4 = R4[K14('notice_letter_close')]
  0034  LOADBOOL  R5 = true
  0035  CALL      R2 = call(R2, 0 args, 3 rets)
  0036  GETTABLE  R2 = R0[K15('m_readMaskGo')]
  0037  SELF      R3 = R2[K16('SetActive')] (self)
  0038  GETTABUP  R4 = _ENV[K11('NoticeState')]
  0039  GETTABLE  R4 = R4[K12('Read')]
  0040  EQ        if R1 eq R4   -> -130514
  0041  JMP       (jump)   -> 43
  0042  LOADBOOL  R4 = false
  0043  LOADBOOL  R4 = true
  0044  CALL      R2 = call(R2, 0 args, 2 rets)
  0045  GETTABLE  R2 = R0[K17('m_exclamationGo')]
  0046  SELF      R3 = R2[K16('SetActive')] (self)
  0047  GETTABUP  R4 = _ENV[K11('NoticeState')]
  0048  GETTABLE  R4 = R4[K12('Read')]
  0049  EQ        if R0 eq R4   -> -130505
  0050  JMP       (jump)   -> 52
  0051  LOADBOOL  R4 = false
  0052  LOADBOOL  R4 = true
  0053  CALL      R2 = call(R2, 0 args, 2 rets)
  0054  RETURN    return R0..R-1
; ---------- proto4 [OnClicked] ----------
  ; fn ?  line 43-45 np=1 va=0 ms=5 code=8 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='NoticeContentWindow'
  ;   K[5]='m_notice'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('NoticeContentWindow')]
  0005  GETTABLE  R4 = R0[K5('m_notice')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  RETURN    return R0..R-1
