# MultiRank_View_MultiRankStartWindow_1205.luac
; fn @MultiRankStartWindow.lua  line 0-0 np=0 va=1 ms=3 code=26 consts=12 upvals=1 protos=5
;   K[0]='MultiRankStartWindow'
;   K[1]='setmetatable'
;   K[2]='disableEffectWhenCloseView'
;   K[3]=true
;   K[4]='canClickWindowMask'
;   K[5]='MultiRankBaseWindow'
;   K[6]='__index'
;   K[7]='Init'
;   K[8]='OnDestroy'
;   K[9]='UpdateEffectSortingOrder'
;   K[10]='OnBtnClicked'
;   K[11]='UpdatePerSecond'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('disableEffectWhenCloseView')] = K3(true)
0003  SETTABLE  R1[K4('canClickWindowMask')] = K3(true)
0004  GETTABUP  R2 = _ENV[K5('MultiRankBaseWindow')]
0005  CALL      R0 = call(R0, 1 args, 2 rets)
0006  SETTABUP  _ENV[K0('MultiRankStartWindow')] = R0
0007  GETTABUP  R0 = _ENV[K0('MultiRankStartWindow')]
0008  GETTABUP  R1 = _ENV[K0('MultiRankStartWindow')]
0009  SETTABLE  R0[K6('__index')] = R1
0010  GETTABUP  R0 = _ENV[K0('MultiRankStartWindow')]
0011  CLOSURE   R1 = closure proto0
0012  SETTABLE  R0[K7('Init')] = R1
0013  GETTABUP  R0 = _ENV[K0('MultiRankStartWindow')]
0014  CLOSURE   R1 = closure proto1
0015  SETTABLE  R0[K8('OnDestroy')] = R1
0016  GETTABUP  R0 = _ENV[K0('MultiRankStartWindow')]
0017  CLOSURE   R1 = closure proto2
0018  SETTABLE  R0[K9('UpdateEffectSortingOrder')] = R1
0019  GETTABUP  R0 = _ENV[K0('MultiRankStartWindow')]
0020  CLOSURE   R1 = closure proto3
0021  SETTABLE  R0[K10('OnBtnClicked')] = R1
0022  GETTABUP  R0 = _ENV[K0('MultiRankStartWindow')]
0023  CLOSURE   R1 = closure proto4
0024  SETTABLE  R0[K11('UpdatePerSecond')] = R1
0025  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-29 np=1 va=1 ms=7 code=20 consts=9 upvals=1 protos=1
  ;   K[0]='MultiRankBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='UpdateEffectSortingOrder'
  ;   K[3]='UpdatePerSecond'
  ;   K[4]='m_showEffectFunc'
  ;   K[5]='Scheduler'
  ;   K[6]='Schedule'
  ;   K[7]=11.13
  ;   K[8]=0
  ;   upvals: _ENV
  ;   locals: self(0-20)
  0000  GETTABUP  R1 = _ENV[K0('MultiRankBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  SELF      R2 = R0[K2('UpdateEffectSortingOrder')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  SELF      R2 = R0[K3('UpdatePerSecond')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  CLOSURE   R1 = closure proto0
  0010  SETTABLE  R0[K4('m_showEffectFunc')] = R1
  0011  GETTABUP  R1 = _ENV[K5('Scheduler')]
  0012  GETTABLE  R1 = R1[K6('Schedule')]
  0013  GETTABLE  R2 = R0[K4('m_showEffectFunc')]
  0014  MOVE      R3 = R0
  0015  LOADK     R4 = K7 11.13
  0016  LOADNIL   R5..R5 = nil
  0017  LOADK     R6 = K8 0
  0018  CALL      R1 = call(R1, 0 args, 5 rets)
  0019  RETURN    return R0..R-1
  ; ---------- proto0 [m_showEffectFunc] ----------
    ; fn ?  line 13-26 np=0 va=0 ms=4 code=21 consts=5 upvals=2 protos=4
    ;   K[0]='DelayExecuteFuncInView'
    ;   K[1]=1
    ;   K[2]=4.3
    ;   K[3]=7.4
    ;   K[4]=10
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('DelayExecuteFuncInView')]
    0001  CLOSURE   R1 = closure proto0
    0002  LOADK     R2 = K1 1
    0003  GETUPVAL  R3 = _ENV
    0004  CALL      R0 = call(R0, 0 args, 3 rets)
    0005  GETTABUP  R0 = _ENV[K0('DelayExecuteFuncInView')]
    0006  CLOSURE   R1 = closure proto1
    0007  LOADK     R2 = K2 4.3
    0008  GETUPVAL  R3 = _ENV
    0009  CALL      R0 = call(R0, 0 args, 3 rets)
    0010  GETTABUP  R0 = _ENV[K0('DelayExecuteFuncInView')]
    0011  CLOSURE   R1 = closure proto2
    0012  LOADK     R2 = K3 7.4
    0013  GETUPVAL  R3 = _ENV
    0014  CALL      R0 = call(R0, 0 args, 3 rets)
    0015  GETTABUP  R0 = _ENV[K0('DelayExecuteFuncInView')]
    0016  CLOSURE   R1 = closure proto3
    0017  LOADK     R2 = K4 10
    0018  GETUPVAL  R3 = _ENV
    0019  CALL      R0 = call(R0, 0 args, 3 rets)
    0020  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 14-16 np=0 va=0 ms=3 code=6 consts=3 upvals=2 protos=0
      ;   K[0]='UIUtil'
      ;   K[1]='SetActive'
      ;   K[2]='m_fireEffectGo'
      ;   upvals: _ENV, self
      0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
      0001  GETTABLE  R0 = R0[K1('SetActive')]
      0002  GETTABUP  R1 = self[K2('m_fireEffectGo')]
      0003  LOADBOOL  R2 = true
      0004  CALL      R0 = call(R0, 0 args, 2 rets)
      0005  RETURN    return R0..R-1
    ; ---------- proto1 [] ----------
      ; fn ?  line 17-19 np=0 va=0 ms=3 code=6 consts=3 upvals=2 protos=0
      ;   K[0]='UIUtil'
      ;   K[1]='SetActive'
      ;   K[2]='m_fireEffectGo'
      ;   upvals: _ENV, self
      0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
      0001  GETTABLE  R0 = R0[K1('SetActive')]
      0002  GETTABUP  R1 = self[K2('m_fireEffectGo')]
      0003  LOADBOOL  R2 = false
      0004  CALL      R0 = call(R0, 0 args, 2 rets)
      0005  RETURN    return R0..R-1
    ; ---------- proto2 [] ----------
      ; fn ?  line 20-22 np=0 va=0 ms=3 code=6 consts=3 upvals=2 protos=0
      ;   K[0]='UIUtil'
      ;   K[1]='SetActive'
      ;   K[2]='m_fireEffectGo'
      ;   upvals: _ENV, self
      0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
      0001  GETTABLE  R0 = R0[K1('SetActive')]
      0002  GETTABUP  R1 = self[K2('m_fireEffectGo')]
      0003  LOADBOOL  R2 = true
      0004  CALL      R0 = call(R0, 0 args, 2 rets)
      0005  RETURN    return R0..R-1
    ; ---------- proto3 [] ----------
      ; fn ?  line 23-25 np=0 va=0 ms=3 code=6 consts=3 upvals=2 protos=0
      ;   K[0]='UIUtil'
      ;   K[1]='SetActive'
      ;   K[2]='m_fireEffectGo'
      ;   upvals: _ENV, self
      0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
      0001  GETTABLE  R0 = R0[K1('SetActive')]
      0002  GETTABUP  R1 = self[K2('m_fireEffectGo')]
      0003  LOADBOOL  R2 = false
      0004  CALL      R0 = call(R0, 0 args, 2 rets)
      0005  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 31-34 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='MultiRankBaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='Scheduler'
  ;   K[3]='UnscheduleTarget'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('MultiRankBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('Scheduler')]
  0005  GETTABLE  R1 = R1[K3('UnscheduleTarget')]
  0006  MOVE      R2 = R0
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto2 [UpdateEffectSortingOrder] ----------
  ; fn ?  line 36-45 np=1 va=0 ms=9 code=27 consts=10 upvals=1 protos=0
  ;   K[0]='GetSortingOrder'
  ;   K[1]='m_fireEffectGo'
  ;   K[2]=nil
  ;   K[3]='GetComponentsInChildren'
  ;   K[4]='typeof'
  ;   K[5]='Renderer'
  ;   K[6]=0
  ;   K[7]='Length'
  ;   K[8]=1
  ;   K[9]='sortingOrder'
  ;   upvals: _ENV
  ;   locals: self(0-27), baseSortingOrder(2-27), arrRenderer(12-26), (for index)(16-26), (for limit)(16-26), (for step)(16-26), i(17-25)
  0000  SELF      R2 = R0[K0('GetSortingOrder')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABLE  R2 = R0[K1('m_fireEffectGo')]
  0003  EQ        if R1 eq K2(nil)   -> -129785
  0004  JMP       (jump)   -> 26
  0005  GETTABLE  R2 = R0[K1('m_fireEffectGo')]
  0006  SELF      R3 = R2[K3('GetComponentsInChildren')] (self)
  0007  GETTABUP  R4 = _ENV[K4('typeof')]
  0008  GETTABUP  R5 = _ENV[K5('Renderer')]
  0009  CALL      R4 = call(R4, 1 args, 1 rets)
  0010  LOADBOOL  R5 = true
  0011  CALL      R2 = call(R2, 1 args, 3 rets)
  0012  LOADK     R3 = K6 0
  0013  GETTABLE  R4 = R2[K7('Length')]
  0014  SUB       R4 = K8(1) sub R4
  0015  LOADK     R5 = K8 1
  0016  FORPREP   forprep R3(sBx=8)   -> 25
  0017  GETTABLE  R7 = R2[R6]
  0018  GETTABLE  R8 = R2[R6]
  0019  GETTABLE  R8 = R8[K9('sortingOrder')]
  0020  TEST      if not R8 then   -> -131049
  0021  JMP       (jump)   -> 23
  0022  LOADK     R8 = K6 0
  0023  ADD       R8 = R1 add R8
  0024  SETTABLE  R7[K9('sortingOrder')] = R8
  0025  FORLOOP   forloop R3(sBx=-9)   -> 17
  0026  RETURN    return R0..R-1
; ---------- proto3 [OnBtnClicked] ----------
  ; fn ?  line 47-52 np=1 va=0 ms=4 code=17 consts=7 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='GM'
  ;   K[2]='SceneManager'
  ;   K[3]='GetGameMode'
  ;   K[4]='EGameMode'
  ;   K[5]='Board'
  ;   K[6]='ChangeGameMode'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('GM')]
  0003  GETTABLE  R1 = R1[K2('SceneManager')]
  0004  SELF      R2 = R1[K3('GetGameMode')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K4('EGameMode')]
  0007  GETTABLE  R2 = R2[K5('Board')]
  0008  EQ        if R1 eq R2   -> -130548
  0009  JMP       (jump)   -> 16
  0010  GETTABUP  R1 = _ENV[K1('GM')]
  0011  GETTABLE  R1 = R1[K2('SceneManager')]
  0012  SELF      R2 = R1[K6('ChangeGameMode')] (self)
  0013  GETTABUP  R3 = _ENV[K4('EGameMode')]
  0014  GETTABLE  R3 = R3[K5('Board')]
  0015  CALL      R1 = call(R1, 0 args, 2 rets)
  0016  RETURN    return R0..R-1
; ---------- proto4 [UpdatePerSecond] ----------
  ; fn ?  line 54-59 np=1 va=0 ms=8 code=28 consts=14 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='GetNextStateTime'
  ;   K[6]='GM'
  ;   K[7]='GameModel'
  ;   K[8]='GetServerTime'
  ;   K[9]='m_countdownText'
  ;   K[10]='text'
  ;   K[11]='TimeUtil'
  ;   K[12]='ParseTimeDescription'
  ;   K[13]=2
  ;   upvals: _ENV
  ;   locals: self(0-28), delta(18-27)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 27
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('GetState')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0007  GETTABLE  R2 = R2[K4('Started')]
  0008  EQ        if R0 eq R2   -> -130548
  0009  JMP       (jump)   -> 27
  0010  GETTABLE  R1 = R0[K0('m_model')]
  0011  SELF      R2 = R1[K5('GetNextStateTime')] (self)
  0012  CALL      R1 = call(R1, 1 args, 1 rets)
  0013  GETTABUP  R2 = _ENV[K6('GM')]
  0014  GETTABLE  R2 = R2[K7('GameModel')]
  0015  SELF      R3 = R2[K8('GetServerTime')] (self)
  0016  CALL      R2 = call(R2, 1 args, 1 rets)
  0017  SUB       R1 = R2 sub R1
  0018  GETTABLE  R2 = R0[K9('m_countdownText')]
  0019  GETTABUP  R3 = _ENV[K11('TimeUtil')]
  0020  GETTABLE  R3 = R3[K12('ParseTimeDescription')]
  0021  MOVE      R4 = R0
  0022  LOADK     R5 = K13 2
  0023  LOADBOOL  R6 = false
  0024  LOADBOOL  R7 = false
  0025  CALL      R3 = call(R3, 1 args, 4 rets)
  0026  SETTABLE  R2[K10('text')] = R3
  0027  RETURN    return R0..R-1
