# CrashRace_View_CrashRaceEntry_1080.luac
; fn @CrashRaceEntry.lua  line 0-0 np=0 va=1 ms=3 code=36 consts=13 upvals=1 protos=9
;   K[0]='CrashRaceEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='_AddListeners'
;   K[7]='OnDestroy'
;   K[8]='UpdatePerSecond'
;   K[9]='OnBtnClicked'
;   K[10]='_UpdateContent'
;   K[11]='_PlayIdleAnim'
;   K[12]='OnGameModeChanged'
;   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('CrashRaceEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0006  GETTABUP  R1 = _ENV[K0('CrashRaceEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_AddListeners')] = R1
0017  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnDestroy')] = R1
0020  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('UpdatePerSecond')] = R1
0023  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('OnBtnClicked')] = R1
0026  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('_UpdateContent')] = R1
0029  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('_PlayIdleAnim')] = R1
0032  GETTABUP  R0 = _ENV[K0('CrashRaceEntry')]
0033  CLOSURE   R1 = closure proto8
0034  SETTABLE  R0[K12('OnGameModeChanged')] = R1
0035  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-11 np=1 va=0 ms=3 code=13 consts=7 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='Awake'
  ;   K[2]='m_bAwaked'
  ;   K[3]=true
  ;   K[4]='m_bWaitAddListener'
  ;   K[5]='_AddListeners'
  ;   K[6]='_UpdateContent'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SETTABLE  R0[K2('m_bAwaked')] = K3(true)
  0005  GETTABLE  R1 = R0[K4('m_bWaitAddListener')]
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 12
  0008  SELF      R2 = R0[K5('_AddListeners')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  SELF      R2 = R0[K6('_UpdateContent')] (self)
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 13-33 np=2 va=0 ms=5 code=33 consts=17 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_activityType'
  ;   K[3]='GetType'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='GetActivityDefinition'
  ;   K[6]='m_lastUpdateTime'
  ;   K[7]=0
  ;   K[8]='m_crashRacePkSlider'
  ;   K[9]='Init'
  ;   K[10]='_UpdateContent'
  ;   K[11]='m_spineAnim'
  ;   K[12]='_PlayIdleAnim'
  ;   K[13]='m_bAwaked'
  ;   K[14]='_AddListeners'
  ;   K[15]='m_bWaitAddListener'
  ;   K[16]=true
  ;   locals: self(0-33), model(0-33)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R2 = R0[K0('m_model')]
  0002  EQ        if R0 eq K1(nil)   -> -129787
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABLE  R2 = R0[K0('m_model')]
  0006  SELF      R3 = R2[K3('GetType')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  SETTABLE  R0[K2('m_activityType')] = R2
  0009  GETTABLE  R2 = R0[K0('m_model')]
  0010  SELF      R3 = R2[K5('GetActivityDefinition')] (self)
  0011  CALL      R2 = call(R2, 1 args, 1 rets)
  0012  SETTABLE  R0[K4('m_activityDefinition')] = R2
  0013  SETTABLE  R0[K6('m_lastUpdateTime')] = K7(0)
  0014  GETTABLE  R2 = R0[K8('m_crashRacePkSlider')]
  0015  SELF      R3 = R2[K9('Init')] (self)
  0016  GETTABLE  R4 = R0[K0('m_model')]
  0017  CALL      R2 = call(R2, 0 args, 2 rets)
  0018  SELF      R3 = R0[K10('_UpdateContent')] (self)
  0019  CALL      R2 = call(R2, 0 args, 1 rets)
  0020  GETTABLE  R2 = R0[K11('m_spineAnim')]
  0021  SELF      R3 = R2[K9('Init')] (self)
  0022  CALL      R2 = call(R2, 0 args, 1 rets)
  0023  SELF      R3 = R0[K12('_PlayIdleAnim')] (self)
  0024  CALL      R2 = call(R2, 0 args, 1 rets)
  0025  GETTABLE  R2 = R0[K13('m_bAwaked')]
  0026  TEST      if not R2 then   -> -131044
  0027  JMP       (jump)   -> 31
  0028  SELF      R3 = R0[K14('_AddListeners')] (self)
  0029  CALL      R2 = call(R2, 0 args, 1 rets)
  0030  JMP       (jump)   -> 32
  0031  SETTABLE  R0[K15('m_bWaitAddListener')] = K16(true)
  0032  RETURN    return R0..R-1
; ---------- proto2 [_AddListeners] ----------
  ; fn ?  line 35-47 np=1 va=0 ms=6 code=45 consts=15 upvals=1 protos=0
  ;   K[0]='AddHandlerAndRecordMap'
  ;   K[1]='m_model'
  ;   K[2]='event'
  ;   K[3]='RaceEventType'
  ;   K[4]='OpenMainWindow'
  ;   K[5]='obj'
  ;   K[6]='method'
  ;   K[7]='_UpdateContent'
  ;   K[8]='ScoreChanged'
  ;   K[9]='StateChanged'
  ;   K[10]='EventDispatcher'
  ;   K[11]='AddListener'
  ;   K[12]='m_activityDefinition'
  ;   K[13]='EntrySuccessEvent'
  ;   K[14]='CompetitorDisplayScoreUpdate'
  ;   upvals: _ENV
  ;   locals: self(0-45)
  0000  GETTABUP  R1 = _ENV[K0('AddHandlerAndRecordMap')]
  0001  GETTABLE  R2 = R0[K1('m_model')]
  0002  GETTABLE  R2 = R2[K2('event')]
  0003  GETTABUP  R3 = _ENV[K3('RaceEventType')]
  0004  GETTABLE  R3 = R3[K4('OpenMainWindow')]
  0005  NEWTABLE  R4 = {} (0 items)
  0006  SETTABLE  R4[K5('obj')] = R0
  0007  GETTABLE  R5 = R0[K7('_UpdateContent')]
  0008  SETTABLE  R4[K6('method')] = R5
  0009  CALL      R1 = call(R1, 0 args, 3 rets)
  0010  GETTABUP  R1 = _ENV[K0('AddHandlerAndRecordMap')]
  0011  GETTABLE  R2 = R0[K1('m_model')]
  0012  GETTABLE  R2 = R2[K2('event')]
  0013  GETTABUP  R3 = _ENV[K3('RaceEventType')]
  0014  GETTABLE  R3 = R3[K8('ScoreChanged')]
  0015  NEWTABLE  R4 = {} (0 items)
  0016  SETTABLE  R4[K5('obj')] = R0
  0017  GETTABLE  R5 = R0[K7('_UpdateContent')]
  0018  SETTABLE  R4[K6('method')] = R5
  0019  CALL      R1 = call(R1, 0 args, 3 rets)
  0020  GETTABUP  R1 = _ENV[K0('AddHandlerAndRecordMap')]
  0021  GETTABLE  R2 = R0[K1('m_model')]
  0022  GETTABLE  R2 = R2[K2('event')]
  0023  GETTABUP  R3 = _ENV[K3('RaceEventType')]
  0024  GETTABLE  R3 = R3[K9('StateChanged')]
  0025  NEWTABLE  R4 = {} (0 items)
  0026  SETTABLE  R4[K5('obj')] = R0
  0027  GETTABLE  R5 = R0[K7('_UpdateContent')]
  0028  SETTABLE  R4[K6('method')] = R5
  0029  CALL      R1 = call(R1, 0 args, 3 rets)
  0030  GETTABUP  R1 = _ENV[K10('EventDispatcher')]
  0031  GETTABLE  R1 = R1[K11('AddListener')]
  0032  GETTABLE  R2 = R0[K12('m_activityDefinition')]
  0033  GETTABLE  R2 = R2[K13('EntrySuccessEvent')]
  0034  MOVE      R3 = R0
  0035  GETTABLE  R4 = R0[K7('_UpdateContent')]
  0036  CALL      R1 = call(R1, 0 args, 3 rets)
  0037  GETTABUP  R1 = _ENV[K10('EventDispatcher')]
  0038  GETTABLE  R1 = R1[K11('AddListener')]
  0039  GETTABLE  R2 = R0[K12('m_activityDefinition')]
  0040  GETTABLE  R2 = R2[K14('CompetitorDisplayScoreUpdate')]
  0041  MOVE      R3 = R0
  0042  GETTABLE  R4 = R0[K7('_UpdateContent')]
  0043  CALL      R1 = call(R1, 0 args, 3 rets)
  0044  RETURN    return R0..R-1
; ---------- proto3 [OnDestroy] ----------
  ; fn ?  line 49-54 np=1 va=0 ms=4 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='RemoveAllHandlers'
  ;   K[3]='event'
  ;   K[4]='HudGeneralButton'
  ;   K[5]='OnDestroy'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 8
  0003  GETTABUP  R1 = _ENV[K2('RemoveAllHandlers')]
  0004  GETTABLE  R2 = R0[K0('m_model')]
  0005  GETTABLE  R2 = R2[K3('event')]
  0006  MOVE      R3 = R0
  0007  CALL      R1 = call(R1, 0 args, 2 rets)
  0008  GETTABUP  R1 = _ENV[K4('HudGeneralButton')]
  0009  GETTABLE  R1 = R1[K5('OnDestroy')]
  0010  MOVE      R2 = R0
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
; ---------- proto4 [UpdatePerSecond] ----------
  ; fn ?  line 56-70 np=1 va=0 ms=9 code=36 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]='gameObject'
  ;   K[12]='activeSelf'
  ;   K[13]='SetActive'
  ;   upvals: _ENV
  ;   locals: self(0-36), nextTime(7-36), 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)   -> 35
  0027  GETTABLE  R2 = R0[K11('gameObject')]
  0028  GETTABLE  R2 = R2[K12('activeSelf')]
  0029  TEST      if not R2 then   -> -131041
  0030  JMP       (jump)   -> 35
  0031  GETTABLE  R2 = R0[K11('gameObject')]
  0032  SELF      R3 = R2[K13('SetActive')] (self)
  0033  LOADBOOL  R4 = false
  0034  CALL      R2 = call(R2, 0 args, 2 rets)
  0035  RETURN    return R0..R-1
