# DiscoSpin_View_DiscoSpinActivityMainEntry_1475.luac
; fn @DiscoSpinActivityMainEntry.lua  line 0-0 np=0 va=1 ms=3 code=39 consts=14 upvals=1 protos=10
;   K[0]='DiscoSpinActivityMainEntry'
;   K[1]='setmetatable'
;   K[2]='HudCountDownButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='_TryAddListeners'
;   K[7]='_InitModelData'
;   K[8]='_UpdateFinishTime'
;   K[9]='GetModel'
;   K[10]='_IsModelIdChanged'
;   K[11]='GetTriggerStartTime'
;   K[12]='_OnRefreshEntryEvent'
;   K[13]='OnBtnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudCountDownButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DiscoSpinActivityMainEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0006  GETTABUP  R1 = _ENV[K0('DiscoSpinActivityMainEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_TryAddListeners')] = R1
0017  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('_InitModelData')] = R1
0020  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_UpdateFinishTime')] = R1
0023  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('GetModel')] = R1
0026  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('_IsModelIdChanged')] = R1
0029  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('GetTriggerStartTime')] = R1
0032  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0033  CLOSURE   R1 = closure proto8
0034  SETTABLE  R0[K12('_OnRefreshEntryEvent')] = R1
0035  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityMainEntry')]
0036  CLOSURE   R1 = closure proto9
0037  SETTABLE  R0[K13('OnBtnClicked')] = R1
0038  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 8-12 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='HudCountDownButton'
  ;   K[1]='Awake'
  ;   K[2]='_InitModelData'
  ;   K[3]='_TryAddListeners'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('HudCountDownButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_InitModelData')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SELF      R2 = R0[K3('_TryAddListeners')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 15-21 np=2 va=0 ms=4 code=6 consts=3 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='_InitModelData'
  ;   K[2]='_TryAddListeners'
  ;   locals: self(0-6), model(0-6)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SELF      R3 = R0[K1('_InitModelData')] (self)
  0002  CALL      R2 = call(R2, 0 args, 1 rets)
  0003  SELF      R3 = R0[K2('_TryAddListeners')] (self)
  0004  CALL      R2 = call(R2, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
; ---------- proto2 [_TryAddListeners] ----------
  ; fn ?  line 23-30 np=1 va=0 ms=6 code=18 consts=9 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]=nil
  ;   K[2]='gameObject'
  ;   K[3]='activeInHierarchy'
  ;   K[4]='EventDispatcher'
  ;   K[5]='AddListener'
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='RefreshEntryEvent'
  ;   K[8]='_OnRefreshEntryEvent'
  ;   upvals: _ENV
  ;   locals: self(0-18), model(2-18)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R1 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 8
  0004  GETTABLE  R2 = R0[K2('gameObject')]
  0005  GETTABLE  R2 = R2[K3('activeInHierarchy')]
  0006  TEST      if not R2 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0010  GETTABLE  R2 = R2[K5('AddListener')]
  0011  SELF      R4 = R1[K6('GetActivityDefinition')] (self)
  0012  CALL      R3 = call(R3, 1 args, 1 rets)
  0013  GETTABLE  R3 = R3[K7('RefreshEntryEvent')]
  0014  MOVE      R4 = R0
  0015  GETTABLE  R5 = R0[K8('_OnRefreshEntryEvent')]
  0016  CALL      R2 = call(R2, 0 args, 3 rets)
  0017  RETURN    return R0..R-1
; ---------- proto3 [_InitModelData] ----------
  ; fn ?  line 32-39 np=1 va=0 ms=3 code=12 consts=6 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_id'
  ;   K[3]='GetModel'
  ;   K[4]='GetId'
  ;   K[5]='_UpdateFinishTime'
  ;   locals: self(0-12)
  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[K3('GetModel')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  SELF      R2 = R1[K4('GetId')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SETTABLE  R0[K2('m_id')] = R1
  0009  SELF      R2 = R0[K5('_UpdateFinishTime')] (self)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto4 [_UpdateFinishTime] ----------
  ; fn ?  line 41-44 np=1 va=0 ms=3 code=8 consts=4 upvals=0 protos=0
  ;   K[0]='m_finishTime'
  ;   K[1]='GetModel'
  ;   K[2]='GetEndTime'
  ;   K[3]='UpdatePerSecond'
  ;   locals: self(0-8)
  0000  SELF      R2 = R0[K1('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K2('GetEndTime')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  SETTABLE  R0[K0('m_finishTime')] = R1
  0005  SELF      R2 = R0[K3('UpdatePerSecond')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto5 [GetModel] ----------
  ; fn ?  line 46-48 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto6 [_IsModelIdChanged] ----------
  ; fn ?  line 50-52 np=1 va=0 ms=4 code=11 consts=3 upvals=0 protos=0
  ;   K[0]='m_id'
  ;   K[1]='GetModel'
  ;   K[2]='GetId'
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_id')]
  0001  SELF      R3 = R0[K1('GetModel')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  SELF      R3 = R2[K2('GetId')] (self)
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R1 = false
  0008  LOADBOOL  R1 = true
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto7 [GetTriggerStartTime] ----------
  ; fn ?  line 54-56 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetTriggerStartTime'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('GetTriggerStartTime')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto8 [_OnRefreshEntryEvent] ----------
  ; fn ?  line 58-64 np=1 va=0 ms=3 code=10 consts=3 upvals=0 protos=0
  ;   K[0]='_IsModelIdChanged'
  ;   K[1]='_InitModelData'
  ;   K[2]='_UpdateFinishTime'
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('_IsModelIdChanged')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 7
  0004  SELF      R2 = R0[K1('_InitModelData')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K2('_UpdateFinishTime')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto9 [OnBtnClicked] ----------
  ; fn ?  line 66-68 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='OnEntryClicked'
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('OnEntryClicked')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
