# AlbumActivity_View_AlbumEntry_1106.luac
; fn @AlbumEntry.lua  line 0-0 np=0 va=1 ms=3 code=27 consts=10 upvals=1 protos=6
;   K[0]='AlbumEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnDestroy'
;   K[6]='UpdatePerSecond'
;   K[7]='UpdateRedPoint'
;   K[8]='OnClicked'
;   K[9]='UpdateJokerContent'
;   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('AlbumEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('AlbumEntry')]
0006  GETTABUP  R1 = _ENV[K0('AlbumEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AlbumEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('AlbumEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdatePerSecond')] = R1
0017  GETTABUP  R0 = _ENV[K0('AlbumEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('UpdateRedPoint')] = R1
0020  GETTABUP  R0 = _ENV[K0('AlbumEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnClicked')] = R1
0023  GETTABUP  R0 = _ENV[K0('AlbumEntry')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('UpdateJokerContent')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-28 np=2 va=0 ms=7 code=55 consts=19 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_activityType'
  ;   K[2]='GetType'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='GetActivityDefinition'
  ;   K[5]='UpdateJokerContent'
  ;   K[6]='UpdateRedPoint'
  ;   K[7]='AddHandlerAndRecordMap'
  ;   K[8]='GetEvent'
  ;   K[9]='AlbumBaseModel'
  ;   K[10]='EventKey'
  ;   K[11]='RedRefresh'
  ;   K[12]='obj'
  ;   K[13]='method'
  ;   K[14]='m_limitAlbumModel'
  ;   K[15]='LimitAlbumModel'
  ;   K[16]='GetActiveModel'
  ;   K[17]='AlbumActivityModel'
  ;   K[18]='JokerCountRefresh'
  ;   upvals: _ENV
  ;   locals: self(0-55), model(0-55)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SELF      R3 = R1[K2('GetType')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  SETTABLE  R0[K1('m_activityType')] = R2
  0004  SELF      R3 = R1[K4('GetActivityDefinition')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  SETTABLE  R0[K3('m_activityDefinition')] = R2
  0007  SELF      R3 = R0[K5('UpdateJokerContent')] (self)
  0008  CALL      R2 = call(R2, 0 args, 1 rets)
  0009  SELF      R3 = R0[K6('UpdateRedPoint')] (self)
  0010  CALL      R2 = call(R2, 0 args, 1 rets)
  0011  GETTABUP  R2 = _ENV[K7('AddHandlerAndRecordMap')]
  0012  GETTABLE  R3 = R0[K0('m_model')]
  0013  SELF      R4 = R3[K8('GetEvent')] (self)
  0014  CALL      R3 = call(R3, 1 args, 1 rets)
  0015  GETTABUP  R4 = _ENV[K9('AlbumBaseModel')]
  0016  GETTABLE  R4 = R4[K10('EventKey')]
  0017  GETTABLE  R4 = R4[K11('RedRefresh')]
  0018  NEWTABLE  R5 = {} (0 items)
  0019  SETTABLE  R5[K12('obj')] = R0
  0020  GETTABLE  R6 = R0[K6('UpdateRedPoint')]
  0021  SETTABLE  R5[K13('method')] = R6
  0022  CALL      R2 = call(R2, 0 args, 3 rets)
  0023  GETTABUP  R2 = _ENV[K15('LimitAlbumModel')]
  0024  GETTABLE  R2 = R2[K16('GetActiveModel')]
  0025  CALL      R2 = call(R2, 1 args, 0 rets)
  0026  SETTABLE  R0[K14('m_limitAlbumModel')] = R2
  0027  GETTABLE  R2 = R0[K14('m_limitAlbumModel')]
  0028  TEST      if not R2 then   -> -131042
  0029  JMP       (jump)   -> 42
  0030  GETTABUP  R2 = _ENV[K7('AddHandlerAndRecordMap')]
  0031  GETTABLE  R3 = R0[K14('m_limitAlbumModel')]
  0032  SELF      R4 = R3[K8('GetEvent')] (self)
  0033  CALL      R3 = call(R3, 1 args, 1 rets)
  0034  GETTABUP  R4 = _ENV[K9('AlbumBaseModel')]
  0035  GETTABLE  R4 = R4[K10('EventKey')]
  0036  GETTABLE  R4 = R4[K11('RedRefresh')]
  0037  NEWTABLE  R5 = {} (0 items)
  0038  SETTABLE  R5[K12('obj')] = R0
  0039  GETTABLE  R6 = R0[K6('UpdateRedPoint')]
  0040  SETTABLE  R5[K13('method')] = R6
  0041  CALL      R2 = call(R2, 0 args, 3 rets)
  0042  GETTABUP  R2 = _ENV[K7('AddHandlerAndRecordMap')]
  0043  GETTABLE  R3 = R0[K0('m_model')]
  0044  SELF      R4 = R3[K8('GetEvent')] (self)
  0045  CALL      R3 = call(R3, 1 args, 1 rets)
  0046  GETTABUP  R4 = _ENV[K17('AlbumActivityModel')]
  0047  GETTABLE  R4 = R4[K10('EventKey')]
  0048  GETTABLE  R4 = R4[K18('JokerCountRefresh')]
  0049  NEWTABLE  R5 = {} (0 items)
  0050  SETTABLE  R5[K12('obj')] = R0
  0051  GETTABLE  R6 = R0[K5('UpdateJokerContent')]
  0052  SETTABLE  R5[K13('method')] = R6
  0053  CALL      R2 = call(R2, 0 args, 3 rets)
  0054  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 30-38 np=1 va=0 ms=4 code=21 consts=7 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='RemoveAllHandlers'
  ;   K[3]='event'
  ;   K[4]='m_limitAlbumModel'
  ;   K[5]='HudGeneralButton'
  ;   K[6]='OnDestroy'
  ;   upvals: _ENV
  ;   locals: self(0-21)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 8
  0003  GETTABUP  R1 = _ENV[K2('RemoveAllHandlers')]
  0004  GETTABLE  R2 = R0[K0('m_model')]
  0005  GETTABLE  R2 = R2[K3('event')]
  0006  MOVE      R3 = R0
  0007  CALL      R1 = call(R1, 0 args, 2 rets)
  0008  GETTABLE  R1 = R0[K4('m_limitAlbumModel')]
  0009  EQ        if R1 eq K1(nil)   -> -130292
  0010  JMP       (jump)   -> 16
  0011  GETTABUP  R1 = _ENV[K2('RemoveAllHandlers')]
  0012  GETTABLE  R2 = R0[K4('m_limitAlbumModel')]
  0013  GETTABLE  R2 = R2[K3('event')]
  0014  MOVE      R3 = R0
  0015  CALL      R1 = call(R1, 0 args, 2 rets)
  0016  GETTABUP  R1 = _ENV[K5('HudGeneralButton')]
  0017  GETTABLE  R1 = R1[K6('OnDestroy')]
  0018  MOVE      R2 = R0
  0019  CALL      R1 = call(R1, 0 args, 1 rets)
  0020  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 40-66 np=1 va=0 ms=9 code=69 consts=21 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_jokerEndTime'
  ;   K[3]='math'
  ;   K[4]='max'
  ;   K[5]=0
  ;   K[6]='GM'
  ;   K[7]='GameModel'
  ;   K[8]='GetServerTime'
  ;   K[9]='m_countDownText'
  ;   K[10]='text'
  ;   K[11]='GameTextModel'
  ;   K[12]='GetText'
  ;   K[13]='joker_card_time_expired'
  ;   K[14]='TimeUtil'
  ;   K[15]='ParseTimeDescription'
  ;   K[16]=2
  ;   K[17]='GetNextStateTime'
  ;   K[18]='gameObject'
  ;   K[19]='activeSelf'
  ;   K[20]='SetActive'
  ;   upvals: _ENV
  ;   locals: self(0-69), jokerDelta(17-37), str(34-36), nextTime(40-69), delta(50-59)
  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[K2('m_jokerEndTime')]
  0005  EQ        if R1 eq K1(nil)   -> -130296
  0006  JMP       (jump)   -> 37
  0007  GETTABUP  R1 = _ENV[K3('math')]
  0008  GETTABLE  R1 = R1[K4('max')]
  0009  LOADK     R2 = K5 0
  0010  GETTABLE  R3 = R0[K2('m_jokerEndTime')]
  0011  GETTABUP  R4 = _ENV[K6('GM')]
  0012  GETTABLE  R4 = R4[K7('GameModel')]
  0013  SELF      R5 = R4[K8('GetServerTime')] (self)
  0014  CALL      R4 = call(R4, 1 args, 1 rets)
  0015  SUB       R3 = R4 sub R3
  0016  CALL      R1 = call(R1, 1 args, 2 rets)
  0017  EQ        if R0 eq K5(0)   -> -130280
  0018  JMP       (jump)   -> 27
  0019  GETTABLE  R2 = R0[K9('m_countDownText')]
  0020  GETTABUP  R3 = _ENV[K6('GM')]
  0021  GETTABLE  R3 = R3[K11('GameTextModel')]
  0022  SELF      R4 = R3[K12('GetText')] (self)
  0023  LOADK     R5 = K13 'joker_card_time_expired'
  0024  CALL      R3 = call(R3, 1 args, 2 rets)
  0025  SETTABLE  R2[K10('text')] = R3
  0026  JMP       (jump)   -> 36
  0027  GETTABUP  R2 = _ENV[K14('TimeUtil')]
  0028  GETTABLE  R2 = R2[K15('ParseTimeDescription')]
  0029  MOVE      R3 = R0
  0030  LOADK     R4 = K16 2
  0031  LOADBOOL  R5 = false
  0032  LOADBOOL  R6 = false
  0033  CALL      R2 = call(R2, 1 args, 4 rets)
  0034  GETTABLE  R3 = R0[K9('m_countDownText')]
  0035  SETTABLE  R3[K10('text')] = R2
  0036  RETURN    return R0..R-1
  0037  GETTABLE  R1 = R0[K0('m_model')]
  0038  SELF      R2 = R1[K17('GetNextStateTime')] (self)
  0039  CALL      R1 = call(R1, 1 args, 1 rets)
  0040  EQ        if R1 eq K1(nil)   -> -130261
  0041  JMP       (jump)   -> 60
  0042  GETTABLE  R2 = R0[K0('m_model')]
  0043  SELF      R3 = R2[K17('GetNextStateTime')] (self)
  0044  CALL      R2 = call(R2, 1 args, 1 rets)
  0045  GETTABUP  R3 = _ENV[K6('GM')]
  0046  GETTABLE  R3 = R3[K7('GameModel')]
  0047  SELF      R4 = R3[K8('GetServerTime')] (self)
  0048  CALL      R3 = call(R3, 1 args, 1 rets)
  0049  SUB       R2 = R3 sub R2
  0050  GETTABLE  R3 = R0[K9('m_countDownText')]
  0051  GETTABUP  R4 = _ENV[K14('TimeUtil')]
  0052  GETTABLE  R4 = R4[K15('ParseTimeDescription')]
  0053  MOVE      R5 = R0
  0054  LOADK     R6 = K16 2
  0055  LOADBOOL  R7 = false
  0056  LOADBOOL  R8 = false
  0057  CALL      R4 = call(R4, 1 args, 4 rets)
  0058  SETTABLE  R3[K10('text')] = R4
  0059  JMP       (jump)   -> 68
  0060  GETTABLE  R2 = R0[K18('gameObject')]
  0061  GETTABLE  R2 = R2[K19('activeSelf')]
  0062  TEST      if not R2 then   -> -131008
  0063  JMP       (jump)   -> 68
  0064  GETTABLE  R2 = R0[K18('gameObject')]
  0065  SELF      R3 = R2[K20('SetActive')] (self)
  0066  LOADBOOL  R4 = false
  0067  CALL      R2 = call(R2, 0 args, 2 rets)
  0068  RETURN    return R0..R-1
; ---------- proto3 [UpdateRedPoint] ----------
  ; fn ?  line 68-70 np=1 va=0 ms=5 code=19 consts=7 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_exclamationGo'
  ;   K[3]='m_model'
  ;   K[4]='IsShowRedPointIcon'
  ;   K[5]='m_limitAlbumModel'
  ;   K[6]=nil
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetActive')]
  0002  GETTABLE  R2 = R0[K2('m_exclamationGo')]
  0003  GETTABLE  R3 = R0[K3('m_model')]
  0004  SELF      R4 = R3[K4('IsShowRedPointIcon')] (self)
  0005  CALL      R3 = call(R3, 1 args, 1 rets)
  0006  TEST      if not R3 then   -> -131063
  0007  JMP       (jump)   -> 17
  0008  GETTABLE  R3 = R0[K5('m_limitAlbumModel')]
  0009  EQ        if R1 eq K6(nil)   -> -129263
  0010  JMP       (jump)   -> 15
  0011  GETTABLE  R3 = R0[K5('m_limitAlbumModel')]
  0012  SELF      R4 = R3[K4('IsShowRedPointIcon')] (self)
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  JMP       (jump)   -> 17
  0015  LOADBOOL  R3 = false
  0016  LOADBOOL  R3 = true
  0017  CALL      R1 = call(R1, 0 args, 2 rets)
  0018  RETURN    return R0..R-1
; ---------- proto4 [OnClicked] ----------
  ; fn ?  line 72-74 np=1 va=0 ms=6 code=9 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='MainWindowPrefabName'
  ;   K[5]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  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_activityDefinition')]
  0004  GETTABLE  R3 = R3[K4('MainWindowPrefabName')]
  0005  GETTABLE  R4 = R0[K5('m_activityType')]
  0006  LOADBOOL  R5 = true
  0007  CALL      R1 = call(R1, 0 args, 4 rets)
  0008  RETURN    return R0..R-1
; ---------- proto5 [UpdateJokerContent] ----------
  ; fn ?  line 76-105 np=1 va=0 ms=9 code=79 consts=29 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetJokerCount'
  ;   K[2]=0
  ;   K[3]='UIUtil'
  ;   K[4]='SetActive'
  ;   K[5]='m_normalRootGo'
  ;   K[6]='m_jokerRootGo'
  ;   K[7]='m_jokerNumText'
  ;   K[8]='text'
  ;   K[9]=''
  ;   K[10]=1
  ;   K[11]=0.5
  ;   K[12]='m_exclamationAnimator'
  ;   K[13]='enabled'
  ;   K[14]='SetLocalScale'
  ;   K[15]='m_exclamationGo'
  ;   K[16]='transform'
  ;   K[17]='SetAnchoredPosition'
  ;   K[18]='UpdateRedPoint'
  ;   K[19]='GetMinJokerCardTime'
  ;   K[20]='GetNextStateTime'
  ;   K[21]='m_jokerEndTime'
  ;   K[22]='Sec2Day'
  ;   K[23]='math'
  ;   K[24]='min'
  ;   K[25]='m_bOnce'
  ;   K[26]=true
  ;   K[27]=nil
  ;   K[28]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-79), jokerCount(3-79), bShowJoker(7-79), scale(30-79), jokerGetTime(61-74), nextStateTime(64-74)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetJokerCount')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  LT        if R1 lt R1   -> 1030
  0004  JMP       (jump)   -> 6
  0005  LOADBOOL  R2 = false
  0006  LOADBOOL  R2 = true
  0007  GETTABUP  R3 = _ENV[K3('UIUtil')]
  0008  GETTABLE  R3 = R3[K4('SetActive')]
  0009  GETTABLE  R4 = R0[K5('m_normalRootGo')]
  0010  NOT       R5 = not R0
  0011  CALL      R3 = call(R3, 0 args, 2 rets)
  0012  GETTABUP  R3 = _ENV[K3('UIUtil')]
  0013  GETTABLE  R3 = R3[K4('SetActive')]
  0014  GETTABLE  R4 = R0[K6('m_jokerRootGo')]
  0015  MOVE      R5 = R0
  0016  CALL      R3 = call(R3, 0 args, 2 rets)
  0017  GETTABLE  R3 = R0[K7('m_jokerNumText')]
  0018  TEST      if not R2 then   -> -131052
  0019  JMP       (jump)   -> 22
  0020  TESTSET   if R1 then R4   -> -130537
  0021  JMP       (jump)   -> 23
  0022  LOADK     R4 = K9 ''
  0023  SETTABLE  R3[K8('text')] = R4
  0024  TEST      if not R2 then   -> -131046
  0025  JMP       (jump)   -> 29
  0026  LOADK     R3 = K10 1
  0027  TEST      if not R3 then   -> -131042
  0028  JMP       (jump)   -> 30
  0029  LOADK     R3 = K11 0.5
  0030  GETTABLE  R4 = R0[K12('m_exclamationAnimator')]
  0031  NOT       R5 = not R0
  0032  SETTABLE  R4[K13('enabled')] = R5
  0033  GETTABUP  R4 = _ENV[K3('UIUtil')]
  0034  GETTABLE  R4 = R4[K14('SetLocalScale')]
  0035  GETTABLE  R5 = R0[K15('m_exclamationGo')]
  0036  GETTABLE  R5 = R5[K16('transform')]
  0037  MOVE      R6 = R0
  0038  MOVE      R7 = R0
  0039  CALL      R4 = call(R4, 0 args, 3 rets)
  0040  GETTABUP  R4 = _ENV[K3('UIUtil')]
  0041  GETTABLE  R4 = R4[K14('SetLocalScale')]
  0042  GETTABLE  R5 = R0[K12('m_exclamationAnimator')]
  0043  GETTABLE  R5 = R5[K16('transform')]
  0044  LOADK     R6 = K10 1
  0045  LOADK     R7 = K10 1
  0046  CALL      R4 = call(R4, 0 args, 3 rets)
  0047  GETTABUP  R4 = _ENV[K3('UIUtil')]
  0048  GETTABLE  R4 = R4[K17('SetAnchoredPosition')]
  0049  GETTABLE  R5 = R0[K12('m_exclamationAnimator')]
  0050  GETTABLE  R5 = R5[K16('transform')]
  0051  LOADK     R6 = K2 0
  0052  LOADK     R7 = K2 0
  0053  CALL      R4 = call(R4, 0 args, 3 rets)
  0054  SELF      R5 = R0[K18('UpdateRedPoint')] (self)
  0055  CALL      R4 = call(R4, 0 args, 1 rets)
  0056  LT        if R0 lt R1   -> 1083
  0057  JMP       (jump)   -> 75
  0058  GETTABLE  R4 = R0[K0('m_model')]
  0059  SELF      R5 = R4[K19('GetMinJokerCardTime')] (self)
  0060  CALL      R4 = call(R4, 1 args, 1 rets)
  0061  GETTABLE  R5 = R0[K0('m_model')]
  0062  SELF      R6 = R5[K20('GetNextStateTime')] (self)
  0063  CALL      R5 = call(R5, 1 args, 1 rets)
  0064  GETTABUP  R6 = _ENV[K22('Sec2Day')]
  0065  ADD       R6 = R6 add R4
  0066  SETTABLE  R0[K21('m_jokerEndTime')] = R6
  0067  GETTABUP  R6 = _ENV[K23('math')]
  0068  GETTABLE  R6 = R6[K24('min')]
  0069  GETTABLE  R7 = R0[K21('m_jokerEndTime')]
  0070  MOVE      R8 = R0
  0071  CALL      R6 = call(R6, 1 args, 2 rets)
  0072  SETTABLE  R0[K21('m_jokerEndTime')] = R6
  0073  SETTABLE  R0[K25('m_bOnce')] = K26(true)
  0074  JMP       (jump)   -> 76
  0075  SETTABLE  R0[K21('m_jokerEndTime')] = K27(nil)
  0076  SELF      R5 = R0[K28('UpdatePerSecond')] (self)
  0077  CALL      R4 = call(R4, 0 args, 1 rets)
  0078  RETURN    return R0..R-1
