# PassActivity_Common_View_Window_PassActivityTicketWindow_840.luac
; fn @PassActivityTicketWindow.lua  line 0-0 np=0 va=1 ms=3 code=132 consts=39 upvals=1 protos=31
;   K[0]='PassActivityBuyMaxTicketWindow'
;   K[1]='setmetatable'
;   K[2]='bNeedSetWindowOpened'
;   K[3]=false
;   K[4]='disableEffectWhenCloseView'
;   K[5]=true
;   K[6]='PassActivityBaseWindow'
;   K[7]='__index'
;   K[8]='Init'
;   K[9]='UpdateContent'
;   K[10]='CheckValid'
;   K[11]='OnBuyTicketButtonClicked'
;   K[12]='_OnBuyTicketSuccess'
;   K[13]='OnBuyMaxTicketButtonClicked'
;   K[14]='_OnBuyMaxTicketSuccess'
;   K[15]='OnTipButtonClicked'
;   K[16]='OnMaskClicked'
;   K[17]='OnCloseBtnClick'
;   K[18]='PassActivityBuyUpTicketWindow'
;   K[19]=true
;   K[20]='PassActivityBaseWindow'
;   K[21]='Init'
;   K[22]='UpdateContent'
;   K[23]='CheckValid'
;   K[24]='OnBuyUpTicketButtonClicked'
;   K[25]='_OnBuyUpTicketSuccess'
;   K[26]='OnCloseBtnClick'
;   K[27]='PassActivityBuyMaxTicketPopupWindow'
;   K[28]='PassActivityBaseWindow'
;   K[29]='Init'
;   K[30]='UpdateContent'
;   K[31]='CheckValid'
;   K[32]='_OnBuyTicketSuccess'
;   K[33]='_OnBuyMaxTicketSuccess'
;   K[34]='OnCloseBtnClick'
;   K[35]='PassActivityBuyMaxTicketSuccessWindow'
;   K[36]='PassActivityBaseWindow'
;   K[37]='Init'
;   K[38]='UpdateContent'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('bNeedSetWindowOpened')] = K3(false)
0003  SETTABLE  R1[K4('disableEffectWhenCloseView')] = K5(true)
0004  GETTABUP  R2 = _ENV[K6('PassActivityBaseWindow')]
0005  CALL      R0 = call(R0, 1 args, 2 rets)
0006  SETTABUP  _ENV[K0('PassActivityBuyMaxTicketWindow')] = R0
0007  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0008  GETTABUP  R1 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0009  SETTABLE  R0[K7('__index')] = R1
0010  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0011  CLOSURE   R1 = closure proto0
0012  SETTABLE  R0[K8('Init')] = R1
0013  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0014  CLOSURE   R1 = closure proto1
0015  SETTABLE  R0[K9('UpdateContent')] = R1
0016  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0017  CLOSURE   R1 = closure proto2
0018  SETTABLE  R0[K10('CheckValid')] = R1
0019  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0020  CLOSURE   R1 = closure proto3
0021  SETTABLE  R0[K11('OnBuyTicketButtonClicked')] = R1
0022  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0023  CLOSURE   R1 = closure proto4
0024  SETTABLE  R0[K12('_OnBuyTicketSuccess')] = R1
0025  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0026  CLOSURE   R1 = closure proto5
0027  SETTABLE  R0[K13('OnBuyMaxTicketButtonClicked')] = R1
0028  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0029  CLOSURE   R1 = closure proto6
0030  SETTABLE  R0[K14('_OnBuyMaxTicketSuccess')] = R1
0031  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0032  CLOSURE   R1 = closure proto7
0033  SETTABLE  R0[K15('OnTipButtonClicked')] = R1
0034  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0035  CLOSURE   R1 = closure proto8
0036  SETTABLE  R0[K16('OnMaskClicked')] = R1
0037  GETTABUP  R0 = _ENV[K0('PassActivityBuyMaxTicketWindow')]
0038  CLOSURE   R1 = closure proto9
0039  SETTABLE  R0[K17('OnCloseBtnClick')] = R1
0040  GETTABUP  R0 = _ENV[K1('setmetatable')]
0041  NEWTABLE  R1 = {} (0 items)
0042  SETTABLE  R1[K2('bNeedSetWindowOpened')] = K3(false)
0043  SETTABLE  R1[K4('disableEffectWhenCloseView')] = K19(true)
0044  GETTABUP  R2 = _ENV[K20('PassActivityBaseWindow')]
0045  CALL      R0 = call(R0, 1 args, 2 rets)
0046  SETTABUP  _ENV[K18('PassActivityBuyUpTicketWindow')] = R0
0047  GETTABUP  R0 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0048  GETTABUP  R1 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0049  SETTABLE  R0[K7('__index')] = R1
0050  GETTABUP  R0 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0051  CLOSURE   R1 = closure proto10
0052  SETTABLE  R0[K21('Init')] = R1
0053  GETTABUP  R0 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0054  CLOSURE   R1 = closure proto11
0055  SETTABLE  R0[K22('UpdateContent')] = R1
0056  GETTABUP  R0 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0057  CLOSURE   R1 = closure proto12
0058  SETTABLE  R0[K23('CheckValid')] = R1
0059  GETTABUP  R0 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0060  CLOSURE   R1 = closure proto13
0061  SETTABLE  R0[K24('OnBuyUpTicketButtonClicked')] = R1
0062  GETTABUP  R0 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0063  CLOSURE   R1 = closure proto14
0064  SETTABLE  R0[K25('_OnBuyUpTicketSuccess')] = R1
0065  GETTABUP  R0 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0066  CLOSURE   R1 = closure proto15
0067  SETTABLE  R0[K15('OnTipButtonClicked')] = R1
0068  GETTABUP  R0 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0069  CLOSURE   R1 = closure proto16
0070  SETTABLE  R0[K16('OnMaskClicked')] = R1
0071  GETTABUP  R0 = _ENV[K18('PassActivityBuyUpTicketWindow')]
0072  CLOSURE   R1 = closure proto17
0073  SETTABLE  R0[K26('OnCloseBtnClick')] = R1
0074  GETTABUP  R0 = _ENV[K1('setmetatable')]
0075  NEWTABLE  R1 = {} (0 items)
0076  SETTABLE  R1[K2('bNeedSetWindowOpened')] = K3(false)
0077  GETTABUP  R2 = _ENV[K28('PassActivityBaseWindow')]
0078  CALL      R0 = call(R0, 1 args, 2 rets)
0079  SETTABUP  _ENV[K27('PassActivityBuyMaxTicketPopupWindow')] = R0
0080  GETTABUP  R0 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0081  GETTABUP  R1 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0082  SETTABLE  R0[K7('__index')] = R1
0083  GETTABUP  R0 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0084  CLOSURE   R1 = closure proto18
0085  SETTABLE  R0[K29('Init')] = R1
0086  GETTABUP  R0 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0087  CLOSURE   R1 = closure proto19
0088  SETTABLE  R0[K30('UpdateContent')] = R1
0089  GETTABUP  R0 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0090  CLOSURE   R1 = closure proto20
0091  SETTABLE  R0[K31('CheckValid')] = R1
0092  GETTABUP  R0 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0093  CLOSURE   R1 = closure proto21
0094  SETTABLE  R0[K11('OnBuyTicketButtonClicked')] = R1
0095  GETTABUP  R0 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0096  CLOSURE   R1 = closure proto22
0097  SETTABLE  R0[K32('_OnBuyTicketSuccess')] = R1
0098  GETTABUP  R0 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0099  CLOSURE   R1 = closure proto23
0100  SETTABLE  R0[K13('OnBuyMaxTicketButtonClicked')] = R1
0101  GETTABUP  R0 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0102  CLOSURE   R1 = closure proto24
0103  SETTABLE  R0[K33('_OnBuyMaxTicketSuccess')] = R1
0104  GETTABUP  R0 = _ENV[K27('PassActivityBuyMaxTicketPopupWindow')]
0105  CLOSURE   R1 = closure proto25
0106  SETTABLE  R0[K34('OnCloseBtnClick')] = R1
0107  GETTABUP  R0 = _ENV[K1('setmetatable')]
0108  NEWTABLE  R1 = {} (0 items)
0109  SETTABLE  R1[K2('bNeedSetWindowOpened')] = K3(false)
0110  GETTABUP  R2 = _ENV[K36('PassActivityBaseWindow')]
0111  CALL      R0 = call(R0, 1 args, 2 rets)
0112  SETTABUP  _ENV[K35('PassActivityBuyMaxTicketSuccessWindow')] = R0
0113  GETTABUP  R0 = _ENV[K35('PassActivityBuyMaxTicketSuccessWindow')]
0114  GETTABUP  R1 = _ENV[K35('PassActivityBuyMaxTicketSuccessWindow')]
0115  SETTABLE  R0[K7('__index')] = R1
0116  GETTABUP  R0 = _ENV[K35('PassActivityBuyMaxTicketSuccessWindow')]
0117  CLOSURE   R1 = closure proto26
0118  SETTABLE  R0[K37('Init')] = R1
0119  GETTABUP  R0 = _ENV[K35('PassActivityBuyMaxTicketSuccessWindow')]
0120  CLOSURE   R1 = closure proto27
0121  SETTABLE  R0[K38('UpdateContent')] = R1
0122  GETTABUP  R0 = _ENV[K35('PassActivityBuyMaxTicketSuccessWindow')]
0123  CLOSURE   R1 = closure proto28
0124  SETTABLE  R0[K15('OnTipButtonClicked')] = R1
0125  GETTABUP  R0 = _ENV[K35('PassActivityBuyMaxTicketSuccessWindow')]
0126  CLOSURE   R1 = closure proto29
0127  SETTABLE  R0[K16('OnMaskClicked')] = R1
0128  GETTABUP  R0 = _ENV[K35('PassActivityBuyMaxTicketSuccessWindow')]
0129  CLOSURE   R1 = closure proto30
0130  SETTABLE  R0[K34('OnCloseBtnClick')] = R1
0131  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 24-37 np=4 va=0 ms=9 code=32 consts=13 upvals=1 protos=0
  ;   K[0]='PassActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='CheckValid'
  ;   K[3]='Close'
  ;   K[4]='m_payResultCallback'
  ;   K[5]='UpdateContent'
  ;   K[6]='EventDispatcher'
  ;   K[7]='AddListener'
  ;   K[8]='m_activityDefinition'
  ;   K[9]='BuyTicketSuccessEvent'
  ;   K[10]='_OnBuyTicketSuccess'
  ;   K[11]='BuyMaxTicketSuccessEvent'
  ;   K[12]='_OnBuyMaxTicketSuccess'
  ;   upvals: _ENV
  ;   locals: self(0-32), activityType(0-32), ext(0-32), payResultCallback(0-32)
  0000  GETTABUP  R4 = _ENV[K0('PassActivityBaseWindow')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  LOADBOOL  R7 = false
  0005  MOVE      R8 = R0
  0006  CALL      R4 = call(R4, 0 args, 4 rets)
  0007  SELF      R5 = R0[K2('CheckValid')] (self)
  0008  CALL      R4 = call(R4, 1 args, 1 rets)
  0009  TEST      if not R4 then   -> -131060
  0010  JMP       (jump)   -> 14
  0011  SELF      R5 = R0[K3('Close')] (self)
  0012  CALL      R4 = call(R4, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
  0014  SETTABLE  R0[K4('m_payResultCallback')] = R3
  0015  SELF      R5 = R0[K5('UpdateContent')] (self)
  0016  CALL      R4 = call(R4, 0 args, 1 rets)
  0017  GETTABUP  R4 = _ENV[K6('EventDispatcher')]
  0018  GETTABLE  R4 = R4[K7('AddListener')]
  0019  GETTABLE  R5 = R0[K8('m_activityDefinition')]
  0020  GETTABLE  R5 = R5[K9('BuyTicketSuccessEvent')]
  0021  MOVE      R6 = R0
  0022  GETTABLE  R7 = R0[K10('_OnBuyTicketSuccess')]
  0023  CALL      R4 = call(R4, 0 args, 3 rets)
  0024  GETTABUP  R4 = _ENV[K6('EventDispatcher')]
  0025  GETTABLE  R4 = R4[K7('AddListener')]
  0026  GETTABLE  R5 = R0[K8('m_activityDefinition')]
  0027  GETTABLE  R5 = R5[K11('BuyMaxTicketSuccessEvent')]
  0028  MOVE      R6 = R0
  0029  GETTABLE  R7 = R0[K12('_OnBuyMaxTicketSuccess')]
  0030  CALL      R4 = call(R4, 0 args, 3 rets)
  0031  RETURN    return R0..R-1
; ---------- proto1 [UpdateContent] ----------
  ; fn ?  line 39-54 np=1 va=0 ms=9 code=76 consts=28 upvals=1 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]='GetAllExtraRewards'
  ;   K[4]='GetSortingOrder'
  ;   K[5]=8
  ;   K[6]='m_energyNumText1'
  ;   K[7]='text'
  ;   K[8]='x'
  ;   K[9]='tostring'
  ;   K[10]='GetHighlightEnergyRewardCount'
  ;   K[11]='m_energyNumText2'
  ;   K[12]='GetMaxTicketTokenNumber'
  ;   K[13]='GetMaxTicketTokenAdd'
  ;   K[14]='m_tokenNumText'
  ;   K[15]='m_tokenRatioText'
  ;   K[16]='+'
  ;   K[17]='m_tokenRatioDescText'
  ;   K[18]='GM'
  ;   K[19]='GameTextModel'
  ;   K[20]='GetText'
  ;   K[21]='battlepass_svip_token_desc'
  ;   K[22]='m_iapButtonTicket'
  ;   K[23]='InAppPurchaseModel'
  ;   K[24]='GetLocalizedPrice'
  ;   K[25]='GetPassTicketIapType'
  ;   K[26]='m_iapButtonMaxTicket'
  ;   K[27]='GetMaxPassTicektIapType'
  ;   upvals: _ENV
  ;   locals: self(0-76), tokenNum(30-76), tokenAdd(33-76)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('Init')] (self)
  0002  GETTABLE  R3 = R0[K2('m_model')]
  0003  SELF      R4 = R3[K3('GetAllExtraRewards')] (self)
  0004  CALL      R3 = call(R3, 1 args, 1 rets)
  0005  SELF      R5 = R0[K4('GetSortingOrder')] (self)
  0006  CALL      R4 = call(R4, 1 args, 1 rets)
  0007  ADD       R4 = K5(8) add R4
  0008  CALL      R1 = call(R1, 0 args, 3 rets)
  0009  GETTABLE  R1 = R0[K6('m_energyNumText1')]
  0010  LOADK     R2 = K8 'x'
  0011  GETTABUP  R3 = _ENV[K9('tostring')]
  0012  GETTABLE  R4 = R0[K2('m_model')]
  0013  SELF      R5 = R4[K10('GetHighlightEnergyRewardCount')] (self)
  0014  CALL      R4 = call(R4, -1 args, 1 rets)
  0015  CALL      R3 = call(R3, 1 args, -1 rets)
  0016  CONCAT    R2 = concat(R2..R2)
  0017  SETTABLE  R1[K7('text')] = R2
  0018  GETTABLE  R1 = R0[K11('m_energyNumText2')]
  0019  LOADK     R2 = K8 'x'
  0020  GETTABUP  R3 = _ENV[K9('tostring')]
  0021  GETTABLE  R4 = R0[K2('m_model')]
  0022  SELF      R5 = R4[K10('GetHighlightEnergyRewardCount')] (self)
  0023  CALL      R4 = call(R4, -1 args, 1 rets)
  0024  CALL      R3 = call(R3, 1 args, -1 rets)
  0025  CONCAT    R2 = concat(R2..R2)
  0026  SETTABLE  R1[K7('text')] = R2
  0027  GETTABLE  R1 = R0[K2('m_model')]
  0028  SELF      R2 = R1[K12('GetMaxTicketTokenNumber')] (self)
  0029  CALL      R1 = call(R1, 1 args, 1 rets)
  0030  GETTABLE  R2 = R0[K2('m_model')]
  0031  SELF      R3 = R2[K13('GetMaxTicketTokenAdd')] (self)
  0032  CALL      R2 = call(R2, 1 args, 1 rets)
  0033  GETTABLE  R3 = R0[K14('m_tokenNumText')]
  0034  LOADK     R4 = K8 'x'
  0035  GETTABUP  R5 = _ENV[K9('tostring')]
  0036  MOVE      R6 = R0
  0037  CALL      R5 = call(R5, 1 args, 1 rets)
  0038  CONCAT    R4 = concat(R4..R4)
  0039  SETTABLE  R3[K7('text')] = R4
  0040  GETTABLE  R3 = R0[K15('m_tokenRatioText')]
  0041  LOADK     R4 = K16 '+'
  0042  GETTABUP  R5 = _ENV[K9('tostring')]
  0043  MOVE      R6 = R0
  0044  CALL      R5 = call(R5, 1 args, 1 rets)
  0045  CONCAT    R4 = concat(R4..R4)
  0046  SETTABLE  R3[K7('text')] = R4
  0047  GETTABLE  R3 = R0[K17('m_tokenRatioDescText')]
  0048  GETTABUP  R4 = _ENV[K18('GM')]
  0049  GETTABLE  R4 = R4[K19('GameTextModel')]
  0050  SELF      R5 = R4[K20('GetText')] (self)
  0051  LOADK     R6 = K21 'battlepass_svip_token_desc'
  0052  MOVE      R7 = R0
  0053  CALL      R4 = call(R4, 1 args, 3 rets)
  0054  SETTABLE  R3[K7('text')] = R4
  0055  GETTABLE  R3 = R0[K22('m_iapButtonTicket')]
  0056  SELF      R4 = R3[K1('Init')] (self)
  0057  GETTABUP  R5 = _ENV[K18('GM')]
  0058  GETTABLE  R5 = R5[K23('InAppPurchaseModel')]
  0059  SELF      R6 = R5[K24('GetLocalizedPrice')] (self)
  0060  GETTABLE  R7 = R0[K2('m_model')]
  0061  SELF      R8 = R7[K25('GetPassTicketIapType')] (self)
  0062  CALL      R7 = call(R7, -1 args, 1 rets)
  0063  CALL      R5 = call(R5, -1 args, -1 rets)
  0064  CALL      R3 = call(R3, 0 args, -1 rets)
  0065  GETTABLE  R3 = R0[K26('m_iapButtonMaxTicket')]
  0066  SELF      R4 = R3[K1('Init')] (self)
  0067  GETTABUP  R5 = _ENV[K18('GM')]
  0068  GETTABLE  R5 = R5[K23('InAppPurchaseModel')]
  0069  SELF      R6 = R5[K24('GetLocalizedPrice')] (self)
  0070  GETTABLE  R7 = R0[K2('m_model')]
  0071  SELF      R8 = R7[K27('GetMaxPassTicektIapType')] (self)
  0072  CALL      R7 = call(R7, -1 args, 1 rets)
  0073  CALL      R5 = call(R5, -1 args, -1 rets)
  0074  CALL      R3 = call(R3, 0 args, -1 rets)
  0075  RETURN    return R0..R-1
