# UI_Window_Resource_DownloadConfirmWindow_657.luac
; fn @DownloadConfirmWindow.lua  line 0-0 np=0 va=1 ms=3 code=19 consts=9 upvals=1 protos=3
;   K[0]='DownloadConfirmWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='BaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='OnExitButtonClicked'
;   K[8]='OnDownloadButtonClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canCloseByAndroidBack')] = K3(false)
0003  GETTABUP  R2 = _ENV[K4('BaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('DownloadConfirmWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('DownloadConfirmWindow')]
0007  GETTABUP  R1 = _ENV[K0('DownloadConfirmWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('DownloadConfirmWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('DownloadConfirmWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnExitButtonClicked')] = R1
0015  GETTABUP  R0 = _ENV[K0('DownloadConfirmWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('OnDownloadButtonClicked')] = R1
0018  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-15 np=5 va=0 ms=13 code=25 consts=11 upvals=1 protos=0
  ;   K[0]='m_exitCallback'
  ;   K[1]='m_downloadCallback'
  ;   K[2]='GM'
  ;   K[3]='DownloadManager'
  ;   K[4]='GetFormattedSize'
  ;   K[5]='m_descriptionText'
  ;   K[6]='text'
  ;   K[7]='GameTextModel'
  ;   K[8]='GetText'
  ;   K[9]='resource_download_confirm_desc'
  ;   K[10]='m_exitText'
  ;   upvals: _ENV
  ;   locals: self(0-25), totalSize(0-25), exitTextKey(0-25), exitCallback(0-25), downloadCallback(0-25), totalFormatted(7-25), unit(7-25)
  0000  SETTABLE  R0[K0('m_exitCallback')] = R3
  0001  SETTABLE  R0[K1('m_downloadCallback')] = R4
  0002  GETTABUP  R5 = _ENV[K2('GM')]
  0003  GETTABLE  R5 = R5[K3('DownloadManager')]
  0004  SELF      R6 = R5[K4('GetFormattedSize')] (self)
  0005  MOVE      R7 = R0
  0006  CALL      R5 = call(R5, 2 args, 2 rets)
  0007  GETTABLE  R7 = R0[K5('m_descriptionText')]
  0008  GETTABUP  R8 = _ENV[K2('GM')]
  0009  GETTABLE  R8 = R8[K7('GameTextModel')]
  0010  SELF      R9 = R8[K8('GetText')] (self)
  0011  LOADK     R10 = K9 'resource_download_confirm_desc'
  0012  MOVE      R11 = R0
  0013  MOVE      R12 = R0
  0014  CONCAT    R11 = concat(R11..R11)
  0015  CALL      R8 = call(R8, 1 args, 3 rets)
  0016  SETTABLE  R7[K6('text')] = R8
  0017  GETTABLE  R7 = R0[K10('m_exitText')]
  0018  GETTABUP  R8 = _ENV[K2('GM')]
  0019  GETTABLE  R8 = R8[K7('GameTextModel')]
  0020  SELF      R9 = R8[K8('GetText')] (self)
  0021  MOVE      R10 = R0
  0022  CALL      R8 = call(R8, 1 args, 2 rets)
  0023  SETTABLE  R7[K6('text')] = R8
  0024  RETURN    return R0..R-1
; ---------- proto1 [OnExitButtonClicked] ----------
  ; fn ?  line 17-22 np=1 va=0 ms=3 code=8 consts=3 upvals=0 protos=0
  ;   K[0]='Close'
  ;   K[1]='m_exitCallback'
  ;   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_exitCallback')]
  0003  EQ        if R1 eq K2(nil)   -> -130297
  0004  JMP       (jump)   -> 7
  0005  GETTABLE  R1 = R0[K1('m_exitCallback')]
  0006  CALL      R1 = call(R1, 0 args, 0 rets)
  0007  RETURN    return R0..R-1
; ---------- proto2 [OnDownloadButtonClicked] ----------
  ; fn ?  line 24-27 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='Close'
  ;   K[1]='m_downloadCallback'
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_downloadCallback')]
  0003  CALL      R1 = call(R1, 0 args, 0 rets)
  0004  RETURN    return R0..R-1
