# AlbumActivity_View_AlbumRemindUseJokerWindow_1139.luac
; fn @AlbumRemindUseJokerWindow.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=9 upvals=1 protos=5
;   K[0]='AlbumRemindUseJokerWindow'
;   K[1]='setmetatable'
;   K[2]='AlbumActivityBaseWindow'
;   K[3]='__index'
;   K[4]='BeforeOpenCheck'
;   K[5]='Init'
;   K[6]='UpdatePerSecond'
;   K[7]='OnCloseFinish'
;   K[8]='OnBtnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('AlbumActivityBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('AlbumRemindUseJokerWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('AlbumRemindUseJokerWindow')]
0006  GETTABUP  R1 = _ENV[K0('AlbumRemindUseJokerWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AlbumRemindUseJokerWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('BeforeOpenCheck')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumRemindUseJokerWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('AlbumRemindUseJokerWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdatePerSecond')] = R1
0017  GETTABUP  R0 = _ENV[K0('AlbumRemindUseJokerWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnCloseFinish')] = R1
0020  GETTABUP  R0 = _ENV[K0('AlbumRemindUseJokerWindow')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnBtnClicked')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 5-11 np=1 va=0 ms=3 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='AlbumActivityModel'
  ;   K[1]='GetActiveModel'
  ;   K[2]=nil
  ;   upvals: _ENV
  ;   locals: self(0-10), model(3-10)
  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)   -> 7
  0005  LOADBOOL  R2 = true
  0006  RETURN    return R2..R1
  0007  LOADBOOL  R2 = false
  0008  RETURN    return R2..R1
  0009  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 13-28 np=3 va=0 ms=10 code=36 consts=19 upvals=1 protos=0
  ;   K[0]='AlbumActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_parentWin'
  ;   K[3]='m_model'
  ;   K[4]='GetMinJokerCardTime'
  ;   K[5]='GetNextStateTime'
  ;   K[6]='m_jokerEndTime'
  ;   K[7]='Sec2Day'
  ;   K[8]='math'
  ;   K[9]='min'
  ;   K[10]='m_jokerCount'
  ;   K[11]='GetJokerCount'
  ;   K[12]='m_descText'
  ;   K[13]='text'
  ;   K[14]='GM'
  ;   K[15]='GameTextModel'
  ;   K[16]='GetText'
  ;   K[17]='joker_card_waiting_notice'
  ;   K[18]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-36), activityType(0-36), pWin(0-36), jokerGetTime(9-36), nextStateTime(12-36)
  0000  GETTABUP  R3 = _ENV[K0('AlbumActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 0 args, 2 rets)
  0005  SETTABLE  R0[K2('m_parentWin')] = R2
  0006  GETTABLE  R3 = R0[K3('m_model')]
  0007  SELF      R4 = R3[K4('GetMinJokerCardTime')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  GETTABLE  R4 = R0[K3('m_model')]
  0010  SELF      R5 = R4[K5('GetNextStateTime')] (self)
  0011  CALL      R4 = call(R4, 1 args, 1 rets)
  0012  GETTABUP  R5 = _ENV[K7('Sec2Day')]
  0013  ADD       R5 = R5 add R3
  0014  SETTABLE  R0[K6('m_jokerEndTime')] = R5
  0015  GETTABUP  R5 = _ENV[K8('math')]
  0016  GETTABLE  R5 = R5[K9('min')]
  0017  GETTABLE  R6 = R0[K6('m_jokerEndTime')]
  0018  MOVE      R7 = R0
  0019  CALL      R5 = call(R5, 1 args, 2 rets)
  0020  SETTABLE  R0[K6('m_jokerEndTime')] = R5
  0021  GETTABLE  R5 = R0[K3('m_model')]
  0022  SELF      R6 = R5[K11('GetJokerCount')] (self)
  0023  CALL      R5 = call(R5, 1 args, 1 rets)
  0024  SETTABLE  R0[K10('m_jokerCount')] = R5
  0025  GETTABLE  R5 = R0[K12('m_descText')]
  0026  GETTABUP  R6 = _ENV[K14('GM')]
  0027  GETTABLE  R6 = R6[K15('GameTextModel')]
  0028  SELF      R7 = R6[K16('GetText')] (self)
  0029  LOADK     R8 = K17 'joker_card_waiting_notice'
  0030  GETTABLE  R9 = R0[K10('m_jokerCount')]
  0031  CALL      R6 = call(R6, 1 args, 3 rets)
  0032  SETTABLE  R5[K13('text')] = R6
  0033  SELF      R6 = R0[K18('UpdatePerSecond')] (self)
  0034  CALL      R5 = call(R5, 0 args, 1 rets)
  0035  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 30-45 np=1 va=0 ms=8 code=56 consts=24 upvals=1 protos=0
  ;   K[0]='m_jokerEndTime'
  ;   K[1]='math'
  ;   K[2]='max'
  ;   K[3]=0
  ;   K[4]='GM'
  ;   K[5]='GameModel'
  ;   K[6]='GetServerTime'
  ;   K[7]='m_closeBtnGo'
  ;   K[8]='activeSelf'
  ;   K[9]='m_countdownText'
  ;   K[10]='text'
  ;   K[11]='GameTextModel'
  ;   K[12]='GetText'
  ;   K[13]='joker_card_time_expired'
  ;   K[14]='m_descText'
  ;   K[15]='joker_card_expired_notice'
  ;   K[16]='m_jokerCount'
  ;   K[17]='SetActive'
  ;   K[18]='canCloseByAndroidBack'
  ;   K[19]=false
  ;   K[20]='TimeUtil'
  ;   K[21]='ParseTimeDescription'
  ;   K[22]=2
  ;   K[23]='joker_card_timing'
  ;   upvals: _ENV
  ;   locals: self(0-56), delta(13-55), str(47-55)
  0000  GETTABLE  R1 = R0[K0('m_jokerEndTime')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 55
  0003  GETTABUP  R1 = _ENV[K1('math')]
  0004  GETTABLE  R1 = R1[K2('max')]
  0005  LOADK     R2 = K3 0
  0006  GETTABLE  R3 = R0[K0('m_jokerEndTime')]
  0007  GETTABUP  R4 = _ENV[K4('GM')]
  0008  GETTABLE  R4 = R4[K5('GameModel')]
  0009  SELF      R5 = R4[K6('GetServerTime')] (self)
  0010  CALL      R4 = call(R4, 1 args, 1 rets)
  0011  SUB       R3 = R4 sub R3
  0012  CALL      R1 = call(R1, 1 args, 2 rets)
  0013  EQ        if R0 eq K3(0)   -> -130286
  0014  JMP       (jump)   -> 40
  0015  GETTABLE  R2 = R0[K7('m_closeBtnGo')]
  0016  GETTABLE  R2 = R2[K8('activeSelf')]
  0017  TEST      if not R2 then   -> -131053
  0018  JMP       (jump)   -> 55
  0019  GETTABLE  R2 = R0[K9('m_countdownText')]
  0020  GETTABUP  R3 = _ENV[K4('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  GETTABLE  R2 = R0[K14('m_descText')]
  0027  GETTABUP  R3 = _ENV[K4('GM')]
  0028  GETTABLE  R3 = R3[K11('GameTextModel')]
  0029  SELF      R4 = R3[K12('GetText')] (self)
  0030  LOADK     R5 = K15 'joker_card_expired_notice'
  0031  GETTABLE  R6 = R0[K16('m_jokerCount')]
  0032  CALL      R3 = call(R3, 1 args, 3 rets)
  0033  SETTABLE  R2[K10('text')] = R3
  0034  GETTABLE  R2 = R0[K7('m_closeBtnGo')]
  0035  SELF      R3 = R2[K17('SetActive')] (self)
  0036  LOADBOOL  R4 = false
  0037  CALL      R2 = call(R2, 0 args, 2 rets)
  0038  SETTABLE  R0[K18('canCloseByAndroidBack')] = K19(false)
  0039  JMP       (jump)   -> 55
  0040  GETTABUP  R2 = _ENV[K20('TimeUtil')]
  0041  GETTABLE  R2 = R2[K21('ParseTimeDescription')]
  0042  MOVE      R3 = R0
  0043  LOADK     R4 = K22 2
  0044  LOADBOOL  R5 = false
  0045  LOADBOOL  R6 = false
  0046  CALL      R2 = call(R2, 1 args, 4 rets)
  0047  GETTABLE  R3 = R0[K9('m_countdownText')]
  0048  GETTABUP  R4 = _ENV[K4('GM')]
  0049  GETTABLE  R4 = R4[K11('GameTextModel')]
  0050  SELF      R5 = R4[K12('GetText')] (self)
  0051  LOADK     R6 = K23 'joker_card_timing'
  0052  MOVE      R7 = R0
  0053  CALL      R4 = call(R4, 1 args, 3 rets)
  0054  SETTABLE  R3[K10('text')] = R4
  0055  RETURN    return R0..R-1
; ---------- proto3 [OnCloseFinish] ----------
  ; fn ?  line 47-60 np=1 va=0 ms=8 code=37 consts=20 upvals=1 protos=1
  ;   K[0]='m_openPrefabName'
  ;   K[1]=nil
  ;   K[2]='AlbumActivityModel'
  ;   K[3]='UseNewJokerCard'
  ;   K[4]=false
  ;   K[5]='GM'
  ;   K[6]='UIManager'
  ;   K[7]='IsViewExisting'
  ;   K[8]='m_activityDefinition'
  ;   K[9]='MainWindowPrefabName'
  ;   K[10]='OpenView'
  ;   K[11]='m_activityType'
  ;   K[12]='GM'
  ;   K[13]='UIManager'
  ;   K[14]='OpenView'
  ;   K[15]='m_openPrefabName'
  ;   K[16]='m_activityType'
  ;   K[17]='m_jokerEndTime'
  ;   K[18]='BaseWindow'
  ;   K[19]='OnCloseFinish'
  ;   upvals: _ENV
  ;   locals: self(0-37)
  0000  GETTABLE  R1 = R0[K0('m_openPrefabName')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 32
  0003  GETTABUP  R1 = _ENV[K2('AlbumActivityModel')]
  0004  SETTABLE  R1[K3('UseNewJokerCard')] = K4(false)
  0005  GETTABUP  R1 = _ENV[K5('GM')]
  0006  GETTABLE  R1 = R1[K6('UIManager')]
  0007  SELF      R2 = R1[K7('IsViewExisting')] (self)
  0008  GETTABLE  R3 = R0[K8('m_activityDefinition')]
  0009  GETTABLE  R3 = R3[K9('MainWindowPrefabName')]
  0010  CALL      R1 = call(R1, 1 args, 2 rets)
  0011  TEST      if not R1 then   -> -131058
  0012  JMP       (jump)   -> 23
  0013  GETTABUP  R1 = _ENV[K5('GM')]
  0014  GETTABLE  R1 = R1[K6('UIManager')]
  0015  SELF      R2 = R1[K10('OpenView')] (self)
  0016  GETTABLE  R3 = R0[K8('m_activityDefinition')]
  0017  GETTABLE  R3 = R3[K9('MainWindowPrefabName')]
  0018  GETTABLE  R4 = R0[K11('m_activityType')]
  0019  LOADBOOL  R5 = false
  0020  CLOSURE   R6 = closure proto0
  0021  CALL      R1 = call(R1, 0 args, 5 rets)
  0022  JMP       (jump)   -> 32
  0023  GETTABUP  R1 = _ENV[K12('GM')]
  0024  GETTABLE  R1 = R1[K13('UIManager')]
  0025  SELF      R2 = R1[K14('OpenView')] (self)
  0026  GETTABLE  R3 = R0[K15('m_openPrefabName')]
  0027  GETTABLE  R4 = R0[K16('m_activityType')]
  0028  LOADBOOL  R5 = false
  0029  LOADNIL   R6..R6 = nil
  0030  GETTABLE  R7 = R0[K17('m_jokerEndTime')]
  0031  CALL      R1 = call(R1, 0 args, 6 rets)
  0032  GETTABUP  R1 = _ENV[K18('BaseWindow')]
  0033  GETTABLE  R1 = R1[K19('OnCloseFinish')]
  0034  MOVE      R2 = R0
  0035  CALL      R1 = call(R1, 0 args, 1 rets)
  0036  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 52-54 np=0 va=0 ms=7 code=10 consts=6 upvals=2 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='OpenView'
    ;   K[3]='m_openPrefabName'
    ;   K[4]='m_activityType'
    ;   K[5]='m_jokerEndTime'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('OpenView')] (self)
    0003  GETTABUP  R2 = self[K3('m_openPrefabName')]
    0004  GETTABUP  R3 = self[K4('m_activityType')]
    0005  LOADBOOL  R4 = false
    0006  LOADNIL   R5..R5 = nil
    0007  GETTABUP  R6 = self[K5('m_jokerEndTime')]
    0008  CALL      R0 = call(R0, 0 args, 6 rets)
    0009  RETURN    return R0..R-1
; ---------- proto4 [OnBtnClicked] ----------
  ; fn ?  line 62-65 np=1 va=0 ms=3 code=6 consts=4 upvals=1 protos=0
  ;   K[0]='m_openPrefabName'
  ;   K[1]='UIPrefabConfigName'
  ;   K[2]='AlbumJokerExchangeWindow'
  ;   K[3]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K1('UIPrefabConfigName')]
  0001  GETTABLE  R1 = R1[K2('AlbumJokerExchangeWindow')]
  0002  SETTABLE  R0[K0('m_openPrefabName')] = R1
  0003  SELF      R2 = R0[K3('Close')] (self)
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
