# UI_Window_GeneralMsgWindow_431.luac
; fn @GeneralMsgWindow.lua  line 0-0 np=0 va=1 ms=3 code=50 consts=19 upvals=1 protos=6
;   K[0]='GeneralMsgWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='Open'
;   K[5]='GeneralMsgWindow'
;   K[6]='Init'
;   K[7]='_OnButtonClicked'
;   K[8]='OnCloseFinish'
;   K[9]='SystemGeneralMsgWindow'
;   K[10]='sortingOrder'
;   K[11]='ESpecialViewSortingOrder'
;   K[12]='SystemGeneralWindow'
;   K[13]='ResourceDownloadWindow'
;   K[14]='DataConflictWindow'
;   K[15]=1
;   K[16]='BeforeOpenCheck'
;   K[17]='ResourceDownloadWindow'
;   K[18]='Init'
;   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('GeneralMsgWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('GeneralMsgWindow')]
0006  GETTABUP  R1 = _ENV[K0('GeneralMsgWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('GeneralMsgWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Open')] = R1
0011  GETTABUP  R0 = _ENV[K5('GeneralMsgWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K6('Init')] = R1
0014  GETTABUP  R0 = _ENV[K5('GeneralMsgWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K7('_OnButtonClicked')] = R1
0017  GETTABUP  R0 = _ENV[K5('GeneralMsgWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K8('OnCloseFinish')] = R1
0020  GETTABUP  R0 = _ENV[K1('setmetatable')]
0021  NEWTABLE  R1 = {} (0 items)
0022  GETTABUP  R2 = _ENV[K11('ESpecialViewSortingOrder')]
0023  GETTABLE  R2 = R2[K12('SystemGeneralWindow')]
0024  SETTABLE  R1[K10('sortingOrder')] = R2
0025  GETTABUP  R2 = _ENV[K5('GeneralMsgWindow')]
0026  CALL      R0 = call(R0, 1 args, 2 rets)
0027  SETTABUP  _ENV[K9('SystemGeneralMsgWindow')] = R0
0028  GETTABUP  R0 = _ENV[K9('SystemGeneralMsgWindow')]
0029  GETTABUP  R1 = _ENV[K9('SystemGeneralMsgWindow')]
0030  SETTABLE  R0[K3('__index')] = R1
0031  GETTABUP  R0 = _ENV[K1('setmetatable')]
0032  NEWTABLE  R1 = {} (0 items)
0033  GETTABUP  R2 = _ENV[K11('ESpecialViewSortingOrder')]
0034  GETTABLE  R2 = R2[K14('DataConflictWindow')]
0035  SUB       R2 = K15(1) sub R2
0036  SETTABLE  R1[K10('sortingOrder')] = R2
0037  GETTABUP  R2 = _ENV[K5('GeneralMsgWindow')]
0038  CALL      R0 = call(R0, 1 args, 2 rets)
0039  SETTABUP  _ENV[K13('ResourceDownloadWindow')] = R0
0040  GETTABUP  R0 = _ENV[K13('ResourceDownloadWindow')]
0041  GETTABUP  R1 = _ENV[K13('ResourceDownloadWindow')]
0042  SETTABLE  R0[K3('__index')] = R1
0043  GETTABUP  R0 = _ENV[K13('ResourceDownloadWindow')]
0044  CLOSURE   R1 = closure proto4
0045  SETTABLE  R0[K16('BeforeOpenCheck')] = R1
0046  GETTABUP  R0 = _ENV[K17('ResourceDownloadWindow')]
0047  CLOSURE   R1 = closure proto5
0048  SETTABLE  R0[K18('Init')] = R1
0049  RETURN    return R0..R-1
; ---------- proto0 [Open] ----------
  ; fn ?  line 13-15 np=7 va=0 ms=17 code=14 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='GeneralMsgWindow'
  ;   upvals: _ENV
  ;   locals: titleText(0-14), descriptionText(0-14), buttonText(0-14), buttonCallback(0-14), closeCallback(0-14), withCloseButton(0-14), canCloseByChangeMode(0-14)
  0000  GETTABUP  R7 = _ENV[K0('GM')]
  0001  GETTABLE  R7 = R7[K1('UIManager')]
  0002  SELF      R8 = R7[K2('OpenView')] (self)
  0003  GETTABUP  R9 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R9 = R9[K4('GeneralMsgWindow')]
  0005  MOVE      R10 = R0
  0006  MOVE      R11 = R0
  0007  MOVE      R12 = R0
  0008  MOVE      R13 = R0
  0009  MOVE      R14 = R0
  0010  MOVE      R15 = R0
  0011  MOVE      R16 = R0
  0012  CALL      R7 = call(R7, 0 args, 9 rets)
  0013  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 17-47 np=8 va=0 ms=14 code=47 consts=18 upvals=0 protos=1
  ;   K[0]='m_buttonCallback'
  ;   K[1]='m_closeCallback'
  ;   K[2]='m_titleText'
  ;   K[3]='text'
  ;   K[4]='m_descText'
  ;   K[5]='preferredHeight'
  ;   K[6]='transform'
  ;   K[7]='sizeDelta'
  ;   K[8]='y'
  ;   K[9]='m_contentRect'
  ;   K[10]='m_button'
  ;   K[11]='Init'
  ;   K[12]='m_closeBtnGo'
  ;   K[13]='SetActive'
  ;   K[14]='canCloseByAndroidBack'
  ;   K[15]='canClickWindowMask'
  ;   K[16]=nil
  ;   K[17]='canCloseByChangeGameMode'
  ;   locals: self(0-47), titleText(0-47), descriptionText(0-47), buttonText(0-47), buttonCallback(0-47), closeCallback(0-47), withCloseButton(0-47), canCloseByChangeMode(0-47), preferredHeight(8-47), defaultTextSizeDelta(11-47), defaultSizeDelta(16-27)
  0000  SETTABLE  R0[K0('m_buttonCallback')] = R4
  0001  SETTABLE  R0[K1('m_closeCallback')] = R5
  0002  GETTABLE  R8 = R0[K2('m_titleText')]
  0003  SETTABLE  R8[K3('text')] = R1
  0004  GETTABLE  R8 = R0[K4('m_descText')]
  0005  SETTABLE  R8[K3('text')] = R2
  0006  GETTABLE  R8 = R0[K4('m_descText')]
  0007  GETTABLE  R8 = R8[K5('preferredHeight')]
  0008  GETTABLE  R9 = R0[K4('m_descText')]
  0009  GETTABLE  R9 = R9[K6('transform')]
  0010  GETTABLE  R9 = R9[K7('sizeDelta')]
  0011  GETTABLE  R10 = R9[K8('y')]
  0012  LT        if R0 lt R8   -> -125930
  0013  JMP       (jump)   -> 27
  0014  GETTABLE  R10 = R0[K9('m_contentRect')]
  0015  GETTABLE  R10 = R10[K7('sizeDelta')]
  0016  GETTABLE  R11 = R10[K8('y')]
  0017  ADD       R11 = R8 add R11
  0018  GETTABLE  R12 = R9[K8('y')]
  0019  SUB       R11 = R12 sub R11
  0020  SETTABLE  R10[K8('y')] = R11
  0021  GETTABLE  R11 = R0[K9('m_contentRect')]
  0022  SETTABLE  R11[K7('sizeDelta')] = R10
  0023  SETTABLE  R9[K8('y')] = R8
  0024  GETTABLE  R11 = R0[K4('m_descText')]
  0025  GETTABLE  R11 = R11[K6('transform')]
  0026  SETTABLE  R11[K7('sizeDelta')] = R9
  0027  GETTABLE  R10 = R0[K10('m_button')]
  0028  SELF      R11 = R10[K11('Init')] (self)
  0029  MOVE      R12 = R0
  0030  CLOSURE   R13 = closure proto0
  0031  CALL      R10 = call(R10, 0 args, 3 rets)
  0032  TEST      if not R6 then   -> -131037
  0033  JMP       (jump)   -> 35
  0034  LOADBOOL  R6 = false
  0035  GETTABLE  R10 = R0[K12('m_closeBtnGo')]
  0036  SELF      R11 = R10[K13('SetActive')] (self)
  0037  MOVE      R12 = R0
  0038  CALL      R10 = call(R10, 0 args, 2 rets)
  0039  SETTABLE  R0[K14('canCloseByAndroidBack')] = R6
  0040  SETTABLE  R0[K15('canClickWindowMask')] = R6
  0041  EQ        if R1 eq K16(nil)   -> -127173
  0042  JMP       (jump)   -> 45
  0043  SETTABLE  R0[K17('canCloseByChangeGameMode')] = R7
  0044  JMP       (jump)   -> 46
  0045  SETTABLE  R0[K17('canCloseByChangeGameMode')] = R6
  0046  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 35-35 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='_OnButtonClicked'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('_OnButtonClicked')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto2 [_OnButtonClicked] ----------
  ; fn ?  line 49-55 np=1 va=0 ms=3 code=8 consts=3 upvals=0 protos=0
  ;   K[0]='Close'
  ;   K[1]='m_buttonCallback'
  ;   K[2]=nil
  ;   locals: self(0-8)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_buttonCallback')]
  0003  EQ        if R1 eq K2(nil)   -> -130297
  0004  JMP       (jump)   -> 7
  0005  GETTABLE  R1 = R0[K1('m_buttonCallback')]
  0006  CALL      R1 = call(R1, 0 args, 0 rets)
  0007  RETURN    return R0..R-1
; ---------- proto3 [OnCloseFinish] ----------
  ; fn ?  line 57-63 np=1 va=0 ms=3 code=10 consts=4 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseFinish'
  ;   K[2]='m_closeCallback'
  ;   K[3]=nil
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseFinish')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_closeCallback')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 9
  0007  GETTABLE  R1 = R0[K2('m_closeCallback')]
  0008  CALL      R1 = call(R1, 0 args, 0 rets)
  0009  RETURN    return R0..R-1
; ---------- proto4 [BeforeOpenCheck] ----------
  ; fn ?  line 76-79 np=1 va=0 ms=4 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='GetOpenedViewByName'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='ResourceDownloadWindow'
  ;   K[5]=nil
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('GetOpenedViewByName')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('ResourceDownloadWindow')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  EQ        if R1 eq K5(nil)   -> -130291
  0007  JMP       (jump)   -> 9
  0008  LOADBOOL  R1 = false
  0009  LOADBOOL  R1 = true
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto5 [Init] ----------
  ; fn ?  line 81-90 np=1 va=0 ms=11 code=25 consts=8 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='GameTextModel'
  ;   K[2]='GetText'
  ;   K[3]='resource_download_require_title'
  ;   K[4]='resource_download_require_desc'
  ;   K[5]='resource_download_require_btn'
  ;   K[6]='SystemGeneralMsgWindow'
  ;   K[7]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-25), title(5-25), description(10-25), buttonText(15-25), buttonCallback(16-25)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('GameTextModel')]
  0002  SELF      R2 = R1[K2('GetText')] (self)
  0003  LOADK     R3 = K3 'resource_download_require_title'
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K0('GM')]
  0006  GETTABLE  R2 = R2[K1('GameTextModel')]
  0007  SELF      R3 = R2[K2('GetText')] (self)
  0008  LOADK     R4 = K4 'resource_download_require_desc'
  0009  CALL      R2 = call(R2, 1 args, 2 rets)
  0010  GETTABUP  R3 = _ENV[K0('GM')]
  0011  GETTABLE  R3 = R3[K1('GameTextModel')]
  0012  SELF      R4 = R3[K2('GetText')] (self)
  0013  LOADK     R5 = K5 'resource_download_require_btn'
  0014  CALL      R3 = call(R3, 1 args, 2 rets)
  0015  CLOSURE   R4 = closure proto0
  0016  GETTABUP  R5 = _ENV[K6('SystemGeneralMsgWindow')]
  0017  GETTABLE  R5 = R5[K7('Init')]
  0018  MOVE      R6 = R0
  0019  MOVE      R7 = R0
  0020  MOVE      R8 = R0
  0021  MOVE      R9 = R0
  0022  MOVE      R10 = R0
  0023  CALL      R5 = call(R5, 0 args, 5 rets)
  0024  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 85-87 np=0 va=0 ms=4 code=8 consts=5 upvals=1 protos=0
    ;   K[0]='GM'
    ;   K[1]='RestartGame'
    ;   K[2]='EBIProjectType'
    ;   K[3]='RestartGameAction'
    ;   K[4]='DownloadRequiredResource'
    ;   upvals: _ENV
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  SELF      R1 = R0[K1('RestartGame')] (self)
    0002  LOADNIL   R2..R2 = nil
    0003  GETTABUP  R3 = _ENV[K2('EBIProjectType')]
    0004  GETTABLE  R3 = R3[K3('RestartGameAction')]
    0005  GETTABLE  R3 = R3[K4('DownloadRequiredResource')]
    0006  CALL      R0 = call(R0, 0 args, 3 rets)
    0007  RETURN    return R0..R-1
