# FloatRace_View_FloatRaceLevelEndWindow_1370.luac
; fn @FloatRaceLevelEndWindow.lua  line 0-0 np=0 va=1 ms=3 code=48 consts=17 upvals=1 protos=7
;   K[0]='FloatRaceLevelEndWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='FloatRaceBaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='OnRestBtnClick'
;   K[8]='OnCloseBtnClick'
;   K[9]='OnPlayBtnClick'
;   K[10]='UpdatePerSecond'
;   K[11]='FloatRaceSuccessWindow'
;   K[12]='disableEffectWhenCloseView'
;   K[13]=true
;   K[14]='Init'
;   K[15]='FloatRaceFailWindow'
;   K[16]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canCloseByAndroidBack')] = K3(false)
0003  GETTABUP  R2 = _ENV[K4('FloatRaceBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('FloatRaceLevelEndWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('FloatRaceLevelEndWindow')]
0007  GETTABUP  R1 = _ENV[K0('FloatRaceLevelEndWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('FloatRaceLevelEndWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('FloatRaceLevelEndWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnRestBtnClick')] = R1
0015  GETTABUP  R0 = _ENV[K0('FloatRaceLevelEndWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('OnCloseBtnClick')] = R1
0018  GETTABUP  R0 = _ENV[K0('FloatRaceLevelEndWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('OnPlayBtnClick')] = R1
0021  GETTABUP  R0 = _ENV[K0('FloatRaceLevelEndWindow')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K10('UpdatePerSecond')] = R1
0024  GETTABUP  R0 = _ENV[K1('setmetatable')]
0025  NEWTABLE  R1 = {} (0 items)
0026  SETTABLE  R1[K12('disableEffectWhenCloseView')] = K13(true)
0027  GETTABUP  R2 = _ENV[K0('FloatRaceLevelEndWindow')]
0028  CALL      R0 = call(R0, 1 args, 2 rets)
0029  SETTABUP  _ENV[K11('FloatRaceSuccessWindow')] = R0
0030  GETTABUP  R0 = _ENV[K11('FloatRaceSuccessWindow')]
0031  GETTABUP  R1 = _ENV[K11('FloatRaceSuccessWindow')]
0032  SETTABLE  R0[K5('__index')] = R1
0033  GETTABUP  R0 = _ENV[K11('FloatRaceSuccessWindow')]
0034  CLOSURE   R1 = closure proto5
0035  SETTABLE  R0[K14('Init')] = R1
0036  GETTABUP  R0 = _ENV[K1('setmetatable')]
0037  NEWTABLE  R1 = {} (0 items)
0038  GETTABUP  R2 = _ENV[K0('FloatRaceLevelEndWindow')]
0039  CALL      R0 = call(R0, 1 args, 2 rets)
0040  SETTABUP  _ENV[K15('FloatRaceFailWindow')] = R0
0041  GETTABUP  R0 = _ENV[K15('FloatRaceFailWindow')]
0042  GETTABUP  R1 = _ENV[K15('FloatRaceFailWindow')]
0043  SETTABLE  R0[K5('__index')] = R1
0044  GETTABUP  R0 = _ENV[K15('FloatRaceFailWindow')]
0045  CLOSURE   R1 = closure proto6
0046  SETTABLE  R0[K16('Init')] = R1
0047  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-14 np=3 va=0 ms=10 code=31 consts=18 upvals=1 protos=0
  ;   K[0]='FloatRaceBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='UpdatePerSecond'
  ;   K[3]='m_playCallBack'
  ;   K[4]='m_restCallBack'
  ;   K[5]='LogWindowAction'
  ;   K[6]='EBIType'
  ;   K[7]='UIActionType'
  ;   K[8]='Open'
  ;   K[9]='EBIReferType'
  ;   K[10]='AutoPopup'
  ;   K[11]='id'
  ;   K[12]='m_model'
  ;   K[13]='GetId'
  ;   K[14]='r'
  ;   K[15]='GetRound'
  ;   K[16]='lv'
  ;   K[17]='GetLevel'
  ;   upvals: _ENV
  ;   locals: self(0-31), playCallBack(0-31), restCallBack(0-31)
  0000  GETTABUP  R3 = _ENV[K0('FloatRaceBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  LOADBOOL  R5 = true
  0004  LOADBOOL  R6 = true
  0005  CALL      R3 = call(R3, 0 args, 3 rets)
  0006  SELF      R4 = R0[K2('UpdatePerSecond')] (self)
  0007  CALL      R3 = call(R3, 0 args, 1 rets)
  0008  SETTABLE  R0[K3('m_playCallBack')] = R1
  0009  SETTABLE  R0[K4('m_restCallBack')] = R2
  0010  SELF      R4 = R0[K5('LogWindowAction')] (self)
  0011  GETTABUP  R5 = _ENV[K6('EBIType')]
  0012  GETTABLE  R5 = R5[K7('UIActionType')]
  0013  GETTABLE  R5 = R5[K8('Open')]
  0014  GETTABUP  R6 = _ENV[K9('EBIReferType')]
  0015  GETTABLE  R6 = R6[K10('AutoPopup')]
  0016  NEWTABLE  R7 = {} (0 items)
  0017  GETTABLE  R8 = R0[K12('m_model')]
  0018  SELF      R9 = R8[K13('GetId')] (self)
  0019  CALL      R8 = call(R8, 1 args, 1 rets)
  0020  SETTABLE  R7[K11('id')] = R8
  0021  GETTABLE  R8 = R0[K12('m_model')]
  0022  SELF      R9 = R8[K15('GetRound')] (self)
  0023  CALL      R8 = call(R8, 1 args, 1 rets)
  0024  SETTABLE  R7[K14('r')] = R8
  0025  GETTABLE  R8 = R0[K12('m_model')]
  0026  SELF      R9 = R8[K17('GetLevel')] (self)
  0027  CALL      R8 = call(R8, 1 args, 1 rets)
  0028  SETTABLE  R7[K16('lv')] = R8
  0029  CALL      R3 = call(R3, 0 args, 4 rets)
  0030  RETURN    return R0..R-1
; ---------- proto1 [OnRestBtnClick] ----------
  ; fn ?  line 16-21 np=1 va=0 ms=8 code=30 consts=18 upvals=1 protos=0
  ;   K[0]='LogWindowAction'
  ;   K[1]='EBIType'
  ;   K[2]='UIActionType'
  ;   K[3]='Close'
  ;   K[4]='EBIReferType'
  ;   K[5]='AutoPopup'
  ;   K[6]='id'
  ;   K[7]='m_model'
  ;   K[8]='GetId'
  ;   K[9]='r'
  ;   K[10]='GetRound'
  ;   K[11]='lv'
  ;   K[12]='GetLevel'
  ;   K[13]='m_restCallBack'
  ;   K[14]='EventDispatcher'
  ;   K[15]='DispatchEvent'
  ;   K[16]='EEventType'
  ;   K[17]='FloatRaceWaitSignUp'
  ;   upvals: _ENV
  ;   locals: self(0-30)
  0000  SELF      R2 = R0[K0('LogWindowAction')] (self)
  0001  GETTABUP  R3 = _ENV[K1('EBIType')]
  0002  GETTABLE  R3 = R3[K2('UIActionType')]
  0003  GETTABLE  R3 = R3[K3('Close')]
  0004  GETTABUP  R4 = _ENV[K4('EBIReferType')]
  0005  GETTABLE  R4 = R4[K5('AutoPopup')]
  0006  NEWTABLE  R5 = {} (0 items)
  0007  GETTABLE  R6 = R0[K7('m_model')]
  0008  SELF      R7 = R6[K8('GetId')] (self)
  0009  CALL      R6 = call(R6, 1 args, 1 rets)
  0010  SETTABLE  R5[K6('id')] = R6
  0011  GETTABLE  R6 = R0[K7('m_model')]
  0012  SELF      R7 = R6[K10('GetRound')] (self)
  0013  CALL      R6 = call(R6, 1 args, 1 rets)
  0014  SETTABLE  R5[K9('r')] = R6
  0015  GETTABLE  R6 = R0[K7('m_model')]
  0016  SELF      R7 = R6[K12('GetLevel')] (self)
  0017  CALL      R6 = call(R6, 1 args, 1 rets)
  0018  SETTABLE  R5[K11('lv')] = R6
  0019  CALL      R1 = call(R1, 0 args, 4 rets)
  0020  SELF      R2 = R0[K3('Close')] (self)
  0021  CALL      R1 = call(R1, 0 args, 1 rets)
  0022  GETTABLE  R1 = R0[K13('m_restCallBack')]
  0023  CALL      R1 = call(R1, 0 args, 0 rets)
  0024  GETTABUP  R1 = _ENV[K14('EventDispatcher')]
  0025  GETTABLE  R1 = R1[K15('DispatchEvent')]
  0026  GETTABUP  R2 = _ENV[K16('EEventType')]
  0027  GETTABLE  R2 = R2[K17('FloatRaceWaitSignUp')]
  0028  CALL      R1 = call(R1, 0 args, 1 rets)
  0029  RETURN    return R0..R-1
; ---------- proto2 [OnCloseBtnClick] ----------
  ; fn ?  line 23-25 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='OnRestBtnClick'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('OnRestBtnClick')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto3 [OnPlayBtnClick] ----------
  ; fn ?  line 27-37 np=1 va=0 ms=8 code=35 consts=17 upvals=1 protos=0
  ;   K[0]='LogWindowAction'
  ;   K[1]='EBIType'
  ;   K[2]='UIActionType'
  ;   K[3]='Click'
  ;   K[4]='EBIReferType'
  ;   K[5]='AutoPopup'
  ;   K[6]='id'
  ;   K[7]='m_model'
  ;   K[8]='GetId'
  ;   K[9]='r'
  ;   K[10]='GetRound'
  ;   K[11]='lv'
  ;   K[12]='GetLevel'
  ;   K[13]='CheckNetworkReachability'
  ;   K[14]='SignUp'
  ;   K[15]='Close'
  ;   K[16]='m_playCallBack'
  ;   upvals: _ENV
  ;   locals: self(0-35)
  0000  SELF      R2 = R0[K0('LogWindowAction')] (self)
  0001  GETTABUP  R3 = _ENV[K1('EBIType')]
  0002  GETTABLE  R3 = R3[K2('UIActionType')]
  0003  GETTABLE  R3 = R3[K3('Click')]
  0004  GETTABUP  R4 = _ENV[K4('EBIReferType')]
  0005  GETTABLE  R4 = R4[K5('AutoPopup')]
  0006  NEWTABLE  R5 = {} (0 items)
  0007  GETTABLE  R6 = R0[K7('m_model')]
  0008  SELF      R7 = R6[K8('GetId')] (self)
  0009  CALL      R6 = call(R6, 1 args, 1 rets)
  0010  SETTABLE  R5[K6('id')] = R6
  0011  GETTABLE  R6 = R0[K7('m_model')]
  0012  SELF      R7 = R6[K10('GetRound')] (self)
  0013  CALL      R6 = call(R6, 1 args, 1 rets)
  0014  SETTABLE  R5[K9('r')] = R6
  0015  GETTABLE  R6 = R0[K7('m_model')]
  0016  SELF      R7 = R6[K12('GetLevel')] (self)
  0017  CALL      R6 = call(R6, 1 args, 1 rets)
  0018  SETTABLE  R5[K11('lv')] = R6
  0019  CALL      R1 = call(R1, 0 args, 4 rets)
  0020  GETTABLE  R1 = R0[K7('m_model')]
  0021  SELF      R2 = R1[K13('CheckNetworkReachability')] (self)
  0022  CALL      R1 = call(R1, 1 args, 1 rets)
  0023  TEST      if not R1 then   -> -131046
  0024  JMP       (jump)   -> 26
  0025  RETURN    return R0..R-1
  0026  GETTABLE  R1 = R0[K7('m_model')]
  0027  SELF      R2 = R1[K14('SignUp')] (self)
  0028  LOADBOOL  R3 = false
  0029  CALL      R1 = call(R1, 0 args, 2 rets)
  0030  SELF      R2 = R0[K15('Close')] (self)
  0031  CALL      R1 = call(R1, 0 args, 1 rets)
  0032  GETTABLE  R1 = R0[K16('m_playCallBack')]
  0033  CALL      R1 = call(R1, 0 args, 0 rets)
  0034  RETURN    return R0..R-1
; ---------- proto4 [UpdatePerSecond] ----------
  ; fn ?  line 39-52 np=1 va=0 ms=8 code=46 consts=18 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_countdownText'
  ;   K[3]='GetState'
  ;   K[4]='ActivityState'
  ;   K[5]='Ended'
  ;   K[6]='text'
  ;   K[7]='GM'
  ;   K[8]='GameTextModel'
  ;   K[9]='GetText'
  ;   K[10]='event_general_end'
  ;   K[11]='Close'
  ;   K[12]='GetNextStateTime'
  ;   K[13]='GameModel'
  ;   K[14]='GetServerTime'
  ;   K[15]='TimeUtil'
  ;   K[16]='ParseTimeDescription'
  ;   K[17]=2
  ;   upvals: _ENV
  ;   locals: self(0-46), delta(36-45)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 45
  0003  GETTABLE  R1 = R0[K2('m_countdownText')]
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 45
  0006  GETTABLE  R1 = R0[K0('m_model')]
  0007  SELF      R2 = R1[K3('GetState')] (self)
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  GETTABUP  R2 = _ENV[K4('ActivityState')]
  0010  GETTABLE  R2 = R2[K5('Ended')]
  0011  EQ        if R0 eq R2   -> -130545
  0012  JMP       (jump)   -> 23
  0013  GETTABLE  R1 = R0[K2('m_countdownText')]
  0014  GETTABUP  R2 = _ENV[K7('GM')]
  0015  GETTABLE  R2 = R2[K8('GameTextModel')]
  0016  SELF      R3 = R2[K9('GetText')] (self)
  0017  LOADK     R4 = K10 'event_general_end'
  0018  CALL      R2 = call(R2, 1 args, 2 rets)
  0019  SETTABLE  R1[K6('text')] = R2
  0020  SELF      R2 = R0[K11('Close')] (self)
  0021  CALL      R1 = call(R1, 0 args, 1 rets)
  0022  RETURN    return R0..R-1
  0023  GETTABLE  R1 = R0[K0('m_model')]
  0024  SELF      R2 = R1[K12('GetNextStateTime')] (self)
  0025  CALL      R1 = call(R1, 1 args, 1 rets)
  0026  EQ        if R1 eq K1(nil)   -> -130275
  0027  JMP       (jump)   -> 45
  0028  GETTABLE  R1 = R0[K0('m_model')]
  0029  SELF      R2 = R1[K12('GetNextStateTime')] (self)
  0030  CALL      R1 = call(R1, 1 args, 1 rets)
  0031  GETTABUP  R2 = _ENV[K7('GM')]
  0032  GETTABLE  R2 = R2[K13('GameModel')]
  0033  SELF      R3 = R2[K14('GetServerTime')] (self)
  0034  CALL      R2 = call(R2, 1 args, 1 rets)
  0035  SUB       R1 = R2 sub R1
  0036  GETTABLE  R2 = R0[K2('m_countdownText')]
  0037  GETTABUP  R3 = _ENV[K15('TimeUtil')]
  0038  GETTABLE  R3 = R3[K16('ParseTimeDescription')]
  0039  MOVE      R4 = R0
  0040  LOADK     R5 = K17 2
  0041  LOADBOOL  R6 = false
  0042  LOADBOOL  R7 = false
  0043  CALL      R3 = call(R3, 1 args, 4 rets)
  0044  SETTABLE  R2[K6('text')] = R3
  0045  RETURN    return R0..R-1
; ---------- proto5 [Init] ----------
  ; fn ?  line 61-66 np=4 va=0 ms=8 code=20 consts=11 upvals=1 protos=0
  ;   K[0]='FloatRaceLevelEndWindow'
  ;   K[1]='Init'
  ;   K[2]='m_rankText'
  ;   K[3]='text'
  ;   K[4]='m_model'
  ;   K[5]='GetRank'
  ;   K[6]='GM'
  ;   K[7]='AudioModel'
  ;   K[8]='PlayEffect'
  ;   K[9]='AudioFileConfigName'
  ;   K[10]='SfxTaskChest'
  ;   upvals: _ENV
  ;   locals: self(0-20), openCallBack(0-20), playCallBack(0-20), restCallBack(0-20)
  0000  GETTABUP  R4 = _ENV[K0('FloatRaceLevelEndWindow')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  MOVE      R7 = R0
  0005  CALL      R4 = call(R4, 0 args, 3 rets)
  0006  GETTABLE  R4 = R0[K2('m_rankText')]
  0007  GETTABLE  R5 = R0[K4('m_model')]
  0008  SELF      R6 = R5[K5('GetRank')] (self)
  0009  CALL      R5 = call(R5, 1 args, 1 rets)
  0010  SETTABLE  R4[K3('text')] = R5
  0011  MOVE      R4 = R0
  0012  CALL      R4 = call(R4, 0 args, 0 rets)
  0013  GETTABUP  R4 = _ENV[K6('GM')]
  0014  GETTABLE  R4 = R4[K7('AudioModel')]
  0015  SELF      R5 = R4[K8('PlayEffect')] (self)
  0016  GETTABUP  R6 = _ENV[K9('AudioFileConfigName')]
  0017  GETTABLE  R6 = R6[K10('SfxTaskChest')]
  0018  CALL      R4 = call(R4, 0 args, 2 rets)
  0019  RETURN    return R0..R-1
; ---------- proto6 [Init] ----------
  ; fn ?  line 76-89 np=1 va=0 ms=9 code=31 consts=14 upvals=1 protos=2
  ;   K[0]='FloatRaceLevelEndWindow'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]='ClearFailWindowPop'
  ;   K[4]='ClearCurrentPlayState'
  ;   K[5]='GetMaxLevel'
  ;   K[6]='GetLevel'
  ;   K[7]=1
  ;   K[8]='m_levelText'
  ;   K[9]='text'
  ;   K[10]='GM'
  ;   K[11]='GameTextModel'
  ;   K[12]='GetText'
  ;   K[13]='floatRace_fail_desc'
  ;   upvals: _ENV
  ;   locals: self(0-31), playCallBack(1-31), restCallBack(2-31), needLevel(22-31)
  0000  CLOSURE   R1 = closure proto0
  0001  CLOSURE   R2 = closure proto1
  0002  GETTABUP  R3 = _ENV[K0('FloatRaceLevelEndWindow')]
  0003  GETTABLE  R3 = R3[K1('Init')]
  0004  MOVE      R4 = R0
  0005  MOVE      R5 = R0
  0006  MOVE      R6 = R0
  0007  CALL      R3 = call(R3, 0 args, 3 rets)
  0008  GETTABLE  R3 = R0[K2('m_model')]
  0009  SELF      R4 = R3[K3('ClearFailWindowPop')] (self)
  0010  CALL      R3 = call(R3, 0 args, 1 rets)
  0011  GETTABLE  R3 = R0[K2('m_model')]
  0012  SELF      R4 = R3[K4('ClearCurrentPlayState')] (self)
  0013  CALL      R3 = call(R3, 0 args, 1 rets)
  0014  GETTABLE  R3 = R0[K2('m_model')]
  0015  SELF      R4 = R3[K5('GetMaxLevel')] (self)
  0016  CALL      R3 = call(R3, 1 args, 1 rets)
  0017  GETTABLE  R4 = R0[K2('m_model')]
  0018  SELF      R5 = R4[K6('GetLevel')] (self)
  0019  CALL      R4 = call(R4, 1 args, 1 rets)
  0020  SUB       R3 = R4 sub R3
  0021  ADD       R3 = K7(1) add R3
  0022  GETTABLE  R4 = R0[K8('m_levelText')]
  0023  GETTABUP  R5 = _ENV[K10('GM')]
  0024  GETTABLE  R5 = R5[K11('GameTextModel')]
  0025  SELF      R6 = R5[K12('GetText')] (self)
  0026  LOADK     R7 = K13 'floatRace_fail_desc'
  0027  MOVE      R8 = R0
  0028  CALL      R5 = call(R5, 1 args, 3 rets)
  0029  SETTABLE  R4[K9('text')] = R5
  0030  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 77-79 np=0 va=0 ms=5 code=9 consts=5 upvals=1 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='OpenView'
    ;   K[3]='UIPrefabConfigName'
    ;   K[4]='FloatRaceMainWindow'
    ;   upvals: _ENV
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('OpenView')] (self)
    0003  GETTABUP  R2 = _ENV[K3('UIPrefabConfigName')]
    0004  GETTABLE  R2 = R2[K4('FloatRaceMainWindow')]
    0005  LOADBOOL  R3 = true
    0006  LOADBOOL  R4 = true
    0007  CALL      R0 = call(R0, 0 args, 4 rets)
    0008  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 81-83 np=0 va=0 ms=2 code=6 consts=4 upvals=1 protos=0
    ;   K[0]='EventDispatcher'
    ;   K[1]='DispatchEvent'
    ;   K[2]='EEventType'
    ;   K[3]='FloatRaceWaitSignUp'
    ;   upvals: _ENV
    0000  GETTABUP  R0 = _ENV[K0('EventDispatcher')]
    0001  GETTABLE  R0 = R0[K1('DispatchEvent')]
    0002  GETTABUP  R1 = _ENV[K2('EEventType')]
    0003  GETTABLE  R1 = R1[K3('FloatRaceWaitSignUp')]
    0004  CALL      R0 = call(R0, 0 args, 1 rets)
    0005  RETURN    return R0..R-1
