# RecipeCollectActivity_View_RecipeCollectActivityEntry_1882.luac
; fn @RecipeCollectActivityEntry.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='RecipeCollectActivityEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnClickedBtn'
;   K[6]='UpdatePerSecond'
;   K[7]='PlayEntryHide'
;   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('RecipeCollectActivityEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityEntry')]
0006  GETTABUP  R1 = _ENV[K0('RecipeCollectActivityEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnClickedBtn')] = R1
0014  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdatePerSecond')] = R1
0017  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('PlayEntryHide')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-19 np=3 va=0 ms=9 code=32 consts=14 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_eUILoaderType'
  ;   K[3]='GetLoaderType'
  ;   K[4]='GetProgressScore'
  ;   K[5]='m_totalScore'
  ;   K[6]='GetTotalScore'
  ;   K[7]='m_sliderText'
  ;   K[8]='text'
  ;   K[9]='tostring'
  ;   K[10]='/'
  ;   K[11]='m_slider'
  ;   K[12]='value'
  ;   K[13]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-32), activityModel(0-32), entryLoader(0-32), curScore(11-32)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R3 = R0[K0('m_model')]
  0002  EQ        if R0 eq K1(nil)   -> -129275
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  SELF      R4 = R2[K3('GetLoaderType')] (self)
  0006  CALL      R3 = call(R3, 1 args, 1 rets)
  0007  SETTABLE  R0[K2('m_eUILoaderType')] = R3
  0008  GETTABLE  R3 = R0[K0('m_model')]
  0009  SELF      R4 = R3[K4('GetProgressScore')] (self)
  0010  CALL      R3 = call(R3, 1 args, 1 rets)
  0011  GETTABLE  R4 = R0[K0('m_model')]
  0012  SELF      R5 = R4[K6('GetTotalScore')] (self)
  0013  CALL      R4 = call(R4, 1 args, 1 rets)
  0014  SETTABLE  R0[K5('m_totalScore')] = R4
  0015  GETTABLE  R4 = R0[K7('m_sliderText')]
  0016  GETTABUP  R5 = _ENV[K9('tostring')]
  0017  MOVE      R6 = R0
  0018  CALL      R5 = call(R5, 1 args, 1 rets)
  0019  LOADK     R6 = K10 '/'
  0020  GETTABUP  R7 = _ENV[K9('tostring')]
  0021  GETTABLE  R8 = R0[K5('m_totalScore')]
  0022  CALL      R7 = call(R7, 1 args, 1 rets)
  0023  CONCAT    R5 = concat(R5..R5)
  0024  SETTABLE  R4[K8('text')] = R5
  0025  GETTABLE  R4 = R0[K11('m_slider')]
  0026  GETTABLE  R5 = R0[K5('m_totalScore')]
  0027  DIV       R5 = R5 div R3
  0028  SETTABLE  R4[K12('value')] = R5
  0029  SELF      R5 = R0[K13('UpdatePerSecond')] (self)
  0030  CALL      R4 = call(R4, 0 args, 1 rets)
  0031  RETURN    return R0..R-1
; ---------- proto1 [OnClickedBtn] ----------
  ; fn ?  line 21-23 np=1 va=0 ms=5 code=6 consts=3 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='OpenMainWindow'
  ;   K[2]='m_eUILoaderType'
  ;   locals: self(0-6)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('OpenMainWindow')] (self)
  0002  LOADBOOL  R3 = false
  0003  GETTABLE  R4 = R0[K2('m_eUILoaderType')]
  0004  CALL      R1 = call(R1, 0 args, 3 rets)
  0005  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 25-39 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
; ---------- proto3 [PlayEntryHide] ----------
  ; fn ?  line 41-43 np=1 va=0 ms=4 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_animator'
  ;   K[1]='SetTrigger'
  ;   K[2]='Hide'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_animator')]
  0001  SELF      R2 = R1[K1('SetTrigger')] (self)
  0002  LOADK     R3 = K2 'Hide'
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
