# CrashRace_View_CrashRaceNoticeWindow_1086.luac
; fn @CrashRaceNoticeWindow.lua  line 0-0 np=0 va=1 ms=3 code=27 consts=10 upvals=1 protos=6
;   K[0]='CrashRaceNoticeWindow'
;   K[1]='setmetatable'
;   K[2]='CrashRaceBaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='UpdatePerSecond'
;   K[6]='_UpdateCountdown'
;   K[7]='OnBtnClicked'
;   K[8]='_OnEntry'
;   K[9]='GetButtonTransform'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('CrashRaceBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('CrashRaceNoticeWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('CrashRaceNoticeWindow')]
0006  GETTABUP  R1 = _ENV[K0('CrashRaceNoticeWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('CrashRaceNoticeWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('CrashRaceNoticeWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdatePerSecond')] = R1
0014  GETTABUP  R0 = _ENV[K0('CrashRaceNoticeWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_UpdateCountdown')] = R1
0017  GETTABUP  R0 = _ENV[K0('CrashRaceNoticeWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnBtnClicked')] = R1
0020  GETTABUP  R0 = _ENV[K0('CrashRaceNoticeWindow')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_OnEntry')] = R1
0023  GETTABUP  R0 = _ENV[K0('CrashRaceNoticeWindow')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('GetButtonTransform')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-24 np=3 va=0 ms=12 code=57 consts=28 upvals=1 protos=0
  ;   K[0]='CrashRaceBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='PlayerPrefs'
  ;   K[3]='SetInt'
  ;   K[4]='EPlayerPrefKey'
  ;   K[5]='CrashRaceDailyOpenTime'
  ;   K[6]='GM'
  ;   K[7]='GameModel'
  ;   K[8]='GetServerTime'
  ;   K[9]='m_bClicked'
  ;   K[10]=false
  ;   K[11]='m_closeBtnGo'
  ;   K[12]='SetActive'
  ;   K[13]='m_model'
  ;   K[14]='GetCurrentRound'
  ;   K[15]=0
  ;   K[16]='m_activityDefinition'
  ;   K[17]='TitleTextKey'
  ;   K[18]='canCloseByAndroidBack'
  ;   K[19]='GetNextRoundInRoman'
  ;   K[20]='m_titleText'
  ;   K[21]='text'
  ;   K[22]='GameTextModel'
  ;   K[23]='GetText'
  ;   K[24]='crashrace_start_desc'
  ;   K[25]='crashrace_restart_desc'
  ;   K[26]='m_descText'
  ;   K[27]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-57), activityType(0-57), bAutoOpen(0-57), curRound(23-57), bFirstRound(27-57), titleKey(29-57), round(33-57), descKey(47-57)
  0000  GETTABUP  R3 = _ENV[K0('CrashRaceBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  MOVE      R6 = R0
  0005  CALL      R3 = call(R3, 0 args, 3 rets)
  0006  GETTABUP  R3 = _ENV[K2('PlayerPrefs')]
  0007  GETTABLE  R3 = R3[K3('SetInt')]
  0008  GETTABUP  R4 = _ENV[K4('EPlayerPrefKey')]
  0009  GETTABLE  R4 = R4[K5('CrashRaceDailyOpenTime')]
  0010  GETTABUP  R5 = _ENV[K6('GM')]
  0011  GETTABLE  R5 = R5[K7('GameModel')]
  0012  SELF      R6 = R5[K8('GetServerTime')] (self)
  0013  CALL      R5 = call(R5, -1 args, 1 rets)
  0014  CALL      R3 = call(R3, 0 args, -1 rets)
  0015  SETTABLE  R0[K9('m_bClicked')] = K10(false)
  0016  GETTABLE  R3 = R0[K11('m_closeBtnGo')]
  0017  SELF      R4 = R3[K12('SetActive')] (self)
  0018  LOADBOOL  R5 = false
  0019  CALL      R3 = call(R3, 0 args, 2 rets)
  0020  GETTABLE  R3 = R0[K13('m_model')]
  0021  SELF      R4 = R3[K14('GetCurrentRound')] (self)
  0022  CALL      R3 = call(R3, 1 args, 1 rets)
  0023  EQ        if R1 eq K15(0)   -> -129240
  0024  JMP       (jump)   -> 26
  0025  LOADBOOL  R4 = false
  0026  LOADBOOL  R4 = true
  0027  GETTABLE  R5 = R0[K16('m_activityDefinition')]
  0028  GETTABLE  R5 = R5[K17('TitleTextKey')]
  0029  SETTABLE  R0[K18('canCloseByAndroidBack')] = K10(false)
  0030  GETTABLE  R6 = R0[K13('m_model')]
  0031  SELF      R7 = R6[K19('GetNextRoundInRoman')] (self)
  0032  CALL      R6 = call(R6, 1 args, 1 rets)
  0033  GETTABLE  R7 = R0[K20('m_titleText')]
  0034  GETTABUP  R8 = _ENV[K6('GM')]
  0035  GETTABLE  R8 = R8[K22('GameTextModel')]
  0036  SELF      R9 = R8[K23('GetText')] (self)
  0037  MOVE      R10 = R0
  0038  MOVE      R11 = R0
  0039  CALL      R8 = call(R8, 1 args, 3 rets)
  0040  SETTABLE  R7[K21('text')] = R8
  0041  TEST      if not R4 then   -> -131029
  0042  JMP       (jump)   -> 46
  0043  LOADK     R7 = K24 'crashrace_start_desc'
  0044  TEST      if not R7 then   -> -131025
  0045  JMP       (jump)   -> 47
  0046  LOADK     R7 = K25 'crashrace_restart_desc'
  0047  GETTABLE  R8 = R0[K26('m_descText')]
  0048  GETTABUP  R9 = _ENV[K6('GM')]
  0049  GETTABLE  R9 = R9[K22('GameTextModel')]
  0050  SELF      R10 = R9[K23('GetText')] (self)
  0051  MOVE      R11 = R0
  0052  CALL      R9 = call(R9, 1 args, 2 rets)
  0053  SETTABLE  R8[K21('text')] = R9
  0054  SELF      R9 = R0[K27('UpdatePerSecond')] (self)
  0055  CALL      R8 = call(R8, 0 args, 1 rets)
  0056  RETURN    return R0..R-1
; ---------- proto1 [UpdatePerSecond] ----------
  ; fn ?  line 26-28 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_UpdateCountdown'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_UpdateCountdown')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto2 [_UpdateCountdown] ----------
  ; fn ?  line 30-42 np=1 va=0 ms=9 code=34 consts=13 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetNextStateTime'
  ;   K[3]='IsActivityValid'
  ;   K[4]='GM'
  ;   K[5]='GameModel'
  ;   K[6]='GetServerTime'
  ;   K[7]='m_countdownText'
  ;   K[8]='text'
  ;   K[9]='TimeUtil'
  ;   K[10]='ParseTimeDescription'
  ;   K[11]=2
  ;   K[12]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-34), nextTime(7-34), delta(21-30)
  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)   -> 31
  0009  SELF      R3 = R0[K3('IsActivityValid')] (self)
  0010  CALL      R2 = call(R2, 1 args, 1 rets)
  0011  TEST      if not R2 then   -> -131059
  0012  JMP       (jump)   -> 31
  0013  GETTABLE  R2 = R0[K0('m_model')]
  0014  SELF      R3 = R2[K2('GetNextStateTime')] (self)
  0015  CALL      R2 = call(R2, 1 args, 1 rets)
  0016  GETTABUP  R3 = _ENV[K4('GM')]
  0017  GETTABLE  R3 = R3[K5('GameModel')]
  0018  SELF      R4 = R3[K6('GetServerTime')] (self)
  0019  CALL      R3 = call(R3, 1 args, 1 rets)
  0020  SUB       R2 = R3 sub R2
  0021  GETTABLE  R3 = R0[K7('m_countdownText')]
  0022  GETTABUP  R4 = _ENV[K9('TimeUtil')]
  0023  GETTABLE  R4 = R4[K10('ParseTimeDescription')]
  0024  MOVE      R5 = R0
  0025  LOADK     R6 = K11 2
  0026  LOADBOOL  R7 = false
  0027  LOADBOOL  R8 = false
  0028  CALL      R4 = call(R4, 1 args, 4 rets)
  0029  SETTABLE  R3[K8('text')] = R4
  0030  JMP       (jump)   -> 33
  0031  SELF      R3 = R0[K12('Close')] (self)
  0032  CALL      R2 = call(R2, 0 args, 1 rets)
  0033  RETURN    return R0..R-1
; ---------- proto3 [OnBtnClicked] ----------
  ; fn ?  line 44-46 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_OnEntry'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_OnEntry')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto4 [_OnEntry] ----------
  ; fn ?  line 49-62 np=1 va=0 ms=6 code=22 consts=13 upvals=1 protos=0
  ;   K[0]='m_bClicked'
  ;   K[1]=true
  ;   K[2]='m_model'
  ;   K[3]='GetState'
  ;   K[4]='ActivityState'
  ;   K[5]='Started'
  ;   K[6]='GM'
  ;   K[7]='UIManager'
  ;   K[8]='OpenView'
  ;   K[9]='m_activityDefinition'
  ;   K[10]='MatchWindowPrefabName'
  ;   K[11]='m_activityType'
  ;   K[12]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-22), state(8-22)
  0000  GETTABLE  R1 = R0[K0('m_bClicked')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SETTABLE  R0[K0('m_bClicked')] = K1(true)
  0005  GETTABLE  R1 = R0[K2('m_model')]
  0006  SELF      R2 = R1[K3('GetState')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  GETTABUP  R2 = _ENV[K4('ActivityState')]
  0009  GETTABLE  R2 = R2[K5('Started')]
  0010  EQ        if R0 eq R2   -> -130546
  0011  JMP       (jump)   -> 19
  0012  GETTABUP  R2 = _ENV[K6('GM')]
  0013  GETTABLE  R2 = R2[K7('UIManager')]
  0014  SELF      R3 = R2[K8('OpenView')] (self)
  0015  GETTABLE  R4 = R0[K9('m_activityDefinition')]
  0016  GETTABLE  R4 = R4[K10('MatchWindowPrefabName')]
  0017  GETTABLE  R5 = R0[K11('m_activityType')]
  0018  CALL      R2 = call(R2, 0 args, 3 rets)
  0019  SELF      R3 = R0[K12('Close')] (self)
  0020  CALL      R2 = call(R2, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto5 [GetButtonTransform] ----------
  ; fn ?  line 64-66 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_buttonGo'
  ;   K[1]='transform'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_buttonGo')]
  0001  GETTABLE  R1 = R1[K1('transform')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
