# BakeOut_View_BakeOutDetailWindow_877.luac
; fn @BakeOutDetailWindow.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=10 upvals=1 protos=3
;   K[0]='BakeOutDetailWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='BaseWindow'
;   K[6]='__index'
;   K[7]='Init'
;   K[8]='UpdatePerSecond'
;   K[9]='OnCloseView'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  GETTABUP  R2 = _ENV[K5('BaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('BakeOutDetailWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('BakeOutDetailWindow')]
0009  GETTABUP  R1 = _ENV[K0('BakeOutDetailWindow')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('BakeOutDetailWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('BakeOutDetailWindow')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K8('UpdatePerSecond')] = R1
0017  GETTABUP  R0 = _ENV[K0('BakeOutDetailWindow')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K9('OnCloseView')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-15 np=1 va=0 ms=6 code=29 consts=18 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]='GM'
  ;   K[4]='ActivityManager'
  ;   K[5]='GetModel'
  ;   K[6]='ActivityType'
  ;   K[7]='BakeOut'
  ;   K[8]='m_modelId'
  ;   K[9]='GetId'
  ;   K[10]='ScreenFitter'
  ;   K[11]='GetSceneViewSizeOffset'
  ;   K[12]='m_closeBtnGo'
  ;   K[13]='transform'
  ;   K[14]='SetLocalPosY'
  ;   K[15]='localPosition'
  ;   K[16]='y'
  ;   K[17]='x'
  ;   upvals: _ENV
  ;   locals: self(0-29), adjustSizeOffset(18-29)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K3('GM')]
  0005  GETTABLE  R1 = R1[K4('ActivityManager')]
  0006  SELF      R2 = R1[K5('GetModel')] (self)
  0007  GETTABUP  R3 = _ENV[K6('ActivityType')]
  0008  GETTABLE  R3 = R3[K7('BakeOut')]
  0009  CALL      R1 = call(R1, 1 args, 2 rets)
  0010  SETTABLE  R0[K2('m_model')] = R1
  0011  GETTABLE  R1 = R0[K2('m_model')]
  0012  SELF      R2 = R1[K9('GetId')] (self)
  0013  CALL      R1 = call(R1, 1 args, 1 rets)
  0014  SETTABLE  R0[K8('m_modelId')] = R1
  0015  GETTABUP  R1 = _ENV[K10('ScreenFitter')]
  0016  GETTABLE  R1 = R1[K11('GetSceneViewSizeOffset')]
  0017  CALL      R1 = call(R1, 1 args, 0 rets)
  0018  GETTABLE  R2 = R0[K12('m_closeBtnGo')]
  0019  GETTABLE  R2 = R2[K13('transform')]
  0020  SELF      R3 = R2[K14('SetLocalPosY')] (self)
  0021  GETTABLE  R4 = R0[K12('m_closeBtnGo')]
  0022  GETTABLE  R4 = R4[K13('transform')]
  0023  GETTABLE  R4 = R4[K15('localPosition')]
  0024  GETTABLE  R4 = R4[K16('y')]
  0025  GETTABLE  R5 = R1[K17('x')]
  0026  SUB       R4 = R5 sub R4
  0027  CALL      R2 = call(R2, 0 args, 2 rets)
  0028  RETURN    return R0..R-1
; ---------- proto1 [UpdatePerSecond] ----------
  ; fn ?  line 17-26 np=1 va=0 ms=3 code=20 consts=8 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='GetId'
  ;   K[6]='m_modelId'
  ;   K[7]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K0('m_model')]
  0005  SELF      R2 = R1[K2('GetState')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0008  GETTABLE  R2 = R2[K4('Started')]
  0009  EQ        if R0 eq R2   -> -130547
  0010  JMP       (jump)   -> 17
  0011  GETTABLE  R1 = R0[K0('m_model')]
  0012  SELF      R2 = R1[K5('GetId')] (self)
  0013  CALL      R1 = call(R1, 1 args, 1 rets)
  0014  GETTABLE  R2 = R0[K6('m_modelId')]
  0015  EQ        if R1 eq R2   -> -130541
  0016  JMP       (jump)   -> 19
  0017  SELF      R2 = R0[K7('Close')] (self)
  0018  CALL      R1 = call(R1, 0 args, 1 rets)
  0019  RETURN    return R0..R-1
; ---------- proto2 [OnCloseView] ----------
  ; fn ?  line 28-34 np=1 va=0 ms=4 code=22 consts=11 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseView'
  ;   K[2]='m_model'
  ;   K[3]='CanAcquireToken'
  ;   K[4]='GetId'
  ;   K[5]='m_modelId'
  ;   K[6]='GM'
  ;   K[7]='UIManager'
  ;   K[8]='OpenView'
  ;   K[9]='UIPrefabConfigName'
  ;   K[10]='BakeOutMainWindow'
  ;   upvals: _ENV
  ;   locals: self(0-22)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseView')]
  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('CanAcquireToken')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  TEST      if not R1 then   -> -131063
  0008  JMP       (jump)   -> 21
  0009  GETTABLE  R1 = R0[K2('m_model')]
  0010  SELF      R2 = R1[K4('GetId')] (self)
  0011  CALL      R1 = call(R1, 1 args, 1 rets)
  0012  GETTABLE  R2 = R0[K5('m_modelId')]
  0013  EQ        if R0 eq R2   -> -130543
  0014  JMP       (jump)   -> 21
  0015  GETTABUP  R1 = _ENV[K6('GM')]
  0016  GETTABLE  R1 = R1[K7('UIManager')]
  0017  SELF      R2 = R1[K8('OpenView')] (self)
  0018  GETTABUP  R3 = _ENV[K9('UIPrefabConfigName')]
  0019  GETTABLE  R3 = R3[K10('BakeOutMainWindow')]
  0020  CALL      R1 = call(R1, 0 args, 2 rets)
  0021  RETURN    return R0..R-1
