# AlbumActivity_View_LimitAlbumStartWindow_1183.luac
; fn @LimitAlbumStartWindow.lua  line 0-0 np=0 va=1 ms=3 code=31 consts=13 upvals=1 protos=7
;   K[0]='LimitAlbumStartWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='LimitAlbumBaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='UpdatePerSecond'
;   K[8]='OnBtnClicked'
;   K[9]='GetButtonRect'
;   K[10]='InitRewards'
;   K[11]='OnCloseBtnClick'
;   K[12]='TryOpenAlbumMainWindow'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('LimitAlbumBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('LimitAlbumStartWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('LimitAlbumStartWindow')]
0007  GETTABUP  R1 = _ENV[K0('LimitAlbumStartWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('LimitAlbumStartWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('LimitAlbumStartWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('UpdatePerSecond')] = R1
0015  GETTABUP  R0 = _ENV[K0('LimitAlbumStartWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('OnBtnClicked')] = R1
0018  GETTABUP  R0 = _ENV[K0('LimitAlbumStartWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('GetButtonRect')] = R1
0021  GETTABUP  R0 = _ENV[K0('LimitAlbumStartWindow')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K10('InitRewards')] = R1
0024  GETTABUP  R0 = _ENV[K0('LimitAlbumStartWindow')]
0025  CLOSURE   R1 = closure proto5
0026  SETTABLE  R0[K11('OnCloseBtnClick')] = R1
0027  GETTABUP  R0 = _ENV[K0('LimitAlbumStartWindow')]
0028  CLOSURE   R1 = closure proto6
0029  SETTABLE  R0[K12('TryOpenAlbumMainWindow')] = R1
0030  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-15 np=2 va=0 ms=6 code=21 consts=9 upvals=1 protos=0
  ;   K[0]='LimitAlbumBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='InitRewards'
  ;   K[3]='UpdatePerSecond'
  ;   K[4]='m_model'
  ;   K[5]='GetState'
  ;   K[6]='ActivityState'
  ;   K[7]='Started'
  ;   K[8]='SetWindowOpened'
  ;   upvals: _ENV
  ;   locals: self(0-21), activityType(0-21)
  0000  GETTABUP  R2 = _ENV[K0('LimitAlbumBaseWindow')]
  0001  GETTABLE  R2 = R2[K1('Init')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  LOADBOOL  R5 = false
  0005  CALL      R2 = call(R2, 0 args, 3 rets)
  0006  SELF      R3 = R0[K2('InitRewards')] (self)
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  SELF      R3 = R0[K3('UpdatePerSecond')] (self)
  0009  CALL      R2 = call(R2, 0 args, 1 rets)
  0010  GETTABLE  R2 = R0[K4('m_model')]
  0011  SELF      R3 = R2[K5('GetState')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  GETTABUP  R3 = _ENV[K6('ActivityState')]
  0014  GETTABLE  R3 = R3[K7('Started')]
  0015  EQ        if R0 eq R3   -> -130028
  0016  JMP       (jump)   -> 20
  0017  GETTABLE  R2 = R0[K4('m_model')]
  0018  SELF      R3 = R2[K8('SetWindowOpened')] (self)
  0019  CALL      R2 = call(R2, 0 args, 1 rets)
  0020  RETURN    return R0..R-1
; ---------- proto1 [UpdatePerSecond] ----------
  ; fn ?  line 17-21 np=1 va=0 ms=6 code=24 consts=13 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='m_countdownText'
  ;   K[6]='text'
  ;   K[7]='TimeUtil'
  ;   K[8]='ParseTimeDescription'
  ;   K[9]='GetNextStateTime'
  ;   K[10]='GM'
  ;   K[11]='GameModel'
  ;   K[12]='GetServerTime'
  ;   upvals: _ENV
  ;   locals: self(0-24)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 23
  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)   -> 23
  0010  GETTABLE  R1 = R0[K5('m_countdownText')]
  0011  GETTABUP  R2 = _ENV[K7('TimeUtil')]
  0012  GETTABLE  R2 = R2[K8('ParseTimeDescription')]
  0013  GETTABLE  R3 = R0[K0('m_model')]
  0014  SELF      R4 = R3[K9('GetNextStateTime')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  GETTABUP  R4 = _ENV[K10('GM')]
  0017  GETTABLE  R4 = R4[K11('GameModel')]
  0018  SELF      R5 = R4[K12('GetServerTime')] (self)
  0019  CALL      R4 = call(R4, 1 args, 1 rets)
  0020  SUB       R3 = R4 sub R3
  0021  CALL      R2 = call(R2, 1 args, 1 rets)
  0022  SETTABLE  R1[K6('text')] = R2
  0023  RETURN    return R0..R-1
; ---------- proto2 [OnBtnClicked] ----------
  ; fn ?  line 23-25 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='OnCloseBtnClick'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('OnCloseBtnClick')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto3 [GetButtonRect] ----------
  ; fn ?  line 27-29 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_button'
  ;   K[1]='transform'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_button')]
  0001  GETTABLE  R1 = R1[K1('transform')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto4 [InitRewards] ----------
  ; fn ?  line 31-34 np=1 va=0 ms=6 code=11 consts=7 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetAlbumConfig'
  ;   K[2]='reward'
  ;   K[3]='m_rewardContent'
  ;   K[4]='Init'
  ;   K[5]='ERewardScene'
  ;   K[6]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-11), rewards(4-11)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetAlbumConfig')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABLE  R1 = R1[K2('reward')]
  0004  GETTABLE  R2 = R0[K3('m_rewardContent')]
  0005  SELF      R3 = R2[K4('Init')] (self)
  0006  MOVE      R4 = R0
  0007  GETTABUP  R5 = _ENV[K5('ERewardScene')]
  0008  GETTABLE  R5 = R5[K6('Other')]
  0009  CALL      R2 = call(R2, 0 args, 3 rets)
  0010  RETURN    return R0..R-1
; ---------- proto5 [OnCloseBtnClick] ----------
  ; fn ?  line 36-39 np=1 va=0 ms=3 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='LimitAlbumBaseWindow'
  ;   K[1]='OnCloseBtnClick'
  ;   K[2]='TryOpenAlbumMainWindow'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('LimitAlbumBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseBtnClick')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('TryOpenAlbumMainWindow')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto6 [TryOpenAlbumMainWindow] ----------
  ; fn ?  line 41-48 np=1 va=0 ms=9 code=17 consts=9 upvals=1 protos=0
  ;   K[0]='AlbumActivityModel'
  ;   K[1]='GetActiveModel'
  ;   K[2]=nil
  ;   K[3]='GetActivityDefinition'
  ;   K[4]='GetType'
  ;   K[5]='GM'
  ;   K[6]='UIManager'
  ;   K[7]='OpenView'
  ;   K[8]='MainWindowPrefabName'
  ;   upvals: _ENV
  ;   locals: self(0-17), albumModel(3-17), albumModelDefinition(7-16), activityType(9-16)
  0000  GETTABUP  R1 = _ENV[K0('AlbumActivityModel')]
  0001  GETTABLE  R1 = R1[K1('GetActiveModel')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  EQ        if R1 eq K2(nil)   -> -130297
  0004  JMP       (jump)   -> 16
  0005  SELF      R3 = R1[K3('GetActivityDefinition')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  SELF      R4 = R1[K4('GetType')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  GETTABUP  R4 = _ENV[K5('GM')]
  0010  GETTABLE  R4 = R4[K6('UIManager')]
  0011  SELF      R5 = R4[K7('OpenView')] (self)
  0012  GETTABLE  R6 = R2[K8('MainWindowPrefabName')]
  0013  MOVE      R7 = R0
  0014  LOADBOOL  R8 = true
  0015  CALL      R4 = call(R4, 0 args, 4 rets)
  0016  RETURN    return R0..R-1
