# PairRaceActivity_View_PairRaceActivityStartWindow_1835.luac
; fn @PairRaceActivityStartWindow.lua  line 0-0 np=0 va=1 ms=3 code=16 consts=8 upvals=1 protos=2
;   K[0]='PairRaceActivityStartWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='PairRaceActivityBaseWindow'
;   K[5]='__index'
;   K[6]='OnBtnClicked'
;   K[7]='OnCloseBtnClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('PairRaceActivityBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('PairRaceActivityStartWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('PairRaceActivityStartWindow')]
0007  GETTABUP  R1 = _ENV[K0('PairRaceActivityStartWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('PairRaceActivityStartWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('OnBtnClicked')] = R1
0012  GETTABUP  R0 = _ENV[K0('PairRaceActivityStartWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnCloseBtnClick')] = R1
0015  RETURN    return R0..R-1
; ---------- proto0 [OnBtnClicked] ----------
  ; fn ?  line 8-13 np=1 va=0 ms=6 code=15 consts=9 upvals=1 protos=0
  ;   K[0]='IsActivityValid'
  ;   K[1]='Close'
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='OpenView'
  ;   K[5]='UIPrefabConfigName'
  ;   K[6]='PairRaceActivityMainWindow'
  ;   K[7]='m_activityType'
  ;   K[8]='m_id'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  SELF      R2 = R0[K0('IsActivityValid')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 14
  0004  SELF      R2 = R0[K1('Close')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  GETTABUP  R1 = _ENV[K2('GM')]
  0007  GETTABLE  R1 = R1[K3('UIManager')]
  0008  SELF      R2 = R1[K4('OpenView')] (self)
  0009  GETTABUP  R3 = _ENV[K5('UIPrefabConfigName')]
  0010  GETTABLE  R3 = R3[K6('PairRaceActivityMainWindow')]
  0011  GETTABLE  R4 = R0[K7('m_activityType')]
  0012  GETTABLE  R5 = R0[K8('m_id')]
  0013  CALL      R1 = call(R1, 0 args, 4 rets)
  0014  RETURN    return R0..R-1
; ---------- proto1 [OnCloseBtnClick] ----------
  ; fn ?  line 15-18 np=1 va=0 ms=6 code=13 consts=9 upvals=1 protos=0
  ;   K[0]='PairRaceActivityBaseWindow'
  ;   K[1]='OnCloseBtnClick'
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='OpenView'
  ;   K[5]='UIPrefabConfigName'
  ;   K[6]='PairRaceActivityMainWindow'
  ;   K[7]='m_activityType'
  ;   K[8]='m_id'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABUP  R1 = _ENV[K0('PairRaceActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseBtnClick')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('UIManager')]
  0006  SELF      R2 = R1[K4('OpenView')] (self)
  0007  GETTABUP  R3 = _ENV[K5('UIPrefabConfigName')]
  0008  GETTABLE  R3 = R3[K6('PairRaceActivityMainWindow')]
  0009  GETTABLE  R4 = R0[K7('m_activityType')]
  0010  GETTABLE  R5 = R0[K8('m_id')]
  0011  CALL      R1 = call(R1, 0 args, 4 rets)
  0012  RETURN    return R0..R-1
