# BakeOut_View_BakeOutPopupHelper_879.luac
; fn @BakeOutPopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=32 consts=15 upvals=1 protos=5
;   K[0]='BakeOutPopupHelper'
;   K[1]='setmetatable'
;   K[2]='canPopScene'
;   K[3]='EPopupScene'
;   K[4]='Main'
;   K[5]=true
;   K[6]='Board'
;   K[7]='BasePopupHelper'
;   K[8]='__index'
;   K[9]='Create'
;   K[10]='BakeOutPopupHelper'
;   K[11]='Init'
;   K[12]='OnDestroy'
;   K[13]='_OnNeedOpenWindow'
;   K[14]='CheckPopup'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  NEWTABLE  R2 = {} (0 items)
0003  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0004  GETTABLE  R3 = R3[K4('Main')]
0005  SETTABLE  R2[R3] = K5(true)
0006  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0007  GETTABLE  R3 = R3[K6('Board')]
0008  SETTABLE  R2[R3] = K5(true)
0009  SETTABLE  R1[K2('canPopScene')] = R2
0010  GETTABUP  R2 = _ENV[K7('BasePopupHelper')]
0011  CALL      R0 = call(R0, 1 args, 2 rets)
0012  SETTABUP  _ENV[K0('BakeOutPopupHelper')] = R0
0013  GETTABUP  R0 = _ENV[K0('BakeOutPopupHelper')]
0014  GETTABUP  R1 = _ENV[K0('BakeOutPopupHelper')]
0015  SETTABLE  R0[K8('__index')] = R1
0016  GETTABUP  R0 = _ENV[K0('BakeOutPopupHelper')]
0017  CLOSURE   R1 = closure proto0
0018  SETTABLE  R0[K9('Create')] = R1
0019  GETTABUP  R0 = _ENV[K10('BakeOutPopupHelper')]
0020  CLOSURE   R1 = closure proto1
0021  SETTABLE  R0[K11('Init')] = R1
0022  GETTABUP  R0 = _ENV[K10('BakeOutPopupHelper')]
0023  CLOSURE   R1 = closure proto2
0024  SETTABLE  R0[K12('OnDestroy')] = R1
0025  GETTABUP  R0 = _ENV[K10('BakeOutPopupHelper')]
0026  CLOSURE   R1 = closure proto3
0027  SETTABLE  R0[K13('_OnNeedOpenWindow')] = R1
0028  GETTABUP  R0 = _ENV[K10('BakeOutPopupHelper')]
0029  CLOSURE   R1 = closure proto4
0030  SETTABLE  R0[K14('CheckPopup')] = R1
0031  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 10-14 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='BakeOutPopupHelper'
  ;   K[2]='Init'
  ;   upvals: _ENV
  ;   locals: helper(4-8)
  0000  GETTABUP  R0 = _ENV[K0('setmetatable')]
  0001  NEWTABLE  R1 = {} (0 items)
  0002  GETTABUP  R2 = _ENV[K1('BakeOutPopupHelper')]
  0003  CALL      R0 = call(R0, 1 args, 2 rets)
  0004  SELF      R2 = R0[K2('Init')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
  0007  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 16-23 np=1 va=0 ms=6 code=24 consts=16 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='m_arrPopupList'
  ;   K[3]='m_model'
  ;   K[4]='GM'
  ;   K[5]='ActivityManager'
  ;   K[6]='GetModel'
  ;   K[7]='ActivityType'
  ;   K[8]='BakeOut'
  ;   K[9]='AddHandlerAndRecordMap'
  ;   K[10]='event'
  ;   K[11]='BakeOutEventType'
  ;   K[12]='NeedOpenWindow'
  ;   K[13]='obj'
  ;   K[14]='method'
  ;   K[15]='_OnNeedOpenWindow'
  ;   upvals: _ENV
  ;   locals: self(0-24)
  0000  GETTABUP  R1 = _ENV[K0('BasePopupHelper')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  NEWTABLE  R1 = {} (0 items)
  0005  SETTABLE  R0[K2('m_arrPopupList')] = R1
  0006  GETTABUP  R1 = _ENV[K4('GM')]
  0007  GETTABLE  R1 = R1[K5('ActivityManager')]
  0008  SELF      R2 = R1[K6('GetModel')] (self)
  0009  GETTABUP  R3 = _ENV[K7('ActivityType')]
  0010  GETTABLE  R3 = R3[K8('BakeOut')]
  0011  CALL      R1 = call(R1, 1 args, 2 rets)
  0012  SETTABLE  R0[K3('m_model')] = R1
  0013  GETTABUP  R1 = _ENV[K9('AddHandlerAndRecordMap')]
  0014  GETTABLE  R2 = R0[K3('m_model')]
  0015  GETTABLE  R2 = R2[K10('event')]
  0016  GETTABUP  R3 = _ENV[K11('BakeOutEventType')]
  0017  GETTABLE  R3 = R3[K12('NeedOpenWindow')]
  0018  NEWTABLE  R4 = {} (0 items)
  0019  SETTABLE  R4[K13('obj')] = R0
  0020  GETTABLE  R5 = R0[K15('_OnNeedOpenWindow')]
  0021  SETTABLE  R4[K14('method')] = R5
  0022  CALL      R1 = call(R1, 0 args, 3 rets)
  0023  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 25-27 np=1 va=0 ms=4 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='RemoveAllHandlers'
  ;   K[1]='m_model'
  ;   K[2]='event'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('RemoveAllHandlers')]
  0001  GETTABLE  R2 = R0[K1('m_model')]
  0002  GETTABLE  R2 = R2[K2('event')]
  0003  MOVE      R3 = R0
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto3 [_OnNeedOpenWindow] ----------
  ; fn ?  line 29-31 np=1 va=0 ms=4 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='SetNeedCheckPopup'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('SetNeedCheckPopup')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto4 [CheckPopup] ----------
  ; fn ?  line 33-44 np=1 va=0 ms=7 code=34 consts=12 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetWaitingOpenWindowDatas'
  ;   K[2]='Table'
  ;   K[3]='Empty'
  ;   K[4]=nil
  ;   K[5]=0
  ;   K[6]=1
  ;   K[7]='name'
  ;   K[8]='params'
  ;   K[9]='table'
  ;   K[10]='remove'
  ;   K[11]='SetNeedCheckPopup'
  ;   upvals: _ENV
  ;   locals: self(0-34), list(7-34), openViewName(8-34), parameters(8-34)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetWaitingOpenWindowDatas')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131066
  0004  JMP       (jump)   -> 7
  0005  GETTABUP  R1 = _ENV[K2('Table')]
  0006  GETTABLE  R1 = R1[K3('Empty')]
  0007  LOADNIL   R2..R2 = nil
  0008  EQ        if R0 eq K4(nil)   -> -129778
  0009  JMP       (jump)   -> 24
  0010  LEN       R4 = len R0
  0011  LT        if R0 lt R4   -> 2577
  0012  JMP       (jump)   -> 24
  0013  GETTABLE  R4 = R1[K6(1)]
  0014  GETTABLE  R4 = R4[K7('name')]
  0015  GETTABLE  R5 = R1[K6(1)]
  0016  GETTABLE  R3 = R5[K8('params')]
  0017  MOVE      R2 = R0
  0018  GETTABUP  R4 = _ENV[K9('table')]
  0019  GETTABLE  R4 = R4[K10('remove')]
  0020  MOVE      R5 = R0
  0021  LOADK     R6 = K6 1
  0022  CALL      R4 = call(R4, 0 args, 2 rets)
  0023  JMP       (jump)   -> 8
  0024  LEN       R4 = len R0
  0025  LT        if R0 lt R4   -> 2591
  0026  JMP       (jump)   -> 30
  0027  SELF      R5 = R0[K11('SetNeedCheckPopup')] (self)
  0028  LOADBOOL  R6 = true
  0029  CALL      R4 = call(R4, 0 args, 2 rets)
  0030  MOVE      R4 = R0
  0031  MOVE      R5 = R0
  0032  RETURN    return R4..R3
  0033  RETURN    return R0..R-1
