# CrashRace_View_CrashRaceMatchWindow_1088.luac
; fn @CrashRaceMatchWindow.lua  line 0-0 np=0 va=1 ms=3 code=28 consts=14 upvals=1 protos=5
;   K[0]='CrashRaceMatchWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='canCloseByAndroidBack'
;   K[6]=false
;   K[7]='CrashRaceBaseWindow'
;   K[8]='__index'
;   K[9]='Init'
;   K[10]='OnDestroy'
;   K[11]='_OnEntry'
;   K[12]='OnCloseFinish'
;   K[13]='_Hit'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  SETTABLE  R1[K5('canCloseByAndroidBack')] = K6(false)
0006  GETTABUP  R2 = _ENV[K7('CrashRaceBaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('CrashRaceMatchWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('CrashRaceMatchWindow')]
0010  GETTABUP  R1 = _ENV[K0('CrashRaceMatchWindow')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('CrashRaceMatchWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K9('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('CrashRaceMatchWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K10('OnDestroy')] = R1
0018  GETTABUP  R0 = _ENV[K0('CrashRaceMatchWindow')]
0019  CLOSURE   R1 = closure proto2
0020  SETTABLE  R0[K11('_OnEntry')] = R1
0021  GETTABUP  R0 = _ENV[K0('CrashRaceMatchWindow')]
0022  CLOSURE   R1 = closure proto3
0023  SETTABLE  R0[K12('OnCloseFinish')] = R1
0024  GETTABUP  R0 = _ENV[K0('CrashRaceMatchWindow')]
0025  CLOSURE   R1 = closure proto4
0026  SETTABLE  R0[K13('_Hit')] = R1
0027  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-20 np=2 va=0 ms=8 code=53 consts=35 upvals=1 protos=0
  ;   K[0]='CrashRaceBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_ownAvatar'
  ;   K[3]='SetMySelf'
  ;   K[4]='EAvatarFrame'
  ;   K[5]='Normal'
  ;   K[6]='m_playerAvatar'
  ;   K[7]='SetAvatar'
  ;   K[8]='m_ownNameText'
  ;   K[9]='text'
  ;   K[10]='GM'
  ;   K[11]='UserProfileModel'
  ;   K[12]='GetName'
  ;   K[13]='m_playerNameText'
  ;   K[14]='???'
  ;   K[15]='m_arrowRect'
  ;   K[16]='DOLocalRotate'
  ;   K[17]='Vector3'
  ;   K[18]=0
  ;   K[19]=-360
  ;   K[20]=1
  ;   K[21]='RotateType'
  ;   K[22]='FastBeyond360'
  ;   K[23]='SetEase'
  ;   K[24]='Ease'
  ;   K[25]='Linear'
  ;   K[26]='SetLoops'
  ;   K[27]=-1
  ;   K[28]='LoopType'
  ;   K[29]='Restart'
  ;   K[30]='_OnEntry'
  ;   K[31]='AudioModel'
  ;   K[32]='PlayEffect'
  ;   K[33]='AudioFileConfigName'
  ;   K[34]='SfxPkRaceActivityVS1'
  ;   upvals: _ENV
  ;   locals: self(0-53), activityType(0-53)
  0000  GETTABUP  R2 = _ENV[K0('CrashRaceBaseWindow')]
  0001  GETTABLE  R2 = R2[K1('Init')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  LOADBOOL  R5 = false
  0005  CALL      R2 = call(R2, 0 args, 3 rets)
  0006  GETTABLE  R2 = R0[K2('m_ownAvatar')]
  0007  SELF      R3 = R2[K3('SetMySelf')] (self)
  0008  GETTABUP  R4 = _ENV[K4('EAvatarFrame')]
  0009  GETTABLE  R4 = R4[K5('Normal')]
  0010  CALL      R2 = call(R2, 0 args, 2 rets)
  0011  GETTABLE  R2 = R0[K6('m_playerAvatar')]
  0012  SELF      R3 = R2[K7('SetAvatar')] (self)
  0013  GETTABUP  R4 = _ENV[K4('EAvatarFrame')]
  0014  GETTABLE  R4 = R4[K5('Normal')]
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  GETTABLE  R2 = R0[K8('m_ownNameText')]
  0017  GETTABUP  R3 = _ENV[K10('GM')]
  0018  GETTABLE  R3 = R3[K11('UserProfileModel')]
  0019  SELF      R4 = R3[K12('GetName')] (self)
  0020  CALL      R3 = call(R3, 1 args, 1 rets)
  0021  SETTABLE  R2[K9('text')] = R3
  0022  GETTABLE  R2 = R0[K13('m_playerNameText')]
  0023  SETTABLE  R2[K9('text')] = K14('???')
  0024  GETTABLE  R2 = R0[K15('m_arrowRect')]
  0025  SELF      R3 = R2[K16('DOLocalRotate')] (self)
  0026  GETTABUP  R4 = _ENV[K17('Vector3')]
  0027  LOADK     R5 = K18 0
  0028  LOADK     R6 = K18 0
  0029  LOADK     R7 = K19 -360
  0030  CALL      R4 = call(R4, 1 args, 3 rets)
  0031  LOADK     R5 = K20 1
  0032  GETTABUP  R6 = _ENV[K21('RotateType')]
  0033  GETTABLE  R6 = R6[K22('FastBeyond360')]
  0034  CALL      R2 = call(R2, 1 args, 4 rets)
  0035  SELF      R3 = R2[K23('SetEase')] (self)
  0036  GETTABUP  R4 = _ENV[K24('Ease')]
  0037  GETTABLE  R4 = R4[K25('Linear')]
  0038  CALL      R2 = call(R2, 1 args, 2 rets)
  0039  SELF      R3 = R2[K26('SetLoops')] (self)
  0040  LOADK     R4 = K27 -1
  0041  GETTABUP  R5 = _ENV[K28('LoopType')]
  0042  GETTABLE  R5 = R5[K29('Restart')]
  0043  CALL      R2 = call(R2, 0 args, 3 rets)
  0044  SELF      R3 = R0[K30('_OnEntry')] (self)
  0045  CALL      R2 = call(R2, 0 args, 1 rets)
  0046  GETTABUP  R2 = _ENV[K10('GM')]
  0047  GETTABLE  R2 = R2[K31('AudioModel')]
  0048  SELF      R3 = R2[K32('PlayEffect')] (self)
  0049  GETTABUP  R4 = _ENV[K33('AudioFileConfigName')]
  0050  GETTABLE  R4 = R4[K34('SfxPkRaceActivityVS1')]
  0051  CALL      R2 = call(R2, 0 args, 2 rets)
  0052  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 22-33 np=1 va=0 ms=4 code=20 consts=9 upvals=1 protos=0
  ;   K[0]='CrashRaceBaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_seq'
  ;   K[3]=nil
  ;   K[4]='Complete'
  ;   K[5]='m_arrowRect'
  ;   K[6]='DOKill'
  ;   K[7]='Scheduler'
  ;   K[8]='UnscheduleTarget'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  0000  GETTABUP  R1 = _ENV[K0('CrashRaceBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_seq')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 12
  0007  GETTABLE  R1 = R0[K2('m_seq')]
  0008  SELF      R2 = R1[K4('Complete')] (self)
  0009  LOADBOOL  R3 = true
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  SETTABLE  R0[K2('m_seq')] = K3(nil)
  0012  GETTABLE  R1 = R0[K5('m_arrowRect')]
  0013  SELF      R2 = R1[K6('DOKill')] (self)
  0014  CALL      R1 = call(R1, 0 args, 1 rets)
  0015  GETTABUP  R1 = _ENV[K7('Scheduler')]
  0016  GETTABLE  R1 = R1[K8('UnscheduleTarget')]
  0017  MOVE      R2 = R0
  0018  CALL      R1 = call(R1, 0 args, 1 rets)
  0019  RETURN    return R0..R-1
; ---------- proto2 [_OnEntry] ----------
  ; fn ?  line 36-98 np=1 va=0 ms=11 code=26 consts=9 upvals=1 protos=4
  ;   K[0]='m_model'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Started'
  ;   K[4]='Close'
  ;   K[5]=2
  ;   K[6]='DelayExecuteFuncInView'
  ;   K[7]='m_model'
  ;   K[8]='TryCompetitionEntry'
  ;   upvals: _ENV
  ;   locals: self(0-26), state(3-26), minUpdateTime(11-26), matchSuccessFunc(12-26), bCanUpdate(13-26), successCallback(19-26), failCallback(20-26)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetState')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0004  GETTABLE  R2 = R2[K3('Started')]
  0005  EQ        if R1 eq R2   -> -130551
  0006  JMP       (jump)   -> 10
  0007  SELF      R3 = R0[K4('Close')] (self)
  0008  CALL      R2 = call(R2, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
  0010  LOADK     R2 = K5 2
  0011  CLOSURE   R3 = closure proto0
  0012  LOADBOOL  R4 = false
  0013  GETTABUP  R5 = _ENV[K6('DelayExecuteFuncInView')]
  0014  CLOSURE   R6 = closure proto1
  0015  MOVE      R7 = R0
  0016  MOVE      R8 = R0
  0017  CALL      R5 = call(R5, 0 args, 3 rets)
  0018  CLOSURE   R5 = closure proto2
  0019  CLOSURE   R6 = closure proto3
  0020  GETTABLE  R7 = R0[K7('m_model')]
  0021  SELF      R8 = R7[K8('TryCompetitionEntry')] (self)
  0022  MOVE      R9 = R0
  0023  MOVE      R10 = R0
  0024  CALL      R7 = call(R7, 0 args, 3 rets)
  0025  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 45-73 np=0 va=0 ms=8 code=64 consts=33 upvals=2 protos=1
    ;   K[0]='m_bSuccess'
    ;   K[1]=true
    ;   K[2]='gameObject'
    ;   K[3]=nil
    ;   K[4]='IsNull'
    ;   K[5]='GM'
    ;   K[6]='AudioModel'
    ;   K[7]='PlayEffect'
    ;   K[8]='AudioFileConfigName'
    ;   K[9]='SfxPkRaceActivityVS2'
    ;   K[10]='_Hit'
    ;   K[11]='m_arrowRect'
    ;   K[12]='DOKill'
    ;   K[13]='UIUtil'
    ;   K[14]='SetActive'
    ;   K[15]='m_model'
    ;   K[16]='GetOneCompetitorData'
    ;   K[17]='m_playerAvatar'
    ;   K[18]='SetAvatar'
    ;   K[19]='EAvatarFrame'
    ;   K[20]='Normal'
    ;   K[21]='GetIcon'
    ;   K[22]='GetBadge'
    ;   K[23]='GetFrame'
    ;   K[24]='m_playerNameText'
    ;   K[25]='text'
    ;   K[26]='GetUserName'
    ;   K[27]='DOTween'
    ;   K[28]='Sequence'
    ;   K[29]='AppendInterval'
    ;   K[30]=2
    ;   K[31]='AppendCallback'
    ;   K[32]='m_seq'
    ;   upvals: self, _ENV
    ;   locals: competitorData(35-64), seq(56-64)
    0000  GETTABUP  R0 = self[K0('m_bSuccess')]
    0001  TEST      if not R0 then   -> -131069
    0002  JMP       (jump)   -> 4
    0003  RETURN    return R0..R-1
    0004  SETTABUP  self[K0('m_bSuccess')] = K1(true)
    0005  GETTABUP  R0 = self[K2('gameObject')]
    0006  EQ        if R1 eq K3(nil)   -> -130805
    0007  JMP       (jump)   -> 13
    0008  GETTABUP  R0 = self[K2('gameObject')]
    0009  SELF      R1 = R0[K4('IsNull')] (self)
    0010  CALL      R0 = call(R0, 1 args, 1 rets)
    0011  TEST      if not R0 then   -> -131059
    0012  JMP       (jump)   -> 14
    0013  RETURN    return R0..R-1
    0014  GETTABUP  R0 = _ENV[K5('GM')]
    0015  GETTABLE  R0 = R0[K6('AudioModel')]
    0016  SELF      R1 = R0[K7('PlayEffect')] (self)
    0017  GETTABUP  R2 = _ENV[K8('AudioFileConfigName')]
    0018  GETTABLE  R2 = R2[K9('SfxPkRaceActivityVS2')]
    0019  CALL      R0 = call(R0, 0 args, 2 rets)
    0020  GETUPVAL  R0 = self
    0021  SELF      R1 = R0[K10('_Hit')] (self)
    0022  CALL      R0 = call(R0, 0 args, 1 rets)
    0023  GETTABUP  R0 = self[K11('m_arrowRect')]
    0024  SELF      R1 = R0[K12('DOKill')] (self)
    0025  CALL      R0 = call(R0, 0 args, 1 rets)
    0026  GETTABUP  R0 = _ENV[K13('UIUtil')]
    0027  GETTABLE  R0 = R0[K14('SetActive')]
    0028  GETTABUP  R1 = self[K11('m_arrowRect')]
    0029  GETTABLE  R1 = R1[K2('gameObject')]
    0030  LOADBOOL  R2 = false
    0031  CALL      R0 = call(R0, 0 args, 2 rets)
    0032  GETTABUP  R0 = self[K15('m_model')]
    0033  SELF      R1 = R0[K16('GetOneCompetitorData')] (self)
    0034  CALL      R0 = call(R0, 1 args, 1 rets)
    0035  EQ        if R1 eq K3(nil)   -> -130776
    0036  JMP       (jump)   -> 53
    0037  GETTABUP  R1 = self[K17('m_playerAvatar')]
    0038  SELF      R2 = R1[K18('SetAvatar')] (self)
    0039  GETTABUP  R3 = _ENV[K19('EAvatarFrame')]
    0040  GETTABLE  R3 = R3[K20('Normal')]
    0041  SELF      R5 = R0[K21('GetIcon')] (self)
    0042  CALL      R4 = call(R4, 1 args, 1 rets)
    0043  SELF      R6 = R0[K22('GetBadge')] (self)
    0044  CALL      R5 = call(R5, 1 args, 1 rets)
    0045  SELF      R7 = R0[K23('GetFrame')] (self)
    0046  CALL      R6 = call(R6, 1 args, 1 rets)
    0047  LOADBOOL  R7 = false
    0048  CALL      R1 = call(R1, 0 args, 6 rets)
    0049  GETTABUP  R1 = self[K24('m_playerNameText')]
    0050  SELF      R3 = R0[K26('GetUserName')] (self)
    0051  CALL      R2 = call(R2, 1 args, 1 rets)
    0052  SETTABLE  R1[K25('text')] = R2
    0053  GETTABUP  R1 = _ENV[K27('DOTween')]
    0054  GETTABLE  R1 = R1[K28('Sequence')]
    0055  CALL      R1 = call(R1, 1 args, 0 rets)
    0056  SELF      R3 = R1[K29('AppendInterval')] (self)
    0057  LOADK     R4 = K30 2
    0058  CALL      R2 = call(R2, 0 args, 2 rets)
    0059  SELF      R3 = R1[K31('AppendCallback')] (self)
    0060  CLOSURE   R4 = closure proto0
    0061  CALL      R2 = call(R2, 0 args, 2 rets)
    0062  SETTABUP  self[K32('m_seq')] = R1
    0063  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 68-71 np=0 va=0 ms=2 code=5 consts=3 upvals=1 protos=0
      ;   K[0]='m_seq'
      ;   K[1]=nil
      ;   K[2]='Close'
      ;   upvals: self
      0000  SETTABUP  self[K0('m_seq')] = K1(nil)
      0001  GETUPVAL  R0 = self
      0002  SELF      R1 = R0[K2('Close')] (self)
      0003  CALL      R0 = call(R0, 0 args, 1 rets)
      0004  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 77-83 np=0 va=0 ms=2 code=9 consts=0 upvals=2 protos=0
    ;   upvals: bCanUpdate, matchSuccessFunc
    0000  GETUPVAL  R0 = bCanUpdate
    0001  TEST      if not R0 then   -> -131069
    0002  JMP       (jump)   -> 6
    0003  GETUPVAL  R0 = bCanUpdate
    0004  CALL      R0 = call(R0, 0 args, 0 rets)
    0005  JMP       (jump)   -> 8
    0006  LOADBOOL  R0 = true
    0007  SETUPVAL  bCanUpdate = R0
    0008  RETURN    return R0..R-1
  ; ---------- proto2 [] ----------
    ; fn ?  line 85-91 np=0 va=0 ms=2 code=9 consts=0 upvals=2 protos=0
    ;   upvals: bCanUpdate, matchSuccessFunc
    0000  GETUPVAL  R0 = bCanUpdate
    0001  TEST      if not R0 then   -> -131069
    0002  JMP       (jump)   -> 6
    0003  GETUPVAL  R0 = bCanUpdate
    0004  CALL      R0 = call(R0, 0 args, 0 rets)
    0005  JMP       (jump)   -> 8
    0006  LOADBOOL  R0 = true
    0007  SETUPVAL  bCanUpdate = R0
    0008  RETURN    return R0..R-1
  ; ---------- proto3 [] ----------
    ; fn ?  line 93-95 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='Close'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('Close')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto3 [OnCloseFinish] ----------
  ; fn ?  line 100-105 np=1 va=0 ms=4 code=21 consts=7 upvals=1 protos=0
  ;   K[0]='CrashRaceBaseWindow'
  ;   K[1]='OnCloseFinish'
  ;   K[2]='IsActivityValid'
  ;   K[3]='m_model'
  ;   K[4]='IsInRace'
  ;   K[5]='m_bSuccess'
  ;   K[6]='TryOpenMainWindow'
  ;   upvals: _ENV
  ;   locals: self(0-21)
  0000  GETTABUP  R1 = _ENV[K0('CrashRaceBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseFinish')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('IsActivityValid')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 20
  0008  GETTABLE  R1 = R0[K3('m_model')]
  0009  SELF      R2 = R1[K4('IsInRace')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 20
  0013  GETTABLE  R1 = R0[K5('m_bSuccess')]
  0014  TEST      if not R1 then   -> -131056
  0015  JMP       (jump)   -> 20
  0016  GETTABLE  R1 = R0[K3('m_model')]
  0017  SELF      R2 = R1[K6('TryOpenMainWindow')] (self)
  0018  LOADBOOL  R3 = true
  0019  CALL      R1 = call(R1, 0 args, 2 rets)
  0020  RETURN    return R0..R-1
; ---------- proto4 [_Hit] ----------
  ; fn ?  line 107-111 np=1 va=0 ms=4 code=8 consts=3 upvals=0 protos=0
  ;   K[0]='m_matchWindowAnimation'
  ;   K[1]='SetTrigger'
  ;   K[2]='Hit'
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_matchWindowAnimation')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_matchWindowAnimation')]
  0004  SELF      R2 = R1[K1('SetTrigger')] (self)
  0005  LOADK     R3 = K2 'Hit'
  0006  CALL      R1 = call(R1, 0 args, 2 rets)
  0007  RETURN    return R0..R-1