; ---------- proto2 [CheckValid] ----------
  ; fn ?  line 57-59 np=1 va=0 ms=3 code=16 consts=5 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='CanBuyMaxTicket'
  ;   K[2]='GetTicketState'
  ;   K[3]='EBPTicketState'
  ;   K[4]='None'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('CanBuyMaxTicket')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 14
  0005  GETTABLE  R1 = R0[K0('m_model')]
  0006  SELF      R2 = R1[K2('GetTicketState')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  GETTABUP  R2 = _ENV[K3('EBPTicketState')]
  0009  GETTABLE  R2 = R2[K4('None')]
  0010  EQ        if R1 eq R2   -> -130546
  0011  JMP       (jump)   -> 13
  0012  LOADBOOL  R1 = false
  0013  LOADBOOL  R1 = true
  0014  RETURN    return R1..R0
  0015  RETURN    return R0..R-1
; ---------- proto3 [OnBuyTicketButtonClicked] ----------
  ; fn ?  line 61-65 np=1 va=0 ms=3 code=7 consts=4 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='BuyTicket'
  ;   K[2]='m_rewardBubble'
  ;   K[3]='HideBubble'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('BuyTicket')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  GETTABLE  R1 = R0[K2('m_rewardBubble')]
  0004  SELF      R2 = R1[K3('HideBubble')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto4 [_OnBuyTicketSuccess] ----------
  ; fn ?  line 67-76 np=1 va=0 ms=5 code=21 consts=12 upvals=1 protos=0
  ;   K[0]='PassActivityViewHelper'
  ;   K[1]='SetViewChain'
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='OpenView'
  ;   K[5]='UIPrefabConfigName'
  ;   K[6]='PassActivityBuyTicketSuccessWindow1'
  ;   K[7]='m_activityType'
  ;   K[8]='m_payResultCallback'
  ;   K[9]='EBPTicketType'
  ;   K[10]='Normal'
  ;   K[11]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-21)
  0000  GETTABUP  R1 = _ENV[K0('PassActivityViewHelper')]
  0001  GETTABLE  R1 = R1[K1('SetViewChain')]
  0002  LOADBOOL  R2 = true
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('UIManager')]
  0006  SELF      R2 = R1[K4('OpenView')] (self)
  0007  GETTABUP  R3 = _ENV[K5('UIPrefabConfigName')]
  0008  GETTABLE  R3 = R3[K6('PassActivityBuyTicketSuccessWindow1')]
  0009  GETTABLE  R4 = R0[K7('m_activityType')]
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  GETTABLE  R1 = R0[K8('m_payResultCallback')]
  0012  TEST      if not R1 then   -> -131058
  0013  JMP       (jump)   -> 18
  0014  GETTABLE  R1 = R0[K8('m_payResultCallback')]
  0015  GETTABUP  R2 = _ENV[K9('EBPTicketType')]
  0016  GETTABLE  R2 = R2[K10('Normal')]
  0017  CALL      R1 = call(R1, 0 args, 1 rets)
  0018  SELF      R2 = R0[K11('Close')] (self)
  0019  CALL      R1 = call(R1, 0 args, 1 rets)
  0020  RETURN    return R0..R-1
