# IceComboActivity_View_IceComboEntry_1932.luac
; fn @IceComboEntry.lua  line 0-0 np=0 va=1 ms=3 code=33 consts=12 upvals=1 protos=8
;   K[0]='IceComboEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnDestroy'
;   K[6]='UpdatePerSecond'
;   K[7]='OnBtnClicked'
;   K[8]='UpdateContent'
;   K[9]='_UpdateMultiText'
;   K[10]='_UpdateRankText'
;   K[11]='UpdateExclaimation'
;   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('IceComboEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('IceComboEntry')]
0006  GETTABUP  R1 = _ENV[K0('IceComboEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('IceComboEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('IceComboEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('IceComboEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdatePerSecond')] = R1
0017  GETTABUP  R0 = _ENV[K0('IceComboEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnBtnClicked')] = R1
0020  GETTABUP  R0 = _ENV[K0('IceComboEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('UpdateContent')] = R1
0023  GETTABUP  R0 = _ENV[K0('IceComboEntry')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('_UpdateMultiText')] = R1
0026  GETTABUP  R0 = _ENV[K0('IceComboEntry')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('_UpdateRankText')] = R1
0029  GETTABUP  R0 = _ENV[K0('IceComboEntry')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('UpdateExclaimation')] = R1
0032  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-32 np=2 va=0 ms=7 code=70 consts=26 upvals=1 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_spineAnim'
  ;   K[7]='Init'
  ;   K[8]='m_lastUpdateTime'
  ;   K[9]=0
  ;   K[10]='UpdateContent'
  ;   K[11]='UpdatePerSecond'
  ;   K[12]='AddHandlerAndRecordMap'
  ;   K[13]='event'
  ;   K[14]='RaceEventType'
  ;   K[15]='ScoreChanged'
  ;   K[16]='obj'
  ;   K[17]='method'
  ;   K[18]='OpenMainWindow'
  ;   K[19]='EventDispatcher'
  ;   K[20]='AddListener'
  ;   K[21]='EEventType'
  ;   K[22]='IceComboMultiNumChanged'
  ;   K[23]='FailEvent'
  ;   K[24]='EntrySuccessEvent'
  ;   K[25]='StateChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-70), model(0-70)
  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  GETTABLE  R2 = R0[K6('m_spineAnim')]
  0014  SELF      R3 = R2[K7('Init')] (self)
  0015  CALL      R2 = call(R2, 0 args, 1 rets)
  0016  SETTABLE  R0[K8('m_lastUpdateTime')] = K9(0)
  0017  SELF      R3 = R0[K10('UpdateContent')] (self)
  0018  CALL      R2 = call(R2, 0 args, 1 rets)
  0019  SELF      R3 = R0[K11('UpdatePerSecond')] (self)
  0020  CALL      R2 = call(R2, 0 args, 1 rets)
  0021  GETTABUP  R2 = _ENV[K12('AddHandlerAndRecordMap')]
  0022  GETTABLE  R3 = R0[K0('m_model')]
  0023  GETTABLE  R3 = R3[K13('event')]
  0024  GETTABUP  R4 = _ENV[K14('RaceEventType')]
  0025  GETTABLE  R4 = R4[K15('ScoreChanged')]
  0026  NEWTABLE  R5 = {} (0 items)
  0027  SETTABLE  R5[K16('obj')] = R0
  0028  GETTABLE  R6 = R0[K10('UpdateContent')]
  0029  SETTABLE  R5[K17('method')] = R6
  0030  CALL      R2 = call(R2, 0 args, 3 rets)
  0031  GETTABUP  R2 = _ENV[K12('AddHandlerAndRecordMap')]
  0032  GETTABLE  R3 = R0[K0('m_model')]
  0033  GETTABLE  R3 = R3[K13('event')]
  0034  GETTABUP  R4 = _ENV[K14('RaceEventType')]
  0035  GETTABLE  R4 = R4[K18('OpenMainWindow')]
  0036  NEWTABLE  R5 = {} (0 items)
  0037  SETTABLE  R5[K16('obj')] = R0
  0038  GETTABLE  R6 = R0[K10('UpdateContent')]
  0039  SETTABLE  R5[K17('method')] = R6
  0040  CALL      R2 = call(R2, 0 args, 3 rets)
  0041  GETTABUP  R2 = _ENV[K19('EventDispatcher')]
  0042  GETTABLE  R2 = R2[K20('AddListener')]
  0043  GETTABUP  R3 = _ENV[K21('EEventType')]
  0044  GETTABLE  R3 = R3[K22('IceComboMultiNumChanged')]
  0045  MOVE      R4 = R0
  0046  GETTABLE  R5 = R0[K10('UpdateContent')]
  0047  CALL      R2 = call(R2, 0 args, 3 rets)
  0048  GETTABUP  R2 = _ENV[K19('EventDispatcher')]
  0049  GETTABLE  R2 = R2[K20('AddListener')]
  0050  GETTABLE  R3 = R0[K4('m_activityDefinition')]
  0051  GETTABLE  R3 = R3[K23('FailEvent')]
  0052  MOVE      R4 = R0
  0053  GETTABLE  R5 = R0[K10('UpdateContent')]
  0054  CALL      R2 = call(R2, 0 args, 3 rets)
  0055  GETTABUP  R2 = _ENV[K19('EventDispatcher')]
  0056  GETTABLE  R2 = R2[K20('AddListener')]
  0057  GETTABLE  R3 = R0[K4('m_activityDefinition')]
  0058  GETTABLE  R3 = R3[K24('EntrySuccessEvent')]
  0059  MOVE      R4 = R0
  0060  GETTABLE  R5 = R0[K10('UpdateContent')]
  0061  CALL      R2 = call(R2, 0 args, 3 rets)
  0062  GETTABUP  R2 = _ENV[K19('EventDispatcher')]
  0063  GETTABLE  R2 = R2[K20('AddListener')]
  0064  GETTABLE  R3 = R0[K4('m_activityDefinition')]
  0065  GETTABLE  R3 = R3[K25('StateChangedEvent')]
  0066  MOVE      R4 = R0
  0067  GETTABLE  R5 = R0[K10('UpdateContent')]
  0068  CALL      R2 = call(R2, 0 args, 3 rets)
  0069  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 34-40 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]='HudGeneralButton'
  ;   K[7]='OnDestroy'
  ;   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('HudGeneralButton')]
  0013  GETTABLE  R1 = R1[K7('OnDestroy')]
  0014  MOVE      R2 = R0
  0015  CALL      R1 = call(R1, 0 args, 1 rets)
  0016  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 42-62 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
; ---------- proto3 [OnBtnClicked] ----------
  ; fn ?  line 64-68 np=1 va=0 ms=3 code=7 consts=3 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='OnEntryClicked'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('OnEntryClicked')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto4 [UpdateContent] ----------
  ; fn ?  line 70-85 np=1 va=0 ms=5 code=27 consts=10 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='UpdateExclaimation'
  ;   K[3]='IsInRace'
  ;   K[4]='_UpdateRankText'
  ;   K[5]='m_spineAnim'
  ;   K[6]='SetAnimation'
  ;   K[7]='idle1'
  ;   K[8]='_UpdateMultiText'
  ;   K[9]='idle2'
  ;   locals: self(0-27)
  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  SELF      R2 = R0[K2('UpdateExclaimation')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  GETTABLE  R1 = R0[K0('m_model')]
  0007  SELF      R2 = R1[K3('IsInRace')] (self)
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  TEST      if not R1 then   -> -131061
  0010  JMP       (jump)   -> 19
  0011  SELF      R2 = R0[K4('_UpdateRankText')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  GETTABLE  R1 = R0[K5('m_spineAnim')]
  0014  SELF      R2 = R1[K6('SetAnimation')] (self)
  0015  LOADK     R3 = K7 'idle1'
  0016  LOADBOOL  R4 = true
  0017  CALL      R1 = call(R1, 0 args, 3 rets)
  0018  JMP       (jump)   -> 26
  0019  SELF      R2 = R0[K8('_UpdateMultiText')] (self)
  0020  CALL      R1 = call(R1, 0 args, 1 rets)
  0021  GETTABLE  R1 = R0[K5('m_spineAnim')]
  0022  SELF      R2 = R1[K6('SetAnimation')] (self)
  0023  LOADK     R3 = K9 'idle2'
  0024  LOADBOOL  R4 = true
  0025  CALL      R1 = call(R1, 0 args, 3 rets)
  0026  RETURN    return R0..R-1
; ---------- proto5 [_UpdateMultiText] ----------
  ; fn ?  line 88-90 np=1 va=0 ms=5 code=8 consts=5 upvals=0 protos=0
  ;   K[0]='m_numText'
  ;   K[1]='text'
  ;   K[2]='x'
  ;   K[3]='m_model'
  ;   K[4]='GetCurMultiNum'
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_numText')]
  0001  LOADK     R2 = K2 'x'
  0002  GETTABLE  R3 = R0[K3('m_model')]
  0003  SELF      R4 = R3[K4('GetCurMultiNum')] (self)
  0004  CALL      R3 = call(R3, 1 args, 1 rets)
  0005  CONCAT    R2 = concat(R2..R2)
  0006  SETTABLE  R1[K1('text')] = R2
  0007  RETURN    return R0..R-1
; ---------- proto6 [_UpdateRankText] ----------
  ; fn ?  line 92-101 np=1 va=0 ms=4 code=21 consts=7 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='HasNetwork'
  ;   K[3]='IsInRace'
  ;   K[4]='GetMyRank'
  ;   K[5]='m_numText'
  ;   K[6]='text'
  ;   locals: self(0-21), rank(18-21)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 13
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('HasNetwork')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 13
  0008  GETTABLE  R1 = R0[K0('m_model')]
  0009  SELF      R2 = R1[K3('IsInRace')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  TEST      if not R1 then   -> -131058
  0012  JMP       (jump)   -> 14
  0013  RETURN    return R0..R-1
  0014  GETTABLE  R1 = R0[K0('m_model')]
  0015  SELF      R2 = R1[K4('GetMyRank')] (self)
  0016  LOADBOOL  R3 = true
  0017  CALL      R1 = call(R1, 1 args, 2 rets)
  0018  GETTABLE  R2 = R0[K5('m_numText')]
  0019  SETTABLE  R2[K6('text')] = R1
  0020  RETURN    return R0..R-1
; ---------- proto7 [UpdateExclaimation] ----------
  ; fn ?  line 103-105 np=1 va=0 ms=5 code=7 consts=4 upvals=0 protos=0
  ;   K[0]='m_exclamationGo'
  ;   K[1]='SetActive'
  ;   K[2]='m_model'
  ;   K[3]='CanShowExclaimation'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_exclamationGo')]
  0001  SELF      R2 = R1[K1('SetActive')] (self)
  0002  GETTABLE  R3 = R0[K2('m_model')]
  0003  SELF      R4 = R3[K3('CanShowExclaimation')] (self)
  0004  CALL      R3 = call(R3, -1 args, 1 rets)
  0005  CALL      R1 = call(R1, 0 args, -1 rets)
  0006  RETURN    return R0..R-1
