# MultiRank_View_MultiRankEntry_1200.luac
; fn @MultiRankEntry.lua  line 0-0 np=0 va=1 ms=3 code=30 consts=11 upvals=1 protos=7
;   K[0]='MultiRankEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='_AddListeners'
;   K[7]='UpdatePerSecond'
;   K[8]='UpdateRedPoint'
;   K[9]='UpdateRank'
;   K[10]='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('MultiRankEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('MultiRankEntry')]
0006  GETTABUP  R1 = _ENV[K0('MultiRankEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('MultiRankEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('MultiRankEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('MultiRankEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_AddListeners')] = R1
0017  GETTABUP  R0 = _ENV[K0('MultiRankEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('UpdatePerSecond')] = R1
0020  GETTABUP  R0 = _ENV[K0('MultiRankEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('UpdateRedPoint')] = R1
0023  GETTABUP  R0 = _ENV[K0('MultiRankEntry')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('UpdateRank')] = R1
0026  GETTABUP  R0 = _ENV[K0('MultiRankEntry')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('OnBtnClicked')] = R1
0029  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 5-12 np=1 va=0 ms=3 code=10 consts=4 upvals=0 protos=0
  ;   K[0]='_AddListeners'
  ;   K[1]='m_bInit'
  ;   K[2]='UpdateRedPoint'
  ;   K[3]='UpdateRank'
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('_AddListeners')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_bInit')]
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 9
  0005  SELF      R2 = R0[K2('UpdateRedPoint')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  SELF      R2 = R0[K3('UpdateRank')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 14-28 np=2 va=0 ms=4 code=22 consts=15 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_reddot'
  ;   K[6]=false
  ;   K[7]='UpdateRedPoint'
  ;   K[8]='UpdateRank'
  ;   K[9]='UpdatePerSecond'
  ;   K[10]='m_bInit'
  ;   K[11]=true
  ;   K[12]='gameObject'
  ;   K[13]='activeInHierarchy'
  ;   K[14]='_AddListeners'
  ;   locals: self(0-22), model(0-22)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SELF      R3 = R1[K2('GetType')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  SETTABLE  R0[K1('m_activityType')] = R2
  0004  SELF      R3 = R1[K4('GetActivityDefinition')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  SETTABLE  R0[K3('m_activityDefinition')] = R2
  0007  SETTABLE  R0[K5('m_reddot')] = K6(false)
  0008  SELF      R3 = R0[K7('UpdateRedPoint')] (self)
  0009  CALL      R2 = call(R2, 0 args, 1 rets)
  0010  SELF      R3 = R0[K8('UpdateRank')] (self)
  0011  CALL      R2 = call(R2, 0 args, 1 rets)
  0012  SELF      R3 = R0[K9('UpdatePerSecond')] (self)
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  SETTABLE  R0[K10('m_bInit')] = K11(true)
  0015  GETTABLE  R2 = R0[K12('gameObject')]
  0016  GETTABLE  R2 = R2[K13('activeInHierarchy')]
  0017  TEST      if not R2 then   -> -131053
  0018  JMP       (jump)   -> 21
  0019  SELF      R3 = R0[K14('_AddListeners')] (self)
  0020  CALL      R2 = call(R2, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto2 [_AddListeners] ----------
  ; fn ?  line 30-37 np=1 va=0 ms=5 code=29 consts=12 upvals=1 protos=0
  ;   K[0]='m_bInit'
  ;   K[1]='m_bAddListener'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='UserRankChangedEvent'
  ;   K[6]='UpdateRank'
  ;   K[7]='StateChangedEvent'
  ;   K[8]='EEventType'
  ;   K[9]='MultiRankScoreChanged'
  ;   K[10]='UpdateRedPoint'
  ;   K[11]=true
  ;   upvals: _ENV
  ;   locals: self(0-29)
  0000  GETTABLE  R1 = R0[K0('m_bInit')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 28
  0003  GETTABLE  R1 = R0[K1('m_bAddListener')]
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 28
  0006  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0007  GETTABLE  R1 = R1[K3('AddListener')]
  0008  GETTABLE  R2 = R0[K4('m_activityDefinition')]
  0009  GETTABLE  R2 = R2[K5('UserRankChangedEvent')]
  0010  MOVE      R3 = R0
  0011  GETTABLE  R4 = R0[K6('UpdateRank')]
  0012  CALL      R1 = call(R1, 0 args, 3 rets)
  0013  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0014  GETTABLE  R1 = R1[K3('AddListener')]
  0015  GETTABLE  R2 = R0[K4('m_activityDefinition')]
  0016  GETTABLE  R2 = R2[K7('StateChangedEvent')]
  0017  MOVE      R3 = R0
  0018  GETTABLE  R4 = R0[K6('UpdateRank')]
  0019  CALL      R1 = call(R1, 0 args, 3 rets)
  0020  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0021  GETTABLE  R1 = R1[K3('AddListener')]
  0022  GETTABUP  R2 = _ENV[K8('EEventType')]
  0023  GETTABLE  R2 = R2[K9('MultiRankScoreChanged')]
  0024  MOVE      R3 = R0
  0025  GETTABLE  R4 = R0[K10('UpdateRedPoint')]
  0026  CALL      R1 = call(R1, 0 args, 3 rets)
  0027  SETTABLE  R0[K1('m_bAddListener')] = K11(true)
  0028  RETURN    return R0..R-1
; ---------- proto3 [UpdatePerSecond] ----------
  ; fn ?  line 39-53 np=1 va=0 ms=8 code=62 consts=25 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='GetNextStateTime'
  ;   K[6]='GM'
  ;   K[7]='GameModel'
  ;   K[8]='GetServerTime'
  ;   K[9]='m_countDownText'
  ;   K[10]='text'
  ;   K[11]='TimeUtil'
  ;   K[12]='ParseTimeDescription'
  ;   K[13]=2
  ;   K[14]='GetSettlementState'
  ;   K[15]='RankSettlementState'
  ;   K[16]='Finished'
  ;   K[17]='GameTextModel'
  ;   K[18]='GetText'
  ;   K[19]='bakeout_end_title'
  ;   K[20]='bakeout_settlement_title'
  ;   K[21]='IsFinalRewardsTaken'
  ;   K[22]='m_rankText'
  ;   K[23]=''
  ;   K[24]='UpdateRank'
  ;   upvals: _ENV
  ;   locals: self(0-62), delta(18-27)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 61
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('GetState')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0007  GETTABLE  R2 = R2[K4('Started')]
  0008  EQ        if R0 eq R2   -> -130548
  0009  JMP       (jump)   -> 28
  0010  GETTABLE  R1 = R0[K0('m_model')]
  0011  SELF      R2 = R1[K5('GetNextStateTime')] (self)
  0012  CALL      R1 = call(R1, 1 args, 1 rets)
  0013  GETTABUP  R2 = _ENV[K6('GM')]
  0014  GETTABLE  R2 = R2[K7('GameModel')]
  0015  SELF      R3 = R2[K8('GetServerTime')] (self)
  0016  CALL      R2 = call(R2, 1 args, 1 rets)
  0017  SUB       R1 = R2 sub R1
  0018  GETTABLE  R2 = R0[K9('m_countDownText')]
  0019  GETTABUP  R3 = _ENV[K11('TimeUtil')]
  0020  GETTABLE  R3 = R3[K12('ParseTimeDescription')]
  0021  MOVE      R4 = R0
  0022  LOADK     R5 = K13 2
  0023  LOADBOOL  R6 = false
  0024  LOADBOOL  R7 = false
  0025  CALL      R3 = call(R3, 1 args, 4 rets)
  0026  SETTABLE  R2[K10('text')] = R3
  0027  JMP       (jump)   -> 50
  0028  GETTABLE  R1 = R0[K0('m_model')]
  0029  SELF      R2 = R1[K14('GetSettlementState')] (self)
  0030  CALL      R1 = call(R1, 1 args, 1 rets)
  0031  GETTABUP  R2 = _ENV[K15('RankSettlementState')]
  0032  GETTABLE  R2 = R2[K16('Finished')]
  0033  EQ        if R0 eq R2   -> -130523
  0034  JMP       (jump)   -> 43
  0035  GETTABLE  R1 = R0[K9('m_countDownText')]
  0036  GETTABUP  R2 = _ENV[K6('GM')]
  0037  GETTABLE  R2 = R2[K17('GameTextModel')]
  0038  SELF      R3 = R2[K18('GetText')] (self)
  0039  LOADK     R4 = K19 'bakeout_end_title'
  0040  CALL      R2 = call(R2, 1 args, 2 rets)
  0041  SETTABLE  R1[K10('text')] = R2
  0042  JMP       (jump)   -> 50
  0043  GETTABLE  R1 = R0[K9('m_countDownText')]
  0044  GETTABUP  R2 = _ENV[K6('GM')]
  0045  GETTABLE  R2 = R2[K17('GameTextModel')]
  0046  SELF      R3 = R2[K18('GetText')] (self)
  0047  LOADK     R4 = K20 'bakeout_settlement_title'
  0048  CALL      R2 = call(R2, 1 args, 2 rets)
  0049  SETTABLE  R1[K10('text')] = R2
  0050  GETTABLE  R1 = R0[K0('m_model')]
  0051  SELF      R2 = R1[K21('IsFinalRewardsTaken')] (self)
  0052  CALL      R1 = call(R1, 1 args, 1 rets)
  0053  TEST      if not R1 then   -> -131017
  0054  JMP       (jump)   -> 61
  0055  GETTABLE  R1 = R0[K22('m_rankText')]
  0056  GETTABLE  R1 = R1[K10('text')]
  0057  EQ        if R0 eq K23('')   -> -130222
  0058  JMP       (jump)   -> 61
  0059  SELF      R2 = R0[K24('UpdateRank')] (self)
  0060  CALL      R1 = call(R1, 0 args, 1 rets)
  0061  RETURN    return R0..R-1
; ---------- proto4 [UpdateRedPoint] ----------
  ; fn ?  line 55-60 np=1 va=0 ms=5 code=14 consts=8 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetCanAcquiredRewardCount'
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='m_exclamationGo'
  ;   K[5]=0
  ;   K[6]='m_exclamationText'
  ;   K[7]='text'
  ;   upvals: _ENV
  ;   locals: self(0-14), count(3-14)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetCanAcquiredRewardCount')] (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  LT        if R1 lt R1   -> 2569
  0007  JMP       (jump)   -> 9
  0008  LOADBOOL  R4 = false
  0009  LOADBOOL  R4 = true
  0010  CALL      R2 = call(R2, 0 args, 2 rets)
  0011  GETTABLE  R2 = R0[K6('m_exclamationText')]
  0012  SETTABLE  R2[K7('text')] = R1
  0013  RETURN    return R0..R-1
; ---------- proto5 [UpdateRank] ----------
  ; fn ?  line 62-74 np=1 va=0 ms=4 code=43 consts=13 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Ended'
  ;   K[5]='IsFinalRewardsTaken'
  ;   K[6]='UIUtil'
  ;   K[7]='SetActive'
  ;   K[8]='m_rankGo'
  ;   K[9]='IsInGroup'
  ;   K[10]='m_rankText'
  ;   K[11]='text'
  ;   K[12]='GetUserRank'
  ;   upvals: _ENV
  ;   locals: self(0-43)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 15
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('GetState')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0007  GETTABLE  R2 = R2[K4('Ended')]
  0008  EQ        if R0 eq R2   -> -130548
  0009  JMP       (jump)   -> 21
  0010  GETTABLE  R1 = R0[K0('m_model')]
  0011  SELF      R2 = R1[K5('IsFinalRewardsTaken')] (self)
  0012  CALL      R1 = call(R1, 1 args, 1 rets)
  0013  TEST      if not R1 then   -> -131056
  0014  JMP       (jump)   -> 21
  0015  GETTABUP  R1 = _ENV[K6('UIUtil')]
  0016  GETTABLE  R1 = R1[K7('SetActive')]
  0017  GETTABLE  R2 = R0[K8('m_rankGo')]
  0018  LOADBOOL  R3 = false
  0019  CALL      R1 = call(R1, 0 args, 2 rets)
  0020  RETURN    return R0..R-1
  0021  GETTABLE  R1 = R0[K0('m_model')]
  0022  SELF      R2 = R1[K9('IsInGroup')] (self)
  0023  CALL      R1 = call(R1, 1 args, 1 rets)
  0024  TEST      if not R1 then   -> -131046
  0025  JMP       (jump)   -> 37
  0026  GETTABUP  R1 = _ENV[K6('UIUtil')]
  0027  GETTABLE  R1 = R1[K7('SetActive')]
  0028  GETTABLE  R2 = R0[K8('m_rankGo')]
  0029  LOADBOOL  R3 = true
  0030  CALL      R1 = call(R1, 0 args, 2 rets)
  0031  GETTABLE  R1 = R0[K10('m_rankText')]
  0032  GETTABLE  R2 = R0[K0('m_model')]
  0033  SELF      R3 = R2[K12('GetUserRank')] (self)
  0034  CALL      R2 = call(R2, 1 args, 1 rets)
  0035  SETTABLE  R1[K11('text')] = R2
  0036  JMP       (jump)   -> 42
  0037  GETTABUP  R1 = _ENV[K6('UIUtil')]
  0038  GETTABLE  R1 = R1[K7('SetActive')]
  0039  GETTABLE  R2 = R0[K8('m_rankGo')]
  0040  LOADBOOL  R3 = false
  0041  CALL      R1 = call(R1, 0 args, 2 rets)
  0042  RETURN    return R0..R-1
; ---------- proto6 [OnBtnClicked] ----------
  ; fn ?  line 76-78 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='TryShowMainWindow'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('TryShowMainWindow')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
