# AlbumActivity_View_AlbumBuffEntry_1108.luac
; fn @AlbumBuffEntry.lua  line 0-0 np=0 va=1 ms=3 code=35 consts=10 upvals=1 protos=6
;   K[0]='AlbumBuffEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='_OnStateChanged'
;   K[6]='UpdatePerSecond'
;   K[7]='OnBtnClicked'
;   K[8]='AlbumDoublePackBuffEntry'
;   K[9]='_OnStateChanged'
;   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('AlbumBuffEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('AlbumBuffEntry')]
0006  GETTABUP  R1 = _ENV[K0('AlbumBuffEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AlbumBuffEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumBuffEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_OnStateChanged')] = R1
0014  GETTABUP  R0 = _ENV[K0('AlbumBuffEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdatePerSecond')] = R1
0017  GETTABUP  R0 = _ENV[K0('AlbumBuffEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnBtnClicked')] = R1
0020  GETTABUP  R0 = _ENV[K1('setmetatable')]
0021  NEWTABLE  R1 = {} (0 items)
0022  GETTABUP  R2 = _ENV[K0('AlbumBuffEntry')]
0023  CALL      R0 = call(R0, 1 args, 2 rets)
0024  SETTABUP  _ENV[K8('AlbumDoublePackBuffEntry')] = R0
0025  GETTABUP  R0 = _ENV[K8('AlbumDoublePackBuffEntry')]
0026  GETTABUP  R1 = _ENV[K8('AlbumDoublePackBuffEntry')]
0027  SETTABLE  R0[K3('__index')] = R1
0028  GETTABUP  R0 = _ENV[K8('AlbumDoublePackBuffEntry')]
0029  CLOSURE   R1 = closure proto4
0030  SETTABLE  R0[K4('Init')] = R1
0031  GETTABUP  R0 = _ENV[K8('AlbumDoublePackBuffEntry')]
0032  CLOSURE   R1 = closure proto5
0033  SETTABLE  R0[K9('_OnStateChanged')] = R1
0034  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-16 np=3 va=0 ms=7 code=18 consts=11 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_buffType'
  ;   K[2]='m_activityType'
  ;   K[3]='GetType'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='GetActivityDefinition'
  ;   K[6]='UpdatePerSecond'
  ;   K[7]='EventDispatcher'
  ;   K[8]='AddListener'
  ;   K[9]='StateChangedEvent'
  ;   K[10]='_OnStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-18), model(0-18), buffType(0-18)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SETTABLE  R0[K1('m_buffType')] = R2
  0002  SELF      R4 = R1[K3('GetType')] (self)
  0003  CALL      R3 = call(R3, 1 args, 1 rets)
  0004  SETTABLE  R0[K2('m_activityType')] = R3
  0005  SELF      R4 = R1[K5('GetActivityDefinition')] (self)
  0006  CALL      R3 = call(R3, 1 args, 1 rets)
  0007  SETTABLE  R0[K4('m_activityDefinition')] = R3
  0008  SELF      R4 = R0[K6('UpdatePerSecond')] (self)
  0009  CALL      R3 = call(R3, 0 args, 1 rets)
  0010  GETTABUP  R3 = _ENV[K7('EventDispatcher')]
  0011  GETTABLE  R3 = R3[K8('AddListener')]
  0012  GETTABLE  R4 = R0[K4('m_activityDefinition')]
  0013  GETTABLE  R4 = R4[K9('StateChangedEvent')]
  0014  MOVE      R5 = R0
  0015  GETTABLE  R6 = R0[K10('_OnStateChanged')]
  0016  CALL      R3 = call(R3, 0 args, 3 rets)
  0017  RETURN    return R0..R-1
; ---------- proto1 [_OnStateChanged] ----------
  ; fn ?  line 18-19 np=1 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 21-36 np=1 va=0 ms=10 code=39 consts=17 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetBuffEndTime'
  ;   K[3]='m_buffType'
  ;   K[4]='GM'
  ;   K[5]='GameModel'
  ;   K[6]='GetServerTime'
  ;   K[7]='m_countdownText'
  ;   K[8]='text'
  ;   K[9]='TimeUtil'
  ;   K[10]='ParseTimeDescription'
  ;   K[11]=1
  ;   K[12]='m_progressImg'
  ;   K[13]='fillAmount'
  ;   K[14]='gameObject'
  ;   K[15]='activeSelf'
  ;   K[16]='SetActive'
  ;   upvals: _ENV
  ;   locals: self(0-39), nextTime(8-39), duration(8-39), delta(17-29)
  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('GetBuffEndTime')] (self)
  0006  GETTABLE  R3 = R0[K3('m_buffType')]
  0007  CALL      R1 = call(R1, 2 args, 2 rets)
  0008  EQ        if R1 eq K1(nil)   -> -130293
  0009  JMP       (jump)   -> 30
  0010  EQ        if R1 eq K1(nil)   -> -129779
  0011  JMP       (jump)   -> 30
  0012  GETTABUP  R3 = _ENV[K4('GM')]
  0013  GETTABLE  R3 = R3[K5('GameModel')]
  0014  SELF      R4 = R3[K6('GetServerTime')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  SUB       R3 = R3 sub R1
  0017  GETTABLE  R4 = R0[K7('m_countdownText')]
  0018  GETTABUP  R5 = _ENV[K9('TimeUtil')]
  0019  GETTABLE  R5 = R5[K10('ParseTimeDescription')]
  0020  MOVE      R6 = R0
  0021  LOADK     R7 = K11 1
  0022  LOADBOOL  R8 = false
  0023  LOADBOOL  R9 = false
  0024  CALL      R5 = call(R5, 1 args, 4 rets)
  0025  SETTABLE  R4[K8('text')] = R5
  0026  GETTABLE  R4 = R0[K12('m_progressImg')]
  0027  DIV       R5 = R2 div R3
  0028  SETTABLE  R4[K13('fillAmount')] = R5
  0029  JMP       (jump)   -> 38
  0030  GETTABLE  R3 = R0[K14('gameObject')]
  0031  GETTABLE  R3 = R3[K15('activeSelf')]
  0032  TEST      if not R3 then   -> -131038
  0033  JMP       (jump)   -> 38
  0034  GETTABLE  R3 = R0[K14('gameObject')]
  0035  SELF      R4 = R3[K16('SetActive')] (self)
  0036  LOADBOOL  R5 = false
  0037  CALL      R3 = call(R3, 0 args, 2 rets)
  0038  RETURN    return R0..R-1
; ---------- proto3 [OnBtnClicked] ----------
  ; fn ?  line 38-40 np=1 va=0 ms=6 code=11 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='m_model'
  ;   K[4]='GetAlbumBuffWindow'
  ;   K[5]='m_buffType'
  ;   K[6]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  GETTABLE  R3 = R0[K3('m_model')]
  0004  SELF      R4 = R3[K4('GetAlbumBuffWindow')] (self)
  0005  GETTABLE  R5 = R0[K5('m_buffType')]
  0006  CALL      R3 = call(R3, 1 args, 2 rets)
  0007  GETTABLE  R4 = R0[K6('m_activityType')]
  0008  LOADBOOL  R5 = true
  0009  CALL      R1 = call(R1, 0 args, 4 rets)
  0010  RETURN    return R0..R-1
; ---------- proto4 [Init] ----------
  ; fn ?  line 46-49 np=1 va=1 ms=4 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='AlbumBuffEntry'
  ;   K[1]='Init'
  ;   K[2]='_OnStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('AlbumBuffEntry')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  SELF      R2 = R0[K2('_OnStateChanged')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto5 [_OnStateChanged] ----------
  ; fn ?  line 51-60 np=1 va=0 ms=4 code=23 consts=9 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_icon'
  ;   K[3]='IsRMServerOpen'
  ;   K[4]='sprite'
  ;   K[5]='m_rmSprite'
  ;   K[6]='m_defaultSprite'
  ;   K[7]='SpriteUtil'
  ;   K[8]='SetNativeSize'
  ;   upvals: _ENV
  ;   locals: self(0-23), bRM(10-23)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K2('m_icon')]
  0004  EQ        if R0 eq K1(nil)   -> -130297
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R1 = R0[K0('m_model')]
  0008  SELF      R2 = R1[K3('IsRMServerOpen')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  GETTABLE  R2 = R0[K2('m_icon')]
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 16
  0013  GETTABLE  R3 = R0[K5('m_rmSprite')]
  0014  TEST      if not R3 then   -> -131055
  0015  JMP       (jump)   -> 17
  0016  GETTABLE  R3 = R0[K6('m_defaultSprite')]
  0017  SETTABLE  R2[K4('sprite')] = R3
  0018  GETTABUP  R2 = _ENV[K7('SpriteUtil')]
  0019  GETTABLE  R2 = R2[K8('SetNativeSize')]
  0020  GETTABLE  R3 = R0[K2('m_icon')]
  0021  CALL      R2 = call(R2, 0 args, 1 rets)
  0022  RETURN    return R0..R-1
