# UI_Window_Shop_BuyEnergyBottomAd_495.luac
; fn @BuyEnergyBottomAd.lua  line 0-0 np=0 va=1 ms=2 code=33 consts=11 upvals=1 protos=9
;   K[0]='BuyEnergyBottomAd'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='ShowVIPGoAndSVIPGo'
;   K[4]='OnDestroy'
;   K[5]='OnClickBtnBuyBpVIP'
;   K[6]='OnClickBtnBuyBpSVIP'
;   K[7]='LoopBPActivity'
;   K[8]='OpenBPBuyTicketWindow'
;   K[9]='ShowHide'
;   K[10]='ClosedByBpAd'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('BuyEnergyBottomAd')] = R0
0002  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0003  GETTABUP  R1 = _ENV[K0('BuyEnergyBottomAd')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('ShowVIPGoAndSVIPGo')] = R1
0011  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('OnClickBtnBuyBpVIP')] = R1
0017  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('OnClickBtnBuyBpSVIP')] = R1
0020  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('LoopBPActivity')] = R1
0023  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('OpenBPBuyTicketWindow')] = R1
0026  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('ShowHide')] = R1
0029  GETTABUP  R0 = _ENV[K0('BuyEnergyBottomAd')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K10('ClosedByBpAd')] = R1
0032  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-38 np=1 va=0 ms=7 code=109 consts=39 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetOneActivityModel'
  ;   K[3]='ActivityModelType'
  ;   K[4]='Pass'
  ;   K[5]='ActivityState'
  ;   K[6]='Started'
  ;   K[7]=nil
  ;   K[8]='ConfigModel'
  ;   K[9]='IsServerControlOpen'
  ;   K[10]='EGeneralConfType'
  ;   K[11]='BattlePassAd'
  ;   K[12]='GetTicketState'
  ;   K[13]='EBPTicketState'
  ;   K[14]='Purchase'
  ;   K[15]='UIUtil'
  ;   K[16]='SetActive'
  ;   K[17]='gameObject'
  ;   K[18]='None'
  ;   K[19]='ShowVIPGoAndSVIPGo'
  ;   K[20]='m_energyNumText'
  ;   K[21]='text'
  ;   K[22]='X'
  ;   K[23]='tostring'
  ;   K[24]='GetHighlightEnergyRewardCount'
  ;   K[25]='m_passTicketName'
  ;   K[26]='GetPassTicketIapType'
  ;   K[27]='m_maxPassTicketName'
  ;   K[28]='GetMaxPassTicektIapType'
  ;   K[29]='CanBuyMaxTicket'
  ;   K[30]='m_payOption'
  ;   K[31]=', '
  ;   K[32]='Upgrade'
  ;   K[33]='GetMaxTicketTokenNumber'
  ;   K[34]='m_tokenNumText'
  ;   K[35]='m_upPassTicketName'
  ;   K[36]='GetUpPassTicketIapType'
  ;   K[37]='DelayExecuteFuncInView'
  ;   K[38]=0.2
  ;   upvals: _ENV
  ;   locals: self(0-109), passModel(8-109), tokenNum(88-100)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ActivityManager')]
  0002  SELF      R2 = R1[K2('GetOneActivityModel')] (self)
  0003  GETTABUP  R3 = _ENV[K3('ActivityModelType')]
  0004  GETTABLE  R3 = R3[K4('Pass')]
  0005  GETTABUP  R4 = _ENV[K5('ActivityState')]
  0006  GETTABLE  R4 = R4[K6('Started')]
  0007  CALL      R1 = call(R1, 1 args, 3 rets)
  0008  EQ        if R1 eq K7(nil)   -> -130287
  0009  JMP       (jump)   -> 24
  0010  GETTABUP  R2 = _ENV[K0('GM')]
  0011  GETTABLE  R2 = R2[K8('ConfigModel')]
  0012  SELF      R3 = R2[K9('IsServerControlOpen')] (self)
  0013  GETTABUP  R4 = _ENV[K10('EGeneralConfType')]
  0014  GETTABLE  R4 = R4[K11('BattlePassAd')]
  0015  CALL      R2 = call(R2, 1 args, 2 rets)
  0016  TEST      if not R2 then   -> -131054
  0017  JMP       (jump)   -> 24
  0018  SELF      R3 = R1[K12('GetTicketState')] (self)
  0019  CALL      R2 = call(R2, 1 args, 1 rets)
  0020  GETTABUP  R3 = _ENV[K13('EBPTicketState')]
  0021  GETTABLE  R3 = R3[K14('Purchase')]
  0022  EQ        if R0 eq R3   -> -130021
  0023  JMP       (jump)   -> 30
  0024  GETTABUP  R2 = _ENV[K15('UIUtil')]
  0025  GETTABLE  R2 = R2[K16('SetActive')]
  0026  GETTABLE  R3 = R0[K17('gameObject')]
  0027  LOADBOOL  R4 = false
  0028  CALL      R2 = call(R2, 0 args, 2 rets)
  0029  RETURN    return R0..R-1
  0030  GETTABUP  R2 = _ENV[K15('UIUtil')]
  0031  GETTABLE  R2 = R2[K16('SetActive')]
  0032  GETTABLE  R3 = R0[K17('gameObject')]
  0033  LOADBOOL  R4 = true
  0034  CALL      R2 = call(R2, 0 args, 2 rets)
  0035  SELF      R3 = R1[K12('GetTicketState')] (self)
  0036  CALL      R2 = call(R2, 1 args, 1 rets)
  0037  GETTABUP  R3 = _ENV[K13('EBPTicketState')]
  0038  GETTABLE  R3 = R3[K18('None')]
  0039  EQ        if R0 eq R3   -> -130004
  0040  JMP       (jump)   -> 72
  0041  SELF      R3 = R0[K19('ShowVIPGoAndSVIPGo')] (self)
  0042  LOADBOOL  R4 = true
  0043  LOADBOOL  R5 = false
  0044  CALL      R2 = call(R2, 0 args, 3 rets)
  0045  GETTABLE  R2 = R0[K20('m_energyNumText')]
  0046  LOADK     R3 = K22 'X'
  0047  GETTABUP  R4 = _ENV[K23('tostring')]
  0048  SELF      R6 = R1[K24('GetHighlightEnergyRewardCount')] (self)
  0049  CALL      R5 = call(R5, -1 args, 1 rets)
  0050  CALL      R4 = call(R4, 1 args, -1 rets)
  0051  CONCAT    R3 = concat(R3..R3)
  0052  SETTABLE  R2[K21('text')] = R3
  0053  SELF      R3 = R1[K26('GetPassTicketIapType')] (self)
  0054  CALL      R2 = call(R2, 1 args, 1 rets)
  0055  SETTABLE  R0[K25('m_passTicketName')] = R2
  0056  SELF      R3 = R1[K28('GetMaxPassTicektIapType')] (self)
  0057  CALL      R2 = call(R2, 1 args, 1 rets)
  0058  SETTABLE  R0[K27('m_maxPassTicketName')] = R2
  0059  SELF      R3 = R1[K29('CanBuyMaxTicket')] (self)
  0060  CALL      R2 = call(R2, 1 args, 1 rets)
  0061  TEST      if not R2 then   -> -131009
  0062  JMP       (jump)   -> 69
  0063  GETTABLE  R2 = R0[K25('m_passTicketName')]
  0064  LOADK     R3 = K31 ', '
  0065  GETTABLE  R4 = R0[K27('m_maxPassTicketName')]
  0066  CONCAT    R2 = concat(R2..R2)
  0067  SETTABLE  R0[K30('m_payOption')] = R2
  0068  JMP       (jump)   -> 100
  0069  GETTABLE  R2 = R0[K25('m_passTicketName')]
  0070  SETTABLE  R0[K30('m_payOption')] = R2
  0071  JMP       (jump)   -> 100
  0072  SELF      R3 = R1[K12('GetTicketState')] (self)
  0073  CALL      R2 = call(R2, 1 args, 1 rets)
  0074  GETTABUP  R3 = _ENV[K13('EBPTicketState')]
  0075  GETTABLE  R3 = R3[K32('Upgrade')]
  0076  EQ        if R0 eq R3   -> -129967
  0077  JMP       (jump)   -> 100
  0078  SELF      R3 = R1[K29('CanBuyMaxTicket')] (self)
  0079  CALL      R2 = call(R2, 1 args, 1 rets)
  0080  TEST      if not R2 then   -> -130990
  0081  JMP       (jump)   -> 100
  0082  SELF      R3 = R0[K19('ShowVIPGoAndSVIPGo')] (self)
  0083  LOADBOOL  R4 = false
  0084  LOADBOOL  R5 = true
  0085  CALL      R2 = call(R2, 0 args, 3 rets)
  0086  SELF      R3 = R1[K33('GetMaxTicketTokenNumber')] (self)
  0087  CALL      R2 = call(R2, 1 args, 1 rets)
  0088  GETTABLE  R3 = R0[K34('m_tokenNumText')]
  0089  LOADK     R4 = K22 'X'
  0090  GETTABUP  R5 = _ENV[K23('tostring')]
  0091  MOVE      R6 = R0
  0092  CALL      R5 = call(R5, 1 args, 1 rets)
  0093  CONCAT    R4 = concat(R4..R4)
  0094  SETTABLE  R3[K21('text')] = R4
  0095  SELF      R4 = R1[K36('GetUpPassTicketIapType')] (self)
  0096  CALL      R3 = call(R3, 1 args, 1 rets)
  0097  SETTABLE  R0[K35('m_upPassTicketName')] = R3
  0098  GETTABLE  R3 = R0[K35('m_upPassTicketName')]
  0099  SETTABLE  R0[K30('m_payOption')] = R3
  0100  GETTABUP  R2 = _ENV[K37('DelayExecuteFuncInView')]
  0101  CLOSURE   R3 = closure proto0
  0102  LOADK     R4 = K38 0.2
  0103  MOVE      R5 = R0
  0104  LOADBOOL  R6 = true
  0105  CALL      R2 = call(R2, 0 args, 4 rets)
  0106  GETTABLE  R2 = R0[K30('m_payOption')]
  0107  RETURN    return R2..R1
  0108  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 33-35 np=0 va=0 ms=3 code=5 consts=3 upvals=1 protos=0
    ;   K[0]='m_animator'
    ;   K[1]='SetTrigger'
    ;   K[2]='Appear'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_animator')]
    0001  SELF      R1 = R0[K1('SetTrigger')] (self)
    0002  LOADK     R2 = K2 'Appear'
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
; ---------- proto1 [ShowVIPGoAndSVIPGo] ----------
  ; fn ?  line 40-43 np=3 va=0 ms=6 code=11 consts=4 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_VIPGo'
  ;   K[3]='m_SVIPGo'
  ;   upvals: _ENV
  ;   locals: self(0-11), bVIPShow(0-11), bSVIPShow(0-11)
  0000  GETTABUP  R3 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R3 = R3[K1('SetActive')]
  0002  GETTABLE  R4 = R0[K2('m_VIPGo')]
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 0 args, 2 rets)
  0005  GETTABUP  R3 = _ENV[K0('UIUtil')]
  0006  GETTABLE  R3 = R3[K1('SetActive')]
  0007  GETTABLE  R4 = R0[K3('m_SVIPGo')]
  0008  MOVE      R5 = R0
  0009  CALL      R3 = call(R3, 0 args, 2 rets)
  0010  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 45-48 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='Scheduler'
  ;   K[1]='UnscheduleTarget'
  ;   K[2]='EventDispatcher'
  ;   K[3]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('Scheduler')]
  0001  GETTABLE  R1 = R1[K1('UnscheduleTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('RemoveTarget')]
  0006  MOVE      R2 = R0
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto3 [OnClickBtnBuyBpVIP] ----------
  ; fn ?  line 50-74 np=1 va=0 ms=5 code=18 consts=12 upvals=1 protos=1
  ;   K[0]='m_bClickBtn'
  ;   K[1]=true
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='CloseView'
  ;   K[5]='UIPrefabConfigName'
  ;   K[6]='BuyEnergyWindow'
  ;   K[7]='LoopBPActivity'
  ;   K[8]='GM'
  ;   K[9]='UIManager'
  ;   K[10]='ShowPromptWithKey'
  ;   K[11]='bundle_ad_nobp'
  ;   upvals: _ENV
  ;   locals: self(0-18), found(10-18)
  0000  SETTABLE  R0[K0('m_bClickBtn')] = K1(true)
  0001  GETTABUP  R1 = _ENV[K2('GM')]
  0002  GETTABLE  R1 = R1[K3('UIManager')]
  0003  SELF      R2 = R1[K4('CloseView')] (self)
  0004  GETTABUP  R3 = _ENV[K5('UIPrefabConfigName')]
  0005  GETTABLE  R3 = R3[K6('BuyEnergyWindow')]
  0006  CALL      R1 = call(R1, 0 args, 2 rets)
  0007  SELF      R2 = R0[K7('LoopBPActivity')] (self)
  0008  CLOSURE   R3 = closure proto0
  0009  CALL      R1 = call(R1, 1 args, 2 rets)
  0010  TEST      if not R1 then   -> -131059
  0011  JMP       (jump)   -> 17
  0012  GETTABUP  R2 = _ENV[K8('GM')]
  0013  GETTABLE  R2 = R2[K9('UIManager')]
  0014  SELF      R3 = R2[K10('ShowPromptWithKey')] (self)
  0015  LOADK     R4 = K11 'bundle_ad_nobp'
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 54-69 np=4 va=0 ms=8 code=55 consts=14 upvals=2 protos=0
    ;   K[0]='ActivityState'
    ;   K[1]='Started'
    ;   K[2]='GetTicketState'
    ;   K[3]='EBPTicketState'
    ;   K[4]='None'
    ;   K[5]='HasWindowOpenedOnce'
    ;   K[6]='OpenBPBuyTicketWindow'
    ;   K[7]='GM'
    ;   K[8]='UIManager'
    ;   K[9]='OpenView'
    ;   K[10]='ReadyWindowPrefabName'
    ;   K[11]='Ended'
    ;   K[12]='CanOpenBuyTicketPopupWindow'
    ;   K[13]='BuyTicketPopupWindowPrefabName'
    ;   upvals: _ENV, self
    ;   locals: activityType(0-55), activityDefinition(0-55), passModel(0-55), passActivityState(0-55)
    0000  GETTABUP  R4 = _ENV[K0('ActivityState')]
    0001  GETTABLE  R4 = R4[K1('Started')]
    0002  EQ        if R0 eq R4   -> -129528
    0003  JMP       (jump)   -> 30
    0004  SELF      R5 = R2[K2('GetTicketState')] (self)
    0005  CALL      R4 = call(R4, 1 args, 1 rets)
    0006  GETTABUP  R5 = _ENV[K3('EBPTicketState')]
    0007  GETTABLE  R5 = R5[K4('None')]
    0008  EQ        if R0 eq R5   -> -129009
    0009  JMP       (jump)   -> 30
    0010  SELF      R5 = R2[K5('HasWindowOpenedOnce')] (self)
    0011  GETTABUP  R6 = _ENV[K0('ActivityState')]
    0012  GETTABLE  R6 = R6[K1('Started')]
    0013  CALL      R4 = call(R4, 1 args, 2 rets)
    0014  TEST      if not R4 then   -> -131056
    0015  JMP       (jump)   -> 21
    0016  GETUPVAL  R4 = _ENV
    0017  SELF      R5 = R4[K6('OpenBPBuyTicketWindow')] (self)
    0018  MOVE      R6 = R0
    0019  CALL      R4 = call(R4, 0 args, 2 rets)
    0020  JMP       (jump)   -> 27
    0021  GETTABUP  R4 = _ENV[K7('GM')]
    0022  GETTABLE  R4 = R4[K8('UIManager')]
    0023  SELF      R5 = R4[K9('OpenView')] (self)
    0024  GETTABLE  R6 = R1[K10('ReadyWindowPrefabName')]
    0025  MOVE      R7 = R0
    0026  CALL      R4 = call(R4, 0 args, 3 rets)
    0027  LOADBOOL  R4 = true
    0028  RETURN    return R4..R3
    0029  JMP       (jump)   -> 52
    0030  GETTABUP  R4 = _ENV[K0('ActivityState')]
    0031  GETTABLE  R4 = R4[K11('Ended')]
    0032  EQ        if R0 eq R4   -> -129498
    0033  JMP       (jump)   -> 52
    0034  SELF      R5 = R2[K12('CanOpenBuyTicketPopupWindow')] (self)
    0035  CALL      R4 = call(R4, 1 args, 1 rets)
    0036  TEST      if not R4 then   -> -131034
    0037  JMP       (jump)   -> 52
    0038  SELF      R5 = R2[K5('HasWindowOpenedOnce')] (self)
    0039  GETTABUP  R6 = _ENV[K0('ActivityState')]
    0040  GETTABLE  R6 = R6[K1('Started')]
    0041  CALL      R4 = call(R4, 1 args, 2 rets)
    0042  TEST      if not R4 then   -> -131028
    0043  JMP       (jump)   -> 52
    0044  GETTABUP  R4 = _ENV[K7('GM')]
    0045  GETTABLE  R4 = R4[K8('UIManager')]
    0046  SELF      R5 = R4[K9('OpenView')] (self)
    0047  GETTABLE  R6 = R1[K13('BuyTicketPopupWindowPrefabName')]
    0048  MOVE      R7 = R0
    0049  CALL      R4 = call(R4, 0 args, 3 rets)
    0050  LOADBOOL  R4 = true
    0051  RETURN    return R4..R3
    0052  LOADBOOL  R4 = false
    0053  RETURN    return R4..R3
    0054  RETURN    return R0..R-1
; ---------- proto4 [OnClickBtnBuyBpSVIP] ----------
  ; fn ?  line 77-102 np=1 va=0 ms=5 code=18 consts=12 upvals=1 protos=1
  ;   K[0]='m_bClickBtn'
  ;   K[1]=true
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='CloseView'
  ;   K[5]='UIPrefabConfigName'
  ;   K[6]='BuyEnergyWindow'
  ;   K[7]='LoopBPActivity'
  ;   K[8]='GM'
  ;   K[9]='UIManager'
  ;   K[10]='ShowPromptWithKey'
  ;   K[11]='bundle_ad_nobp'
  ;   upvals: _ENV
  ;   locals: self(0-18), found(10-18)
  0000  SETTABLE  R0[K0('m_bClickBtn')] = K1(true)
  0001  GETTABUP  R1 = _ENV[K2('GM')]
  0002  GETTABLE  R1 = R1[K3('UIManager')]
  0003  SELF      R2 = R1[K4('CloseView')] (self)
  0004  GETTABUP  R3 = _ENV[K5('UIPrefabConfigName')]
  0005  GETTABLE  R3 = R3[K6('BuyEnergyWindow')]
  0006  CALL      R1 = call(R1, 0 args, 2 rets)
  0007  SELF      R2 = R0[K7('LoopBPActivity')] (self)
  0008  CLOSURE   R3 = closure proto0
  0009  CALL      R1 = call(R1, 1 args, 2 rets)
  0010  TEST      if not R1 then   -> -131059
  0011  JMP       (jump)   -> 17
  0012  GETTABUP  R2 = _ENV[K8('GM')]
  0013  GETTABLE  R2 = R2[K9('UIManager')]
  0014  SELF      R3 = R2[K10('ShowPromptWithKey')] (self)
  0015  LOADK     R4 = K11 'bundle_ad_nobp'
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 81-97 np=4 va=0 ms=8 code=61 consts=14 upvals=2 protos=0
    ;   K[0]='ActivityState'
    ;   K[1]='Started'
    ;   K[2]='HasWindowOpenedOnce'
    ;   K[3]='GetTicketState'
    ;   K[4]='EBPTicketState'
    ;   K[5]='Upgrade'
    ;   K[6]='CanBuyMaxTicket'
    ;   K[7]='OpenBPBuyTicketWindow'
    ;   K[8]='GM'
    ;   K[9]='UIManager'
    ;   K[10]='OpenView'
    ;   K[11]='ReadyWindowPrefabName'
    ;   K[12]='Ended'
    ;   K[13]='EndWindowPrefabName'
    ;   upvals: _ENV, self
    ;   locals: activityType(0-61), activityDefinition(0-61), passModel(0-61), passActivityState(0-61)
    0000  GETTABUP  R4 = _ENV[K0('ActivityState')]
    0001  GETTABLE  R4 = R4[K1('Started')]
    0002  EQ        if R0 eq R4   -> -129528
    0003  JMP       (jump)   -> 34
    0004  SELF      R5 = R2[K2('HasWindowOpenedOnce')] (self)
    0005  GETTABUP  R6 = _ENV[K0('ActivityState')]
    0006  GETTABLE  R6 = R6[K1('Started')]
    0007  CALL      R4 = call(R4, 1 args, 2 rets)
    0008  TEST      if not R4 then   -> -131062
    0009  JMP       (jump)   -> 25
    0010  SELF      R5 = R2[K3('GetTicketState')] (self)
    0011  CALL      R4 = call(R4, 1 args, 1 rets)
    0012  GETTABUP  R5 = _ENV[K4('EBPTicketState')]
    0013  GETTABLE  R5 = R5[K5('Upgrade')]
    0014  EQ        if R0 eq R5   -> -129003
    0015  JMP       (jump)   -> 25
    0016  SELF      R5 = R2[K6('CanBuyMaxTicket')] (self)
    0017  CALL      R4 = call(R4, 1 args, 1 rets)
    0018  TEST      if not R4 then   -> -131052
    0019  JMP       (jump)   -> 25
    0020  GETUPVAL  R4 = _ENV
    0021  SELF      R5 = R4[K7('OpenBPBuyTicketWindow')] (self)
    0022  MOVE      R6 = R0
    0023  CALL      R4 = call(R4, 0 args, 2 rets)
    0024  JMP       (jump)   -> 31
    0025  GETTABUP  R4 = _ENV[K8('GM')]
    0026  GETTABLE  R4 = R4[K9('UIManager')]
    0027  SELF      R5 = R4[K10('OpenView')] (self)
    0028  GETTABLE  R6 = R1[K11('ReadyWindowPrefabName')]
    0029  MOVE      R7 = R0
    0030  CALL      R4 = call(R4, 0 args, 3 rets)
    0031  LOADBOOL  R4 = true
    0032  RETURN    return R4..R3
    0033  JMP       (jump)   -> 58
    0034  GETTABUP  R4 = _ENV[K0('ActivityState')]
    0035  GETTABLE  R4 = R4[K12('Ended')]
    0036  EQ        if R0 eq R4   -> -129494
    0037  JMP       (jump)   -> 58
    0038  SELF      R5 = R2[K2('HasWindowOpenedOnce')] (self)
    0039  GETTABUP  R6 = _ENV[K0('ActivityState')]
    0040  GETTABLE  R6 = R6[K12('Ended')]
    0041  CALL      R4 = call(R4, 1 args, 2 rets)
    0042  TEST      if not R4 then   -> -131027
    0043  JMP       (jump)   -> 58
    0044  SELF      R5 = R2[K2('HasWindowOpenedOnce')] (self)
    0045  GETTABUP  R6 = _ENV[K0('ActivityState')]
    0046  GETTABLE  R6 = R6[K1('Started')]
    0047  CALL      R4 = call(R4, 1 args, 2 rets)
    0048  TEST      if not R4 then   -> -131022
    0049  JMP       (jump)   -> 58
    0050  GETTABUP  R4 = _ENV[K8('GM')]
    0051  GETTABLE  R4 = R4[K9('UIManager')]
    0052  SELF      R5 = R4[K10('OpenView')] (self)
    0053  GETTABLE  R6 = R1[K13('EndWindowPrefabName')]
    0054  MOVE      R7 = R0
    0055  CALL      R4 = call(R4, 0 args, 3 rets)
    0056  LOADBOOL  R4 = true
    0057  RETURN    return R4..R3
    0058  LOADBOOL  R4 = false
    0059  RETURN    return R4..R3
    0060  RETURN    return R0..R-1
; ---------- proto5 [LoopBPActivity] ----------
  ; fn ?  line 105-122 np=2 va=0 ms=16 code=37 consts=8 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetSortedValidActivities'
  ;   K[3]='PassActivityDefinition'
  ;   K[4]='ipairs'
  ;   K[5]='GetModel'
  ;   K[6]=nil
  ;   K[7]='GetState'
  ;   upvals: _ENV
  ;   locals: self(0-37), callback(0-37), arrPassType(5-37), (for generator)(8-34), (for state)(8-34), (for control)(8-34), _(9-32), activityType(9-32), activityDefinition(11-32), passModel(16-32), passActivityState(17-32), found(28-32)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('ActivityManager')]
  0002  SELF      R3 = R2[K2('GetSortedValidActivities')] (self)
  0003  GETTABUP  R4 = _ENV[K3('PassActivityDefinition')]
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  GETTABUP  R3 = _ENV[K4('ipairs')]
  0006  MOVE      R4 = R0
  0007  CALL      R3 = call(R3, 3 args, 1 rets)
  0008  JMP       (jump)   -> 32
  0009  GETTABUP  R8 = _ENV[K3('PassActivityDefinition')]
  0010  GETTABLE  R8 = R8[R7]
  0011  GETTABUP  R9 = _ENV[K0('GM')]
  0012  GETTABLE  R9 = R9[K1('ActivityManager')]
  0013  SELF      R10 = R9[K5('GetModel')] (self)
  0014  MOVE      R11 = R0
  0015  CALL      R9 = call(R9, 1 args, 2 rets)
  0016  LOADNIL   R10..R10 = nil
  0017  EQ        if R1 eq K6(nil)   -> -126183
  0018  JMP       (jump)   -> 22
  0019  SELF      R12 = R9[K7('GetState')] (self)
  0020  CALL      R11 = call(R11, 1 args, 1 rets)
  0021  MOVE      R10 = R0
  0022  MOVE      R11 = R0
  0023  MOVE      R12 = R0
  0024  MOVE      R13 = R0
  0025  MOVE      R14 = R0
  0026  MOVE      R15 = R0
  0027  CALL      R11 = call(R11, 1 args, 4 rets)
  0028  TEST      if not R11 then   -> -131042
  0029  JMP       (jump)   -> 32
  0030  LOADBOOL  R12 = true
  0031  RETURN    return R12..R11
  0032  TFORCALL  tforcall R3
  0033  TFORLOOP  tforloop R5(sBx=-25)   -> 9
  0034  LOADBOOL  R3 = false
  0035  RETURN    return R3..R2
  0036  RETURN    return R0..R-1
; ---------- proto6 [OpenBPBuyTicketWindow] ----------
  ; fn ?  line 124-142 np=2 va=0 ms=7 code=8 consts=2 upvals=1 protos=1
  ;   K[0]='PassActivityViewHelper'
  ;   K[1]='OpenBuyTicketWindow'
  ;   upvals: _ENV
  ;   locals: self(0-8), activityType(0-8), callback(1-8)
  0000  CLOSURE   R2 = closure proto0
  0001  GETTABUP  R3 = _ENV[K0('PassActivityViewHelper')]
  0002  GETTABLE  R3 = R3[K1('OpenBuyTicketWindow')]
  0003  MOVE      R4 = R0
  0004  LOADNIL   R5..R5 = nil
  0005  MOVE      R6 = R0
  0006  CALL      R3 = call(R3, 0 args, 3 rets)
  0007  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 125-140 np=1 va=0 ms=9 code=51 consts=21 upvals=2 protos=0
    ;   K[0]='EBPTicketType'
    ;   K[1]='Normal'
    ;   K[2]='m_passTicketName'
    ;   K[3]='Max'
    ;   K[4]='m_maxPassTicketName'
    ;   K[5]='Up'
    ;   K[6]='m_upPassTicketName'
    ;   K[7]='None'
    ;   K[8]='table'
    ;   K[9]='insert'
    ;   K[10]='payOption: '
    ;   K[11]='tostring'
    ;   K[12]='m_payOption'
    ;   K[13]='paySuccess: '
    ;   K[14]='GM'
    ;   K[15]='BIManager'
    ;   K[16]='LogAction'
    ;   K[17]='EBIType'
    ;   K[18]='BPAdPay'
    ;   K[19]='concat'
    ;   K[20]=';'
    ;   upvals: _ENV, self
    ;   locals: paySuccess(0-51), paySuccessName(1-51), biInfo(21-51)
    0000  LOADNIL   R1..R1 = nil
    0001  GETTABUP  R2 = _ENV[K0('EBPTicketType')]
    0002  GETTABLE  R2 = R2[K1('Normal')]
    0003  EQ        if R0 eq R2   -> -131065
    0004  JMP       (jump)   -> 7
    0005  GETTABUP  R1 = self[K2('m_passTicketName')]
    0006  JMP       (jump)   -> 20
    0007  GETTABUP  R2 = _ENV[K0('EBPTicketType')]
    0008  GETTABLE  R2 = R2[K3('Max')]
    0009  EQ        if R0 eq R2   -> -131059
    0010  JMP       (jump)   -> 13
    0011  GETTABUP  R1 = self[K4('m_maxPassTicketName')]
    0012  JMP       (jump)   -> 20
    0013  GETTABUP  R2 = _ENV[K0('EBPTicketType')]
    0014  GETTABLE  R2 = R2[K5('Up')]
    0015  EQ        if R0 eq R2   -> -131053
    0016  JMP       (jump)   -> 19
    0017  GETTABUP  R1 = self[K6('m_upPassTicketName')]
    0018  JMP       (jump)   -> 20
    0019  LOADK     R1 = K7 'None'
    0020  NEWTABLE  R2 = {} (0 items)
    0021  GETTABUP  R3 = _ENV[K8('table')]
    0022  GETTABLE  R3 = R3[K9('insert')]
    0023  MOVE      R4 = R0
    0024  LOADK     R5 = K10 'payOption: '
    0025  GETTABUP  R6 = _ENV[K11('tostring')]
    0026  GETTABUP  R7 = self[K12('m_payOption')]
    0027  CALL      R6 = call(R6, 1 args, 1 rets)
    0028  CONCAT    R5 = concat(R5..R5)
    0029  CALL      R3 = call(R3, 0 args, 2 rets)
    0030  GETTABUP  R3 = _ENV[K8('table')]
    0031  GETTABLE  R3 = R3[K9('insert')]
    0032  MOVE      R4 = R0
    0033  LOADK     R5 = K13 'paySuccess: '
    0034  GETTABUP  R6 = _ENV[K11('tostring')]
    0035  MOVE      R7 = R0
    0036  CALL      R6 = call(R6, 1 args, 1 rets)
    0037  CONCAT    R5 = concat(R5..R5)
    0038  CALL      R3 = call(R3, 0 args, 2 rets)
    0039  GETTABUP  R3 = _ENV[K14('GM')]
    0040  GETTABLE  R3 = R3[K15('BIManager')]
    0041  SELF      R4 = R3[K16('LogAction')] (self)
    0042  GETTABUP  R5 = _ENV[K17('EBIType')]
    0043  GETTABLE  R5 = R5[K18('BPAdPay')]
    0044  GETTABUP  R6 = _ENV[K8('table')]
    0045  GETTABLE  R6 = R6[K19('concat')]
    0046  MOVE      R7 = R0
    0047  LOADK     R8 = K20 ';'
    0048  CALL      R6 = call(R6, -1 args, 2 rets)
    0049  CALL      R3 = call(R3, 0 args, -1 rets)
    0050  RETURN    return R0..R-1
; ---------- proto7 [ShowHide] ----------
  ; fn ?  line 144-146 np=1 va=0 ms=4 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_animator'
  ;   K[1]='SetTrigger'
  ;   K[2]='Hide'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_animator')]
  0001  SELF      R2 = R1[K1('SetTrigger')] (self)
  0002  LOADK     R3 = K2 'Hide'
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto8 [ClosedByBpAd] ----------
  ; fn ?  line 148-150 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bClickBtn'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bClickBtn')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
