# UI_Button_UpcomingEventButton_315.luac
; fn @UpcomingEventButton.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='UpcomingEventButton'
;   K[1]='setmetatable'
;   K[2]='HudCountDownButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='UpdateContent'
;   K[6]='OnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudCountDownButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('UpcomingEventButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('UpcomingEventButton')]
0006  GETTABUP  R1 = _ENV[K0('UpcomingEventButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('UpcomingEventButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('UpcomingEventButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdateContent')] = R1
0014  GETTABUP  R0 = _ENV[K0('UpcomingEventButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnClicked')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-9 np=1 va=0 ms=5 code=17 consts=10 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='UpcomingEventModel'
  ;   K[3]='HudCountDownButton'
  ;   K[4]='Awake'
  ;   K[5]='UpdateContent'
  ;   K[6]='EventDispatcher'
  ;   K[7]='AddListener'
  ;   K[8]='EEventType'
  ;   K[9]='UpcomingEventStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  GETTABUP  R1 = _ENV[K1('GM')]
  0001  GETTABLE  R1 = R1[K2('UpcomingEventModel')]
  0002  SETTABLE  R0[K0('m_model')] = R1
  0003  GETTABUP  R1 = _ENV[K3('HudCountDownButton')]
  0004  GETTABLE  R1 = R1[K4('Awake')]
  0005  MOVE      R2 = R0
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  SELF      R2 = R0[K5('UpdateContent')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  GETTABUP  R1 = _ENV[K6('EventDispatcher')]
  0010  GETTABLE  R1 = R1[K7('AddListener')]
  0011  GETTABUP  R2 = _ENV[K8('EEventType')]
  0012  GETTABLE  R2 = R2[K9('UpcomingEventStateChanged')]
  0013  MOVE      R3 = R0
  0014  GETTABLE  R4 = R0[K5('UpdateContent')]
  0015  CALL      R1 = call(R1, 0 args, 3 rets)
  0016  RETURN    return R0..R-1
; ---------- proto1 [UpdateContent] ----------
  ; fn ?  line 11-39 np=1 va=0 ms=7 code=47 consts=17 upvals=1 protos=1
  ;   K[0]='m_model'
  ;   K[1]='HasUpcomingEvent'
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='gameObject'
  ;   K[5]='m_finishTime'
  ;   K[6]='GetLastTime'
  ;   K[7]='m_curIconLink'
  ;   K[8]='GetIconLink'
  ;   K[9]='m_iconImg'
  ;   K[10]='enabled'
  ;   K[11]=false
  ;   K[12]=nil
  ;   K[13]='LoadUrlImage'
  ;   K[14]='LoadSprite'
  ;   K[15]='UpdatePerSecond'
  ;   K[16]='m_curIconLink'
  ;   upvals: _ENV
  ;   locals: self(0-47), downloadIconLink(30-37)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('HasUpcomingEvent')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 40
  0005  GETTABUP  R1 = _ENV[K2('UIUtil')]
  0006  GETTABLE  R1 = R1[K3('SetActive')]
  0007  GETTABLE  R2 = R0[K4('gameObject')]
  0008  LOADBOOL  R3 = true
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  GETTABLE  R1 = R0[K0('m_model')]
  0011  SELF      R2 = R1[K6('GetLastTime')] (self)
  0012  CALL      R1 = call(R1, 1 args, 1 rets)
  0013  SETTABLE  R0[K5('m_finishTime')] = R1
  0014  GETTABLE  R1 = R0[K7('m_curIconLink')]
  0015  GETTABLE  R2 = R0[K0('m_model')]
  0016  SELF      R3 = R2[K8('GetIconLink')] (self)
  0017  CALL      R2 = call(R2, 1 args, 1 rets)
  0018  EQ        if R1 eq R2   -> -130538
  0019  JMP       (jump)   -> 37
  0020  GETTABLE  R1 = R0[K0('m_model')]
  0021  SELF      R2 = R1[K8('GetIconLink')] (self)
  0022  CALL      R1 = call(R1, 1 args, 1 rets)
  0023  SETTABLE  R0[K7('m_curIconLink')] = R1
  0024  GETTABLE  R1 = R0[K9('m_iconImg')]
  0025  SETTABLE  R1[K10('enabled')] = K11(false)
  0026  GETTABLE  R1 = R0[K7('m_curIconLink')]
  0027  EQ        if R1 eq K12(nil)   -> -130263
  0028  JMP       (jump)   -> 37
  0029  GETTABLE  R1 = R0[K7('m_curIconLink')]
  0030  GETTABUP  R2 = _ENV[K13('LoadUrlImage')]
  0031  SELF      R3 = R2[K14('LoadSprite')] (self)
  0032  MOVE      R4 = R0
  0033  CLOSURE   R5 = closure proto0
  0034  LOADBOOL  R6 = true
  0035  CALL      R2 = call(R2, 0 args, 4 rets)
  0036  JMP       (jump)   -> 37
  0037  SELF      R2 = R0[K15('UpdatePerSecond')] (self)
  0038  CALL      R1 = call(R1, 0 args, 1 rets)
  0039  JMP       (jump)   -> 46
  0040  GETTABUP  R1 = _ENV[K2('UIUtil')]
  0041  GETTABLE  R1 = R1[K3('SetActive')]
  0042  GETTABLE  R2 = R0[K4('gameObject')]
  0043  LOADBOOL  R3 = false
  0044  CALL      R1 = call(R1, 0 args, 2 rets)
  0045  SETTABLE  R0[K16('m_curIconLink')] = K12(nil)
  0046  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 22-28 np=2 va=0 ms=4 code=25 consts=8 upvals=3 protos=0
    ;   K[0]='m_iconImg'
    ;   K[1]='IsNull'
    ;   K[2]='m_curIconLink'
    ;   K[3]='enabled'
    ;   K[4]=true
    ;   K[5]='sprite'
    ;   K[6]='SpriteUtil'
    ;   K[7]='SetNativeSize'
    ;   upvals: self, downloadIconLink, _ENV
    ;   locals: bSuccess(0-25), sprite(0-25)
    0000  TEST      if not R0 then   -> -131070
    0001  JMP       (jump)   -> 24
    0002  TEST      if not R1 then   -> -131068
    0003  JMP       (jump)   -> 24
    0004  GETTABUP  R2 = self[K0('m_iconImg')]
    0005  TEST      if not R2 then   -> -131065
    0006  JMP       (jump)   -> 24
    0007  GETTABUP  R2 = self[K0('m_iconImg')]
    0008  SELF      R3 = R2[K1('IsNull')] (self)
    0009  CALL      R2 = call(R2, 1 args, 1 rets)
    0010  TEST      if not R2 then   -> -131059
    0011  JMP       (jump)   -> 24
    0012  GETTABUP  R2 = self[K2('m_curIconLink')]
    0013  GETUPVAL  R3 = self
    0014  EQ        if R0 eq R3   -> -130029
    0015  JMP       (jump)   -> 24
    0016  GETTABUP  R2 = self[K0('m_iconImg')]
    0017  SETTABLE  R2[K3('enabled')] = K4(true)
    0018  GETTABUP  R2 = self[K0('m_iconImg')]
    0019  SETTABLE  R2[K5('sprite')] = R1
    0020  GETTABUP  R2 = _ENV[K6('SpriteUtil')]
    0021  GETTABLE  R2 = R2[K7('SetNativeSize')]
    0022  GETTABUP  R3 = self[K0('m_iconImg')]
    0023  CALL      R2 = call(R2, 0 args, 1 rets)
    0024  RETURN    return R0..R-1
; ---------- proto2 [OnClicked] ----------
  ; fn ?  line 41-43 np=1 va=0 ms=4 code=7 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='UpcomingEventWindow'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  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('UpcomingEventWindow')]
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  RETURN    return R0..R-1
