# PkRace_View_PkRaceBoardEntry_1056.luac
; fn @PkRaceBoardEntry.lua  line 0-0 np=0 va=1 ms=3 code=53 consts=18 upvals=1 protos=13
;   K[0]='PkRaceBoardEntry'
;   K[1]='__index'
;   K[2]='Awake'
;   K[3]='Init'
;   K[4]='_AddListeners'
;   K[5]='OnDestroy'
;   K[6]='_OnChangeGameMode'
;   K[7]='UpdatePerSecond'
;   K[8]='UpdateContent'
;   K[9]='_UpdateBasedOnRaceState'
;   K[10]='_UpdateRankText'
;   K[11]='OnBtnClicked'
;   K[12]='GetIconArea'
;   K[13]='PkRaceHudButton'
;   K[14]='setmetatable'
;   K[15]='HudPropertyButton'
;   K[16]='Init'
;   K[17]='UpdateValueText'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('PkRaceBoardEntry')] = R0
0002  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0003  GETTABUP  R1 = _ENV[K0('PkRaceBoardEntry')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Awake')] = R1
0008  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('_AddListeners')] = R1
0014  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('OnDestroy')] = R1
0017  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('_OnChangeGameMode')] = R1
0020  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('UpdatePerSecond')] = R1
0023  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('UpdateContent')] = R1
0026  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('_UpdateBasedOnRaceState')] = R1
0029  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K10('_UpdateRankText')] = R1
0032  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0033  CLOSURE   R1 = closure proto9
0034  SETTABLE  R0[K11('OnBtnClicked')] = R1
0035  GETTABUP  R0 = _ENV[K0('PkRaceBoardEntry')]
0036  CLOSURE   R1 = closure proto10
0037  SETTABLE  R0[K12('GetIconArea')] = R1
0038  GETTABUP  R0 = _ENV[K14('setmetatable')]
0039  NEWTABLE  R1 = {} (0 items)
0040  GETTABUP  R2 = _ENV[K15('HudPropertyButton')]
0041  CALL      R0 = call(R0, 1 args, 2 rets)
0042  SETTABUP  _ENV[K13('PkRaceHudButton')] = R0
0043  GETTABUP  R0 = _ENV[K13('PkRaceHudButton')]
0044  GETTABUP  R1 = _ENV[K13('PkRaceHudButton')]
0045  SETTABLE  R0[K1('__index')] = R1
0046  GETTABUP  R0 = _ENV[K13('PkRaceHudButton')]
0047  CLOSURE   R1 = closure proto11
0048  SETTABLE  R0[K16('Init')] = R1
0049  GETTABUP  R0 = _ENV[K13('PkRaceHudButton')]
0050  CLOSURE   R1 = closure proto12
0051  SETTABLE  R0[K17('UpdateValueText')] = R1
0052  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-10 np=1 va=0 ms=3 code=9 consts=5 upvals=0 protos=0
  ;   K[0]='m_bAwaked'
  ;   K[1]=true
  ;   K[2]='m_bWaitAddListener'
  ;   K[3]='_AddListeners'
  ;   K[4]='UpdateContent'
  ;   locals: self(0-9)
  0000  SETTABLE  R0[K0('m_bAwaked')] = K1(true)
  0001  GETTABLE  R1 = R0[K2('m_bWaitAddListener')]
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 8
  0004  SELF      R2 = R0[K3('_AddListeners')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SELF      R2 = R0[K4('UpdateContent')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 12-31 np=3 va=0 ms=7 code=35 consts=19 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_activityType'
  ;   K[2]='GetType'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='GetActivityDefinition'
  ;   K[5]='m_orderArea'
  ;   K[6]='m_lastUpdateTime'
  ;   K[7]=0
  ;   K[8]='m_iconArea'
  ;   K[9]='Init'
  ;   K[10]='SetInBoardView'
  ;   K[11]='_UpdateBasedOnRaceState'
  ;   K[12]='IsInRace'
  ;   K[13]='m_bAwaked'
  ;   K[14]='_AddListeners'
  ;   K[15]='m_bWaitAddListener'
  ;   K[16]=true
  ;   K[17]='UpdateContent'
  ;   K[18]='UpdatePerSecond'
  ;   locals: self(0-35), model(0-35), orderArea(0-35)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R3 = R0[K0('m_model')]
  0002  SELF      R4 = R3[K2('GetType')] (self)
  0003  CALL      R3 = call(R3, 1 args, 1 rets)
  0004  SETTABLE  R0[K1('m_activityType')] = R3
  0005  GETTABLE  R3 = R0[K0('m_model')]
  0006  SELF      R4 = R3[K4('GetActivityDefinition')] (self)
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  SETTABLE  R0[K3('m_activityDefinition')] = R3
  0009  SETTABLE  R0[K5('m_orderArea')] = R2
  0010  SETTABLE  R0[K6('m_lastUpdateTime')] = K7(0)
  0011  GETTABLE  R3 = R0[K8('m_iconArea')]
  0012  SELF      R4 = R3[K9('Init')] (self)
  0013  GETTABLE  R5 = R0[K1('m_activityType')]
  0014  CALL      R3 = call(R3, 0 args, 2 rets)
  0015  GETTABLE  R3 = R0[K8('m_iconArea')]
  0016  SELF      R4 = R3[K10('SetInBoardView')] (self)
  0017  CALL      R3 = call(R3, 0 args, 1 rets)
  0018  SELF      R4 = R0[K11('_UpdateBasedOnRaceState')] (self)
  0019  GETTABLE  R5 = R0[K0('m_model')]
  0020  SELF      R6 = R5[K12('IsInRace')] (self)
  0021  CALL      R5 = call(R5, -1 args, 1 rets)
  0022  CALL      R3 = call(R3, 0 args, -1 rets)
  0023  GETTABLE  R3 = R0[K13('m_bAwaked')]
  0024  TEST      if not R3 then   -> -131046
  0025  JMP       (jump)   -> 29
  0026  SELF      R4 = R0[K14('_AddListeners')] (self)
  0027  CALL      R3 = call(R3, 0 args, 1 rets)
  0028  JMP       (jump)   -> 30
  0029  SETTABLE  R0[K15('m_bWaitAddListener')] = K16(true)
  0030  SELF      R4 = R0[K17('UpdateContent')] (self)
  0031  CALL      R3 = call(R3, 0 args, 1 rets)
  0032  SELF      R4 = R0[K18('UpdatePerSecond')] (self)
  0033  CALL      R3 = call(R3, 0 args, 1 rets)
  0034  RETURN    return R0..R-1
; ---------- proto2 [_AddListeners] ----------
  ; fn ?  line 33-42 np=1 va=0 ms=6 code=35 consts=17 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='AddListener'
  ;   K[2]='EEventType'
  ;   K[3]='ChangeGameMode'
  ;   K[4]='_OnChangeGameMode'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='StateChangedEvent'
  ;   K[7]='UpdateContent'
  ;   K[8]='AddHandlerAndRecordMap'
  ;   K[9]='m_model'
  ;   K[10]='event'
  ;   K[11]='RaceEventType'
  ;   K[12]='OpenMainWindow'
  ;   K[13]='obj'
  ;   K[14]='method'
  ;   K[15]='ScoreChanged'
  ;   K[16]='_UpdateRankText'
  ;   upvals: _ENV
  ;   locals: self(0-35)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('AddListener')]
  0002  GETTABUP  R2 = _ENV[K2('EEventType')]
  0003  GETTABLE  R2 = R2[K3('ChangeGameMode')]
  0004  MOVE      R3 = R0
  0005  GETTABLE  R4 = R0[K4('_OnChangeGameMode')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K1('AddListener')]
  0009  GETTABLE  R2 = R0[K5('m_activityDefinition')]
  0010  GETTABLE  R2 = R2[K6('StateChangedEvent')]
  0011  MOVE      R3 = R0
  0012  GETTABLE  R4 = R0[K7('UpdateContent')]
  0013  CALL      R1 = call(R1, 0 args, 3 rets)
  0014  GETTABUP  R1 = _ENV[K8('AddHandlerAndRecordMap')]
  0015  GETTABLE  R2 = R0[K9('m_model')]
  0016  GETTABLE  R2 = R2[K10('event')]
  0017  GETTABUP  R3 = _ENV[K11('RaceEventType')]
  0018  GETTABLE  R3 = R3[K12('OpenMainWindow')]
  0019  NEWTABLE  R4 = {} (0 items)
  0020  SETTABLE  R4[K13('obj')] = R0
  0021  GETTABLE  R5 = R0[K7('UpdateContent')]
  0022  SETTABLE  R4[K14('method')] = R5
  0023  CALL      R1 = call(R1, 0 args, 3 rets)
  0024  GETTABUP  R1 = _ENV[K8('AddHandlerAndRecordMap')]
  0025  GETTABLE  R2 = R0[K9('m_model')]
  0026  GETTABLE  R2 = R2[K10('event')]
  0027  GETTABUP  R3 = _ENV[K11('RaceEventType')]
  0028  GETTABLE  R3 = R3[K15('ScoreChanged')]
  0029  NEWTABLE  R4 = {} (0 items)
  0030  SETTABLE  R4[K13('obj')] = R0
  0031  GETTABLE  R5 = R0[K16('_UpdateRankText')]
  0032  SETTABLE  R4[K14('method')] = R5
  0033  CALL      R1 = call(R1, 0 args, 3 rets)
  0034  RETURN    return R0..R-1
; ---------- proto3 [OnDestroy] ----------
  ; fn ?  line 44-50 np=1 va=0 ms=4 code=17 consts=8 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='RemoveAllHandlers'
  ;   K[5]='event'
  ;   K[6]='Scheduler'
  ;   K[7]='UnscheduleTarget'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  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  GETTABLE  R1 = R0[K2('m_model')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R1 = _ENV[K4('RemoveAllHandlers')]
  0008  GETTABLE  R2 = R0[K2('m_model')]
  0009  GETTABLE  R2 = R2[K5('event')]
  0010  MOVE      R3 = R0
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  GETTABUP  R1 = _ENV[K6('Scheduler')]
  0013  GETTABLE  R1 = R1[K7('UnscheduleTarget')]
  0014  MOVE      R2 = R0
  0015  CALL      R1 = call(R1, 0 args, 1 rets)
  0016  RETURN    return R0..R-1
; ---------- proto4 [_OnChangeGameMode] ----------
  ; fn ?  line 52-54 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='UpdatePerSecond'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('UpdatePerSecond')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto5 [UpdatePerSecond] ----------
  ; fn ?  line 56-76 np=1 va=0 ms=9 code=47 consts=17 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'
  ;   K[14]='m_lastUpdateTime'
  ;   K[15]=120
  ;   K[16]='_UpdateRankText'
  ;   upvals: _ENV
  ;   locals: self(0-47), nextTime(7-47), delta(17-26), serTime(39-47)
  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  GETTABUP  R2 = _ENV[K3('GM')]
  0036  GETTABLE  R2 = R2[K4('GameModel')]
  0037  SELF      R3 = R2[K5('GetServerTime')] (self)
  0038  CALL      R2 = call(R2, 1 args, 1 rets)
  0039  GETTABLE  R3 = R0[K14('m_lastUpdateTime')]
  0040  SUB       R3 = R3 sub R2
  0041  LT        if R0 lt R3   -> 7726
  0042  JMP       (jump)   -> 46
  0043  SETTABLE  R0[K14('m_lastUpdateTime')] = R2
  0044  SELF      R4 = R0[K16('_UpdateRankText')] (self)
  0045  CALL      R3 = call(R3, 0 args, 1 rets)
  0046  RETURN    return R0..R-1
; ---------- proto6 [UpdateContent] ----------
  ; fn ?  line 78-89 np=1 va=0 ms=5 code=18 consts=7 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='IsInRace'
  ;   K[3]='_UpdateBasedOnRaceState'
  ;   K[4]='m_iconArea'
  ;   K[5]='SyncToModelValue'
  ;   K[6]='_UpdateRankText'
  ;   locals: self(0-18), isInMatch(7-18)
  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('IsInRace')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  SELF      R3 = R0[K3('_UpdateBasedOnRaceState')] (self)
  0008  MOVE      R4 = R0
  0009  CALL      R2 = call(R2, 0 args, 2 rets)
  0010  TEST      if not R1 then   -> -131060
  0011  JMP       (jump)   -> 17
  0012  GETTABLE  R2 = R0[K4('m_iconArea')]
  0013  SELF      R3 = R2[K5('SyncToModelValue')] (self)
  0014  CALL      R2 = call(R2, 0 args, 1 rets)
  0015  SELF      R3 = R0[K6('_UpdateRankText')] (self)
  0016  CALL      R2 = call(R2, 0 args, 1 rets)
  0017  RETURN    return R0..R-1
; ---------- proto7 [_UpdateBasedOnRaceState] ----------
  ; fn ?  line 91-99 np=2 va=0 ms=5 code=18 consts=6 upvals=0 protos=0
  ;   K[0]='m_bShowMatchBtn'
  ;   K[1]=nil
  ;   K[2]='m_iconArea'
  ;   K[3]='gameObject'
  ;   K[4]='SetActive'
  ;   K[5]='m_startMatchGo'
  ;   locals: self(0-18), isInMatch(0-18)
  0000  GETTABLE  R2 = R0[K0('m_bShowMatchBtn')]
  0001  EQ        if R1 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R2 = R0[K0('m_bShowMatchBtn')]
  0004  EQ        if R0 eq R1   -> -130041
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R2 = R0[K2('m_iconArea')]
  0008  GETTABLE  R2 = R2[K3('gameObject')]
  0009  SELF      R3 = R2[K4('SetActive')] (self)
  0010  MOVE      R4 = R0
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  GETTABLE  R2 = R0[K5('m_startMatchGo')]
  0013  SELF      R3 = R2[K4('SetActive')] (self)
  0014  NOT       R4 = not R0
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  SETTABLE  R0[K0('m_bShowMatchBtn')] = R1
  0017  RETURN    return R0..R-1
; ---------- proto8 [_UpdateRankText] ----------
  ; fn ?  line 101-117 np=1 va=0 ms=5 code=45 consts=14 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_exclamationGo'
  ;   K[3]='SetActive'
  ;   K[4]='CanShowExclaimation'
  ;   K[5]='HasNetwork'
  ;   K[6]='IsInRace'
  ;   K[7]=-1
  ;   K[8]='GetMyRank'
  ;   K[9]='UIUtil'
  ;   K[10]='m_firstRankGo'
  ;   K[11]=1
  ;   K[12]='m_secondRankGo'
  ;   K[13]=2
  ;   upvals: _ENV
  ;   locals: self(0-45), rank(28-45)
  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('HasNetwork')] (self)
  0012  CALL      R1 = call(R1, 1 args, 1 rets)
  0013  TEST      if not R1 then   -> -131056
  0014  JMP       (jump)   -> 16
  0015  RETURN    return R0..R-1
  0016  GETTABLE  R1 = R0[K0('m_model')]
  0017  SELF      R2 = R1[K6('IsInRace')] (self)
  0018  CALL      R1 = call(R1, 1 args, 1 rets)
  0019  TEST      if not R1 then   -> -131050
  0020  JMP       (jump)   -> 24
  0021  LOADK     R1 = K7 -1
  0022  TEST      if not R1 then   -> -131047
  0023  JMP       (jump)   -> 28
  0024  GETTABLE  R1 = R0[K0('m_model')]
  0025  SELF      R2 = R1[K8('GetMyRank')] (self)
  0026  LOADBOOL  R3 = true
  0027  CALL      R1 = call(R1, 1 args, 2 rets)
  0028  GETTABUP  R2 = _ENV[K9('UIUtil')]
  0029  GETTABLE  R2 = R2[K3('SetActive')]
  0030  GETTABLE  R3 = R0[K10('m_firstRankGo')]
  0031  EQ        if R1 eq K11(1)   -> -130260
  0032  JMP       (jump)   -> 34
  0033  LOADBOOL  R4 = false
  0034  LOADBOOL  R4 = true
  0035  CALL      R2 = call(R2, 0 args, 2 rets)
  0036  GETTABUP  R2 = _ENV[K9('UIUtil')]
  0037  GETTABLE  R2 = R2[K3('SetActive')]
  0038  GETTABLE  R3 = R0[K12('m_secondRankGo')]
  0039  EQ        if R1 eq K13(2)   -> -130250
  0040  JMP       (jump)   -> 42
  0041  LOADBOOL  R4 = false
  0042  LOADBOOL  R4 = true
  0043  CALL      R2 = call(R2, 0 args, 2 rets)
  0044  RETURN    return R0..R-1
; ---------- proto9 [OnBtnClicked] ----------
  ; fn ?  line 119-127 np=1 va=0 ms=8 code=22 consts=10 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetState'
  ;   K[2]='IsInRace'
  ;   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-22), state(3-22)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetState')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABLE  R2 = R0[K0('m_model')]
  0004  SELF      R3 = R2[K2('IsInRace')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  TEST      if not R2 then   -> -131064
  0007  JMP       (jump)   -> 12
  0008  GETTABLE  R2 = R0[K0('m_model')]
  0009  SELF      R3 = R2[K3('TryOpenMainWindow')] (self)
  0010  CALL      R2 = call(R2, 0 args, 1 rets)
  0011  JMP       (jump)   -> 21
  0012  GETTABUP  R2 = _ENV[K4('GM')]
  0013  GETTABLE  R2 = R2[K5('UIManager')]
  0014  SELF      R3 = R2[K6('OpenView')] (self)
  0015  GETTABLE  R4 = R0[K7('m_activityDefinition')]
  0016  GETTABLE  R4 = R4[K8('NoticeWindowPrefabName')]
  0017  GETTABLE  R5 = R0[K9('m_activityType')]
  0018  LOADBOOL  R6 = false
  0019  LOADBOOL  R7 = true
  0020  CALL      R2 = call(R2, 0 args, 5 rets)
  0021  RETURN    return R0..R-1
; ---------- proto10 [GetIconArea] ----------
  ; fn ?  line 129-131 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_iconArea'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_iconArea')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto11 [Init] ----------
  ; fn ?  line 137-141 np=2 va=0 ms=5 code=17 consts=9 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='GetActivityDefinition'
  ;   K[6]='HudPropertyButton'
  ;   K[7]='Init'
  ;   K[8]='ActivityTokenPropertyType'
  ;   upvals: _ENV
  ;   locals: self(0-17), activityType(0-17)
  0000  GETTABUP  R2 = _ENV[K1('GM')]
  0001  GETTABLE  R2 = R2[K2('ActivityManager')]
  0002  SELF      R3 = R2[K3('GetModel')] (self)
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  SETTABLE  R0[K0('m_model')] = R2
  0006  GETTABLE  R2 = R0[K0('m_model')]
  0007  SELF      R3 = R2[K5('GetActivityDefinition')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  SETTABLE  R0[K4('m_activityDefinition')] = R2
  0010  GETTABUP  R2 = _ENV[K6('HudPropertyButton')]
  0011  GETTABLE  R2 = R2[K7('Init')]
  0012  MOVE      R3 = R0
  0013  GETTABLE  R4 = R0[K4('m_activityDefinition')]
  0014  GETTABLE  R4 = R4[K8('ActivityTokenPropertyType')]
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  RETURN    return R0..R-1
; ---------- proto12 [UpdateValueText] ----------
  ; fn ?  line 143-148 np=1 va=0 ms=6 code=20 consts=10 upvals=1 protos=0
  ;   K[0]='m_valueText'
  ;   K[1]=nil
  ;   K[2]='m_model'
  ;   K[3]='GetTargetScore'
  ;   K[4]='text'
  ;   K[5]='math'
  ;   K[6]='floor'
  ;   K[7]='m_value'
  ;   K[8]=0.5
  ;   K[9]='/'
  ;   upvals: _ENV
  ;   locals: self(0-20), targetValue(9-19)
  0000  GETTABLE  R1 = R0[K0('m_valueText')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 19
  0003  GETTABLE  R1 = R0[K2('m_model')]
  0004  EQ        if R1 eq K1(nil)   -> -130297
  0005  JMP       (jump)   -> 19
  0006  GETTABLE  R1 = R0[K2('m_model')]
  0007  SELF      R2 = R1[K3('GetTargetScore')] (self)
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  GETTABLE  R2 = R0[K0('m_valueText')]
  0010  GETTABUP  R3 = _ENV[K5('math')]
  0011  GETTABLE  R3 = R3[K6('floor')]
  0012  GETTABLE  R4 = R0[K7('m_value')]
  0013  ADD       R4 = K8(0.5) add R4
  0014  CALL      R3 = call(R3, 1 args, 1 rets)
  0015  LOADK     R4 = K9 '/'
  0016  MOVE      R5 = R0
  0017  CONCAT    R3 = concat(R3..R3)
  0018  SETTABLE  R2[K4('text')] = R3
  0019  RETURN    return R0..R-1
