# BakeOut_View_BakeOutEntry_851.luac
; fn @BakeOutEntry.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=9 upvals=1 protos=5
;   K[0]='BakeOutEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='OnDestroy'
;   K[6]='UpdatePerSecond'
;   K[7]='UpdateContent'
;   K[8]='OnBtnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudGeneralButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('BakeOutEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('BakeOutEntry')]
0006  GETTABUP  R1 = _ENV[K0('BakeOutEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('BakeOutEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('BakeOutEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('BakeOutEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdatePerSecond')] = R1
0017  GETTABUP  R0 = _ENV[K0('BakeOutEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('UpdateContent')] = R1
0020  GETTABUP  R0 = _ENV[K0('BakeOutEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnBtnClicked')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 5-30 np=1 va=0 ms=6 code=58 consts=19 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='Awake'
  ;   K[2]='m_model'
  ;   K[3]='GM'
  ;   K[4]='ActivityManager'
  ;   K[5]='GetModel'
  ;   K[6]='ActivityType'
  ;   K[7]='BakeOut'
  ;   K[8]=nil
  ;   K[9]='AddHandlerAndRecordMap'
  ;   K[10]='event'
  ;   K[11]='BakeOutEventType'
  ;   K[12]='StateChanged'
  ;   K[13]='obj'
  ;   K[14]='method'
  ;   K[15]='UpdateContent'
  ;   K[16]='AcquireToken'
  ;   K[17]='UpdateRank'
  ;   K[18]='ModeChanged'
  ;   upvals: _ENV
  ;   locals: self(0-58)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  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  EQ        if R0 eq K8(nil)   -> -130282
  0013  JMP       (jump)   -> 15
  0014  RETURN    return R0..R-1
  0015  GETTABUP  R1 = _ENV[K9('AddHandlerAndRecordMap')]
  0016  GETTABLE  R2 = R0[K2('m_model')]
  0017  GETTABLE  R2 = R2[K10('event')]
  0018  GETTABUP  R3 = _ENV[K11('BakeOutEventType')]
  0019  GETTABLE  R3 = R3[K12('StateChanged')]
  0020  NEWTABLE  R4 = {} (0 items)
  0021  SETTABLE  R4[K13('obj')] = R0
  0022  GETTABLE  R5 = R0[K15('UpdateContent')]
  0023  SETTABLE  R4[K14('method')] = R5
  0024  CALL      R1 = call(R1, 0 args, 3 rets)
  0025  GETTABUP  R1 = _ENV[K9('AddHandlerAndRecordMap')]
  0026  GETTABLE  R2 = R0[K2('m_model')]
  0027  GETTABLE  R2 = R2[K10('event')]
  0028  GETTABUP  R3 = _ENV[K11('BakeOutEventType')]
  0029  GETTABLE  R3 = R3[K16('AcquireToken')]
  0030  NEWTABLE  R4 = {} (0 items)
  0031  SETTABLE  R4[K13('obj')] = R0
  0032  GETTABLE  R5 = R0[K15('UpdateContent')]
  0033  SETTABLE  R4[K14('method')] = R5
  0034  CALL      R1 = call(R1, 0 args, 3 rets)
  0035  GETTABUP  R1 = _ENV[K9('AddHandlerAndRecordMap')]
  0036  GETTABLE  R2 = R0[K2('m_model')]
  0037  GETTABLE  R2 = R2[K10('event')]
  0038  GETTABUP  R3 = _ENV[K11('BakeOutEventType')]
  0039  GETTABLE  R3 = R3[K17('UpdateRank')]
  0040  NEWTABLE  R4 = {} (0 items)
  0041  SETTABLE  R4[K13('obj')] = R0
  0042  GETTABLE  R5 = R0[K15('UpdateContent')]
  0043  SETTABLE  R4[K14('method')] = R5
  0044  CALL      R1 = call(R1, 0 args, 3 rets)
  0045  GETTABUP  R1 = _ENV[K9('AddHandlerAndRecordMap')]
  0046  GETTABLE  R2 = R0[K2('m_model')]
  0047  GETTABLE  R2 = R2[K10('event')]
  0048  GETTABUP  R3 = _ENV[K11('BakeOutEventType')]
  0049  GETTABLE  R3 = R3[K18('ModeChanged')]
  0050  NEWTABLE  R4 = {} (0 items)
  0051  SETTABLE  R4[K13('obj')] = R0
  0052  GETTABLE  R5 = R0[K15('UpdateContent')]
  0053  SETTABLE  R4[K14('method')] = R5
  0054  CALL      R1 = call(R1, 0 args, 3 rets)
  0055  SELF      R2 = R0[K15('UpdateContent')] (self)
  0056  CALL      R1 = call(R1, 0 args, 1 rets)
  0057  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 32-37 np=1 va=0 ms=4 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='RemoveAllHandlers'
  ;   K[5]='event'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_model')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R1 = _ENV[K4('RemoveAllHandlers')]
  0008  GETTABLE  R2 = R0[K2('m_model')]
  0009  GETTABLE  R2 = R2[K5('event')]
  0010  MOVE      R3 = R0
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 39-55 np=1 va=0 ms=9 code=50 consts=18 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetNextStateTime'
  ;   K[3]='GetState'
  ;   K[4]='ActivityState'
  ;   K[5]='Ended'
  ;   K[6]='m_countDownText'
  ;   K[7]='text'
  ;   K[8]='GM'
  ;   K[9]='GameTextModel'
  ;   K[10]='GetText'
  ;   K[11]='bakeout_settlement_title'
  ;   K[12]='GameModel'
  ;   K[13]='GetServerTime'
  ;   K[14]='TimeUtil'
  ;   K[15]='ParseTimeDescription'
  ;   K[16]=2
  ;   K[17]='bakeout_end_title'
  ;   upvals: _ENV
  ;   locals: self(0-50), nextTime(7-50), delta(32-41)
  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('GetNextStateTime')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  EQ        if R1 eq K1(nil)   -> -130294
  0008  JMP       (jump)   -> 42
  0009  GETTABLE  R2 = R0[K0('m_model')]
  0010  SELF      R3 = R2[K3('GetState')] (self)
  0011  CALL      R2 = call(R2, 1 args, 1 rets)
  0012  GETTABUP  R3 = _ENV[K4('ActivityState')]
  0013  GETTABLE  R3 = R3[K5('Ended')]
  0014  EQ        if R0 eq R3   -> -130029
  0015  JMP       (jump)   -> 24
  0016  GETTABLE  R2 = R0[K6('m_countDownText')]
  0017  GETTABUP  R3 = _ENV[K8('GM')]
  0018  GETTABLE  R3 = R3[K9('GameTextModel')]
  0019  SELF      R4 = R3[K10('GetText')] (self)
  0020  LOADK     R5 = K11 'bakeout_settlement_title'
  0021  CALL      R3 = call(R3, 1 args, 2 rets)
  0022  SETTABLE  R2[K7('text')] = R3
  0023  JMP       (jump)   -> 49
  0024  GETTABLE  R2 = R0[K0('m_model')]
  0025  SELF      R3 = R2[K2('GetNextStateTime')] (self)
  0026  CALL      R2 = call(R2, 1 args, 1 rets)
  0027  GETTABUP  R3 = _ENV[K8('GM')]
  0028  GETTABLE  R3 = R3[K12('GameModel')]
  0029  SELF      R4 = R3[K13('GetServerTime')] (self)
  0030  CALL      R3 = call(R3, 1 args, 1 rets)
  0031  SUB       R2 = R3 sub R2
  0032  GETTABLE  R3 = R0[K6('m_countDownText')]
  0033  GETTABUP  R4 = _ENV[K14('TimeUtil')]
  0034  GETTABLE  R4 = R4[K15('ParseTimeDescription')]
  0035  MOVE      R5 = R0
  0036  LOADK     R6 = K16 2
  0037  LOADBOOL  R7 = false
  0038  LOADBOOL  R8 = false
  0039  CALL      R4 = call(R4, 1 args, 4 rets)
  0040  SETTABLE  R3[K7('text')] = R4
  0041  JMP       (jump)   -> 49
  0042  GETTABLE  R2 = R0[K6('m_countDownText')]
  0043  GETTABUP  R3 = _ENV[K8('GM')]
  0044  GETTABLE  R3 = R3[K9('GameTextModel')]
  0045  SELF      R4 = R3[K10('GetText')] (self)
  0046  LOADK     R5 = K17 'bakeout_end_title'
  0047  CALL      R3 = call(R3, 1 args, 2 rets)
  0048  SETTABLE  R2[K7('text')] = R3
  0049  RETURN    return R0..R-1
; ---------- proto3 [UpdateContent] ----------
  ; fn ?  line 57-79 np=1 va=0 ms=6 code=49 consts=16 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='IsBakeOutModeOn'
  ;   K[3]='gameObject'
  ;   K[4]='activeSelf'
  ;   K[5]='SetActive'
  ;   K[6]='GetDisplayCurRank'
  ;   K[7]='m_rankText'
  ;   K[8]='text'
  ;   K[9]=''
  ;   K[10]='UIUtil'
  ;   K[11]='m_rankGo'
  ;   K[12]='m_tokenText'
  ;   K[13]='GetToken'
  ;   K[14]='0'
  ;   K[15]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-49), bakeoutOn(7-49), rank(25-49)
  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('IsBakeOutModeOn')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  GETTABLE  R2 = R0[K3('gameObject')]
  0008  GETTABLE  R2 = R2[K4('activeSelf')]
  0009  EQ        if R1 eq R2   -> -130547
  0010  JMP       (jump)   -> 15
  0011  GETTABLE  R2 = R0[K3('gameObject')]
  0012  SELF      R3 = R2[K5('SetActive')] (self)
  0013  MOVE      R4 = R0
  0014  CALL      R2 = call(R2, 0 args, 2 rets)
  0015  TEST      if not R1 then   -> -131054
  0016  JMP       (jump)   -> 18
  0017  RETURN    return R0..R-1
  0018  GETTABLE  R2 = R0[K3('gameObject')]
  0019  SELF      R3 = R2[K5('SetActive')] (self)
  0020  LOADBOOL  R4 = true
  0021  CALL      R2 = call(R2, 0 args, 2 rets)
  0022  GETTABLE  R2 = R0[K0('m_model')]
  0023  SELF      R3 = R2[K6('GetDisplayCurRank')] (self)
  0024  CALL      R2 = call(R2, 1 args, 1 rets)
  0025  GETTABLE  R3 = R0[K7('m_rankText')]
  0026  TESTSET   if R1 then R4   -> -130019
  0027  JMP       (jump)   -> 29
  0028  LOADK     R4 = K9 ''
  0029  SETTABLE  R3[K8('text')] = R4
  0030  GETTABUP  R3 = _ENV[K10('UIUtil')]
  0031  GETTABLE  R3 = R3[K5('SetActive')]
  0032  GETTABLE  R4 = R0[K11('m_rankGo')]
  0033  EQ        if R0 eq K1(nil)   -> -129756
  0034  JMP       (jump)   -> 36
  0035  LOADBOOL  R5 = false
  0036  LOADBOOL  R5 = true
  0037  CALL      R3 = call(R3, 0 args, 2 rets)
  0038  GETTABLE  R3 = R0[K12('m_tokenText')]
  0039  GETTABLE  R4 = R0[K0('m_model')]
  0040  SELF      R5 = R4[K13('GetToken')] (self)
  0041  CALL      R4 = call(R4, 1 args, 1 rets)
  0042  TEST      if not R4 then   -> -131027
  0043  JMP       (jump)   -> 45
  0044  LOADK     R4 = K14 '0'
  0045  SETTABLE  R3[K8('text')] = R4
  0046  SELF      R4 = R0[K15('UpdatePerSecond')] (self)
  0047  CALL      R3 = call(R3, 0 args, 1 rets)
  0048  RETURN    return R0..R-1
; ---------- proto4 [OnBtnClicked] ----------
  ; fn ?  line 81-103 np=1 va=0 ms=6 code=72 consts=19 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='IsEnlist'
  ;   K[6]='GM'
  ;   K[7]='UIManager'
  ;   K[8]='OpenView'
  ;   K[9]='UIPrefabConfigName'
  ;   K[10]='BakeOutMainWindow'
  ;   K[11]='OnEnlist'
  ;   K[12]='Ended'
  ;   K[13]='BakeOutInSettlementWindow'
  ;   K[14]='Released'
  ;   K[15]='GetFinalRankInfos'
  ;   K[16]='BakeOutResultWindow'
  ;   K[17]='SetWindowReopen'
  ;   K[18]='OnActivityFinished'
  ;   upvals: _ENV
  ;   locals: self(0-72)
  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)   -> 29
  0011  GETTABLE  R1 = R0[K0('m_model')]
  0012  SELF      R2 = R1[K5('IsEnlist')] (self)
  0013  CALL      R1 = call(R1, 1 args, 1 rets)
  0014  TEST      if not R1 then   -> -131056
  0015  JMP       (jump)   -> 25
  0016  GETTABUP  R1 = _ENV[K6('GM')]
  0017  GETTABLE  R1 = R1[K7('UIManager')]
  0018  SELF      R2 = R1[K8('OpenView')] (self)
  0019  GETTABUP  R3 = _ENV[K9('UIPrefabConfigName')]
  0020  GETTABLE  R3 = R3[K10('BakeOutMainWindow')]
  0021  LOADNIL   R4..R4 = nil
  0022  LOADBOOL  R5 = true
  0023  CALL      R1 = call(R1, 0 args, 4 rets)
  0024  JMP       (jump)   -> 71
  0025  GETTABLE  R1 = R0[K0('m_model')]
  0026  SELF      R2 = R1[K11('OnEnlist')] (self)
  0027  CALL      R1 = call(R1, 0 args, 1 rets)
  0028  JMP       (jump)   -> 71
  0029  GETTABLE  R1 = R0[K0('m_model')]
  0030  SELF      R2 = R1[K2('GetState')] (self)
  0031  CALL      R1 = call(R1, 1 args, 1 rets)
  0032  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0033  GETTABLE  R2 = R2[K12('Ended')]
  0034  EQ        if R0 eq R2   -> -130522
  0035  JMP       (jump)   -> 44
  0036  GETTABUP  R1 = _ENV[K6('GM')]
  0037  GETTABLE  R1 = R1[K7('UIManager')]
  0038  SELF      R2 = R1[K8('OpenView')] (self)
  0039  GETTABUP  R3 = _ENV[K9('UIPrefabConfigName')]
  0040  GETTABLE  R3 = R3[K13('BakeOutInSettlementWindow')]
  0041  LOADBOOL  R4 = true
  0042  CALL      R1 = call(R1, 0 args, 3 rets)
  0043  JMP       (jump)   -> 71
  0044  GETTABLE  R1 = R0[K0('m_model')]
  0045  SELF      R2 = R1[K2('GetState')] (self)
  0046  CALL      R1 = call(R1, 1 args, 1 rets)
  0047  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0048  GETTABLE  R2 = R2[K14('Released')]
  0049  EQ        if R0 eq R2   -> -130507
  0050  JMP       (jump)   -> 71
  0051  GETTABLE  R1 = R0[K0('m_model')]
  0052  SELF      R2 = R1[K15('GetFinalRankInfos')] (self)
  0053  CALL      R1 = call(R1, 1 args, 1 rets)
  0054  EQ        if R1 eq K1(nil)   -> -130247
  0055  JMP       (jump)   -> 64
  0056  GETTABUP  R1 = _ENV[K6('GM')]
  0057  GETTABLE  R1 = R1[K7('UIManager')]
  0058  SELF      R2 = R1[K8('OpenView')] (self)
  0059  GETTABUP  R3 = _ENV[K9('UIPrefabConfigName')]
  0060  GETTABLE  R3 = R3[K16('BakeOutResultWindow')]
  0061  LOADBOOL  R4 = true
  0062  CALL      R1 = call(R1, 0 args, 3 rets)
  0063  JMP       (jump)   -> 71
  0064  GETTABLE  R1 = R0[K0('m_model')]
  0065  SELF      R2 = R1[K17('SetWindowReopen')] (self)
  0066  CALL      R1 = call(R1, 0 args, 1 rets)
  0067  GETTABLE  R1 = R0[K0('m_model')]
  0068  SELF      R2 = R1[K18('OnActivityFinished')] (self)
  0069  LOADBOOL  R3 = true
  0070  CALL      R1 = call(R1, 0 args, 2 rets)
  0071  RETURN    return R0..R-1
