# PassActivity_Common_View_Window_PassActivityTokenWindow_837.luac
; fn @PassActivityTokenWindow.lua  line 0-0 np=0 va=1 ms=3 code=27 consts=12 upvals=1 protos=5
;   K[0]='PassActivityTokenWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='PassActivityBaseWindow'
;   K[6]='__index'
;   K[7]='Init'
;   K[8]='OnDestroy'
;   K[9]='TryPlayUpgradeAnim'
;   K[10]='OnCloseBtnClick'
;   K[11]='Continue'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  GETTABUP  R2 = _ENV[K5('PassActivityBaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('PassActivityTokenWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('PassActivityTokenWindow')]
0009  GETTABUP  R1 = _ENV[K0('PassActivityTokenWindow')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('PassActivityTokenWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('PassActivityTokenWindow')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K8('OnDestroy')] = R1
0017  GETTABUP  R0 = _ENV[K0('PassActivityTokenWindow')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K9('TryPlayUpgradeAnim')] = R1
0020  GETTABUP  R0 = _ENV[K0('PassActivityTokenWindow')]
0021  CLOSURE   R1 = closure proto3
0022  SETTABLE  R0[K10('OnCloseBtnClick')] = R1
0023  GETTABUP  R0 = _ENV[K0('PassActivityTokenWindow')]
0024  CLOSURE   R1 = closure proto4
0025  SETTABLE  R0[K11('Continue')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 9-16 np=4 va=0 ms=8 code=16 consts=8 upvals=1 protos=0
  ;   K[0]='m_tokenRatio'
  ;   K[1]=1
  ;   K[2]='m_tokenCount'
  ;   K[3]='PassActivityBaseWindow'
  ;   K[4]='Init'
  ;   K[5]='m_numberText'
  ;   K[6]='text'
  ;   K[7]='TryPlayUpgradeAnim'
  ;   upvals: _ENV
  ;   locals: self(0-16), activityType(0-16), tokenCount(0-16), tokenRatio(0-16)
  0000  TESTSET   if R1 then R4   -> -129533
  0001  JMP       (jump)   -> 3
  0002  LOADK     R4 = K1 1
  0003  SETTABLE  R0[K0('m_tokenRatio')] = R4
  0004  SETTABLE  R0[K2('m_tokenCount')] = R2
  0005  GETTABUP  R4 = _ENV[K3('PassActivityBaseWindow')]
  0006  GETTABLE  R4 = R4[K4('Init')]
  0007  MOVE      R5 = R0
  0008  MOVE      R6 = R0
  0009  LOADBOOL  R7 = false
  0010  CALL      R4 = call(R4, 0 args, 3 rets)
  0011  GETTABLE  R4 = R0[K5('m_numberText')]
  0012  SETTABLE  R4[K6('text')] = R2
  0013  SELF      R5 = R0[K7('TryPlayUpgradeAnim')] (self)
  0014  CALL      R4 = call(R4, 0 args, 1 rets)
  0015  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 18-24 np=1 va=0 ms=3 code=12 consts=5 upvals=1 protos=0
  ;   K[0]='PassActivityBaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_upgradeSeq'
  ;   K[3]=nil
  ;   K[4]='Kill'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('PassActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_upgradeSeq')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 11
  0007  GETTABLE  R1 = R0[K2('m_upgradeSeq')]
  0008  SELF      R2 = R1[K4('Kill')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  SETTABLE  R0[K2('m_upgradeSeq')] = K3(nil)
  0011  RETURN    return R0..R-1
; ---------- proto2 [TryPlayUpgradeAnim] ----------
  ; fn ?  line 26-65 np=1 va=0 ms=11 code=117 consts=42 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetLocalScale'
  ;   K[2]='m_numberText2'
  ;   K[3]='transform'
  ;   K[4]=0
  ;   K[5]='m_ratioCanvasGroup'
  ;   K[6]='alpha'
  ;   K[7]='SetActive'
  ;   K[8]='m_flagSpine'
  ;   K[9]='gameObject'
  ;   K[10]='Initialize'
  ;   K[11]='m_tokenRatio'
  ;   K[12]=1
  ;   K[13]='text'
  ;   K[14]='math'
  ;   K[15]='ceil'
  ;   K[16]='m_tokenCount'
  ;   K[17]='m_ratioText'
  ;   K[18]='x'
  ;   K[19]='AnimationState'
  ;   K[20]='SetAnimation'
  ;   K[21]='appear'
  ;   K[22]='DOTween'
  ;   K[23]='Sequence'
  ;   K[24]='Insert'
  ;   K[25]=0.15
  ;   K[26]='DOFade'
  ;   K[27]=0.2
  ;   K[28]='SetEase'
  ;   K[29]='Ease'
  ;   K[30]='OutSine'
  ;   K[31]=0.7
  ;   K[32]='m_numberText'
  ;   K[33]='DOScale'
  ;   K[34]='Vector3'
  ;   K[35]=0.1
  ;   K[36]='InOutSine'
  ;   K[37]=0.8
  ;   K[38]=1.2
  ;   K[39]='InSine'
  ;   K[40]=0.9
  ;   K[41]='m_upgradeSeq'
  ;   upvals: _ENV
  ;   locals: self(0-117), seq(52-117)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetLocalScale')]
  0002  GETTABLE  R2 = R0[K2('m_numberText2')]
  0003  GETTABLE  R2 = R2[K3('transform')]
  0004  LOADK     R3 = K4 0
  0005  LOADK     R4 = K4 0
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  GETTABLE  R1 = R0[K5('m_ratioCanvasGroup')]
  0008  SETTABLE  R1[K6('alpha')] = K4(0)
  0009  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0010  GETTABLE  R1 = R1[K7('SetActive')]
  0011  GETTABLE  R2 = R0[K8('m_flagSpine')]
  0012  GETTABLE  R2 = R2[K9('gameObject')]
  0013  LOADBOOL  R3 = false
  0014  CALL      R1 = call(R1, 0 args, 2 rets)
  0015  GETTABLE  R1 = R0[K8('m_flagSpine')]
  0016  SELF      R2 = R1[K10('Initialize')] (self)
  0017  LOADBOOL  R3 = false
  0018  CALL      R1 = call(R1, 0 args, 2 rets)
  0019  GETTABLE  R1 = R0[K11('m_tokenRatio')]
  0020  LE        if R0 le K12(1)   -> -130270
  0021  JMP       (jump)   -> 23
  0022  RETURN    return R0..R-1
  0023  GETTABLE  R1 = R0[K2('m_numberText2')]
  0024  GETTABUP  R2 = _ENV[K14('math')]
  0025  GETTABLE  R2 = R2[K15('ceil')]
  0026  GETTABLE  R3 = R0[K16('m_tokenCount')]
  0027  GETTABLE  R4 = R0[K11('m_tokenRatio')]
  0028  MUL       R3 = R4 mul R3
  0029  CALL      R2 = call(R2, 1 args, 1 rets)
  0030  SETTABLE  R1[K13('text')] = R2
  0031  GETTABLE  R1 = R0[K17('m_ratioText')]
  0032  LOADK     R2 = K18 'x'
  0033  GETTABLE  R3 = R0[K11('m_tokenRatio')]
  0034  CONCAT    R2 = concat(R2..R2)
  0035  SETTABLE  R1[K13('text')] = R2
  0036  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0037  GETTABLE  R1 = R1[K7('SetActive')]
  0038  GETTABLE  R2 = R0[K8('m_flagSpine')]
  0039  GETTABLE  R2 = R2[K9('gameObject')]
  0040  LOADBOOL  R3 = true
  0041  CALL      R1 = call(R1, 0 args, 2 rets)
  0042  GETTABLE  R1 = R0[K8('m_flagSpine')]
  0043  GETTABLE  R1 = R1[K19('AnimationState')]
  0044  SELF      R2 = R1[K20('SetAnimation')] (self)
  0045  LOADK     R3 = K4 0
  0046  LOADK     R4 = K21 'appear'
  0047  LOADBOOL  R5 = false
  0048  CALL      R1 = call(R1, 0 args, 4 rets)
  0049  GETTABUP  R1 = _ENV[K22('DOTween')]
  0050  GETTABLE  R1 = R1[K23('Sequence')]
  0051  CALL      R1 = call(R1, 1 args, 0 rets)
  0052  SELF      R3 = R1[K24('Insert')] (self)
  0053  LOADK     R4 = K25 0.15
  0054  GETTABLE  R5 = R0[K5('m_ratioCanvasGroup')]
  0055  SELF      R6 = R5[K26('DOFade')] (self)
  0056  LOADK     R7 = K12 1
  0057  LOADK     R8 = K27 0.2
  0058  CALL      R5 = call(R5, 1 args, 3 rets)
  0059  SELF      R6 = R5[K28('SetEase')] (self)
  0060  GETTABUP  R7 = _ENV[K29('Ease')]
  0061  GETTABLE  R7 = R7[K30('OutSine')]
  0062  CALL      R5 = call(R5, -1 args, 2 rets)
  0063  CALL      R2 = call(R2, 0 args, -1 rets)
  0064  SELF      R3 = R1[K24('Insert')] (self)
  0065  LOADK     R4 = K31 0.7
  0066  GETTABLE  R5 = R0[K32('m_numberText')]
  0067  GETTABLE  R5 = R5[K3('transform')]
  0068  SELF      R6 = R5[K33('DOScale')] (self)
  0069  GETTABUP  R7 = _ENV[K34('Vector3')]
  0070  LOADK     R8 = K4 0
  0071  LOADK     R9 = K4 0
  0072  LOADK     R10 = K12 1
  0073  CALL      R7 = call(R7, 1 args, 3 rets)
  0074  LOADK     R8 = K35 0.1
  0075  CALL      R5 = call(R5, 1 args, 3 rets)
  0076  SELF      R6 = R5[K28('SetEase')] (self)
  0077  GETTABUP  R7 = _ENV[K29('Ease')]
  0078  GETTABLE  R7 = R7[K36('InOutSine')]
  0079  CALL      R5 = call(R5, -1 args, 2 rets)
  0080  CALL      R2 = call(R2, 0 args, -1 rets)
  0081  SELF      R3 = R1[K24('Insert')] (self)
  0082  LOADK     R4 = K37 0.8
  0083  GETTABLE  R5 = R0[K2('m_numberText2')]
  0084  GETTABLE  R5 = R5[K3('transform')]
  0085  SELF      R6 = R5[K33('DOScale')] (self)
  0086  GETTABUP  R7 = _ENV[K34('Vector3')]
  0087  LOADK     R8 = K38 1.2
  0088  LOADK     R9 = K38 1.2
  0089  LOADK     R10 = K12 1
  0090  CALL      R7 = call(R7, 1 args, 3 rets)
  0091  LOADK     R8 = K27 0.2
  0092  CALL      R5 = call(R5, 1 args, 3 rets)
  0093  SELF      R6 = R5[K28('SetEase')] (self)
  0094  GETTABUP  R7 = _ENV[K29('Ease')]
  0095  GETTABLE  R7 = R7[K39('InSine')]
  0096  CALL      R5 = call(R5, -1 args, 2 rets)
  0097  CALL      R2 = call(R2, 0 args, -1 rets)
  0098  SELF      R3 = R1[K24('Insert')] (self)
  0099  LOADK     R4 = K40 0.9
  0100  GETTABLE  R5 = R0[K2('m_numberText2')]
  0101  GETTABLE  R5 = R5[K3('transform')]
  0102  SELF      R6 = R5[K33('DOScale')] (self)
  0103  GETTABUP  R7 = _ENV[K34('Vector3')]
  0104  LOADK     R8 = K12 1
  0105  LOADK     R9 = K12 1
  0106  LOADK     R10 = K12 1
  0107  CALL      R7 = call(R7, 1 args, 3 rets)
  0108  LOADK     R8 = K35 0.1
  0109  CALL      R5 = call(R5, 1 args, 3 rets)
  0110  SELF      R6 = R5[K28('SetEase')] (self)
  0111  GETTABUP  R7 = _ENV[K29('Ease')]
  0112  GETTABLE  R7 = R7[K30('OutSine')]
  0113  CALL      R5 = call(R5, -1 args, 2 rets)
  0114  CALL      R2 = call(R2, 0 args, -1 rets)
  0115  SETTABLE  R0[K41('m_upgradeSeq')] = R1
  0116  RETURN    return R0..R-1
; ---------- proto3 [OnCloseBtnClick] ----------
  ; fn ?  line 67-92 np=1 va=0 ms=8 code=48 consts=26 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='GetOpenedViewByName'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='MainWindowPrefabName'
  ;   K[5]=nil
  ;   K[6]='m_tokenCount'
  ;   K[7]=0
  ;   K[8]='m_bClosed'
  ;   K[9]='m_tokenTransform'
  ;   K[10]='position'
  ;   K[11]='RewardApi'
  ;   K[12]='AcquireRewardsInView'
  ;   K[13]='PROPERTY_TYPE'
  ;   K[14]='EPropertyType'
  ;   K[15]='BPFaceToken'
  ;   K[16]='PROPERTY_COUNT'
  ;   K[17]='arrWorldPos'
  ;   K[18]='eventLock'
  ;   K[19]=true
  ;   K[20]='ERewardScene'
  ;   K[21]='Other'
  ;   K[22]='DelayExecuteFunc'
  ;   K[23]=0.8
  ;   K[24]='Close'
  ;   K[25]='Continue'
  ;   upvals: _ENV
  ;   locals: self(0-48), mainWindow(6-48), startPosition(16-45)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('GetOpenedViewByName')] (self)
  0003  GETTABLE  R3 = R0[K3('m_activityDefinition')]
  0004  GETTABLE  R3 = R3[K4('MainWindowPrefabName')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  EQ        if R1 eq K5(nil)   -> -130291
  0007  JMP       (jump)   -> 45
  0008  GETTABLE  R2 = R0[K6('m_tokenCount')]
  0009  EQ        if R1 eq K7(0)   -> -129774
  0010  JMP       (jump)   -> 45
  0011  GETTABLE  R2 = R0[K8('m_bClosed')]
  0012  TEST      if not R2 then   -> -131057
  0013  JMP       (jump)   -> 45
  0014  GETTABLE  R2 = R0[K9('m_tokenTransform')]
  0015  GETTABLE  R2 = R2[K10('position')]
  0016  GETTABUP  R3 = _ENV[K11('RewardApi')]
  0017  GETTABLE  R3 = R3[K12('AcquireRewardsInView')]
  0018  NEWTABLE  R4 = {} (1 items)
  0019  NEWTABLE  R5 = {} (0 items)
  0020  GETTABUP  R6 = _ENV[K13('PROPERTY_TYPE')]
  0021  GETTABUP  R7 = _ENV[K14('EPropertyType')]
  0022  GETTABLE  R7 = R7[K15('BPFaceToken')]
  0023  SETTABLE  R5[R6] = R7
  0024  GETTABUP  R6 = _ENV[K16('PROPERTY_COUNT')]
  0025  GETTABLE  R7 = R0[K6('m_tokenCount')]
  0026  SETTABLE  R5[R6] = R7
  0027  SETLIST   setlist R4[B=1,C=1]
  0028  NEWTABLE  R5 = {} (0 items)
  0029  NEWTABLE  R6 = {} (1 items)
  0030  MOVE      R7 = R0
  0031  SETLIST   setlist R6[B=1,C=1]
  0032  SETTABLE  R5[K17('arrWorldPos')] = R6
  0033  SETTABLE  R5[K18('eventLock')] = K19(true)
  0034  GETTABUP  R6 = _ENV[K20('ERewardScene')]
  0035  GETTABLE  R6 = R6[K21('Other')]
  0036  CALL      R3 = call(R3, 0 args, 3 rets)
  0037  GETTABUP  R3 = _ENV[K22('DelayExecuteFunc')]
  0038  CLOSURE   R4 = closure proto0
  0039  LOADK     R5 = K23 0.8
  0040  CALL      R3 = call(R3, 0 args, 2 rets)
  0041  SELF      R4 = R0[K24('Close')] (self)
  0042  CALL      R3 = call(R3, 0 args, 1 rets)
  0043  SETTABLE  R0[K8('m_bClosed')] = K19(true)
  0044  RETURN    return R0..R-1
  0045  SELF      R3 = R0[K25('Continue')] (self)
  0046  CALL      R2 = call(R2, 0 args, 1 rets)
  0047  RETURN    return R0..R-1
  ; ---------- proto0 [m_bClosed] ----------
    ; fn ?  line 79-85 np=0 va=0 ms=2 code=13 consts=4 upvals=2 protos=0
    ;   K[0]='UIUtil'
    ;   K[1]='IsEmptyComponent'
    ;   K[2]='SwitchTicket'
    ;   K[3]='PlayLevelProgressAnimation'
    ;   upvals: _ENV, mainWindow
    0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
    0001  GETTABLE  R0 = R0[K1('IsEmptyComponent')]
    0002  GETUPVAL  R1 = _ENV
    0003  CALL      R0 = call(R0, 1 args, 1 rets)
    0004  TEST      if not R0 then   -> -131065
    0005  JMP       (jump)   -> 12
    0006  GETUPVAL  R0 = _ENV
    0007  SELF      R1 = R0[K2('SwitchTicket')] (self)
    0008  CALL      R0 = call(R0, 0 args, 1 rets)
    0009  GETUPVAL  R0 = _ENV
    0010  SELF      R1 = R0[K3('PlayLevelProgressAnimation')] (self)
    0011  CALL      R0 = call(R0, 0 args, 1 rets)
    0012  RETURN    return R0..R-1
; ---------- proto4 [Continue] ----------
  ; fn ?  line 94-98 np=1 va=0 ms=3 code=7 consts=4 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='PassActivityViewHelper'
  ;   K[2]='ContinueViewChain'
  ;   K[3]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('PassActivityViewHelper')]
  0003  GETTABLE  R1 = R1[K2('ContinueViewChain')]
  0004  GETTABLE  R2 = R0[K3('m_activityType')]
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
