# UI_Window_TwoButtonWindow_449.luac
; fn @TwoButtonWindow.lua  line 0-0 np=0 va=1 ms=3 code=37 consts=16 upvals=1 protos=9
;   K[0]='TwoButtonWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='BaseWindow'
;   K[5]='__index'
;   K[6]='Open'
;   K[7]='TwoButtonWindow'
;   K[8]='Init'
;   K[9]='_InitWithText'
;   K[10]='_AdjustSize'
;   K[11]='_GetText'
;   K[12]='OnRedClick'
;   K[13]='OnGreenClick'
;   K[14]='SetCountDownTimer'
;   K[15]='UpdatePerSecond'
;   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('TwoButtonWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('TwoButtonWindow')]
0007  GETTABUP  R1 = _ENV[K0('TwoButtonWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('TwoButtonWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Open')] = R1
0012  GETTABUP  R0 = _ENV[K7('TwoButtonWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K8('Init')] = R1
0015  GETTABUP  R0 = _ENV[K7('TwoButtonWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K9('_InitWithText')] = R1
0018  GETTABUP  R0 = _ENV[K7('TwoButtonWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K10('_AdjustSize')] = R1
0021  GETTABUP  R0 = _ENV[K7('TwoButtonWindow')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K11('_GetText')] = R1
0024  GETTABUP  R0 = _ENV[K7('TwoButtonWindow')]
0025  CLOSURE   R1 = closure proto5
0026  SETTABLE  R0[K12('OnRedClick')] = R1
0027  GETTABUP  R0 = _ENV[K7('TwoButtonWindow')]
0028  CLOSURE   R1 = closure proto6
0029  SETTABLE  R0[K13('OnGreenClick')] = R1
0030  GETTABUP  R0 = _ENV[K7('TwoButtonWindow')]
0031  CLOSURE   R1 = closure proto7
0032  SETTABLE  R0[K14('SetCountDownTimer')] = R1
0033  GETTABUP  R0 = _ENV[K7('TwoButtonWindow')]
0034  CLOSURE   R1 = closure proto8
0035  SETTABLE  R0[K15('UpdatePerSecond')] = R1
0036  RETURN    return R0..R-1
; ---------- proto0 [Open] ----------
  ; fn ?  line 17-19 np=8 va=0 ms=19 code=15 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='TwoButtonWindow'
  ;   upvals: _ENV
  ;   locals: titleKey(0-15), descKey(0-15), redButtonKey(0-15), greenButtonKey(0-15), redButtonCallback(0-15), greenButtonCallback(0-15), bWithCloseBtn(0-15), initFunc(0-15)
  0000  GETTABUP  R8 = _ENV[K0('GM')]
  0001  GETTABLE  R8 = R8[K1('UIManager')]
  0002  SELF      R9 = R8[K2('OpenView')] (self)
  0003  GETTABUP  R10 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R10 = R10[K4('TwoButtonWindow')]
  0005  MOVE      R11 = R0
  0006  MOVE      R12 = R0
  0007  MOVE      R13 = R0
  0008  MOVE      R14 = R0
  0009  MOVE      R15 = R0
  0010  MOVE      R16 = R0
  0011  MOVE      R17 = R0
  0012  MOVE      R18 = R0
  0013  CALL      R8 = call(R8, 0 args, 10 rets)
  0014  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 21-29 np=9 va=0 ms=23 code=24 consts=3 upvals=0 protos=0
  ;   K[0]='_GetText'
  ;   K[1]='m_redButtonKey'
  ;   K[2]='_InitWithText'
  ;   locals: self(0-24), titleKey(0-24), descKey(0-24), redButtonKey(0-24), greenButtonKey(0-24), redButtonCallback(0-24), greenButtonCallback(0-24), bWithCloseBtn(0-24), initFunc(0-24), titleText(3-24), descText(6-24), redButtonText(9-24), greenButtonText(12-24)
  0000  SELF      R10 = R0[K0('_GetText')] (self)
  0001  MOVE      R11 = R0
  0002  CALL      R9 = call(R9, 1 args, 2 rets)
  0003  SELF      R11 = R0[K0('_GetText')] (self)
  0004  MOVE      R12 = R0
  0005  CALL      R10 = call(R10, 1 args, 2 rets)
  0006  SELF      R12 = R0[K0('_GetText')] (self)
  0007  MOVE      R13 = R0
  0008  CALL      R11 = call(R11, 1 args, 2 rets)
  0009  SELF      R13 = R0[K0('_GetText')] (self)
  0010  MOVE      R14 = R0
  0011  CALL      R12 = call(R12, 1 args, 2 rets)
  0012  SETTABLE  R0[K1('m_redButtonKey')] = R3
  0013  SELF      R14 = R0[K2('_InitWithText')] (self)
  0014  MOVE      R15 = R0
  0015  MOVE      R16 = R0
  0016  MOVE      R17 = R0
  0017  MOVE      R18 = R0
  0018  MOVE      R19 = R0
  0019  MOVE      R20 = R0
  0020  MOVE      R21 = R0
  0021  MOVE      R22 = R0
  0022  CALL      R13 = call(R13, 0 args, 9 rets)
  0023  RETURN    return R0..R-1
; ---------- proto2 [_InitWithText] ----------
  ; fn ?  line 31-48 np=9 va=0 ms=12 code=22 consts=10 upvals=0 protos=0
  ;   K[0]='m_titleText'
  ;   K[1]='text'
  ;   K[2]='m_descText'
  ;   K[3]='m_redText'
  ;   K[4]='m_greenText'
  ;   K[5]='_AdjustSize'
  ;   K[6]='m_redButtonCallback'
  ;   K[7]='m_greenButtonCallback'
  ;   K[8]='SetCloseBtnActive'
  ;   K[9]='canCloseByAndroidBack'
  ;   locals: self(0-22), titleText(0-22), descText(0-22), redButtonText(0-22), greenButtonText(0-22), redButtonCallback(0-22), greenButtonCallback(0-22), bWithCloseBtn(0-22), initFunc(0-22)
  0000  GETTABLE  R9 = R0[K0('m_titleText')]
  0001  SETTABLE  R9[K1('text')] = R1
  0002  GETTABLE  R9 = R0[K2('m_descText')]
  0003  SETTABLE  R9[K1('text')] = R2
  0004  GETTABLE  R9 = R0[K3('m_redText')]
  0005  SETTABLE  R9[K1('text')] = R3
  0006  GETTABLE  R9 = R0[K4('m_greenText')]
  0007  SETTABLE  R9[K1('text')] = R4
  0008  SELF      R10 = R0[K5('_AdjustSize')] (self)
  0009  CALL      R9 = call(R9, 0 args, 1 rets)
  0010  SETTABLE  R0[K6('m_redButtonCallback')] = R5
  0011  SETTABLE  R0[K7('m_greenButtonCallback')] = R6
  0012  SELF      R10 = R0[K8('SetCloseBtnActive')] (self)
  0013  MOVE      R11 = R0
  0014  CALL      R9 = call(R9, 0 args, 2 rets)
  0015  SETTABLE  R0[K9('canCloseByAndroidBack')] = R7
  0016  TEST      if not R8 then   -> -131054
  0017  JMP       (jump)   -> 21
  0018  MOVE      R9 = R0
  0019  MOVE      R10 = R0
  0020  CALL      R9 = call(R9, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto3 [_AdjustSize] ----------
  ; fn ?  line 50-61 np=1 va=0 ms=6 code=22 consts=6 upvals=0 protos=0
  ;   K[0]='m_descText'
  ;   K[1]='preferredHeight'
  ;   K[2]='transform'
  ;   K[3]='sizeDelta'
  ;   K[4]='y'
  ;   K[5]='m_contentRect'
  ;   locals: self(0-22), preferredHeight(2-22), defaultTextSizeDelta(5-22), defaultSizeDelta(10-21)
  0000  GETTABLE  R1 = R0[K0('m_descText')]
  0001  GETTABLE  R1 = R1[K1('preferredHeight')]
  0002  GETTABLE  R2 = R0[K0('m_descText')]
  0003  GETTABLE  R2 = R2[K2('transform')]
  0004  GETTABLE  R2 = R2[K3('sizeDelta')]
  0005  GETTABLE  R3 = R2[K4('y')]
  0006  LT        if R0 lt R1   -> -129527
  0007  JMP       (jump)   -> 21
  0008  GETTABLE  R3 = R0[K5('m_contentRect')]
  0009  GETTABLE  R3 = R3[K3('sizeDelta')]
  0010  GETTABLE  R4 = R3[K4('y')]
  0011  ADD       R4 = R1 add R4
  0012  GETTABLE  R5 = R2[K4('y')]
  0013  SUB       R4 = R5 sub R4
  0014  SETTABLE  R3[K4('y')] = R4
  0015  GETTABLE  R4 = R0[K5('m_contentRect')]
  0016  SETTABLE  R4[K3('sizeDelta')] = R3
  0017  SETTABLE  R2[K4('y')] = R1
  0018  GETTABLE  R4 = R0[K0('m_descText')]
  0019  GETTABLE  R4 = R4[K2('transform')]
  0020  SETTABLE  R4[K3('sizeDelta')] = R2
  0021  RETURN    return R0..R-1
; ---------- proto4 [_GetText] ----------
  ; fn ?  line 63-67 np=2 va=0 ms=5 code=13 consts=5 upvals=1 protos=0
  ;   K[0]='StringUtil'
  ;   K[1]='IsNilOrEmpty'
  ;   K[2]='GM'
  ;   K[3]='GameTextModel'
  ;   K[4]='GetText'
  ;   upvals: _ENV
  ;   locals: self(0-13), key(0-13)
  0000  GETTABUP  R2 = _ENV[K0('StringUtil')]
  0001  GETTABLE  R2 = R2[K1('IsNilOrEmpty')]
  0002  MOVE      R3 = R0
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131065
  0005  JMP       (jump)   -> 12
  0006  GETTABUP  R2 = _ENV[K2('GM')]
  0007  GETTABLE  R2 = R2[K3('GameTextModel')]
  0008  SELF      R3 = R2[K4('GetText')] (self)
  0009  MOVE      R4 = R0
  0010  TAILCALL  tailcall(R2, 0)
  0011  RETURN    return R2..R1
  0012  RETURN    return R0..R-1
; ---------- proto5 [OnRedClick] ----------
  ; fn ?  line 69-76 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='m_redButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K1('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto6 [OnGreenClick] ----------
  ; fn ?  line 78-85 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='m_greenButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_greenButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_greenButtonCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K1('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto7 [SetCountDownTimer] ----------
  ; fn ?  line 87-91 np=2 va=0 ms=5 code=9 consts=5 upvals=0 protos=0
  ;   K[0]='m_countDownTimer'
  ;   K[1]=1
  ;   K[2]='m_redButtonTb'
  ;   K[3]='SetEnabled'
  ;   K[4]='UpdatePerSecond'
  ;   locals: self(0-9), timer(0-9)
  0000  ADD       R2 = K1(1) add R1
  0001  SETTABLE  R0[K0('m_countDownTimer')] = R2
  0002  GETTABLE  R2 = R0[K2('m_redButtonTb')]
  0003  SELF      R3 = R2[K3('SetEnabled')] (self)
  0004  LOADBOOL  R4 = false
  0005  CALL      R2 = call(R2, 0 args, 2 rets)
  0006  SELF      R3 = R0[K4('UpdatePerSecond')] (self)
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto8 [UpdatePerSecond] ----------
  ; fn ?  line 93-108 np=1 va=0 ms=8 code=34 consts=13 upvals=1 protos=0
  ;   K[0]='m_countDownTimer'
  ;   K[1]=nil
  ;   K[2]=1
  ;   K[3]='GM'
  ;   K[4]='GameTextModel'
  ;   K[5]='GetText'
  ;   K[6]='m_redButtonKey'
  ;   K[7]=0
  ;   K[8]='m_redButtonTb'
  ;   K[9]='SetEnabled'
  ;   K[10]='SetText'
  ;   K[11]=' ('
  ;   K[12]='s)'
  ;   upvals: _ENV
  ;   locals: self(0-34), text(12-34)
  0000  GETTABLE  R1 = R0[K0('m_countDownTimer')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K0('m_countDownTimer')]
  0005  SUB       R1 = K2(1) sub R1
  0006  SETTABLE  R0[K0('m_countDownTimer')] = R1
  0007  GETTABUP  R1 = _ENV[K3('GM')]
  0008  GETTABLE  R1 = R1[K4('GameTextModel')]
  0009  SELF      R2 = R1[K5('GetText')] (self)
  0010  GETTABLE  R3 = R0[K6('m_redButtonKey')]
  0011  CALL      R1 = call(R1, 1 args, 2 rets)
  0012  GETTABLE  R2 = R0[K0('m_countDownTimer')]
  0013  EQ        if R0 eq K7(0)   -> -129770
  0014  JMP       (jump)   -> 25
  0015  GETTABLE  R2 = R0[K8('m_redButtonTb')]
  0016  SELF      R3 = R2[K9('SetEnabled')] (self)
  0017  LOADBOOL  R4 = true
  0018  CALL      R2 = call(R2, 0 args, 2 rets)
  0019  GETTABLE  R2 = R0[K8('m_redButtonTb')]
  0020  SELF      R3 = R2[K10('SetText')] (self)
  0021  MOVE      R4 = R0
  0022  CALL      R2 = call(R2, 0 args, 2 rets)
  0023  SETTABLE  R0[K0('m_countDownTimer')] = K1(nil)
  0024  JMP       (jump)   -> 33
  0025  GETTABLE  R2 = R0[K8('m_redButtonTb')]
  0026  SELF      R3 = R2[K10('SetText')] (self)
  0027  MOVE      R4 = R0
  0028  LOADK     R5 = K11 ' ('
  0029  GETTABLE  R6 = R0[K0('m_countDownTimer')]
  0030  LOADK     R7 = K12 's)'
  0031  CONCAT    R4 = concat(R4..R4)
  0032  CALL      R2 = call(R2, 0 args, 2 rets)
  0033  RETURN    return R0..R-1