; ---------- proto5 [OnBuyMaxTicketButtonClicked] ----------
  ; fn ?  line 78-81 np=1 va=0 ms=3 code=7 consts=4 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='BuyMaxTicket'
  ;   K[2]='m_rewardBubble'
  ;   K[3]='HideBubble'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('BuyMaxTicket')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  GETTABLE  R1 = R0[K2('m_rewardBubble')]
  0004  SELF      R2 = R1[K3('HideBubble')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto6 [_OnBuyMaxTicketSuccess] ----------
  ; fn ?  line 83-92 np=1 va=0 ms=6 code=22 consts=12 upvals=1 protos=0
  ;   K[0]='PassActivityViewHelper'
  ;   K[1]='SetViewChain'
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='OpenView'
  ;   K[5]='UIPrefabConfigName'
  ;   K[6]='PassActivityBuyTicketSuccessWindow3'
  ;   K[7]='m_activityType'
  ;   K[8]='m_payResultCallback'
  ;   K[9]='EBPTicketType'
  ;   K[10]='Max'
  ;   K[11]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-22)
  0000  GETTABUP  R1 = _ENV[K0('PassActivityViewHelper')]
  0001  GETTABLE  R1 = R1[K1('SetViewChain')]
  0002  LOADBOOL  R2 = true
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('UIManager')]
  0006  SELF      R2 = R1[K4('OpenView')] (self)
  0007  GETTABUP  R3 = _ENV[K5('UIPrefabConfigName')]
  0008  GETTABLE  R3 = R3[K6('PassActivityBuyTicketSuccessWindow3')]
  0009  GETTABLE  R4 = R0[K7('m_activityType')]
  0010  LOADBOOL  R5 = true
  0011  CALL      R1 = call(R1, 0 args, 4 rets)
  0012  GETTABLE  R1 = R0[K8('m_payResultCallback')]
  0013  TEST      if not R1 then   -> -131057
  0014  JMP       (jump)   -> 19
  0015  GETTABLE  R1 = R0[K8('m_payResultCallback')]
  0016  GETTABUP  R2 = _ENV[K9('EBPTicketType')]
  0017  GETTABLE  R2 = R2[K10('Max')]
  0018  CALL      R1 = call(R1, 0 args, 1 rets)
  0019  SELF      R2 = R0[K11('Close')] (self)
  0020  CALL      R1 = call(R1, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto7 [OnTipButtonClicked] ----------
  ; fn ?  line 95-100 np=1 va=0 ms=9 code=15 consts=11 upvals=1 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='ShowBubble'
  ;   K[2]='bRight'
  ;   K[3]=true
  ;   K[4]='pos'
  ;   K[5]='m_tipRect'
  ;   K[6]='position'
  ;   K[7]='Vector3'
  ;   K[8]=90
  ;   K[9]=-30
  ;   K[10]=0
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('ShowBubble')] (self)
  0002  NEWTABLE  R3 = {} (0 items)
  0003  SETTABLE  R3[K2('bRight')] = K3(true)
  0004  GETTABLE  R4 = R0[K5('m_tipRect')]
  0005  GETTABLE  R4 = R4[K6('position')]
  0006  GETTABUP  R5 = _ENV[K7('Vector3')]
  0007  LOADK     R6 = K8 90
  0008  LOADK     R7 = K9 -30
  0009  LOADK     R8 = K10 0
  0010  CALL      R5 = call(R5, 1 args, 3 rets)
  0011  ADD       R4 = R5 add R4
  0012  SETTABLE  R3[K4('pos')] = R4
  0013  CALL      R1 = call(R1, 0 args, 2 rets)
  0014  RETURN    return R0..R-1