; ---------- proto5 [OnBtnClicked] ----------
  ; fn ?  line 72-79 np=1 va=0 ms=7 code=24 consts=10 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='IsInRace'
  ;   K[2]='NeedPopFailWindow'
  ;   K[3]='TryOpenMainWindow'
  ;   K[4]='GM'
  ;   K[5]='UIManager'
  ;   K[6]='OpenView'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='NoticeWindowPrefabName'
  ;   K[9]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-24)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('IsInRace')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131066
  0004  JMP       (jump)   -> 10
  0005  GETTABLE  R1 = R0[K0('m_model')]
  0006  SELF      R2 = R1[K2('NeedPopFailWindow')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 14
  0010  GETTABLE  R1 = R0[K0('m_model')]
  0011  SELF      R2 = R1[K3('TryOpenMainWindow')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  JMP       (jump)   -> 23
  0014  GETTABUP  R1 = _ENV[K4('GM')]
  0015  GETTABLE  R1 = R1[K5('UIManager')]
  0016  SELF      R2 = R1[K6('OpenView')] (self)
  0017  GETTABLE  R3 = R0[K7('m_activityDefinition')]
  0018  GETTABLE  R3 = R3[K8('NoticeWindowPrefabName')]
  0019  GETTABLE  R4 = R0[K9('m_activityType')]
  0020  LOADBOOL  R5 = false
  0021  LOADBOOL  R6 = true
  0022  CALL      R1 = call(R1, 0 args, 5 rets)
  0023  RETURN    return R0..R-1
; ---------- proto6 [_UpdateContent] ----------
  ; fn ?  line 81-96 np=1 va=0 ms=5 code=34 consts=11 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_exclamationGo'
  ;   K[3]='SetActive'
  ;   K[4]='CanShowExclaimation'
  ;   K[5]='IsInRace'
  ;   K[6]='UIUtil'
  ;   K[7]='m_crashRacePkSlider'
  ;   K[8]='gameObject'
  ;   K[9]='UpdateContent'
  ;   K[10]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-34)
  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[K2('m_exclamationGo')]
  0005  SELF      R2 = R1[K3('SetActive')] (self)
  0006  GETTABLE  R3 = R0[K0('m_model')]
  0007  SELF      R4 = R3[K4('CanShowExclaimation')] (self)
  0008  CALL      R3 = call(R3, -1 args, 1 rets)
  0009  CALL      R1 = call(R1, 0 args, -1 rets)
  0010  GETTABLE  R1 = R0[K0('m_model')]
  0011  SELF      R2 = R1[K5('IsInRace')] (self)
  0012  CALL      R1 = call(R1, 1 args, 1 rets)
  0013  TEST      if not R1 then   -> -131056
  0014  JMP       (jump)   -> 22
  0015  GETTABUP  R1 = _ENV[K6('UIUtil')]
  0016  GETTABLE  R1 = R1[K3('SetActive')]
  0017  GETTABLE  R2 = R0[K7('m_crashRacePkSlider')]
  0018  GETTABLE  R2 = R2[K8('gameObject')]
  0019  LOADBOOL  R3 = false
  0020  CALL      R1 = call(R1, 0 args, 2 rets)
  0021  JMP       (jump)   -> 31
  0022  GETTABUP  R1 = _ENV[K6('UIUtil')]
  0023  GETTABLE  R1 = R1[K3('SetActive')]
  0024  GETTABLE  R2 = R0[K7('m_crashRacePkSlider')]
  0025  GETTABLE  R2 = R2[K8('gameObject')]
  0026  LOADBOOL  R3 = true
  0027  CALL      R1 = call(R1, 0 args, 2 rets)
  0028  GETTABLE  R1 = R0[K7('m_crashRacePkSlider')]
  0029  SELF      R2 = R1[K9('UpdateContent')] (self)
  0030  CALL      R1 = call(R1, 0 args, 1 rets)
  0031  SELF      R2 = R0[K10('UpdatePerSecond')] (self)
  0032  CALL      R1 = call(R1, 0 args, 1 rets)
  0033  RETURN    return R0..R-1
; ---------- proto7 [_PlayIdleAnim] ----------
  ; fn ?  line 98-102 np=1 va=0 ms=5 code=13 consts=7 upvals=0 protos=0
  ;   K[0]='m_spineAnim'
  ;   K[1]='SetAnimation'
  ;   K[2]='idle'
  ;   K[3]='m_spineEffect'
  ;   K[4]='Simulate'
  ;   K[5]=0
  ;   K[6]='Play'
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_spineAnim')]
  0001  SELF      R2 = R1[K1('SetAnimation')] (self)
  0002  LOADK     R3 = K2 'idle'
  0003  LOADBOOL  R4 = true
  0004  CALL      R1 = call(R1, 0 args, 3 rets)
  0005  GETTABLE  R1 = R0[K3('m_spineEffect')]
  0006  SELF      R2 = R1[K4('Simulate')] (self)
  0007  LOADK     R3 = K5 0
  0008  CALL      R1 = call(R1, 0 args, 2 rets)
  0009  GETTABLE  R1 = R0[K3('m_spineEffect')]
  0010  SELF      R2 = R1[K6('Play')] (self)
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
; ---------- proto8 [OnGameModeChanged] ----------
  ; fn ?  line 104-107 np=1 va=0 ms=3 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='OnGameModeChanged'
  ;   K[2]='_PlayIdleAnim'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('OnGameModeChanged')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_PlayIdleAnim')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
