# LineRaceActivity_View_LineRaceActivityEntry_1961.luac
; fn @LineRaceActivityEntry.lua  line 0-0 np=0 va=1 ms=3 code=36 consts=13 upvals=1 protos=9
;   K[0]='LineRaceActivityEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='OnDestroy'
;   K[7]='_TryAddListeners'
;   K[8]='UpdateContent'
;   K[9]='UpdateNetworkDisplay'
;   K[10]='_UpdateExclamationState'
;   K[11]='UpdatePerSecond'
;   K[12]='OnBtnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudGeneralButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('LineRaceActivityEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0006  GETTABUP  R1 = _ENV[K0('LineRaceActivityEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnDestroy')] = R1
0017  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('_TryAddListeners')] = R1
0020  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('UpdateContent')] = R1
0023  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('UpdateNetworkDisplay')] = R1
0026  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('_UpdateExclamationState')] = R1
0029  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('UpdatePerSecond')] = R1
0032  GETTABUP  R0 = _ENV[K0('LineRaceActivityEntry')]
0033  CLOSURE   R1 = closure proto8
0034  SETTABLE  R0[K12('OnBtnClicked')] = R1
0035  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 8-14 np=1 va=0 ms=3 code=10 consts=5 upvals=0 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]=nil
  ;   K[2]='_TryAddListeners'
  ;   K[3]='UpdatePerSecond'
  ;   K[4]='UpdateContent'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_activityDefinition')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 9
  0003  SELF      R2 = R0[K2('_TryAddListeners')] (self)
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  SELF      R2 = R0[K3('UpdatePerSecond')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  SELF      R2 = R0[K4('UpdateContent')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 16-29 np=2 va=0 ms=4 code=23 consts=11 upvals=0 protos=0
  ;   K[0]=nil
  ;   K[1]='m_model'
  ;   K[2]='m_activityType'
  ;   K[3]='GetType'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='GetActivityDefinition'
  ;   K[6]='UpdatePerSecond'
  ;   K[7]='gameObject'
  ;   K[8]='activeInHierarchy'
  ;   K[9]='_TryAddListeners'
  ;   K[10]='UpdateContent'
  ;   locals: self(0-23), model(0-23)
  0000  EQ        if R0 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 3
  0002  RETURN    return R0..R-1
  0003  SETTABLE  R0[K1('m_model')] = R1
  0004  GETTABLE  R2 = R0[K1('m_model')]
  0005  SELF      R3 = R2[K3('GetType')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  SETTABLE  R0[K2('m_activityType')] = R2
  0008  GETTABLE  R2 = R0[K1('m_model')]
  0009  SELF      R3 = R2[K5('GetActivityDefinition')] (self)
  0010  CALL      R2 = call(R2, 1 args, 1 rets)
  0011  SETTABLE  R0[K4('m_activityDefinition')] = R2
  0012  SELF      R3 = R0[K6('UpdatePerSecond')] (self)
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  GETTABLE  R2 = R0[K7('gameObject')]
  0015  GETTABLE  R2 = R2[K8('activeInHierarchy')]
  0016  TEST      if not R2 then   -> -131054
  0017  JMP       (jump)   -> 20
  0018  SELF      R3 = R0[K9('_TryAddListeners')] (self)
  0019  CALL      R2 = call(R2, 0 args, 1 rets)
  0020  SELF      R3 = R0[K10('UpdateContent')] (self)
  0021  CALL      R2 = call(R2, 0 args, 1 rets)
  0022  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 31-33 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [_TryAddListeners] ----------
  ; fn ?  line 35-50 np=1 va=0 ms=6 code=54 consts=19 upvals=1 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='m_bAddListener'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='StateChangedEvent'
  ;   K[5]='UpdateContent'
  ;   K[6]='EntrySuccessEvent'
  ;   K[7]='ScoreChangedEvent'
  ;   K[8]='FailEvent'
  ;   K[9]='EEventType'
  ;   K[10]='ChangeGameMode'
  ;   K[11]='AddHandlerAndRecordMap'
  ;   K[12]='m_model'
  ;   K[13]='event'
  ;   K[14]='RaceEventType'
  ;   K[15]='ScoreChanged'
  ;   K[16]='obj'
  ;   K[17]='method'
  ;   K[18]=true
  ;   upvals: _ENV
  ;   locals: self(0-54)
  0000  GETTABLE  R1 = R0[K0('m_activityDefinition')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K1('m_bAddListener')]
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K3('AddListener')]
  0009  GETTABLE  R2 = R0[K0('m_activityDefinition')]
  0010  GETTABLE  R2 = R2[K4('StateChangedEvent')]
  0011  MOVE      R3 = R0
  0012  GETTABLE  R4 = R0[K5('UpdateContent')]
  0013  CALL      R1 = call(R1, 0 args, 3 rets)
  0014  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0015  GETTABLE  R1 = R1[K3('AddListener')]
  0016  GETTABLE  R2 = R0[K0('m_activityDefinition')]
  0017  GETTABLE  R2 = R2[K6('EntrySuccessEvent')]
  0018  MOVE      R3 = R0
  0019  GETTABLE  R4 = R0[K5('UpdateContent')]
  0020  CALL      R1 = call(R1, 0 args, 3 rets)
  0021  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0022  GETTABLE  R1 = R1[K3('AddListener')]
  0023  GETTABLE  R2 = R0[K0('m_activityDefinition')]
  0024  GETTABLE  R2 = R2[K7('ScoreChangedEvent')]
  0025  MOVE      R3 = R0
  0026  GETTABLE  R4 = R0[K5('UpdateContent')]
  0027  CALL      R1 = call(R1, 0 args, 3 rets)
  0028  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0029  GETTABLE  R1 = R1[K3('AddListener')]
  0030  GETTABLE  R2 = R0[K0('m_activityDefinition')]
  0031  GETTABLE  R2 = R2[K8('FailEvent')]
  0032  MOVE      R3 = R0
  0033  GETTABLE  R4 = R0[K5('UpdateContent')]
  0034  CALL      R1 = call(R1, 0 args, 3 rets)
  0035  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0036  GETTABLE  R1 = R1[K3('AddListener')]
  0037  GETTABUP  R2 = _ENV[K9('EEventType')]
  0038  GETTABLE  R2 = R2[K10('ChangeGameMode')]
  0039  MOVE      R3 = R0
  0040  GETTABLE  R4 = R0[K5('UpdateContent')]
  0041  CALL      R1 = call(R1, 0 args, 3 rets)
  0042  GETTABUP  R1 = _ENV[K11('AddHandlerAndRecordMap')]
  0043  GETTABLE  R2 = R0[K12('m_model')]
  0044  GETTABLE  R2 = R2[K13('event')]
  0045  GETTABUP  R3 = _ENV[K14('RaceEventType')]
  0046  GETTABLE  R3 = R3[K15('ScoreChanged')]
  0047  NEWTABLE  R4 = {} (0 items)
  0048  SETTABLE  R4[K16('obj')] = R0
  0049  GETTABLE  R5 = R0[K5('UpdateContent')]
  0050  SETTABLE  R4[K17('method')] = R5
  0051  CALL      R1 = call(R1, 0 args, 3 rets)
  0052  SETTABLE  R0[K1('m_bAddListener')] = K18(true)
  0053  RETURN    return R0..R-1
; ---------- proto4 [UpdateContent] ----------
  ; fn ?  line 52-77 np=1 va=0 ms=7 code=47 consts=14 upvals=1 protos=0
  ;   K[0]='_UpdateExclamationState'
  ;   K[1]='m_model'
  ;   K[2]='IsInRace'
  ;   K[3]='UIUtil'
  ;   K[4]='SetActive'
  ;   K[5]='m_scoreContentGo'
  ;   K[6]='HasNetwork'
  ;   K[7]='m_hasNetwork'
  ;   K[8]='UpdateNetworkDisplay'
  ;   K[9]='m_scoreText'
  ;   K[10]='text'
  ;   K[11]='x'
  ;   K[12]='GetMyScore'
  ;   K[13]='m_buttonWifiGo'
  ;   upvals: _ENV
  ;   locals: self(0-47), isInMatch(5-47), hasNetwork(13-47)
  0000  SELF      R2 = R0[K0('_UpdateExclamationState')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_model')]
  0003  SELF      R2 = R1[K2('IsInRace')] (self)
  0004  CALL      R1 = call(R1, 1 args, 1 rets)
  0005  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0006  GETTABLE  R2 = R2[K4('SetActive')]
  0007  GETTABLE  R3 = R0[K5('m_scoreContentGo')]
  0008  MOVE      R4 = R0
  0009  CALL      R2 = call(R2, 0 args, 2 rets)
  0010  GETTABLE  R2 = R0[K1('m_model')]
  0011  SELF      R3 = R2[K6('HasNetwork')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  TEST      if not R1 then   -> -131057
  0014  JMP       (jump)   -> 32
  0015  GETTABLE  R3 = R0[K7('m_hasNetwork')]
  0016  EQ        if R1 eq R3   -> -130027
  0017  JMP       (jump)   -> 22
  0018  SELF      R4 = R0[K8('UpdateNetworkDisplay')] (self)
  0019  MOVE      R5 = R0
  0020  CALL      R3 = call(R3, 0 args, 2 rets)
  0021  SETTABLE  R0[K7('m_hasNetwork')] = R2
  0022  TEST      if not R2 then   -> -131048
  0023  JMP       (jump)   -> 46
  0024  GETTABLE  R3 = R0[K9('m_scoreText')]
  0025  LOADK     R4 = K11 'x'
  0026  GETTABLE  R5 = R0[K1('m_model')]
  0027  SELF      R6 = R5[K12('GetMyScore')] (self)
  0028  CALL      R5 = call(R5, 1 args, 1 rets)
  0029  CONCAT    R4 = concat(R4..R4)
  0030  SETTABLE  R3[K10('text')] = R4
  0031  JMP       (jump)   -> 46
  0032  GETTABLE  R3 = R0[K7('m_hasNetwork')]
  0033  EQ        if R1 eq R3   -> -130010
  0034  JMP       (jump)   -> 46
  0035  GETTABUP  R3 = _ENV[K3('UIUtil')]
  0036  GETTABLE  R3 = R3[K4('SetActive')]
  0037  GETTABLE  R4 = R0[K13('m_buttonWifiGo')]
  0038  LOADBOOL  R5 = false
  0039  CALL      R3 = call(R3, 0 args, 2 rets)
  0040  GETTABUP  R3 = _ENV[K3('UIUtil')]
  0041  GETTABLE  R3 = R3[K4('SetActive')]
  0042  GETTABLE  R4 = R0[K5('m_scoreContentGo')]
  0043  LOADBOOL  R5 = false
  0044  CALL      R3 = call(R3, 0 args, 2 rets)
  0045  SETTABLE  R0[K7('m_hasNetwork')] = R2
  0046  RETURN    return R0..R-1
; ---------- proto5 [UpdateNetworkDisplay] ----------
  ; fn ?  line 79-82 np=2 va=0 ms=5 code=11 consts=4 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_buttonWifiGo'
  ;   K[3]='m_scoreContentGo'
  ;   upvals: _ENV
  ;   locals: self(0-11), hasNetwork(0-11)
  0000  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R2 = R2[K1('SetActive')]
  0002  GETTABLE  R3 = R0[K2('m_buttonWifiGo')]
  0003  NOT       R4 = not R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0006  GETTABLE  R2 = R2[K1('SetActive')]
  0007  GETTABLE  R3 = R0[K3('m_scoreContentGo')]
  0008  MOVE      R4 = R0
  0009  CALL      R2 = call(R2, 0 args, 2 rets)
  0010  RETURN    return R0..R-1
; ---------- proto6 [_UpdateExclamationState] ----------
  ; fn ?  line 85-88 np=1 va=0 ms=5 code=9 consts=5 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='CanShowExclaimation'
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='m_exclamationGo'
  ;   upvals: _ENV
  ;   locals: self(0-9), isShow(3-9)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('CanShowExclaimation')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('UIUtil')]
  0004  GETTABLE  R2 = R2[K3('SetActive')]
  0005  GETTABLE  R3 = R0[K4('m_exclamationGo')]
  0006  MOVE      R4 = R0
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  RETURN    return R0..R-1
; ---------- proto7 [UpdatePerSecond] ----------
  ; fn ?  line 90-102 np=1 va=0 ms=9 code=35 consts=14 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetNextStateTime'
  ;   K[3]='GM'
  ;   K[4]='GameModel'
  ;   K[5]='GetServerTime'
  ;   K[6]='m_countDownText'
  ;   K[7]='text'
  ;   K[8]='TimeUtil'
  ;   K[9]='ParseTimeDescription'
  ;   K[10]=2
  ;   K[11]='GameTextModel'
  ;   K[12]='GetText'
  ;   K[13]='countdown_finished'
  ;   upvals: _ENV
  ;   locals: self(0-35), nextTime(7-35), delta(17-26)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K0('m_model')]
  0005  SELF      R2 = R1[K2('GetNextStateTime')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  EQ        if R1 eq K1(nil)   -> -130294
  0008  JMP       (jump)   -> 27
  0009  GETTABLE  R2 = R0[K0('m_model')]
  0010  SELF      R3 = R2[K2('GetNextStateTime')] (self)
  0011  CALL      R2 = call(R2, 1 args, 1 rets)
  0012  GETTABUP  R3 = _ENV[K3('GM')]
  0013  GETTABLE  R3 = R3[K4('GameModel')]
  0014  SELF      R4 = R3[K5('GetServerTime')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  SUB       R2 = R3 sub R2
  0017  GETTABLE  R3 = R0[K6('m_countDownText')]
  0018  GETTABUP  R4 = _ENV[K8('TimeUtil')]
  0019  GETTABLE  R4 = R4[K9('ParseTimeDescription')]
  0020  MOVE      R5 = R0
  0021  LOADK     R6 = K10 2
  0022  LOADBOOL  R7 = false
  0023  LOADBOOL  R8 = false
  0024  CALL      R4 = call(R4, 1 args, 4 rets)
  0025  SETTABLE  R3[K7('text')] = R4
  0026  JMP       (jump)   -> 34
  0027  GETTABLE  R2 = R0[K6('m_countDownText')]
  0028  GETTABUP  R3 = _ENV[K3('GM')]
  0029  GETTABLE  R3 = R3[K11('GameTextModel')]
  0030  SELF      R4 = R3[K12('GetText')] (self)
  0031  LOADK     R5 = K13 'countdown_finished'
  0032  CALL      R3 = call(R3, 1 args, 2 rets)
  0033  SETTABLE  R2[K7('text')] = R3
  0034  RETURN    return R0..R-1
; ---------- proto8 [OnBtnClicked] ----------
  ; fn ?  line 104-108 np=1 va=0 ms=3 code=6 consts=3 upvals=0 protos=0
  ;   K[0]='UpdateContent'
  ;   K[1]='m_model'
  ;   K[2]='OnEntryClicked'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('UpdateContent')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_model')]
  0003  SELF      R2 = R1[K2('OnEntryClicked')] (self)
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
