# DigActivity_View_DigActivityEndWindow_953.luac
; fn @DigActivityEndWindow.lua  line 0-0 np=0 va=1 ms=3 code=56 consts=20 upvals=1 protos=10
;   K[0]='DigActivityEndWindow'
;   K[1]='setmetatable'
;   K[2]='DigActivityMainWindow'
;   K[3]='__index'
;   K[4]='BeforeOpenCheck'
;   K[5]='Init'
;   K[6]='UpdatePerSecond'
;   K[7]='OnScrollValueChanged'
;   K[8]='HideRewardBubble'
;   K[9]='OnCloseBtnClick'
;   K[10]='DigActivityTwoButtonWindow'
;   K[11]='DigActivityBaseWindow'
;   K[12]='Init'
;   K[13]='OnRedClick'
;   K[14]='OnGreenClick'
;   K[15]='DigActivitySuccessWindow'
;   K[16]='canCloseByAndroidBack'
;   K[17]=false
;   K[18]='DigActivityBaseWindow'
;   K[19]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('DigActivityMainWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DigActivityEndWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('DigActivityEndWindow')]
0006  GETTABUP  R1 = _ENV[K0('DigActivityEndWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DigActivityEndWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('BeforeOpenCheck')] = R1
0011  GETTABUP  R0 = _ENV[K0('DigActivityEndWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('DigActivityEndWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdatePerSecond')] = R1
0017  GETTABUP  R0 = _ENV[K0('DigActivityEndWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnScrollValueChanged')] = R1
0020  GETTABUP  R0 = _ENV[K0('DigActivityEndWindow')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('HideRewardBubble')] = R1
0023  GETTABUP  R0 = _ENV[K0('DigActivityEndWindow')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('OnCloseBtnClick')] = R1
0026  GETTABUP  R0 = _ENV[K1('setmetatable')]
0027  NEWTABLE  R1 = {} (0 items)
0028  GETTABUP  R2 = _ENV[K11('DigActivityBaseWindow')]
0029  CALL      R0 = call(R0, 1 args, 2 rets)
0030  SETTABUP  _ENV[K10('DigActivityTwoButtonWindow')] = R0
0031  GETTABUP  R0 = _ENV[K10('DigActivityTwoButtonWindow')]
0032  GETTABUP  R1 = _ENV[K10('DigActivityTwoButtonWindow')]
0033  SETTABLE  R0[K3('__index')] = R1
0034  GETTABUP  R0 = _ENV[K10('DigActivityTwoButtonWindow')]
0035  CLOSURE   R1 = closure proto6
0036  SETTABLE  R0[K12('Init')] = R1
0037  GETTABUP  R0 = _ENV[K10('DigActivityTwoButtonWindow')]
0038  CLOSURE   R1 = closure proto7
0039  SETTABLE  R0[K13('OnRedClick')] = R1
0040  GETTABUP  R0 = _ENV[K10('DigActivityTwoButtonWindow')]
0041  CLOSURE   R1 = closure proto8
0042  SETTABLE  R0[K14('OnGreenClick')] = R1
0043  GETTABUP  R0 = _ENV[K1('setmetatable')]
0044  NEWTABLE  R1 = {} (0 items)
0045  SETTABLE  R1[K16('canCloseByAndroidBack')] = K17(false)
0046  GETTABUP  R2 = _ENV[K18('DigActivityBaseWindow')]
0047  CALL      R0 = call(R0, 1 args, 2 rets)
0048  SETTABUP  _ENV[K15('DigActivitySuccessWindow')] = R0
0049  GETTABUP  R0 = _ENV[K15('DigActivitySuccessWindow')]
0050  GETTABUP  R1 = _ENV[K15('DigActivitySuccessWindow')]
0051  SETTABLE  R0[K3('__index')] = R1
0052  GETTABUP  R0 = _ENV[K15('DigActivitySuccessWindow')]
0053  CLOSURE   R1 = closure proto9
0054  SETTABLE  R0[K19('Init')] = R1
0055  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 5-7 np=1 va=0 ms=3 code=6 consts=2 upvals=1 protos=0
  ;   K[0]='DigActivityBaseWindow'
  ;   K[1]='BeforeOpenCheck'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('DigActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('BeforeOpenCheck')]
  0002  MOVE      R2 = R0
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 9-20 np=1 va=1 ms=6 code=34 consts=19 upvals=1 protos=0
  ;   K[0]='DigActivityMainWindow'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='Close'
  ;   K[5]='UIUtil'
  ;   K[6]='SetActive'
  ;   K[7]='m_countdownGo'
  ;   K[8]='GetScore'
  ;   K[9]=0
  ;   K[10]='treasure_dig_last_chance_desc'
  ;   K[11]='treasure_dig_end'
  ;   K[12]='m_tipDescText'
  ;   K[13]='text'
  ;   K[14]='GM'
  ;   K[15]='GameTextModel'
  ;   K[16]='GetText'
  ;   K[17]='m_scrollCooldown'
  ;   K[18]=1
  ;   upvals: _ENV
  ;   locals: self(0-34), textKey(25-34)
  0000  GETTABUP  R1 = _ENV[K0('DigActivityMainWindow')]
  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  GETTABLE  R1 = R0[K2('m_model')]
  0006  EQ        if R0 eq K3(nil)   -> -130293
  0007  JMP       (jump)   -> 11
  0008  SELF      R2 = R0[K4('Close')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
  0011  GETTABUP  R1 = _ENV[K5('UIUtil')]
  0012  GETTABLE  R1 = R1[K6('SetActive')]
  0013  GETTABLE  R2 = R0[K7('m_countdownGo')]
  0014  LOADBOOL  R3 = false
  0015  CALL      R1 = call(R1, 0 args, 2 rets)
  0016  GETTABLE  R1 = R0[K2('m_model')]
  0017  SELF      R2 = R1[K8('GetScore')] (self)
  0018  CALL      R1 = call(R1, 1 args, 1 rets)
  0019  LT        if R0 lt R1   -> 4630
  0020  JMP       (jump)   -> 24
  0021  LOADK     R1 = K10 'treasure_dig_last_chance_desc'
  0022  TEST      if not R1 then   -> -131047
  0023  JMP       (jump)   -> 25
  0024  LOADK     R1 = K11 'treasure_dig_end'
  0025  GETTABLE  R2 = R0[K12('m_tipDescText')]
  0026  GETTABUP  R3 = _ENV[K14('GM')]
  0027  GETTABLE  R3 = R3[K15('GameTextModel')]
  0028  SELF      R4 = R3[K16('GetText')] (self)
  0029  MOVE      R5 = R0
  0030  CALL      R3 = call(R3, 1 args, 2 rets)
  0031  SETTABLE  R2[K13('text')] = R3
  0032  SETTABLE  R0[K17('m_scrollCooldown')] = K18(1)
  0033  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 22-26 np=1 va=0 ms=2 code=10 consts=4 upvals=0 protos=0
  ;   K[0]='m_scrollCooldown'
  ;   K[1]=nil
  ;   K[2]=0
  ;   K[3]=1
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_scrollCooldown')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 9
  0003  GETTABLE  R1 = R0[K0('m_scrollCooldown')]
  0004  LT        if R0 lt R1   -> 1031
  0005  JMP       (jump)   -> 9
  0006  GETTABLE  R1 = R0[K0('m_scrollCooldown')]
  0007  SUB       R1 = K3(1) sub R1
  0008  SETTABLE  R0[K0('m_scrollCooldown')] = R1
  0009  RETURN    return R0..R-1
; ---------- proto3 [OnScrollValueChanged] ----------
  ; fn ?  line 28-33 np=1 va=0 ms=3 code=9 consts=4 upvals=0 protos=0
  ;   K[0]='m_scrollCooldown'
  ;   K[1]=nil
  ;   K[2]=0
  ;   K[3]='TryHideBubble'
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_scrollCooldown')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 8
  0003  GETTABLE  R1 = R0[K0('m_scrollCooldown')]
  0004  LE        if R0 le K2(0)   -> -130296
  0005  JMP       (jump)   -> 8
  0006  SELF      R2 = R0[K3('TryHideBubble')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto4 [HideRewardBubble] ----------
  ; fn ?  line 35-43 np=1 va=0 ms=6 code=18 consts=11 upvals=1 protos=0
  ;   K[0]='DigActivityMainWindow'
  ;   K[1]='HideRewardBubble'
  ;   K[2]='m_bHideTip'
  ;   K[3]=true
  ;   K[4]='m_tipBubbleRect'
  ;   K[5]='DOScale'
  ;   K[6]=0
  ;   K[7]=0.3
  ;   K[8]='SetEase'
  ;   K[9]='Ease'
  ;   K[10]='OutCubic'
  ;   upvals: _ENV
  ;   locals: self(0-18), rect(9-17)
  0000  GETTABUP  R1 = _ENV[K0('DigActivityMainWindow')]
  0001  GETTABLE  R1 = R1[K1('HideRewardBubble')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_bHideTip')]
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 17
  0007  SETTABLE  R0[K2('m_bHideTip')] = K3(true)
  0008  GETTABLE  R1 = R0[K4('m_tipBubbleRect')]
  0009  SELF      R3 = R1[K5('DOScale')] (self)
  0010  LOADK     R4 = K6 0
  0011  LOADK     R5 = K7 0.3
  0012  CALL      R2 = call(R2, 1 args, 3 rets)
  0013  SELF      R3 = R2[K8('SetEase')] (self)
  0014  GETTABUP  R4 = _ENV[K9('Ease')]
  0015  GETTABLE  R4 = R4[K10('OutCubic')]
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  RETURN    return R0..R-1
; ---------- proto5 [OnCloseBtnClick] ----------
  ; fn ?  line 45-59 np=1 va=0 ms=11 code=44 consts=19 upvals=1 protos=1
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetScore'
  ;   K[3]=0
  ;   K[4]='HasFinishedAllRound'
  ;   K[5]='GetState'
  ;   K[6]='ActivityState'
  ;   K[7]='Released'
  ;   K[8]='m_activityDefinition'
  ;   K[9]='TokenImageName'
  ;   K[10]='GM'
  ;   K[11]='GameTextModel'
  ;   K[12]='GetText'
  ;   K[13]='treasure_dig_endwindow_desc'
  ;   K[14]='UIManager'
  ;   K[15]='OpenView'
  ;   K[16]='TwoButtonWindowPrefabName'
  ;   K[17]='m_activityType'
  ;   K[18]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-44), confirmButtonCallback(21-40), tokenImgKey(23-40), descStr(30-40)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 41
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('GetScore')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  LT        if R0 lt R1   -> 1545
  0007  JMP       (jump)   -> 41
  0008  GETTABLE  R1 = R0[K0('m_model')]
  0009  SELF      R2 = R1[K4('HasFinishedAllRound')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  TEST      if not R1 then   -> -131058
  0012  JMP       (jump)   -> 41
  0013  GETTABLE  R1 = R0[K0('m_model')]
  0014  SELF      R2 = R1[K5('GetState')] (self)
  0015  CALL      R1 = call(R1, 1 args, 1 rets)
  0016  GETTABUP  R2 = _ENV[K6('ActivityState')]
  0017  GETTABLE  R2 = R2[K7('Released')]
  0018  EQ        if R1 eq R2   -> -130538
  0019  JMP       (jump)   -> 41
  0020  CLOSURE   R1 = closure proto0
  0021  GETTABLE  R2 = R0[K8('m_activityDefinition')]
  0022  GETTABLE  R2 = R2[K9('TokenImageName')]
  0023  GETTABUP  R3 = _ENV[K10('GM')]
  0024  GETTABLE  R3 = R3[K11('GameTextModel')]
  0025  SELF      R4 = R3[K12('GetText')] (self)
  0026  LOADK     R5 = K13 'treasure_dig_endwindow_desc'
  0027  MOVE      R6 = R0
  0028  MOVE      R7 = R0
  0029  CALL      R3 = call(R3, 1 args, 4 rets)
  0030  GETTABUP  R4 = _ENV[K10('GM')]
  0031  GETTABLE  R4 = R4[K14('UIManager')]
  0032  SELF      R5 = R4[K15('OpenView')] (self)
  0033  GETTABLE  R6 = R0[K8('m_activityDefinition')]
  0034  GETTABLE  R6 = R6[K16('TwoButtonWindowPrefabName')]
  0035  GETTABLE  R7 = R0[K17('m_activityType')]
  0036  MOVE      R8 = R0
  0037  MOVE      R9 = R0
  0038  LOADNIL   R10..R10 = nil
  0039  CALL      R4 = call(R4, 0 args, 6 rets)
  0040  JMP       (jump)   -> 43
  0041  SELF      R2 = R0[K18('Close')] (self)
  0042  CALL      R1 = call(R1, 0 args, 1 rets)
  0043  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 48-51 np=1 va=0 ms=3 code=6 consts=1 upvals=1 protos=0
    ;   K[0]='Close'
    ;   upvals: self
    ;   locals: window(0-6)
    0000  GETUPVAL  R1 = self
    0001  SELF      R2 = R1[K0('Close')] (self)
    0002  CALL      R1 = call(R1, 0 args, 1 rets)
    0003  SELF      R2 = R0[K0('Close')] (self)
    0004  CALL      R1 = call(R1, 0 args, 1 rets)
    0005  RETURN    return R0..R-1
; ---------- proto6 [Init] ----------
  ; fn ?  line 66-72 np=5 va=0 ms=10 code=22 consts=12 upvals=1 protos=0
  ;   K[0]='DigActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_redButtonCallback'
  ;   K[3]='m_greenButtonCallback'
  ;   K[4]='m_descText'
  ;   K[5]='text'
  ;   K[6]=''
  ;   K[7]='m_tokenNumText'
  ;   K[8]='X'
  ;   K[9]='tostring'
  ;   K[10]='m_model'
  ;   K[11]='GetScore'
  ;   upvals: _ENV
  ;   locals: self(0-22), activityType(0-22), descStr(0-22), redButtonCallback(0-22), greenButtonCallback(0-22)
  0000  GETTABUP  R5 = _ENV[K0('DigActivityBaseWindow')]
  0001  GETTABLE  R5 = R5[K1('Init')]
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  CALL      R5 = call(R5, 0 args, 2 rets)
  0005  SETTABLE  R0[K2('m_redButtonCallback')] = R3
  0006  SETTABLE  R0[K3('m_greenButtonCallback')] = R4
  0007  GETTABLE  R5 = R0[K4('m_descText')]
  0008  TESTSET   if R1 then R6   -> -130037
  0009  JMP       (jump)   -> 11
  0010  LOADK     R6 = K6 ''
  0011  SETTABLE  R5[K5('text')] = R6
  0012  GETTABLE  R5 = R0[K7('m_tokenNumText')]
  0013  LOADK     R6 = K8 'X'
  0014  GETTABUP  R7 = _ENV[K9('tostring')]
  0015  GETTABLE  R8 = R0[K10('m_model')]
  0016  SELF      R9 = R8[K11('GetScore')] (self)
  0017  CALL      R8 = call(R8, -1 args, 1 rets)
  0018  CALL      R7 = call(R7, 1 args, -1 rets)
  0019  CONCAT    R6 = concat(R6..R6)
  0020  SETTABLE  R5[K5('text')] = R6
  0021  RETURN    return R0..R-1
; ---------- proto7 [OnRedClick] ----------
  ; fn ?  line 74-81 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='m_redButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K1('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto8 [OnGreenClick] ----------
  ; fn ?  line 83-90 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='m_greenButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_greenButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_greenButtonCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K1('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto9 [Init] ----------
  ; fn ?  line 98-105 np=1 va=1 ms=7 code=27 consts=11 upvals=1 protos=0
  ;   K[0]='DigActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_spineAnim'
  ;   K[3]=nil
  ;   K[4]='Initialize'
  ;   K[5]='AnimationState'
  ;   K[6]='SetAnimation'
  ;   K[7]=0
  ;   K[8]='appear'
  ;   K[9]='AddAnimation'
  ;   K[10]='idle'
  ;   upvals: _ENV
  ;   locals: self(0-27)
  0000  GETTABUP  R1 = _ENV[K0('DigActivityBaseWindow')]
  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  GETTABLE  R1 = R0[K2('m_spineAnim')]
  0006  EQ        if R1 eq K3(nil)   -> -130293
  0007  JMP       (jump)   -> 26
  0008  GETTABLE  R1 = R0[K2('m_spineAnim')]
  0009  SELF      R2 = R1[K4('Initialize')] (self)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  GETTABLE  R1 = R0[K2('m_spineAnim')]
  0012  GETTABLE  R1 = R1[K5('AnimationState')]
  0013  SELF      R2 = R1[K6('SetAnimation')] (self)
  0014  LOADK     R3 = K7 0
  0015  LOADK     R4 = K8 'appear'
  0016  LOADBOOL  R5 = false
  0017  CALL      R1 = call(R1, 0 args, 4 rets)
  0018  GETTABLE  R1 = R0[K2('m_spineAnim')]
  0019  GETTABLE  R1 = R1[K5('AnimationState')]
  0020  SELF      R2 = R1[K9('AddAnimation')] (self)
  0021  LOADK     R3 = K7 0
  0022  LOADK     R4 = K10 'idle'
  0023  LOADBOOL  R5 = true
  0024  LOADK     R6 = K7 0
  0025  CALL      R1 = call(R1, 0 args, 5 rets)
  0026  RETURN    return R0..R-1
