# UI_Window_UpcomingEventWindow_444.luac
; fn @UpcomingEventWindow.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='UpcomingEventWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='BeforeOpenCheck'
;   K[5]='Init'
;   K[6]='OnUpcomingEventStateChanged'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('UpcomingEventWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('UpcomingEventWindow')]
0006  GETTABUP  R1 = _ENV[K0('UpcomingEventWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('UpcomingEventWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('BeforeOpenCheck')] = R1
0011  GETTABUP  R0 = _ENV[K0('UpcomingEventWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('UpcomingEventWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnUpcomingEventStateChanged')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 4-6 np=1 va=0 ms=3 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UpcomingEventModel'
  ;   K[2]='HasUpcomingEvent'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UpcomingEventModel')]
  0002  SELF      R2 = R1[K2('HasUpcomingEvent')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 8-32 np=1 va=0 ms=9 code=50 consts=30 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='UpcomingEventModel'
  ;   K[2]='HasUpcomingEvent'
  ;   K[3]='m_titleText'
  ;   K[4]='text'
  ;   K[5]='GetTitleText'
  ;   K[6]='m_descText'
  ;   K[7]='GetDescText'
  ;   K[8]='m_buttonText'
  ;   K[9]='GetButtonText'
  ;   K[10]='m_picImg'
  ;   K[11]='enabled'
  ;   K[12]=false
  ;   K[13]='GetPictureLink'
  ;   K[14]=nil
  ;   K[15]='LoadUrlImage'
  ;   K[16]='LoadSprite'
  ;   K[17]='LogWindowAction'
  ;   K[18]='EBIType'
  ;   K[19]='UIActionType'
  ;   K[20]='Open'
  ;   K[21]='EBIReferType'
  ;   K[22]='UserClick'
  ;   K[23]='tostring'
  ;   K[24]='GetId'
  ;   K[25]='EventDispatcher'
  ;   K[26]='AddListener'
  ;   K[27]='EEventType'
  ;   K[28]='UpcomingEventStateChanged'
  ;   K[29]='OnUpcomingEventStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-50), model(2-50)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UpcomingEventModel')]
  0002  SELF      R3 = R1[K2('HasUpcomingEvent')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 31
  0006  GETTABLE  R2 = R0[K3('m_titleText')]
  0007  SELF      R4 = R1[K5('GetTitleText')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  SETTABLE  R2[K4('text')] = R3
  0010  GETTABLE  R2 = R0[K6('m_descText')]
  0011  SELF      R4 = R1[K7('GetDescText')] (self)
  0012  CALL      R3 = call(R3, 1 args, 1 rets)
  0013  SETTABLE  R2[K4('text')] = R3
  0014  GETTABLE  R2 = R0[K8('m_buttonText')]
  0015  SELF      R4 = R1[K9('GetButtonText')] (self)
  0016  CALL      R3 = call(R3, 1 args, 1 rets)
  0017  SETTABLE  R2[K4('text')] = R3
  0018  GETTABLE  R2 = R0[K10('m_picImg')]
  0019  SETTABLE  R2[K11('enabled')] = K12(false)
  0020  SELF      R3 = R1[K13('GetPictureLink')] (self)
  0021  CALL      R2 = call(R2, 1 args, 1 rets)
  0022  EQ        if R1 eq K14(nil)   -> -129754
  0023  JMP       (jump)   -> 31
  0024  GETTABUP  R2 = _ENV[K15('LoadUrlImage')]
  0025  SELF      R3 = R2[K16('LoadSprite')] (self)
  0026  SELF      R5 = R1[K13('GetPictureLink')] (self)
  0027  CALL      R4 = call(R4, 1 args, 1 rets)
  0028  CLOSURE   R5 = closure proto0
  0029  LOADBOOL  R6 = true
  0030  CALL      R2 = call(R2, 0 args, 4 rets)
  0031  SELF      R3 = R0[K17('LogWindowAction')] (self)
  0032  GETTABUP  R4 = _ENV[K18('EBIType')]
  0033  GETTABLE  R4 = R4[K19('UIActionType')]
  0034  GETTABLE  R4 = R4[K20('Open')]
  0035  GETTABUP  R5 = _ENV[K21('EBIReferType')]
  0036  GETTABLE  R5 = R5[K22('UserClick')]
  0037  GETTABUP  R6 = _ENV[K23('tostring')]
  0038  SELF      R8 = R1[K24('GetId')] (self)
  0039  CALL      R7 = call(R7, -1 args, 1 rets)
  0040  CALL      R6 = call(R6, -1 args, -1 rets)
  0041  CALL      R2 = call(R2, 0 args, -1 rets)
  0042  GETTABUP  R2 = _ENV[K25('EventDispatcher')]
  0043  GETTABLE  R2 = R2[K26('AddListener')]
  0044  GETTABUP  R3 = _ENV[K27('EEventType')]
  0045  GETTABLE  R3 = R3[K28('UpcomingEventStateChanged')]
  0046  MOVE      R4 = R0
  0047  GETTABLE  R5 = R0[K29('OnUpcomingEventStateChanged')]
  0048  CALL      R2 = call(R2, 0 args, 3 rets)
  0049  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 18-24 np=2 va=0 ms=4 code=21 consts=7 upvals=2 protos=0
    ;   K[0]='m_picImg'
    ;   K[1]='IsNull'
    ;   K[2]='sprite'
    ;   K[3]='enabled'
    ;   K[4]=true
    ;   K[5]='SpriteUtil'
    ;   K[6]='SetNativeSize'
    ;   upvals: self, _ENV
    ;   locals: bSuccess(0-21), sprite(0-21)
    0000  TEST      if not R0 then   -> -131070
    0001  JMP       (jump)   -> 20
    0002  TEST      if not R1 then   -> -131068
    0003  JMP       (jump)   -> 20
    0004  GETTABUP  R2 = self[K0('m_picImg')]
    0005  TEST      if not R2 then   -> -131065
    0006  JMP       (jump)   -> 20
    0007  GETTABUP  R2 = self[K0('m_picImg')]
    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)   -> 20
    0012  GETTABUP  R2 = self[K0('m_picImg')]
    0013  SETTABLE  R2[K2('sprite')] = R1
    0014  GETTABUP  R2 = self[K0('m_picImg')]
    0015  SETTABLE  R2[K3('enabled')] = K4(true)
    0016  GETTABUP  R2 = _ENV[K5('SpriteUtil')]
    0017  GETTABLE  R2 = R2[K6('SetNativeSize')]
    0018  GETTABUP  R3 = self[K0('m_picImg')]
    0019  CALL      R2 = call(R2, 0 args, 1 rets)
    0020  RETURN    return R0..R-1
; ---------- proto2 [OnUpcomingEventStateChanged] ----------
  ; fn ?  line 34-38 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UpcomingEventModel'
  ;   K[2]='HasUpcomingEvent'
  ;   K[3]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UpcomingEventModel')]
  0002  SELF      R2 = R1[K2('HasUpcomingEvent')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 8
  0006  SELF      R2 = R0[K3('Close')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
