# LineRaceActivity_View_LineRaceActivityFailWindow_1978.luac
; fn @LineRaceActivityFailWindow.lua  line 0-0 np=0 va=1 ms=3 code=22 consts=12 upvals=1 protos=3
;   K[0]='LineRaceActivityFailWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='windowMaskAlpha'
;   K[5]='EWindowMaskAlpha'
;   K[6]='Dark'
;   K[7]='LineRaceActivityBaseWindow'
;   K[8]='__index'
;   K[9]='Init'
;   K[10]='_InitMyDatas'
;   K[11]='OnWindowMaskClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K5('EWindowMaskAlpha')]
0004  GETTABLE  R2 = R2[K6('Dark')]
0005  SETTABLE  R1[K4('windowMaskAlpha')] = R2
0006  GETTABUP  R2 = _ENV[K7('LineRaceActivityBaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('LineRaceActivityFailWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('LineRaceActivityFailWindow')]
0010  GETTABUP  R1 = _ENV[K0('LineRaceActivityFailWindow')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('LineRaceActivityFailWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K9('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('LineRaceActivityFailWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K10('_InitMyDatas')] = R1
0018  GETTABUP  R0 = _ENV[K0('LineRaceActivityFailWindow')]
0019  CLOSURE   R1 = closure proto2
0020  SETTABLE  R0[K11('OnWindowMaskClicked')] = R1
0021  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 13-16 np=1 va=1 ms=4 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='LineRaceActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='_InitMyDatas'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('LineRaceActivityBaseWindow')]
  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('_InitMyDatas')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto1 [_InitMyDatas] ----------
  ; fn ?  line 18-21 np=1 va=0 ms=5 code=13 consts=10 upvals=1 protos=0
  ;   K[0]='m_userAvatar'
  ;   K[1]='SetMySelf'
  ;   K[2]='ImageFileConfigName'
  ;   K[3]='head_frame_linerace'
  ;   K[4]='m_nameText'
  ;   K[5]='text'
  ;   K[6]='GM'
  ;   K[7]='GameTextModel'
  ;   K[8]='GetText'
  ;   K[9]='coin_race_main_you'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_userAvatar')]
  0001  SELF      R2 = R1[K1('SetMySelf')] (self)
  0002  GETTABUP  R3 = _ENV[K2('ImageFileConfigName')]
  0003  GETTABLE  R3 = R3[K3('head_frame_linerace')]
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  GETTABLE  R1 = R0[K4('m_nameText')]
  0006  GETTABUP  R2 = _ENV[K6('GM')]
  0007  GETTABLE  R2 = R2[K7('GameTextModel')]
  0008  SELF      R3 = R2[K8('GetText')] (self)
  0009  LOADK     R4 = K9 'coin_race_main_you'
  0010  CALL      R2 = call(R2, 1 args, 2 rets)
  0011  SETTABLE  R1[K5('text')] = R2
  0012  RETURN    return R0..R-1
; ---------- proto2 [OnWindowMaskClicked] ----------
  ; fn ?  line 23-31 np=1 va=0 ms=7 code=28 consts=14 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='m_model'
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Ended'
  ;   K[5]='GM'
  ;   K[6]='UIManager'
  ;   K[7]='OpenView'
  ;   K[8]='m_activityDefinition'
  ;   K[9]='EndWindowPrefabName'
  ;   K[10]='m_activityType'
  ;   K[11]='m_id'
  ;   K[12]='_IsActivityValid'
  ;   K[13]='OpenStartWindow'
  ;   upvals: _ENV
  ;   locals: self(0-28)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_model')]
  0003  SELF      R2 = R1[K2('GetState')] (self)
  0004  CALL      R1 = call(R1, 1 args, 1 rets)
  0005  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0006  GETTABLE  R2 = R2[K4('Ended')]
  0007  LE        if R0 le R1   -> -130038
  0008  JMP       (jump)   -> 19
  0009  GETTABUP  R1 = _ENV[K5('GM')]
  0010  GETTABLE  R1 = R1[K6('UIManager')]
  0011  SELF      R2 = R1[K7('OpenView')] (self)
  0012  GETTABLE  R3 = R0[K8('m_activityDefinition')]
  0013  GETTABLE  R3 = R3[K9('EndWindowPrefabName')]
  0014  GETTABLE  R4 = R0[K10('m_activityType')]
  0015  GETTABLE  R5 = R0[K11('m_id')]
  0016  LOADBOOL  R6 = true
  0017  CALL      R1 = call(R1, 0 args, 5 rets)
  0018  JMP       (jump)   -> 27
  0019  SELF      R2 = R0[K12('_IsActivityValid')] (self)
  0020  CALL      R1 = call(R1, 1 args, 1 rets)
  0021  TEST      if not R1 then   -> -131049
  0022  JMP       (jump)   -> 27
  0023  GETTABLE  R1 = R0[K1('m_model')]
  0024  SELF      R2 = R1[K13('OpenStartWindow')] (self)
  0025  LOADBOOL  R3 = false
  0026  CALL      R1 = call(R1, 0 args, 2 rets)
  0027  RETURN    return R0..R-1
