# BakeOut_View_BakeOutReadyWindow_857.luac
; fn @BakeOutReadyWindow.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='BakeOutReadyWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='BeforeOpenCheck'
;   K[5]='Init'
;   K[6]='OnCloseBtnClick'
;   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('BakeOutReadyWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('BakeOutReadyWindow')]
0006  GETTABUP  R1 = _ENV[K0('BakeOutReadyWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('BakeOutReadyWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('BeforeOpenCheck')] = R1
0011  GETTABUP  R0 = _ENV[K0('BakeOutReadyWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('BakeOutReadyWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnCloseBtnClick')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 5-12 np=1 va=0 ms=5 code=19 consts=8 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetModel'
  ;   K[3]='ActivityType'
  ;   K[4]='BakeOut'
  ;   K[5]=nil
  ;   K[6]='IsBakeOutModeOn'
  ;   K[7]='SetWindowReopen'
  ;   upvals: _ENV
  ;   locals: self(0-19), model(6-19), open(13-19)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ActivityManager')]
  0002  SELF      R2 = R1[K2('GetModel')] (self)
  0003  GETTABUP  R3 = _ENV[K3('ActivityType')]
  0004  GETTABLE  R3 = R3[K4('BakeOut')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  EQ        if R1 eq K5(nil)   -> -130291
  0007  JMP       (jump)   -> 11
  0008  SELF      R3 = R1[K6('IsBakeOutModeOn')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  JMP       (jump)   -> 13
  0011  LOADBOOL  R2 = false
  0012  LOADBOOL  R2 = true
  0013  TEST      if not R2 then   -> -131056
  0014  JMP       (jump)   -> 17
  0015  SELF      R4 = R1[K7('SetWindowReopen')] (self)
  0016  CALL      R3 = call(R3, 0 args, 1 rets)
  0017  RETURN    return R2..R1
  0018  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 14-21 np=1 va=0 ms=7 code=24 consts=16 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]='ActivityType'
  ;   K[5]='BakeOut'
  ;   K[6]='m_role'
  ;   K[7]='Init'
  ;   K[8]='PlayEnterAnimation'
  ;   K[9]='LogWindowAction'
  ;   K[10]='EBIType'
  ;   K[11]='UIActionType'
  ;   K[12]='Open'
  ;   K[13]='EBIReferType'
  ;   K[14]='AutoPopup'
  ;   K[15]='GetId'
  ;   upvals: _ENV
  ;   locals: self(0-24)
  0000  GETTABUP  R1 = _ENV[K1('GM')]
  0001  GETTABLE  R1 = R1[K2('ActivityManager')]
  0002  SELF      R2 = R1[K3('GetModel')] (self)
  0003  GETTABUP  R3 = _ENV[K4('ActivityType')]
  0004  GETTABLE  R3 = R3[K5('BakeOut')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  SETTABLE  R0[K0('m_model')] = R1
  0007  GETTABLE  R1 = R0[K6('m_role')]
  0008  SELF      R2 = R1[K7('Init')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  GETTABLE  R1 = R0[K6('m_role')]
  0011  SELF      R2 = R1[K8('PlayEnterAnimation')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  SELF      R2 = R0[K9('LogWindowAction')] (self)
  0014  GETTABUP  R3 = _ENV[K10('EBIType')]
  0015  GETTABLE  R3 = R3[K11('UIActionType')]
  0016  GETTABLE  R3 = R3[K12('Open')]
  0017  GETTABUP  R4 = _ENV[K13('EBIReferType')]
  0018  GETTABLE  R4 = R4[K14('AutoPopup')]
  0019  GETTABLE  R5 = R0[K0('m_model')]
  0020  SELF      R6 = R5[K15('GetId')] (self)
  0021  CALL      R5 = call(R5, -1 args, 1 rets)
  0022  CALL      R1 = call(R1, 0 args, -1 rets)
  0023  RETURN    return R0..R-1
; ---------- proto2 [OnCloseBtnClick] ----------
  ; fn ?  line 23-28 np=1 va=0 ms=4 code=19 consts=6 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseBtnClick'
  ;   K[2]='m_model'
  ;   K[3]='IsEnlist'
  ;   K[4]='CanEnlist'
  ;   K[5]='OnEnlist'
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseBtnClick')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_model')]
  0005  SELF      R2 = R1[K3('IsEnlist')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  TEST      if not R1 then   -> -131062
  0008  JMP       (jump)   -> 18
  0009  GETTABLE  R1 = R0[K2('m_model')]
  0010  SELF      R2 = R1[K4('CanEnlist')] (self)
  0011  CALL      R1 = call(R1, 1 args, 1 rets)
  0012  TEST      if not R1 then   -> -131058
  0013  JMP       (jump)   -> 18
  0014  GETTABLE  R1 = R0[K2('m_model')]
  0015  SELF      R2 = R1[K5('OnEnlist')] (self)
  0016  LOADBOOL  R3 = true
  0017  CALL      R1 = call(R1, 0 args, 2 rets)
  0018  RETURN    return R0..R-1