; ---------- proto8 [OnMaskClicked] ----------
  ; fn ?  line 102-104 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='HideBubble'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('HideBubble')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto9 [OnCloseBtnClick] ----------
  ; fn ?  line 106-112 np=1 va=0 ms=3 code=13 consts=5 upvals=1 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='HideBubble'
  ;   K[2]='PassActivityBaseWindow'
  ;   K[3]='OnCloseBtnClick'
  ;   K[4]='m_payResultCallback'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('HideBubble')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  GETTABUP  R1 = _ENV[K2('PassActivityBaseWindow')]
  0004  GETTABLE  R1 = R1[K3('OnCloseBtnClick')]
  0005  MOVE      R2 = R0
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  GETTABLE  R1 = R0[K4('m_payResultCallback')]
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 12
  0010  GETTABLE  R1 = R0[K4('m_payResultCallback')]
  0011  CALL      R1 = call(R1, 0 args, 0 rets)
  0012  RETURN    return R0..R-1
; ---------- proto10 [Init] ----------
  ; fn ?  line 125-137 np=4 va=0 ms=9 code=25 consts=11 upvals=1 protos=0
  ;   K[0]='PassActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='CheckValid'
  ;   K[3]='Close'
  ;   K[4]='m_payResultCallback'
  ;   K[5]='UpdateContent'
  ;   K[6]='EventDispatcher'
  ;   K[7]='AddListener'
  ;   K[8]='m_activityDefinition'
  ;   K[9]='BuyUpTicketSuccessEvent'
  ;   K[10]='_OnBuyUpTicketSuccess'
  ;   upvals: _ENV
  ;   locals: self(0-25), activityType(0-25), ext(0-25), payResultCallback(0-25)
  0000  GETTABUP  R4 = _ENV[K0('PassActivityBaseWindow')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  LOADBOOL  R7 = false
  0005  MOVE      R8 = R0
  0006  CALL      R4 = call(R4, 0 args, 4 rets)
  0007  SELF      R5 = R0[K2('CheckValid')] (self)
  0008  CALL      R4 = call(R4, 1 args, 1 rets)
  0009  TEST      if not R4 then   -> -131060
  0010  JMP       (jump)   -> 14
  0011  SELF      R5 = R0[K3('Close')] (self)
  0012  CALL      R4 = call(R4, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
  0014  SETTABLE  R0[K4('m_payResultCallback')] = R3
  0015  SELF      R5 = R0[K5('UpdateContent')] (self)
  0016  CALL      R4 = call(R4, 0 args, 1 rets)
  0017  GETTABUP  R4 = _ENV[K6('EventDispatcher')]
  0018  GETTABLE  R4 = R4[K7('AddListener')]
  0019  GETTABLE  R5 = R0[K8('m_activityDefinition')]
  0020  GETTABLE  R5 = R5[K9('BuyUpTicketSuccessEvent')]
  0021  MOVE      R6 = R0
  0022  GETTABLE  R7 = R0[K10('_OnBuyUpTicketSuccess')]
  0023  CALL      R4 = call(R4, 0 args, 3 rets)
  0024  RETURN    return R0..R-1
; ---------- proto11 [UpdateContent] ----------
  ; fn ?  line 139-151 np=1 va=0 ms=9 code=57 consts=25 upvals=1 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]='GetAllExtraRewards'
  ;   K[4]='GetSortingOrder'
  ;   K[5]=8
  ;   K[6]='m_energyNumText'
  ;   K[7]='text'
  ;   K[8]='x'
  ;   K[9]='tostring'
  ;   K[10]='GetHighlightEnergyRewardCount'
  ;   K[11]='GetMaxTicketTokenNumber'
  ;   K[12]='GetMaxTicketTokenAdd'
  ;   K[13]='m_tokenNumText'
  ;   K[14]='m_tokenRatioText'
  ;   K[15]='+'
  ;   K[16]='m_tokenRatioDescText'
  ;   K[17]='GM'
  ;   K[18]='GameTextModel'
  ;   K[19]='GetText'
  ;   K[20]='battlepass_svip_token_desc'
  ;   K[21]='m_iapButtonUpTicket'
  ;   K[22]='InAppPurchaseModel'
  ;   K[23]='GetLocalizedPrice'
  ;   K[24]='GetUpPassTicketIapType'
  ;   upvals: _ENV
  ;   locals: self(0-57), tokenNum(21-57), tokenAdd(24-57)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('Init')] (self)
  0002  GETTABLE  R3 = R0[K2('m_model')]
  0003  SELF      R4 = R3[K3('GetAllExtraRewards')] (self)
  0004  CALL      R3 = call(R3, 1 args, 1 rets)
  0005  SELF      R5 = R0[K4('GetSortingOrder')] (self)
  0006  CALL      R4 = call(R4, 1 args, 1 rets)
  0007  ADD       R4 = K5(8) add R4
  0008  CALL      R1 = call(R1, 0 args, 3 rets)
  0009  GETTABLE  R1 = R0[K6('m_energyNumText')]
  0010  LOADK     R2 = K8 'x'
  0011  GETTABUP  R3 = _ENV[K9('tostring')]
  0012  GETTABLE  R4 = R0[K2('m_model')]
  0013  SELF      R5 = R4[K10('GetHighlightEnergyRewardCount')] (self)
  0014  CALL      R4 = call(R4, -1 args, 1 rets)
  0015  CALL      R3 = call(R3, 1 args, -1 rets)
  0016  CONCAT    R2 = concat(R2..R2)
  0017  SETTABLE  R1[K7('text')] = R2
  0018  GETTABLE  R1 = R0[K2('m_model')]
  0019  SELF      R2 = R1[K11('GetMaxTicketTokenNumber')] (self)
  0020  CALL      R1 = call(R1, 1 args, 1 rets)
  0021  GETTABLE  R2 = R0[K2('m_model')]
  0022  SELF      R3 = R2[K12('GetMaxTicketTokenAdd')] (self)
  0023  CALL      R2 = call(R2, 1 args, 1 rets)
  0024  GETTABLE  R3 = R0[K13('m_tokenNumText')]
  0025  LOADK     R4 = K8 'x'
  0026  GETTABUP  R5 = _ENV[K9('tostring')]
  0027  MOVE      R6 = R0
  0028  CALL      R5 = call(R5, 1 args, 1 rets)
  0029  CONCAT    R4 = concat(R4..R4)
  0030  SETTABLE  R3[K7('text')] = R4
  0031  GETTABLE  R3 = R0[K14('m_tokenRatioText')]
  0032  LOADK     R4 = K15 '+'
  0033  GETTABUP  R5 = _ENV[K9('tostring')]
  0034  MOVE      R6 = R0
  0035  CALL      R5 = call(R5, 1 args, 1 rets)
  0036  CONCAT    R4 = concat(R4..R4)
  0037  SETTABLE  R3[K7('text')] = R4
  0038  GETTABLE  R3 = R0[K16('m_tokenRatioDescText')]
  0039  GETTABUP  R4 = _ENV[K17('GM')]
  0040  GETTABLE  R4 = R4[K18('GameTextModel')]
  0041  SELF      R5 = R4[K19('GetText')] (self)
  0042  LOADK     R6 = K20 'battlepass_svip_token_desc'
  0043  MOVE      R7 = R0
  0044  CALL      R4 = call(R4, 1 args, 3 rets)
  0045  SETTABLE  R3[K7('text')] = R4
  0046  GETTABLE  R3 = R0[K21('m_iapButtonUpTicket')]
  0047  SELF      R4 = R3[K1('Init')] (self)
  0048  GETTABUP  R5 = _ENV[K17('GM')]
  0049  GETTABLE  R5 = R5[K22('InAppPurchaseModel')]
  0050  SELF      R6 = R5[K23('GetLocalizedPrice')] (self)
  0051  GETTABLE  R7 = R0[K2('m_model')]
  0052  SELF      R8 = R7[K24('GetUpPassTicketIapType')] (self)
  0053  CALL      R7 = call(R7, -1 args, 1 rets)
  0054  CALL      R5 = call(R5, -1 args, -1 rets)
  0055  CALL      R3 = call(R3, 0 args, -1 rets)
  0056  RETURN    return R0..R-1
; ---------- proto12 [CheckValid] ----------
  ; fn ?  line 154-156 np=1 va=0 ms=3 code=16 consts=5 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='CanBuyMaxTicket'
  ;   K[2]='GetTicketState'
  ;   K[3]='EBPTicketState'
  ;   K[4]='Upgrade'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('CanBuyMaxTicket')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 14
  0005  GETTABLE  R1 = R0[K0('m_model')]
  0006  SELF      R2 = R1[K2('GetTicketState')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  GETTABUP  R2 = _ENV[K3('EBPTicketState')]
  0009  GETTABLE  R2 = R2[K4('Upgrade')]
  0010  EQ        if R1 eq R2   -> -130546
  0011  JMP       (jump)   -> 13
  0012  LOADBOOL  R1 = false
  0013  LOADBOOL  R1 = true
  0014  RETURN    return R1..R0
  0015  RETURN    return R0..R-1
; ---------- proto13 [OnBuyUpTicketButtonClicked] ----------
  ; fn ?  line 158-161 np=1 va=0 ms=3 code=7 consts=4 upvals=0 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='HideBubble'
  ;   K[2]='m_model'
  ;   K[3]='BuyUpTicket'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('HideBubble')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  GETTABLE  R1 = R0[K2('m_model')]
  0004  SELF      R2 = R1[K3('BuyUpTicket')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto14 [_OnBuyUpTicketSuccess] ----------
  ; fn ?  line 163-172 np=1 va=0 ms=6 code=22 consts=12 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='PassActivityViewHelper'
  ;   K[2]='SetViewChain'
  ;   K[3]='GM'
  ;   K[4]='UIManager'
  ;   K[5]='OpenView'
  ;   K[6]='UIPrefabConfigName'
  ;   K[7]='PassActivityBuyTicketSuccessWindow3'
  ;   K[8]='m_activityType'
  ;   K[9]='m_payResultCallback'
  ;   K[10]='EBPTicketType'
  ;   K[11]='Up'
  ;   upvals: _ENV
  ;   locals: self(0-22)
  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('SetViewChain')]
  0004  LOADBOOL  R2 = true
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  GETTABUP  R1 = _ENV[K3('GM')]
  0007  GETTABLE  R1 = R1[K4('UIManager')]
  0008  SELF      R2 = R1[K5('OpenView')] (self)
  0009  GETTABUP  R3 = _ENV[K6('UIPrefabConfigName')]
  0010  GETTABLE  R3 = R3[K7('PassActivityBuyTicketSuccessWindow3')]
  0011  GETTABLE  R4 = R0[K8('m_activityType')]
  0012  LOADBOOL  R5 = false
  0013  CALL      R1 = call(R1, 0 args, 4 rets)
  0014  GETTABLE  R1 = R0[K9('m_payResultCallback')]
  0015  TEST      if not R1 then   -> -131055
  0016  JMP       (jump)   -> 21
  0017  GETTABLE  R1 = R0[K9('m_payResultCallback')]
  0018  GETTABUP  R2 = _ENV[K10('EBPTicketType')]
  0019  GETTABLE  R2 = R2[K11('Up')]
  0020  CALL      R1 = call(R1, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto15 [OnTipButtonClicked] ----------
  ; fn ?  line 174-179 np=1 va=0 ms=9 code=15 consts=11 upvals=1 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='ShowBubble'
  ;   K[2]='bRight'
  ;   K[3]=true
  ;   K[4]='pos'
  ;   K[5]='m_tipRect'
  ;   K[6]='position'
  ;   K[7]='Vector3'
  ;   K[8]=150
  ;   K[9]=-30
  ;   K[10]=0
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('ShowBubble')] (self)
  0002  NEWTABLE  R3 = {} (0 items)
  0003  SETTABLE  R3[K2('bRight')] = K3(true)
  0004  GETTABLE  R4 = R0[K5('m_tipRect')]
  0005  GETTABLE  R4 = R4[K6('position')]
  0006  GETTABUP  R5 = _ENV[K7('Vector3')]
  0007  LOADK     R6 = K8 150
  0008  LOADK     R7 = K9 -30
  0009  LOADK     R8 = K10 0
  0010  CALL      R5 = call(R5, 1 args, 3 rets)
  0011  ADD       R4 = R5 add R4
  0012  SETTABLE  R3[K4('pos')] = R4
  0013  CALL      R1 = call(R1, 0 args, 2 rets)
  0014  RETURN    return R0..R-1
; ---------- proto16 [OnMaskClicked] ----------
  ; fn ?  line 181-183 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='HideBubble'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('HideBubble')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto17 [OnCloseBtnClick] ----------
  ; fn ?  line 185-191 np=1 va=0 ms=3 code=13 consts=5 upvals=1 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='HideBubble'
  ;   K[2]='PassActivityBaseWindow'
  ;   K[3]='OnCloseBtnClick'
  ;   K[4]='m_payResultCallback'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('HideBubble')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  GETTABUP  R1 = _ENV[K2('PassActivityBaseWindow')]
  0004  GETTABLE  R1 = R1[K3('OnCloseBtnClick')]
  0005  MOVE      R2 = R0
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  GETTABLE  R1 = R0[K4('m_payResultCallback')]
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 12
  0010  GETTABLE  R1 = R0[K4('m_payResultCallback')]
  0011  CALL      R1 = call(R1, 0 args, 0 rets)
  0012  RETURN    return R0..R-1
; ---------- proto18 [Init] ----------
  ; fn ?  line 202-214 np=3 va=0 ms=8 code=34 consts=14 upvals=1 protos=0
  ;   K[0]='PassActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='CheckValid'
  ;   K[3]='Close'
  ;   K[4]='m_model'
  ;   K[5]='SetBuyTicketPopupWindowOpened'
  ;   K[6]='UpdateContent'
  ;   K[7]='EventDispatcher'
  ;   K[8]='AddListener'
  ;   K[9]='m_activityDefinition'
  ;   K[10]='BuyTicketSuccessEvent'
  ;   K[11]='_OnBuyTicketSuccess'
  ;   K[12]='BuyMaxTicketSuccessEvent'
  ;   K[13]='_OnBuyMaxTicketSuccess'
  ;   upvals: _ENV
  ;   locals: self(0-34), activityType(0-34), ext(0-34)
  0000  GETTABUP  R3 = _ENV[K0('PassActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  LOADBOOL  R6 = false
  0005  MOVE      R7 = R0
  0006  CALL      R3 = call(R3, 0 args, 4 rets)
  0007  SELF      R4 = R0[K2('CheckValid')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  TEST      if not R3 then   -> -131060
  0010  JMP       (jump)   -> 14
  0011  SELF      R4 = R0[K3('Close')] (self)
  0012  CALL      R3 = call(R3, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
  0014  GETTABLE  R3 = R0[K4('m_model')]
  0015  SELF      R4 = R3[K5('SetBuyTicketPopupWindowOpened')] (self)
  0016  CALL      R3 = call(R3, 0 args, 1 rets)
  0017  SELF      R4 = R0[K6('UpdateContent')] (self)
  0018  CALL      R3 = call(R3, 0 args, 1 rets)
  0019  GETTABUP  R3 = _ENV[K7('EventDispatcher')]
  0020  GETTABLE  R3 = R3[K8('AddListener')]
  0021  GETTABLE  R4 = R0[K9('m_activityDefinition')]
  0022  GETTABLE  R4 = R4[K10('BuyTicketSuccessEvent')]
  0023  MOVE      R5 = R0
  0024  GETTABLE  R6 = R0[K11('_OnBuyTicketSuccess')]
  0025  CALL      R3 = call(R3, 0 args, 3 rets)
  0026  GETTABUP  R3 = _ENV[K7('EventDispatcher')]
  0027  GETTABLE  R3 = R3[K8('AddListener')]
  0028  GETTABLE  R4 = R0[K9('m_activityDefinition')]
  0029  GETTABLE  R4 = R4[K12('BuyMaxTicketSuccessEvent')]
  0030  MOVE      R5 = R0
  0031  GETTABLE  R6 = R0[K13('_OnBuyMaxTicketSuccess')]
  0032  CALL      R3 = call(R3, 0 args, 3 rets)
  0033  RETURN    return R0..R-1
; ---------- proto19 [UpdateContent] ----------
  ; fn ?  line 216-228 np=1 va=0 ms=10 code=64 consts=26 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetVipRewards'
  ;   K[2]='m_ticketRewardContent'
  ;   K[3]='Init'
  ;   K[4]='ERewardScene'
  ;   K[5]='Other'
  ;   K[6]='m_maxTicketRewardContent'
  ;   K[7]='GetMaxTicketTokenNumber'
  ;   K[8]='GetMaxTicketTokenAdd'
  ;   K[9]='m_tokenNumText'
  ;   K[10]='text'
  ;   K[11]='x'
  ;   K[12]='tostring'
  ;   K[13]='m_tokenRatioText'
  ;   K[14]='+'
  ;   K[15]='m_tokenRatioDescText'
  ;   K[16]='GM'
  ;   K[17]='GameTextModel'
  ;   K[18]='GetText'
  ;   K[19]='battlepass_svip_token_desc'
  ;   K[20]='m_iapButtonTicket'
  ;   K[21]='InAppPurchaseModel'
  ;   K[22]='GetLocalizedPrice'
  ;   K[23]='GetPassTicketIapType'
  ;   K[24]='m_iapButtonMaxTicket'
  ;   K[25]='GetMaxPassTicektIapType'
  ;   upvals: _ENV
  ;   locals: self(0-64), rewards(3-64), tokenNum(18-64), tokenAdd(21-64)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetVipRewards')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABLE  R2 = R0[K2('m_ticketRewardContent')]
  0004  SELF      R3 = R2[K3('Init')] (self)
  0005  MOVE      R4 = R0
  0006  GETTABUP  R5 = _ENV[K4('ERewardScene')]
  0007  GETTABLE  R5 = R5[K5('Other')]
  0008  CALL      R2 = call(R2, 0 args, 3 rets)
  0009  GETTABLE  R2 = R0[K6('m_maxTicketRewardContent')]
  0010  SELF      R3 = R2[K3('Init')] (self)
  0011  MOVE      R4 = R0
  0012  GETTABUP  R5 = _ENV[K4('ERewardScene')]
  0013  GETTABLE  R5 = R5[K5('Other')]
  0014  CALL      R2 = call(R2, 0 args, 3 rets)
  0015  GETTABLE  R2 = R0[K0('m_model')]
  0016  SELF      R3 = R2[K7('GetMaxTicketTokenNumber')] (self)
  0017  CALL      R2 = call(R2, 1 args, 1 rets)
  0018  GETTABLE  R3 = R0[K0('m_model')]
  0019  SELF      R4 = R3[K8('GetMaxTicketTokenAdd')] (self)
  0020  CALL      R3 = call(R3, 1 args, 1 rets)
  0021  GETTABLE  R4 = R0[K9('m_tokenNumText')]
  0022  LOADK     R5 = K11 'x'
  0023  GETTABUP  R6 = _ENV[K12('tostring')]
  0024  MOVE      R7 = R0
  0025  CALL      R6 = call(R6, 1 args, 1 rets)
  0026  CONCAT    R5 = concat(R5..R5)
  0027  SETTABLE  R4[K10('text')] = R5
  0028  GETTABLE  R4 = R0[K13('m_tokenRatioText')]
  0029  LOADK     R5 = K14 '+'
  0030  GETTABUP  R6 = _ENV[K12('tostring')]
  0031  MOVE      R7 = R0
  0032  CALL      R6 = call(R6, 1 args, 1 rets)
  0033  CONCAT    R5 = concat(R5..R5)
  0034  SETTABLE  R4[K10('text')] = R5
  0035  GETTABLE  R4 = R0[K15('m_tokenRatioDescText')]
  0036  GETTABUP  R5 = _ENV[K16('GM')]
  0037  GETTABLE  R5 = R5[K17('GameTextModel')]
  0038  SELF      R6 = R5[K18('GetText')] (self)
  0039  LOADK     R7 = K19 'battlepass_svip_token_desc'
  0040  MOVE      R8 = R0
  0041  CALL      R5 = call(R5, 1 args, 3 rets)
  0042  SETTABLE  R4[K10('text')] = R5
  0043  GETTABLE  R4 = R0[K20('m_iapButtonTicket')]
  0044  SELF      R5 = R4[K3('Init')] (self)
  0045  GETTABUP  R6 = _ENV[K16('GM')]
  0046  GETTABLE  R6 = R6[K21('InAppPurchaseModel')]
  0047  SELF      R7 = R6[K22('GetLocalizedPrice')] (self)
  0048  GETTABLE  R8 = R0[K0('m_model')]
  0049  SELF      R9 = R8[K23('GetPassTicketIapType')] (self)
  0050  CALL      R8 = call(R8, -1 args, 1 rets)
  0051  CALL      R6 = call(R6, -1 args, -1 rets)
  0052  CALL      R4 = call(R4, 0 args, -1 rets)
  0053  GETTABLE  R4 = R0[K24('m_iapButtonMaxTicket')]
  0054  SELF      R5 = R4[K3('Init')] (self)
  0055  GETTABUP  R6 = _ENV[K16('GM')]
  0056  GETTABLE  R6 = R6[K21('InAppPurchaseModel')]
  0057  SELF      R7 = R6[K22('GetLocalizedPrice')] (self)
  0058  GETTABLE  R8 = R0[K0('m_model')]
  0059  SELF      R9 = R8[K25('GetMaxPassTicektIapType')] (self)
  0060  CALL      R8 = call(R8, -1 args, 1 rets)
  0061  CALL      R6 = call(R6, -1 args, -1 rets)
  0062  CALL      R4 = call(R4, 0 args, -1 rets)
  0063  RETURN    return R0..R-1
; ---------- proto20 [CheckValid] ----------
  ; fn ?  line 231-233 np=1 va=0 ms=3 code=16 consts=5 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='CanBuyMaxTicket'
  ;   K[2]='GetTicketState'
  ;   K[3]='EBPTicketState'
  ;   K[4]='None'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('CanBuyMaxTicket')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 14
  0005  GETTABLE  R1 = R0[K0('m_model')]
  0006  SELF      R2 = R1[K2('GetTicketState')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  GETTABUP  R2 = _ENV[K3('EBPTicketState')]
  0009  GETTABLE  R2 = R2[K4('None')]
  0010  EQ        if R1 eq R2   -> -130546
  0011  JMP       (jump)   -> 13
  0012  LOADBOOL  R1 = false
  0013  LOADBOOL  R1 = true
  0014  RETURN    return R1..R0
  0015  RETURN    return R0..R-1
; ---------- proto21 [OnBuyTicketButtonClicked] ----------
  ; fn ?  line 235-238 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='BuyTicket'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('BuyTicket')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto22 [_OnBuyTicketSuccess] ----------
  ; fn ?  line 240-246 np=1 va=0 ms=5 code=14 consts=9 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='PassActivityViewHelper'
  ;   K[2]='SetViewChain'
  ;   K[3]='GM'
  ;   K[4]='UIManager'
  ;   K[5]='OpenView'
  ;   K[6]='m_activityDefinition'
  ;   K[7]='BuyTicketUnlockedWindowPrefabName'
  ;   K[8]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  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('SetViewChain')]
  0004  LOADBOOL  R2 = true
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  GETTABUP  R1 = _ENV[K3('GM')]
  0007  GETTABLE  R1 = R1[K4('UIManager')]
  0008  SELF      R2 = R1[K5('OpenView')] (self)
  0009  GETTABLE  R3 = R0[K6('m_activityDefinition')]
  0010  GETTABLE  R3 = R3[K7('BuyTicketUnlockedWindowPrefabName')]
  0011  GETTABLE  R4 = R0[K8('m_activityType')]
  0012  CALL      R1 = call(R1, 0 args, 3 rets)
  0013  RETURN    return R0..R-1
; ---------- proto23 [OnBuyMaxTicketButtonClicked] ----------
  ; fn ?  line 248-251 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='BuyMaxTicket'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('BuyMaxTicket')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto24 [_OnBuyMaxTicketSuccess] ----------
  ; fn ?  line 253-259 np=1 va=0 ms=6 code=15 consts=9 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='PassActivityViewHelper'
  ;   K[2]='SetViewChain'
  ;   K[3]='GM'
  ;   K[4]='UIManager'
  ;   K[5]='OpenView'
  ;   K[6]='UIPrefabConfigName'
  ;   K[7]='PassActivityBuyTicketSuccessWindow3'
  ;   K[8]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  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('SetViewChain')]
  0004  LOADBOOL  R2 = true
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  GETTABUP  R1 = _ENV[K3('GM')]
  0007  GETTABLE  R1 = R1[K4('UIManager')]
  0008  SELF      R2 = R1[K5('OpenView')] (self)
  0009  GETTABUP  R3 = _ENV[K6('UIPrefabConfigName')]
  0010  GETTABLE  R3 = R3[K7('PassActivityBuyTicketSuccessWindow3')]
  0011  GETTABLE  R4 = R0[K8('m_activityType')]
  0012  LOADBOOL  R5 = true
  0013  CALL      R1 = call(R1, 0 args, 4 rets)
  0014  RETURN    return R0..R-1
; ---------- proto25 [OnCloseBtnClick] ----------
  ; fn ?  line 261-266 np=1 va=0 ms=3 code=14 consts=8 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Started'
  ;   K[4]='Close'
  ;   K[5]='PassActivityViewHelper'
  ;   K[6]='ContinueViewChain'
  ;   K[7]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetState')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0004  GETTABLE  R2 = R2[K3('Started')]
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 13
  0007  SELF      R2 = R0[K4('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  GETTABUP  R1 = _ENV[K5('PassActivityViewHelper')]
  0010  GETTABLE  R1 = R1[K6('ContinueViewChain')]
  0011  GETTABLE  R2 = R0[K7('m_activityType')]
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
; ---------- proto26 [Init] ----------
  ; fn ?  line 276-280 np=4 va=0 ms=9 code=11 consts=4 upvals=1 protos=0
  ;   K[0]='PassActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_bMaxTicket'
  ;   K[3]='UpdateContent'
  ;   upvals: _ENV
  ;   locals: self(0-11), activityType(0-11), bMaxTicket(0-11), ext(0-11)
  0000  GETTABUP  R4 = _ENV[K0('PassActivityBaseWindow')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  LOADBOOL  R7 = false
  0005  MOVE      R8 = R0
  0006  CALL      R4 = call(R4, 0 args, 4 rets)
  0007  SETTABLE  R0[K2('m_bMaxTicket')] = R2
  0008  SELF      R5 = R0[K3('UpdateContent')] (self)
  0009  CALL      R4 = call(R4, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto27 [UpdateContent] ----------
  ; fn ?  line 282-293 np=1 va=0 ms=8 code=50 consts=22 upvals=1 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]='GetAllExtraRewards'
  ;   K[4]='GetSortingOrder'
  ;   K[5]=8
  ;   K[6]='m_energyNumberText'
  ;   K[7]=nil
  ;   K[8]='text'
  ;   K[9]='x'
  ;   K[10]='tostring'
  ;   K[11]='GetHighlightEnergyRewardCount'
  ;   K[12]='GetMaxTicketTokenNumber'
  ;   K[13]='GetMaxTicketTokenAdd'
  ;   K[14]='m_tokenNumText'
  ;   K[15]='m_tokenRatioText'
  ;   K[16]='+'
  ;   K[17]='m_tokenRatioDescText'
  ;   K[18]='GM'
  ;   K[19]='GameTextModel'
  ;   K[20]='GetText'
  ;   K[21]='battlepass_svip_token_desc'
  ;   upvals: _ENV
  ;   locals: self(0-50), tokenNum(24-50), tokenAdd(27-50)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('Init')] (self)
  0002  GETTABLE  R3 = R0[K2('m_model')]
  0003  SELF      R4 = R3[K3('GetAllExtraRewards')] (self)
  0004  CALL      R3 = call(R3, 1 args, 1 rets)
  0005  SELF      R5 = R0[K4('GetSortingOrder')] (self)
  0006  CALL      R4 = call(R4, 1 args, 1 rets)
  0007  ADD       R4 = K5(8) add R4
  0008  CALL      R1 = call(R1, 0 args, 3 rets)
  0009  GETTABLE  R1 = R0[K6('m_energyNumberText')]
  0010  EQ        if R1 eq K7(nil)   -> -130285
  0011  JMP       (jump)   -> 21
  0012  GETTABLE  R1 = R0[K6('m_energyNumberText')]
  0013  LOADK     R2 = K9 'x'
  0014  GETTABUP  R3 = _ENV[K10('tostring')]
  0015  GETTABLE  R4 = R0[K2('m_model')]
  0016  SELF      R5 = R4[K11('GetHighlightEnergyRewardCount')] (self)
  0017  CALL      R4 = call(R4, -1 args, 1 rets)
  0018  CALL      R3 = call(R3, 1 args, -1 rets)
  0019  CONCAT    R2 = concat(R2..R2)
  0020  SETTABLE  R1[K8('text')] = R2
  0021  GETTABLE  R1 = R0[K2('m_model')]
  0022  SELF      R2 = R1[K12('GetMaxTicketTokenNumber')] (self)
  0023  CALL      R1 = call(R1, 1 args, 1 rets)
  0024  GETTABLE  R2 = R0[K2('m_model')]
  0025  SELF      R3 = R2[K13('GetMaxTicketTokenAdd')] (self)
  0026  CALL      R2 = call(R2, 1 args, 1 rets)
  0027  GETTABLE  R3 = R0[K14('m_tokenNumText')]
  0028  LOADK     R4 = K9 'x'
  0029  GETTABUP  R5 = _ENV[K10('tostring')]
  0030  MOVE      R6 = R0
  0031  CALL      R5 = call(R5, 1 args, 1 rets)
  0032  CONCAT    R4 = concat(R4..R4)
  0033  SETTABLE  R3[K8('text')] = R4
  0034  GETTABLE  R3 = R0[K15('m_tokenRatioText')]
  0035  LOADK     R4 = K16 '+'
  0036  GETTABUP  R5 = _ENV[K10('tostring')]
  0037  MOVE      R6 = R0
  0038  CALL      R5 = call(R5, 1 args, 1 rets)
  0039  CONCAT    R4 = concat(R4..R4)
  0040  SETTABLE  R3[K8('text')] = R4
  0041  GETTABLE  R3 = R0[K17('m_tokenRatioDescText')]
  0042  GETTABUP  R4 = _ENV[K18('GM')]
  0043  GETTABLE  R4 = R4[K19('GameTextModel')]
  0044  SELF      R5 = R4[K20('GetText')] (self)
  0045  LOADK     R6 = K21 'battlepass_svip_token_desc'
  0046  MOVE      R7 = R0
  0047  CALL      R4 = call(R4, 1 args, 3 rets)
  0048  SETTABLE  R3[K8('text')] = R4
  0049  RETURN    return R0..R-1
; ---------- proto28 [OnTipButtonClicked] ----------
  ; fn ?  line 296-301 np=1 va=0 ms=9 code=15 consts=11 upvals=1 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='ShowBubble'
  ;   K[2]='bRight'
  ;   K[3]=true
  ;   K[4]='pos'
  ;   K[5]='m_tipRect'
  ;   K[6]='position'
  ;   K[7]='Vector3'
  ;   K[8]=150
  ;   K[9]=-30
  ;   K[10]=0
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('ShowBubble')] (self)
  0002  NEWTABLE  R3 = {} (0 items)
  0003  SETTABLE  R3[K2('bRight')] = K3(true)
  0004  GETTABLE  R4 = R0[K5('m_tipRect')]
  0005  GETTABLE  R4 = R4[K6('position')]
  0006  GETTABUP  R5 = _ENV[K7('Vector3')]
  0007  LOADK     R6 = K8 150
  0008  LOADK     R7 = K9 -30
  0009  LOADK     R8 = K10 0
  0010  CALL      R5 = call(R5, 1 args, 3 rets)
  0011  ADD       R4 = R5 add R4
  0012  SETTABLE  R3[K4('pos')] = R4
  0013  CALL      R1 = call(R1, 0 args, 2 rets)
  0014  RETURN    return R0..R-1
; ---------- proto29 [OnMaskClicked] ----------
  ; fn ?  line 303-305 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_rewardBubble'
  ;   K[1]='HideBubble'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('HideBubble')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto30 [OnCloseBtnClick] ----------
  ; fn ?  line 307-326 np=1 va=0 ms=12 code=71 consts=31 upvals=1 protos=1
  ;   K[0]='m_rewardBubble'
  ;   K[1]='HideBubble'
  ;   K[2]='PassActivityBaseWindow'
  ;   K[3]='OnCloseBtnClick'
  ;   K[4]='m_model'
  ;   K[5]='GetMaxTicketTokenNumber'
  ;   K[6]='GM'
  ;   K[7]='UIManager'
  ;   K[8]='IsViewOpen'
  ;   K[9]='m_activityDefinition'
  ;   K[10]='MainWindowPrefabName'
  ;   K[11]='OpenView'
  ;   K[12]='m_activityType'
  ;   K[13]='math'
  ;   K[14]='max'
  ;   K[15]=0
  ;   K[16]='GetTokenNumber'
  ;   K[17]='m_bMaxTicket'
  ;   K[18]='HasTakenVIPExtraEnergy'
  ;   K[19]='OnTakenVIPExtraEnergyInView'
  ;   K[20]='GetVIPExtraEnergyRewards'
  ;   K[21]='UIPrefabConfigName'
  ;   K[22]='AnimatedRewardWindow'
  ;   K[23]='ERewardScene'
  ;   K[24]='Other'
  ;   K[25]='GM'
  ;   K[26]='UIManager'
  ;   K[27]='OpenView'
  ;   K[28]='m_activityDefinition'
  ;   K[29]='TokenWindowPrefabName'
  ;   K[30]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-71), tokenCount(10-71), rewards(48-61)
  0000  GETTABLE  R1 = R0[K0('m_rewardBubble')]
  0001  SELF      R2 = R1[K1('HideBubble')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  GETTABUP  R1 = _ENV[K2('PassActivityBaseWindow')]
  0004  GETTABLE  R1 = R1[K3('OnCloseBtnClick')]
  0005  MOVE      R2 = R0
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  GETTABLE  R1 = R0[K4('m_model')]
  0008  SELF      R2 = R1[K5('GetMaxTicketTokenNumber')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  GETTABUP  R2 = _ENV[K6('GM')]
  0011  GETTABLE  R2 = R2[K7('UIManager')]
  0012  SELF      R3 = R2[K8('IsViewOpen')] (self)
  0013  GETTABLE  R4 = R0[K9('m_activityDefinition')]
  0014  GETTABLE  R4 = R4[K10('MainWindowPrefabName')]
  0015  CALL      R2 = call(R2, 1 args, 2 rets)
  0016  TEST      if not R2 then   -> -131053
  0017  JMP       (jump)   -> 34
  0018  GETTABUP  R2 = _ENV[K6('GM')]
  0019  GETTABLE  R2 = R2[K7('UIManager')]
  0020  SELF      R3 = R2[K11('OpenView')] (self)
  0021  GETTABLE  R4 = R0[K9('m_activityDefinition')]
  0022  GETTABLE  R4 = R4[K10('MainWindowPrefabName')]
  0023  GETTABLE  R5 = R0[K12('m_activityType')]
  0024  GETTABUP  R6 = _ENV[K13('math')]
  0025  GETTABLE  R6 = R6[K14('max')]
  0026  LOADK     R7 = K15 0
  0027  GETTABLE  R8 = R0[K4('m_model')]
  0028  SELF      R9 = R8[K16('GetTokenNumber')] (self)
  0029  CALL      R8 = call(R8, 1 args, 1 rets)
  0030  SUB       R8 = R1 sub R8
  0031  CALL      R6 = call(R6, 1 args, 2 rets)
  0032  LOADBOOL  R7 = true
  0033  CALL      R2 = call(R2, 0 args, 5 rets)
  0034  GETTABLE  R2 = R0[K17('m_bMaxTicket')]
  0035  TEST      if not R2 then   -> -131035
  0036  JMP       (jump)   -> 62
  0037  GETTABLE  R2 = R0[K4('m_model')]
  0038  SELF      R3 = R2[K18('HasTakenVIPExtraEnergy')] (self)
  0039  CALL      R2 = call(R2, 1 args, 1 rets)
  0040  TEST      if not R2 then   -> -131030
  0041  JMP       (jump)   -> 62
  0042  GETTABLE  R2 = R0[K4('m_model')]
  0043  SELF      R3 = R2[K19('OnTakenVIPExtraEnergyInView')] (self)
  0044  CALL      R2 = call(R2, 0 args, 1 rets)
  0045  GETTABLE  R2 = R0[K4('m_model')]
  0046  SELF      R3 = R2[K20('GetVIPExtraEnergyRewards')] (self)
  0047  CALL      R2 = call(R2, 1 args, 1 rets)
  0048  GETTABUP  R3 = _ENV[K6('GM')]
  0049  GETTABLE  R3 = R3[K7('UIManager')]
  0050  SELF      R4 = R3[K11('OpenView')] (self)
  0051  GETTABUP  R5 = _ENV[K21('UIPrefabConfigName')]
  0052  GETTABLE  R5 = R5[K22('AnimatedRewardWindow')]
  0053  MOVE      R6 = R0
  0054  LOADNIL   R7..R7 = nil
  0055  LOADBOOL  R8 = true
  0056  GETTABUP  R9 = _ENV[K23('ERewardScene')]
  0057  GETTABLE  R9 = R9[K24('Other')]
  0058  LOADNIL   R10..R10 = nil
  0059  CLOSURE   R11 = closure proto0
  0060  CALL      R3 = call(R3, 0 args, 8 rets)
  0061  JMP       (jump)   -> 70
  0062  GETTABUP  R2 = _ENV[K25('GM')]
  0063  GETTABLE  R2 = R2[K26('UIManager')]
  0064  SELF      R3 = R2[K27('OpenView')] (self)
  0065  GETTABLE  R4 = R0[K28('m_activityDefinition')]
  0066  GETTABLE  R4 = R4[K29('TokenWindowPrefabName')]
  0067  GETTABLE  R5 = R0[K30('m_activityType')]
  0068  MOVE      R6 = R0
  0069  CALL      R2 = call(R2, 0 args, 4 rets)
  0070  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 320-322 np=0 va=0 ms=5 code=9 consts=6 upvals=3 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='OpenView'
    ;   K[3]='m_activityDefinition'
    ;   K[4]='TokenWindowPrefabName'
    ;   K[5]='m_activityType'
    ;   upvals: _ENV, self, tokenCount
    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_activityDefinition')]
    0004  GETTABLE  R2 = R2[K4('TokenWindowPrefabName')]
    0005  GETTABUP  R3 = self[K5('m_activityType')]
    0006  GETUPVAL  R4 = _ENV
    0007  CALL      R0 = call(R0, 0 args, 4 rets)
    0008  RETURN    return R0..R-1
