# PassActivity_Common_Model_PassActivityModel_814.luac
; fn @PassActivityModel.lua  line 0-0 np=0 va=1 ms=6 code=393 consts=194 upvals=1 protos=85
;   K[0]='PassActivityEventType'
;   K[1]='StateChanged'
;   K[2]=1
;   K[3]='PassActivityModel'
;   K[4]='setmetatable'
;   K[5]='eModelType'
;   K[6]='ActivityModelType'
;   K[7]='Pass'
;   K[8]='BaseActivityModel'
;   K[9]='__index'
;   K[10]='TokenNumberKey'
;   K[11]='TokenNumber'
;   K[12]='LastTokenNumberKey'
;   K[13]='LastTokenNumber'
;   K[14]='TicketKey'
;   K[15]='Ticket'
;   K[16]='MaxTicketKey'
;   K[17]='MaxTicket'
;   K[18]='RewardTakenKey'
;   K[19]='RewardTaken%d_%d'
;   K[20]='SettleKey'
;   K[21]='Settle'
;   K[22]='LastBuyTicketPopupWindowDayKey'
;   K[23]='LastBuyTicketPopupWindowDay'
;   K[24]='BuyTicketPopupWindowOpenedStateEnded'
;   K[25]='FinishedLevelKey'
;   K[26]='FinishedLevel'
;   K[27]='RewardEffectKey'
;   K[28]='RewardEffect%d_%d'
;   K[29]='ProgressEffectKey'
;   K[30]='ProgressEffect_%d'
;   K[31]='RealItemTargetKey'
;   K[32]='RealItemTarget_%d_%d'
;   K[33]='RealBonusItemTargetKey'
;   K[34]='RealBonusItemTarget_%d_%d'
;   K[35]='RealTargetCountKey'
;   K[36]='RealTargetCount_%d_%d'
;   K[37]='RealBonusTargetCountKey'
;   K[38]='RealBonusTargetCount_%d_%d'
;   K[39]='RealActivityTargetCountKey'
;   K[40]='RATC_%d_%d'
;   K[41]='ExtraRewardTakenKey'
;   K[42]='ExtraRewardTaken'
;   K[43]='LastPopMainDayKey'
;   K[44]='LastPopMainDay'
;   K[45]='TicketBonusRewardTakenKey'
;   K[46]='TicketBonusRewardTaken'
;   K[47]='BuyTicketPopLevelsKey'
;   K[48]='BPBuyTicketPopLevels'
;   K[49]='BuyTicketPopCountDown'
;   K[50]='bp_vip_countdown'
;   K[51]='BuyTicketPopMinLevel'
;   K[52]='bp_pop_minlevel'
;   K[53]='MaxTicketTokenCountKey'
;   K[54]='bp_svip_token'
;   K[55]='MaxTicketTokenRatioKey'
;   K[56]='bp_svip_multipe'
;   K[57]='NewIapTypeServer'
;   K[58]='battlePassClone'
;   K[59]='MaxTicketTokenAddKey'
;   K[60]='bp_svip_plus'
;   K[61]='VIPExtraEnergyCount'
;   K[62]='bp_vip_energy_num'
;   K[63]='EBPTicketState'
;   K[64]='None'
;   K[65]='Upgrade'
;   K[66]=2
;   K[67]='Purchase'
;   K[68]=3
;   K[69]='EBPTicketType'
;   K[70]='Normal'
;   K[71]='Max'
;   K[72]='Up'
;   K[73]='Default'
;   K[74]='BackUp'
;   K[75]='BackUp2'
;   K[76]='EIAPType'
;   K[77]='vip_ticket_1'
;   K[78]='super_vip_ticket_1'
;   K[79]='up_vip_ticket_1'
;   K[80]='vip_ticket_2'
;   K[81]='super_vip_ticket_2'
;   K[82]='up_vip_ticket_2'
;   K[83]='vip_ticket_3'
;   K[84]='super_vip_ticket_3'
;   K[85]='up_vip_ticket_3'
;   K[86]='Init'
;   K[87]='Destroy'
;   K[88]='GetBoardEntryShowConfig'
;   K[89]='GetMapEntryShowConfig'
;   K[90]='IsActivityOpen'
;   K[91]='GetResourceLabels'
;   K[92]='GetActivityDefinition'
;   K[93]='_LoadOtherServerConfig'
;   K[94]='PassActivityModel'
;   K[95]='OnCheckResourcesFinished'
;   K[96]='_OnLoginFinished'
;   K[97]='_UpdateShouldPopMainWindow'
;   K[98]='ShouldPopMainWindow'
;   K[99]='OnPopMainWindow'
;   K[100]='PassActivityModel'
;   K[101]='_CalculateState'
;   K[102]='_OnStateChanged'
;   K[103]='_DropData'
;   K[104]='GetLevelConfigs'
;   K[105]='GetLevelConfigIncludeExtra'
;   K[106]='HasExtraLevels'
;   K[107]='CanOpenBuyTicketPopupWindow'
;   K[108]='PassActivityModel'
;   K[109]='SetBuyTicketPopupWindowOpened'
;   K[110]='PassActivityModel'
;   K[111]='GetRedPointCount'
;   K[112]='GetLastTokenNumber'
;   K[113]='PassActivityModel'
;   K[114]='UpdateLastTokenNumber'
;   K[115]='PassActivityModel'
;   K[116]='GetTokenNumber'
;   K[117]='PassActivityModel'
;   K[118]='GetActivityTokenNumber'
;   K[119]='AcquireToken'
;   K[120]='AcquireActivityToken'
;   K[121]='CanAddScore'
;   K[122]='GetOrderExtraReward'
;   K[123]='GetLevel'
;   K[124]='GetCurrentLevel'
;   K[125]='GetMaxLevel'
;   K[126]='CanBuyMaxTicket'
;   K[127]='GetTicketState'
;   K[128]='HasMaxTicket'
;   K[129]='PassActivityModel'
;   K[130]='GetMaxTicketTokenNumber'
;   K[131]='GetMaxTicketTokenRatio'
;   K[132]='GetMaxTicketTokenAdd'
;   K[133]='GetPassTicketIapType'
;   K[134]='GetUpPassTicketIapType'
;   K[135]='GetMaxPassTicektIapType'
;   K[136]='BuyMaxTicket'
;   K[137]='_AcquireMaxTicketToken'
;   K[138]='_OnBuyMaxTicketSuccess'
;   K[139]='PassActivityModel'
;   K[140]='BuyUpTicket'
;   K[141]='_OnBuyUpTicketSuccess'
;   K[142]='PassActivityModel'
;   K[143]='GetBuyTicketWindowByCurState'
;   K[144]='IsVIPTicket'
;   K[145]='TryAcquireVIPTicket'
;   K[146]='GetVipRewards'
;   K[147]='HasTicket'
;   K[148]='PassActivityModel'
;   K[149]='BuyTicket'
;   K[150]='RestoreIapRewards'
;   K[151]='_GetVipShowRewards'
;   K[152]='_OnBuyTicketSuccess'
;   K[153]='PassActivityModel'
;   K[154]='GetCanTakeRewards'
;   K[155]='GetCanTakeExtraRewards'
;   K[156]='_GetCanTakeExtraRewards'
;   K[157]='PassActivityModel'
;   K[158]='GetCanTakeExtraRewardNum'
;   K[159]='GetNextExtraRewardConfig'
;   K[160]='GetAllExtraRewards'
;   K[161]='IsRewardTaken'
;   K[162]='PassActivityModel'
;   K[163]='TakeReward'
;   K[164]='PassActivityModel'
;   K[165]='TakeExtraReward'
;   K[166]='PassActivityModel'
;   K[167]='_CheckIfTakeAllRewards'
;   K[168]='CanSettleBeforeEnd'
;   K[169]='IsSettled'
;   K[170]='PassActivityModel'
;   K[171]='DoSettle'
;   K[172]='PassActivityModel'
;   K[173]='CanShowNoticeBubble'
;   K[174]='CanPopMaxTicketTokenWindow'
;   K[175]='SetPopMaxTicketTokenWindow'
;   K[176]='NeedPlayMaxTicketAnim'
;   K[177]='GetHighlightEnergyRewardCount'
;   K[178]='GetVIPExtraEnergyRewards'
;   K[179]='HasTakenVIPExtraEnergy'
;   K[180]='PassActivityModel'
;   K[181]='CanTakeVIPExtraEnergy'
;   K[182]='TryTakeVIPExtraEnergy'
;   K[183]='CanTakeVIPExtraEnergyInView'
;   K[184]='OnTakenVIPExtraEnergyInView'
;   K[185]='HasShownRewardEffect'
;   K[186]='PassActivityModel'
;   K[187]='SetShownRewardEffect'
;   K[188]='PassActivityModel'
;   K[189]='HasShownProgressEffect'
;   K[190]='PassActivityModel'
;   K[191]='SetShownProgressEffect'
;   K[192]='PassActivityModel'
;   K[193]='GetButtonTarget'
;   upvals: _ENV
;   locals: EBPIAPSeries(82-393), arrIAPType(137-393)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABLE  R0[K1('StateChanged')] = K2(1)
0002  SETTABUP  _ENV[K0('PassActivityEventType')] = R0
0003  GETTABUP  R0 = _ENV[K4('setmetatable')]
0004  NEWTABLE  R1 = {} (0 items)
0005  GETTABUP  R2 = _ENV[K6('ActivityModelType')]
0006  GETTABLE  R2 = R2[K7('Pass')]
0007  SETTABLE  R1[K5('eModelType')] = R2
0008  GETTABUP  R2 = _ENV[K8('BaseActivityModel')]
0009  CALL      R0 = call(R0, 1 args, 2 rets)
0010  SETTABUP  _ENV[K3('PassActivityModel')] = R0
0011  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0012  GETTABUP  R1 = _ENV[K3('PassActivityModel')]
0013  SETTABLE  R0[K9('__index')] = R1
0014  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0015  SETTABLE  R0[K10('TokenNumberKey')] = K11('TokenNumber')
0016  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0017  SETTABLE  R0[K12('LastTokenNumberKey')] = K13('LastTokenNumber')
0018  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0019  SETTABLE  R0[K14('TicketKey')] = K15('Ticket')
0020  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0021  SETTABLE  R0[K16('MaxTicketKey')] = K17('MaxTicket')
0022  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0023  SETTABLE  R0[K18('RewardTakenKey')] = K19('RewardTaken%d_%d')
0024  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0025  SETTABLE  R0[K20('SettleKey')] = K21('Settle')
0026  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0027  SETTABLE  R0[K22('LastBuyTicketPopupWindowDayKey')] = K23('LastBuyTicketPopupWindowDay')
0028  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0029  SETTABLE  R0[K24('BuyTicketPopupWindowOpenedStateEnded')] = K24('BuyTicketPopupWindowOpenedStateEnded')
0030  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0031  SETTABLE  R0[K25('FinishedLevelKey')] = K26('FinishedLevel')
0032  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0033  SETTABLE  R0[K27('RewardEffectKey')] = K28('RewardEffect%d_%d')
0034  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0035  SETTABLE  R0[K29('ProgressEffectKey')] = K30('ProgressEffect_%d')
0036  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0037  SETTABLE  R0[K31('RealItemTargetKey')] = K32('RealItemTarget_%d_%d')
0038  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0039  SETTABLE  R0[K33('RealBonusItemTargetKey')] = K34('RealBonusItemTarget_%d_%d')
0040  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0041  SETTABLE  R0[K35('RealTargetCountKey')] = K36('RealTargetCount_%d_%d')
0042  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0043  SETTABLE  R0[K37('RealBonusTargetCountKey')] = K38('RealBonusTargetCount_%d_%d')
0044  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0045  SETTABLE  R0[K39('RealActivityTargetCountKey')] = K40('RATC_%d_%d')
0046  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0047  SETTABLE  R0[K41('ExtraRewardTakenKey')] = K42('ExtraRewardTaken')
0048  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0049  SETTABLE  R0[K43('LastPopMainDayKey')] = K44('LastPopMainDay')
0050  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0051  SETTABLE  R0[K45('TicketBonusRewardTakenKey')] = K46('TicketBonusRewardTaken')
0052  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0053  SETTABLE  R0[K47('BuyTicketPopLevelsKey')] = K48('BPBuyTicketPopLevels')
0054  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0055  SETTABLE  R0[K49('BuyTicketPopCountDown')] = K50('bp_vip_countdown')
0056  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0057  SETTABLE  R0[K51('BuyTicketPopMinLevel')] = K52('bp_pop_minlevel')
0058  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0059  SETTABLE  R0[K53('MaxTicketTokenCountKey')] = K54('bp_svip_token')
0060  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0061  SETTABLE  R0[K55('MaxTicketTokenRatioKey')] = K56('bp_svip_multipe')
0062  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0063  SETTABLE  R0[K57('NewIapTypeServer')] = K58('battlePassClone')
0064  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0065  SETTABLE  R0[K59('MaxTicketTokenAddKey')] = K60('bp_svip_plus')
0066  GETTABUP  R0 = _ENV[K3('PassActivityModel')]
0067  SETTABLE  R0[K61('VIPExtraEnergyCount')] = K62('bp_vip_energy_num')
0068  NEWTABLE  R0 = {} (0 items)
0069  SETTABLE  R0[K64('None')] = K2(1)
0070  SETTABLE  R0[K65('Upgrade')] = K66(2)
0071  SETTABLE  R0[K67('Purchase')] = K68(3)
0072  SETTABUP  _ENV[K63('EBPTicketState')] = R0
0073  NEWTABLE  R0 = {} (0 items)
0074  SETTABLE  R0[K70('Normal')] = K2(1)
0075  SETTABLE  R0[K71('Max')] = K66(2)
0076  SETTABLE  R0[K72('Up')] = K68(3)
0077  SETTABUP  _ENV[K69('EBPTicketType')] = R0
0078  NEWTABLE  R0 = {} (0 items)
0079  SETTABLE  R0[K73('Default')] = K2(1)
0080  SETTABLE  R0[K74('BackUp')] = K66(2)
0081  SETTABLE  R0[K75('BackUp2')] = K68(3)
0082  NEWTABLE  R1 = {} (0 items)
0083  GETTABLE  R2 = R0[K73('Default')]
0084  NEWTABLE  R3 = {} (0 items)
0085  GETTABUP  R4 = _ENV[K69('EBPTicketType')]
0086  GETTABLE  R4 = R4[K70('Normal')]
0087  GETTABUP  R5 = _ENV[K76('EIAPType')]
0088  GETTABLE  R5 = R5[K77('vip_ticket_1')]
0089  SETTABLE  R3[R4] = R5
0090  GETTABUP  R4 = _ENV[K69('EBPTicketType')]
0091  GETTABLE  R4 = R4[K71('Max')]
0092  GETTABUP  R5 = _ENV[K76('EIAPType')]
0093  GETTABLE  R5 = R5[K78('super_vip_ticket_1')]
0094  SETTABLE  R3[R4] = R5
0095  GETTABUP  R4 = _ENV[K69('EBPTicketType')]
0096  GETTABLE  R4 = R4[K72('Up')]
0097  GETTABUP  R5 = _ENV[K76('EIAPType')]
0098  GETTABLE  R5 = R5[K79('up_vip_ticket_1')]
0099  SETTABLE  R3[R4] = R5
0100  SETTABLE  R1[R2] = R3
0101  GETTABLE  R2 = R0[K74('BackUp')]
0102  NEWTABLE  R3 = {} (0 items)
0103  GETTABUP  R4 = _ENV[K69('EBPTicketType')]
0104  GETTABLE  R4 = R4[K70('Normal')]
0105  GETTABUP  R5 = _ENV[K76('EIAPType')]
0106  GETTABLE  R5 = R5[K80('vip_ticket_2')]
0107  SETTABLE  R3[R4] = R5
0108  GETTABUP  R4 = _ENV[K69('EBPTicketType')]
0109  GETTABLE  R4 = R4[K71('Max')]
0110  GETTABUP  R5 = _ENV[K76('EIAPType')]
0111  GETTABLE  R5 = R5[K81('super_vip_ticket_2')]
0112  SETTABLE  R3[R4] = R5
0113  GETTABUP  R4 = _ENV[K69('EBPTicketType')]
0114  GETTABLE  R4 = R4[K72('Up')]
0115  GETTABUP  R5 = _ENV[K76('EIAPType')]
0116  GETTABLE  R5 = R5[K82('up_vip_ticket_2')]
0117  SETTABLE  R3[R4] = R5
0118  SETTABLE  R1[R2] = R3
0119  GETTABLE  R2 = R0[K75('BackUp2')]
0120  NEWTABLE  R3 = {} (0 items)
0121  GETTABUP  R4 = _ENV[K69('EBPTicketType')]
0122  GETTABLE  R4 = R4[K70('Normal')]
0123  GETTABUP  R5 = _ENV[K76('EIAPType')]
0124  GETTABLE  R5 = R5[K83('vip_ticket_3')]
0125  SETTABLE  R3[R4] = R5
0126  GETTABUP  R4 = _ENV[K69('EBPTicketType')]
0127  GETTABLE  R4 = R4[K71('Max')]
0128  GETTABUP  R5 = _ENV[K76('EIAPType')]
0129  GETTABLE  R5 = R5[K84('super_vip_ticket_3')]
0130  SETTABLE  R3[R4] = R5
0131  GETTABUP  R4 = _ENV[K69('EBPTicketType')]
0132  GETTABLE  R4 = R4[K72('Up')]
0133  GETTABUP  R5 = _ENV[K76('EIAPType')]
0134  GETTABLE  R5 = R5[K85('up_vip_ticket_3')]
0135  SETTABLE  R3[R4] = R5
0136  SETTABLE  R1[R2] = R3
0137  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0138  CLOSURE   R3 = closure proto0
0139  SETTABLE  R2[K86('Init')] = R3
0140  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0141  CLOSURE   R3 = closure proto1
0142  SETTABLE  R2[K87('Destroy')] = R3
0143  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0144  CLOSURE   R3 = closure proto2
0145  SETTABLE  R2[K88('GetBoardEntryShowConfig')] = R3
0146  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0147  CLOSURE   R3 = closure proto3
0148  SETTABLE  R2[K89('GetMapEntryShowConfig')] = R3
0149  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0150  CLOSURE   R3 = closure proto4
0151  SETTABLE  R2[K90('IsActivityOpen')] = R3
0152  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0153  CLOSURE   R3 = closure proto5
0154  SETTABLE  R2[K91('GetResourceLabels')] = R3
0155  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0156  CLOSURE   R3 = closure proto6
0157  SETTABLE  R2[K92('GetActivityDefinition')] = R3
0158  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0159  CLOSURE   R3 = closure proto7
0160  SETTABLE  R2[K93('_LoadOtherServerConfig')] = R3
0161  GETTABUP  R2 = _ENV[K94('PassActivityModel')]
0162  CLOSURE   R3 = closure proto8
0163  SETTABLE  R2[K95('OnCheckResourcesFinished')] = R3
0164  GETTABUP  R2 = _ENV[K94('PassActivityModel')]
0165  CLOSURE   R3 = closure proto9
0166  SETTABLE  R2[K96('_OnLoginFinished')] = R3
0167  GETTABUP  R2 = _ENV[K94('PassActivityModel')]
0168  CLOSURE   R3 = closure proto10
0169  SETTABLE  R2[K97('_UpdateShouldPopMainWindow')] = R3
0170  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0171  CLOSURE   R3 = closure proto11
0172  SETTABLE  R2[K98('ShouldPopMainWindow')] = R3
0173  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0174  CLOSURE   R3 = closure proto12
0175  SETTABLE  R2[K99('OnPopMainWindow')] = R3
0176  GETTABUP  R2 = _ENV[K100('PassActivityModel')]
0177  CLOSURE   R3 = closure proto13
0178  SETTABLE  R2[K101('_CalculateState')] = R3
0179  GETTABUP  R2 = _ENV[K100('PassActivityModel')]
0180  CLOSURE   R3 = closure proto14
0181  SETTABLE  R2[K102('_OnStateChanged')] = R3
0182  GETTABUP  R2 = _ENV[K100('PassActivityModel')]
0183  CLOSURE   R3 = closure proto15
0184  SETTABLE  R2[K103('_DropData')] = R3
0185  GETTABUP  R2 = _ENV[K100('PassActivityModel')]
0186  CLOSURE   R3 = closure proto16
0187  SETTABLE  R2[K104('GetLevelConfigs')] = R3
0188  GETTABUP  R2 = _ENV[K100('PassActivityModel')]
0189  CLOSURE   R3 = closure proto17
0190  SETTABLE  R2[K105('GetLevelConfigIncludeExtra')] = R3
0191  GETTABUP  R2 = _ENV[K100('PassActivityModel')]
0192  CLOSURE   R3 = closure proto18
0193  SETTABLE  R2[K106('HasExtraLevels')] = R3
0194  GETTABUP  R2 = _ENV[K100('PassActivityModel')]
0195  CLOSURE   R3 = closure proto19
0196  SETTABLE  R2[K107('CanOpenBuyTicketPopupWindow')] = R3
0197  GETTABUP  R2 = _ENV[K108('PassActivityModel')]
0198  CLOSURE   R3 = closure proto20
0199  SETTABLE  R2[K109('SetBuyTicketPopupWindowOpened')] = R3
0200  GETTABUP  R2 = _ENV[K110('PassActivityModel')]
0201  CLOSURE   R3 = closure proto21
0202  SETTABLE  R2[K111('GetRedPointCount')] = R3
0203  GETTABUP  R2 = _ENV[K110('PassActivityModel')]
0204  CLOSURE   R3 = closure proto22
0205  SETTABLE  R2[K112('GetLastTokenNumber')] = R3
0206  GETTABUP  R2 = _ENV[K113('PassActivityModel')]
0207  CLOSURE   R3 = closure proto23
0208  SETTABLE  R2[K114('UpdateLastTokenNumber')] = R3
0209  GETTABUP  R2 = _ENV[K115('PassActivityModel')]
0210  CLOSURE   R3 = closure proto24
0211  SETTABLE  R2[K116('GetTokenNumber')] = R3
0212  GETTABUP  R2 = _ENV[K117('PassActivityModel')]
0213  CLOSURE   R3 = closure proto25
0214  SETTABLE  R2[K118('GetActivityTokenNumber')] = R3
0215  GETTABUP  R2 = _ENV[K117('PassActivityModel')]
0216  CLOSURE   R3 = closure proto26
0217  SETTABLE  R2[K119('AcquireToken')] = R3
0218  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0219  CLOSURE   R3 = closure proto27
0220  SETTABLE  R2[K120('AcquireActivityToken')] = R3
0221  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0222  CLOSURE   R3 = closure proto28
0223  SETTABLE  R2[K121('CanAddScore')] = R3
0224  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0225  CLOSURE   R3 = closure proto29
0226  SETTABLE  R2[K122('GetOrderExtraReward')] = R3
0227  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0228  CLOSURE   R3 = closure proto30
0229  SETTABLE  R2[K123('GetLevel')] = R3
0230  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0231  CLOSURE   R3 = closure proto31
0232  SETTABLE  R2[K124('GetCurrentLevel')] = R3
0233  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0234  CLOSURE   R3 = closure proto32
0235  SETTABLE  R2[K125('GetMaxLevel')] = R3
0236  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0237  CLOSURE   R3 = closure proto33
0238  SETTABLE  R2[K126('CanBuyMaxTicket')] = R3
0239  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0240  CLOSURE   R3 = closure proto34
0241  SETTABLE  R2[K127('GetTicketState')] = R3
0242  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0243  CLOSURE   R3 = closure proto35
0244  SETTABLE  R2[K128('HasMaxTicket')] = R3
0245  GETTABUP  R2 = _ENV[K129('PassActivityModel')]
0246  CLOSURE   R3 = closure proto36
0247  SETTABLE  R2[K130('GetMaxTicketTokenNumber')] = R3
0248  GETTABUP  R2 = _ENV[K129('PassActivityModel')]
0249  CLOSURE   R3 = closure proto37
0250  SETTABLE  R2[K131('GetMaxTicketTokenRatio')] = R3
0251  GETTABUP  R2 = _ENV[K129('PassActivityModel')]
0252  CLOSURE   R3 = closure proto38
0253  SETTABLE  R2[K132('GetMaxTicketTokenAdd')] = R3
0254  GETTABUP  R2 = _ENV[K129('PassActivityModel')]
0255  CLOSURE   R3 = closure proto39
0256  SETTABLE  R2[K133('GetPassTicketIapType')] = R3
0257  GETTABUP  R2 = _ENV[K129('PassActivityModel')]
0258  CLOSURE   R3 = closure proto40
0259  SETTABLE  R2[K134('GetUpPassTicketIapType')] = R3
0260  GETTABUP  R2 = _ENV[K129('PassActivityModel')]
0261  CLOSURE   R3 = closure proto41
0262  SETTABLE  R2[K135('GetMaxPassTicektIapType')] = R3
0263  GETTABUP  R2 = _ENV[K129('PassActivityModel')]
0264  CLOSURE   R3 = closure proto42
0265  SETTABLE  R2[K136('BuyMaxTicket')] = R3
0266  GETTABUP  R2 = _ENV[K129('PassActivityModel')]
0267  CLOSURE   R3 = closure proto43
0268  SETTABLE  R2[K137('_AcquireMaxTicketToken')] = R3
0269  GETTABUP  R2 = _ENV[K129('PassActivityModel')]
0270  CLOSURE   R3 = closure proto44
0271  SETTABLE  R2[K138('_OnBuyMaxTicketSuccess')] = R3
0272  GETTABUP  R2 = _ENV[K139('PassActivityModel')]
0273  CLOSURE   R3 = closure proto45
0274  SETTABLE  R2[K140('BuyUpTicket')] = R3
0275  GETTABUP  R2 = _ENV[K139('PassActivityModel')]
0276  CLOSURE   R3 = closure proto46
0277  SETTABLE  R2[K141('_OnBuyUpTicketSuccess')] = R3
0278  GETTABUP  R2 = _ENV[K142('PassActivityModel')]
0279  CLOSURE   R3 = closure proto47
0280  SETTABLE  R2[K143('GetBuyTicketWindowByCurState')] = R3
0281  GETTABUP  R2 = _ENV[K142('PassActivityModel')]
0282  CLOSURE   R3 = closure proto48
0283  SETTABLE  R2[K144('IsVIPTicket')] = R3
0284  GETTABUP  R2 = _ENV[K142('PassActivityModel')]
0285  CLOSURE   R3 = closure proto49
0286  SETTABLE  R2[K145('TryAcquireVIPTicket')] = R3
0287  GETTABUP  R2 = _ENV[K142('PassActivityModel')]
0288  CLOSURE   R3 = closure proto50
0289  SETTABLE  R2[K146('GetVipRewards')] = R3
0290  GETTABUP  R2 = _ENV[K142('PassActivityModel')]
0291  CLOSURE   R3 = closure proto51
0292  SETTABLE  R2[K147('HasTicket')] = R3
0293  GETTABUP  R2 = _ENV[K148('PassActivityModel')]
0294  CLOSURE   R3 = closure proto52
0295  SETTABLE  R2[K149('BuyTicket')] = R3
0296  GETTABUP  R2 = _ENV[K148('PassActivityModel')]
0297  CLOSURE   R3 = closure proto53
0298  SETTABLE  R2[K150('RestoreIapRewards')] = R3
0299  GETTABUP  R2 = _ENV[K148('PassActivityModel')]
0300  CLOSURE   R3 = closure proto54
0301  SETTABLE  R2[K151('_GetVipShowRewards')] = R3
0302  GETTABUP  R2 = _ENV[K148('PassActivityModel')]
0303  CLOSURE   R3 = closure proto55
0304  SETTABLE  R2[K152('_OnBuyTicketSuccess')] = R3
0305  GETTABUP  R2 = _ENV[K153('PassActivityModel')]
0306  CLOSURE   R3 = closure proto56
0307  SETTABLE  R2[K154('GetCanTakeRewards')] = R3
0308  GETTABUP  R2 = _ENV[K153('PassActivityModel')]
0309  CLOSURE   R3 = closure proto57
0310  SETTABLE  R2[K155('GetCanTakeExtraRewards')] = R3
0311  GETTABUP  R2 = _ENV[K153('PassActivityModel')]
0312  CLOSURE   R3 = closure proto58
0313  SETTABLE  R2[K156('_GetCanTakeExtraRewards')] = R3
0314  GETTABUP  R2 = _ENV[K157('PassActivityModel')]
0315  CLOSURE   R3 = closure proto59
0316  SETTABLE  R2[K158('GetCanTakeExtraRewardNum')] = R3
0317  GETTABUP  R2 = _ENV[K157('PassActivityModel')]
0318  CLOSURE   R3 = closure proto60
0319  SETTABLE  R2[K159('GetNextExtraRewardConfig')] = R3
0320  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0321  CLOSURE   R3 = closure proto61
0322  SETTABLE  R2[K160('GetAllExtraRewards')] = R3
0323  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0324  CLOSURE   R3 = closure proto62
0325  SETTABLE  R2[K161('IsRewardTaken')] = R3
0326  GETTABUP  R2 = _ENV[K162('PassActivityModel')]
0327  CLOSURE   R3 = closure proto63
0328  SETTABLE  R2[K163('TakeReward')] = R3
0329  GETTABUP  R2 = _ENV[K164('PassActivityModel')]
0330  CLOSURE   R3 = closure proto64
0331  SETTABLE  R2[K165('TakeExtraReward')] = R3
0332  GETTABUP  R2 = _ENV[K166('PassActivityModel')]
0333  CLOSURE   R3 = closure proto65
0334  SETTABLE  R2[K167('_CheckIfTakeAllRewards')] = R3
0335  GETTABUP  R2 = _ENV[K166('PassActivityModel')]
0336  CLOSURE   R3 = closure proto66
0337  SETTABLE  R2[K168('CanSettleBeforeEnd')] = R3
0338  GETTABUP  R2 = _ENV[K166('PassActivityModel')]
0339  CLOSURE   R3 = closure proto67
0340  SETTABLE  R2[K169('IsSettled')] = R3
0341  GETTABUP  R2 = _ENV[K170('PassActivityModel')]
0342  CLOSURE   R3 = closure proto68
0343  SETTABLE  R2[K171('DoSettle')] = R3
0344  GETTABUP  R2 = _ENV[K172('PassActivityModel')]
0345  CLOSURE   R3 = closure proto69
0346  SETTABLE  R2[K173('CanShowNoticeBubble')] = R3
0347  GETTABUP  R2 = _ENV[K172('PassActivityModel')]
0348  CLOSURE   R3 = closure proto70
0349  SETTABLE  R2[K174('CanPopMaxTicketTokenWindow')] = R3
0350  GETTABUP  R2 = _ENV[K172('PassActivityModel')]
0351  CLOSURE   R3 = closure proto71
0352  SETTABLE  R2[K175('SetPopMaxTicketTokenWindow')] = R3
0353  GETTABUP  R2 = _ENV[K172('PassActivityModel')]
0354  CLOSURE   R3 = closure proto72
0355  SETTABLE  R2[K176('NeedPlayMaxTicketAnim')] = R3
0356  GETTABUP  R2 = _ENV[K172('PassActivityModel')]
0357  CLOSURE   R3 = closure proto73
0358  SETTABLE  R2[K177('GetHighlightEnergyRewardCount')] = R3
0359  GETTABUP  R2 = _ENV[K172('PassActivityModel')]
0360  CLOSURE   R3 = closure proto74
0361  SETTABLE  R2[K178('GetVIPExtraEnergyRewards')] = R3
0362  GETTABUP  R2 = _ENV[K172('PassActivityModel')]
0363  CLOSURE   R3 = closure proto75
0364  SETTABLE  R2[K179('HasTakenVIPExtraEnergy')] = R3
0365  GETTABUP  R2 = _ENV[K180('PassActivityModel')]
0366  CLOSURE   R3 = closure proto76
0367  SETTABLE  R2[K181('CanTakeVIPExtraEnergy')] = R3
0368  GETTABUP  R2 = _ENV[K180('PassActivityModel')]
0369  CLOSURE   R3 = closure proto77
0370  SETTABLE  R2[K182('TryTakeVIPExtraEnergy')] = R3
0371  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0372  CLOSURE   R3 = closure proto78
0373  SETTABLE  R2[K183('CanTakeVIPExtraEnergyInView')] = R3
0374  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0375  CLOSURE   R3 = closure proto79
0376  SETTABLE  R2[K184('OnTakenVIPExtraEnergyInView')] = R3
0377  GETTABUP  R2 = _ENV[K3('PassActivityModel')]
0378  CLOSURE   R3 = closure proto80
0379  SETTABLE  R2[K185('HasShownRewardEffect')] = R3
0380  GETTABUP  R2 = _ENV[K186('PassActivityModel')]
0381  CLOSURE   R3 = closure proto81
0382  SETTABLE  R2[K187('SetShownRewardEffect')] = R3
0383  GETTABUP  R2 = _ENV[K188('PassActivityModel')]
0384  CLOSURE   R3 = closure proto82
0385  SETTABLE  R2[K189('HasShownProgressEffect')] = R3
0386  GETTABUP  R2 = _ENV[K190('PassActivityModel')]
0387  CLOSURE   R3 = closure proto83
0388  SETTABLE  R2[K191('SetShownProgressEffect')] = R3
0389  GETTABUP  R2 = _ENV[K192('PassActivityModel')]
0390  CLOSURE   R3 = closure proto84
0391  SETTABLE  R2[K193('GetButtonTarget')] = R3
0392  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 89-97 np=3 va=0 ms=7 code=26 consts=17 upvals=1 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='PassActivityDefinition'
  ;   K[2]='m_bHasTakeAllRewards'
  ;   K[3]=false
  ;   K[4]='m_bCanTakeVIPExtraEnergyInView'
  ;   K[5]='m_vipExtraEnergyCount'
  ;   K[6]=0
  ;   K[7]='m_tokenHelper'
  ;   K[8]='ActivityTokenHelper'
  ;   K[9]='Create'
  ;   K[10]='BaseActivityModel'
  ;   K[11]='Init'
  ;   K[12]='EventDispatcher'
  ;   K[13]='AddListener'
  ;   K[14]='EEventType'
  ;   K[15]='LoginFinished'
  ;   K[16]='_OnLoginFinished'
  ;   upvals: _ENV
  ;   locals: self(0-26), activityType(0-26), virtualDBTable(0-26)
  0000  GETTABUP  R3 = _ENV[K1('PassActivityDefinition')]
  0001  GETTABLE  R3 = R3[R1]
  0002  SETTABLE  R0[K0('m_activityDefinition')] = R3
  0003  SETTABLE  R0[K2('m_bHasTakeAllRewards')] = K3(false)
  0004  SETTABLE  R0[K4('m_bCanTakeVIPExtraEnergyInView')] = K3(false)
  0005  SETTABLE  R0[K5('m_vipExtraEnergyCount')] = K6(0)
  0006  GETTABUP  R3 = _ENV[K8('ActivityTokenHelper')]
  0007  GETTABLE  R3 = R3[K9('Create')]
  0008  MOVE      R4 = R0
  0009  MOVE      R5 = R0
  0010  CALL      R3 = call(R3, 1 args, 2 rets)
  0011  SETTABLE  R0[K7('m_tokenHelper')] = R3
  0012  GETTABUP  R3 = _ENV[K10('BaseActivityModel')]
  0013  GETTABLE  R3 = R3[K11('Init')]
  0014  MOVE      R4 = R0
  0015  MOVE      R5 = R0
  0016  MOVE      R6 = R0
  0017  CALL      R3 = call(R3, 0 args, 3 rets)
  0018  GETTABUP  R3 = _ENV[K12('EventDispatcher')]
  0019  GETTABLE  R3 = R3[K13('AddListener')]
  0020  GETTABUP  R4 = _ENV[K14('EEventType')]
  0021  GETTABLE  R4 = R4[K15('LoginFinished')]
  0022  MOVE      R5 = R0
  0023  GETTABLE  R6 = R0[K16('_OnLoginFinished')]
  0024  CALL      R3 = call(R3, 0 args, 3 rets)
  0025  RETURN    return R0..R-1
; ---------- proto1 [Destroy] ----------
  ; fn ?  line 99-102 np=1 va=0 ms=3 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   K[2]='m_tokenHelper'
  ;   K[3]='Destroy'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_tokenHelper')]
  0005  SELF      R2 = R1[K3('Destroy')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto2 [GetBoardEntryShowConfig] ----------
  ; fn ?  line 104-113 np=1 va=0 ms=3 code=14 consts=9 upvals=1 protos=1
  ;   K[0]='statusChangeEvent'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='StateChangedEvent'
  ;   K[3]='eEntryRootKey'
  ;   K[4]='EEntryRootKey'
  ;   K[5]='PassActivity'
  ;   K[6]='entryPrefabName'
  ;   K[7]='BoardEntryPrefabName'
  ;   K[8]='checkFun'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0002  GETTABLE  R2 = R2[K2('StateChangedEvent')]
  0003  SETTABLE  R1[K0('statusChangeEvent')] = R2
  0004  GETTABUP  R2 = _ENV[K4('EEntryRootKey')]
  0005  GETTABLE  R2 = R2[K5('PassActivity')]
  0006  SETTABLE  R1[K3('eEntryRootKey')] = R2
  0007  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0008  GETTABLE  R2 = R2[K7('BoardEntryPrefabName')]
  0009  SETTABLE  R1[K6('entryPrefabName')] = R2
  0010  CLOSURE   R2 = closure proto0
  0011  SETTABLE  R1[K8('checkFun')] = R2
  0012  RETURN    return R1..R0
  0013  RETURN    return R0..R-1
  ; ---------- proto0 [checkFun] ----------
    ; fn ?  line 109-111 np=0 va=0 ms=2 code=11 consts=3 upvals=2 protos=0
    ;   K[0]='GetState'
    ;   K[1]='ActivityState'
    ;   K[2]='Started'
    ;   upvals: self, _ENV
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('GetState')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  GETTABUP  R1 = _ENV[K1('ActivityState')]
    0004  GETTABLE  R1 = R1[K2('Started')]
    0005  EQ        if R1 eq R1   -> -131064
    0006  JMP       (jump)   -> 8
    0007  LOADBOOL  R0 = false
    0008  LOADBOOL  R0 = true
    0009  RETURN    return R0..R-1
    0010  RETURN    return R0..R-1
; ---------- proto3 [GetMapEntryShowConfig] ----------
  ; fn ?  line 115-125 np=1 va=0 ms=3 code=21 consts=13 upvals=1 protos=1
  ;   K[0]='statusChangeEvent'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='StateChangedEvent'
  ;   K[3]='eEntryRootKey'
  ;   K[4]='EEntryRootKey'
  ;   K[5]='PassActivity'
  ;   K[6]='entryPrefabName'
  ;   K[7]='MapEntryPrefabName'
  ;   K[8]='UIPrefabConfigName'
  ;   K[9]='PassActivityEntry'
  ;   K[10]='hudKey'
  ;   K[11]='EntryButtonKey'
  ;   K[12]='checkFun'
  ;   upvals: _ENV
  ;   locals: self(0-21)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0002  GETTABLE  R2 = R2[K2('StateChangedEvent')]
  0003  SETTABLE  R1[K0('statusChangeEvent')] = R2
  0004  GETTABUP  R2 = _ENV[K4('EEntryRootKey')]
  0005  GETTABLE  R2 = R2[K5('PassActivity')]
  0006  SETTABLE  R1[K3('eEntryRootKey')] = R2
  0007  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0008  GETTABLE  R2 = R2[K7('MapEntryPrefabName')]
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 13
  0011  GETTABUP  R2 = _ENV[K8('UIPrefabConfigName')]
  0012  GETTABLE  R2 = R2[K9('PassActivityEntry')]
  0013  SETTABLE  R1[K6('entryPrefabName')] = R2
  0014  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0015  GETTABLE  R2 = R2[K11('EntryButtonKey')]
  0016  SETTABLE  R1[K10('hudKey')] = R2
  0017  CLOSURE   R2 = closure proto0
  0018  SETTABLE  R1[K12('checkFun')] = R2
  0019  RETURN    return R1..R0
  0020  RETURN    return R0..R-1
  ; ---------- proto0 [checkFun] ----------
    ; fn ?  line 121-123 np=0 va=0 ms=2 code=11 consts=3 upvals=2 protos=0
    ;   K[0]='GetState'
    ;   K[1]='ActivityState'
    ;   K[2]='Started'
    ;   upvals: self, _ENV
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('GetState')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  GETTABUP  R1 = _ENV[K1('ActivityState')]
    0004  GETTABLE  R1 = R1[K2('Started')]
    0005  EQ        if R1 eq R1   -> -131064
    0006  JMP       (jump)   -> 8
    0007  LOADBOOL  R0 = false
    0008  LOADBOOL  R0 = true
    0009  RETURN    return R0..R-1
    0010  RETURN    return R0..R-1
; ---------- proto4 [IsActivityOpen] ----------
  ; fn ?  line 127-129 np=1 va=0 ms=3 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('GetState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R2 = R2[K2('Started')]
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R1 = false
  0007  LOADBOOL  R1 = true
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto5 [GetResourceLabels] ----------
  ; fn ?  line 131-133 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='ResourceLabels'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_activityDefinition')]
  0001  GETTABLE  R1 = R1[K1('ResourceLabels')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto6 [GetActivityDefinition] ----------
  ; fn ?  line 135-137 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_activityDefinition'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_activityDefinition')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto7 [_LoadOtherServerConfig] ----------
  ; fn ?  line 139-219 np=2 va=0 ms=12 code=239 consts=61 upvals=2 protos=0
  ;   K[0]='m_config'
  ;   K[1]='levelConfigs'
  ;   K[2]='Log'
  ;   K[3]='Assert'
  ;   K[4]='battlePassReward'
  ;   K[5]='BP 缺失 battlePassReward 配置！'
  ;   K[6]='ipairs'
  ;   K[7]='require'
  ;   K[8]='rewards'
  ;   K[9]='reward'
  ;   K[10]='vipRewards'
  ;   K[11]='golden_reward'
  ;   K[12]='RewardApi'
  ;   K[13]='CryptRewards'
  ;   K[14]='level'
  ;   K[15]='extraLevelConfigs'
  ;   K[16]='battlePassExtraReward'
  ;   K[17]='id'
  ;   K[18]=1
  ;   K[19]=nil
  ;   K[20]='Error'
  ;   K[21]='BP battlePassExtraReward 配置错误'
  ;   K[22]='mapBuyTicketPopLevels'
  ;   K[23]='GetGeneralConfig'
  ;   K[24]='PassActivityModel'
  ;   K[25]='BuyTicketPopLevelsKey'
  ;   K[26]='EConfigParamType'
  ;   K[27]='IntArray'
  ;   K[28]=true
  ;   K[29]='mapBuyTicketPopDays'
  ;   K[30]='BuyTicketPopCountDown'
  ;   K[31]='m_popMinLevel'
  ;   K[32]='BuyTicketPopMinLevel'
  ;   K[33]='Int'
  ;   K[34]=2
  ;   K[35]='m_vipExtraEnergyCount'
  ;   K[36]='VIPExtraEnergyCount'
  ;   K[37]=0
  ;   K[38]='GameConfig'
  ;   K[39]='IsTestMode'
  ;   K[40]='PROPERTY_TYPE'
  ;   K[41]='EPropertyType'
  ;   K[42]='Energy'
  ;   K[43]='BP 金券第一个奖励应配置为体力！'
  ;   K[44]='MaxTicketTokenCountKey'
  ;   K[45]='MaxTicketTokenRatioKey'
  ;   K[46]='Float'
  ;   K[47]='MaxTicketTokenAddKey'
  ;   K[48]='maxTicketTokenCount'
  ;   K[49]='tonumber'
  ;   K[50]='maxTicketTokenRatio'
  ;   K[51]='maxTicketTokenAdd'
  ;   K[52]='m_eIapSeries'
  ;   K[53]='Default'
  ;   K[54]='NewIapTypeServer'
  ;   K[55]=3
  ;   K[56]='BackUp2'
  ;   K[57]='BackUp'
  ;   K[58]='_CheckIfTakeAllRewards'
  ;   K[59]='m_tokenHelper'
  ;   K[60]='LoadConfig'
  ;   upvals: _ENV, EBPIAPSeries
  ;   locals: self(0-239), config(0-239), (for generator)(11-35), (for state)(11-35), (for control)(11-35), _(12-33), lConfig(12-33), item(13-33), extraLevelCount(43-72), (for generator)(46-58), (for state)(46-58), (for control)(46-58), _(47-56), config(47-56), (for index)(61-72), (for limit)(61-72), (for step)(61-72), i(62-71), arrPopConfig(84-239), (for generator)(87-93), (for state)(87-93), (for control)(87-93), _(88-91), level(88-91), arrPopDayConfig(105-239), (for generator)(108-114), (for state)(108-114), (for control)(108-114), _(109-112), day(109-112), strTokenCount(180-239), strTokenRatio(186-239), strTokenAdd(192-239), iapConfig(223-239)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  NEWTABLE  R3 = {} (0 items)
  0002  SETTABLE  R2[K1('levelConfigs')] = R3
  0003  GETTABUP  R2 = _ENV[K2('Log')]
  0004  GETTABLE  R2 = R2[K3('Assert')]
  0005  GETTABLE  R3 = R1[K4('battlePassReward')]
  0006  LOADK     R4 = K5 'BP 缺失 battlePassReward 配置！'
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  GETTABUP  R2 = _ENV[K6('ipairs')]
  0009  GETTABLE  R3 = R1[K4('battlePassReward')]
  0010  CALL      R2 = call(R2, 3 args, 1 rets)
  0011  JMP       (jump)   -> 33
  0012  NEWTABLE  R7 = {} (0 items)
  0013  GETTABLE  R8 = R6[K7('require')]
  0014  SETTABLE  R7[K7('require')] = R8
  0015  GETTABLE  R8 = R6[K9('reward')]
  0016  SETTABLE  R7[K8('rewards')] = R8
  0017  GETTABLE  R8 = R6[K11('golden_reward')]
  0018  SETTABLE  R7[K10('vipRewards')] = R8
  0019  GETTABUP  R8 = _ENV[K12('RewardApi')]
  0020  GETTABLE  R8 = R8[K13('CryptRewards')]
  0021  GETTABLE  R9 = R7[K8('rewards')]
  0022  LOADBOOL  R10 = true
  0023  CALL      R8 = call(R8, 0 args, 2 rets)
  0024  GETTABUP  R8 = _ENV[K12('RewardApi')]
  0025  GETTABLE  R8 = R8[K13('CryptRewards')]
  0026  GETTABLE  R9 = R7[K10('vipRewards')]
  0027  LOADBOOL  R10 = true
  0028  CALL      R8 = call(R8, 0 args, 2 rets)
  0029  GETTABLE  R8 = R0[K0('m_config')]
  0030  GETTABLE  R8 = R8[K1('levelConfigs')]
  0031  GETTABLE  R9 = R6[K14('level')]
  0032  SETTABLE  R8[R9] = R7
  0033  TFORCALL  tforcall R2
  0034  TFORLOOP  tforloop R4(sBx=-23)   -> 12
  0035  GETTABLE  R2 = R0[K0('m_config')]
  0036  NEWTABLE  R3 = {} (0 items)
  0037  SETTABLE  R2[K15('extraLevelConfigs')] = R3
  0038  GETTABLE  R2 = R1[K16('battlePassExtraReward')]
  0039  TEST      if not R2 then   -> -131031
  0040  JMP       (jump)   -> 72
  0041  GETTABLE  R2 = R1[K16('battlePassExtraReward')]
  0042  LEN       R2 = len R0
  0043  GETTABUP  R3 = _ENV[K6('ipairs')]
  0044  GETTABLE  R4 = R1[K16('battlePassExtraReward')]
  0045  CALL      R3 = call(R3, 3 args, 1 rets)
  0046  JMP       (jump)   -> 56
  0047  GETTABLE  R8 = R0[K0('m_config')]
  0048  GETTABLE  R8 = R8[K15('extraLevelConfigs')]
  0049  GETTABLE  R9 = R7[K17('id')]
  0050  SETTABLE  R8[R9] = R7
  0051  GETTABUP  R8 = _ENV[K12('RewardApi')]
  0052  GETTABLE  R8 = R8[K13('CryptRewards')]
  0053  GETTABLE  R9 = R7[K9('reward')]
  0054  LOADBOOL  R10 = true
  0055  CALL      R8 = call(R8, 0 args, 2 rets)
  0056  TFORCALL  tforcall R3
  0057  TFORLOOP  tforloop R5(sBx=-11)   -> 47
  0058  LOADK     R3 = K18 1
  0059  MOVE      R4 = R0
  0060  LOADK     R5 = K18 1
  0061  FORPREP   forprep R3(sBx=9)   -> 71
  0062  GETTABLE  R7 = R0[K0('m_config')]
  0063  GETTABLE  R7 = R7[K15('extraLevelConfigs')]
  0064  GETTABLE  R7 = R7[R6]
  0065  EQ        if R0 eq K19(nil)   -> -127146
  0066  JMP       (jump)   -> 71
  0067  GETTABUP  R7 = _ENV[K2('Log')]
  0068  GETTABLE  R7 = R7[K20('Error')]
  0069  LOADK     R8 = K21 'BP battlePassExtraReward 配置错误'
  0070  CALL      R7 = call(R7, 0 args, 1 rets)
  0071  FORLOOP   forloop R3(sBx=-10)   -> 62
  0072  GETTABLE  R2 = R0[K0('m_config')]
  0073  NEWTABLE  R3 = {} (0 items)
  0074  SETTABLE  R2[K22('mapBuyTicketPopLevels')] = R3
  0075  SELF      R3 = R0[K23('GetGeneralConfig')] (self)
  0076  GETTABUP  R4 = _ENV[K24('PassActivityModel')]
  0077  GETTABLE  R4 = R4[K25('BuyTicketPopLevelsKey')]
  0078  GETTABUP  R5 = _ENV[K26('EConfigParamType')]
  0079  GETTABLE  R5 = R5[K27('IntArray')]
  0080  CALL      R2 = call(R2, 1 args, 3 rets)
  0081  TEST      if not R2 then   -> -130988
  0082  JMP       (jump)   -> 84
  0083  NEWTABLE  R2 = {} (0 items)
  0084  GETTABUP  R3 = _ENV[K6('ipairs')]
  0085  MOVE      R4 = R0
  0086  CALL      R3 = call(R3, 3 args, 1 rets)
  0087  JMP       (jump)   -> 91
  0088  GETTABLE  R8 = R0[K0('m_config')]
  0089  GETTABLE  R8 = R8[K22('mapBuyTicketPopLevels')]
  0090  SETTABLE  R8[R7] = K28(true)
  0091  TFORCALL  tforcall R3
  0092  TFORLOOP  tforloop R5(sBx=-5)   -> 88
  0093  GETTABLE  R3 = R0[K0('m_config')]
  0094  NEWTABLE  R4 = {} (0 items)
  0095  SETTABLE  R3[K29('mapBuyTicketPopDays')] = R4
  0096  SELF      R4 = R0[K23('GetGeneralConfig')] (self)
  0097  GETTABUP  R5 = _ENV[K24('PassActivityModel')]
  0098  GETTABLE  R5 = R5[K30('BuyTicketPopCountDown')]
  0099  GETTABUP  R6 = _ENV[K26('EConfigParamType')]
  0100  GETTABLE  R6 = R6[K27('IntArray')]
  0101  CALL      R3 = call(R3, 1 args, 3 rets)
  0102  TEST      if not R3 then   -> -130967
  0103  JMP       (jump)   -> 105
  0104  NEWTABLE  R3 = {} (0 items)
  0105  GETTABUP  R4 = _ENV[K6('ipairs')]
  0106  MOVE      R5 = R0
  0107  CALL      R4 = call(R4, 3 args, 1 rets)
  0108  JMP       (jump)   -> 112
  0109  GETTABLE  R9 = R0[K0('m_config')]
  0110  GETTABLE  R9 = R9[K29('mapBuyTicketPopDays')]
  0111  SETTABLE  R9[R8] = K28(true)
  0112  TFORCALL  tforcall R4
  0113  TFORLOOP  tforloop R6(sBx=-5)   -> 109
  0114  SELF      R5 = R0[K23('GetGeneralConfig')] (self)
  0115  GETTABUP  R6 = _ENV[K24('PassActivityModel')]
  0116  GETTABLE  R6 = R6[K32('BuyTicketPopMinLevel')]
  0117  GETTABUP  R7 = _ENV[K26('EConfigParamType')]
  0118  GETTABLE  R7 = R7[K33('Int')]
  0119  CALL      R4 = call(R4, 1 args, 3 rets)
  0120  TEST      if not R4 then   -> -130949
  0121  JMP       (jump)   -> 123
  0122  LOADK     R4 = K34 2
  0123  SETTABLE  R0[K31('m_popMinLevel')] = R4
  0124  SELF      R5 = R0[K23('GetGeneralConfig')] (self)
  0125  GETTABUP  R6 = _ENV[K24('PassActivityModel')]
  0126  GETTABLE  R6 = R6[K36('VIPExtraEnergyCount')]
  0127  GETTABUP  R7 = _ENV[K26('EConfigParamType')]
  0128  GETTABLE  R7 = R7[K33('Int')]
  0129  CALL      R4 = call(R4, 1 args, 3 rets)
  0130  TEST      if not R4 then   -> -130939
  0131  JMP       (jump)   -> 133
  0132  LOADK     R4 = K37 0
  0133  SETTABLE  R0[K35('m_vipExtraEnergyCount')] = R4
  0134  GETTABUP  R4 = _ENV[K38('GameConfig')]
  0135  GETTABLE  R4 = R4[K39('IsTestMode')]
  0136  CALL      R4 = call(R4, 1 args, 0 rets)
  0137  TEST      if not R4 then   -> -130933
  0138  JMP       (jump)   -> 174
  0139  GETTABLE  R4 = R0[K35('m_vipExtraEnergyCount')]
  0140  LE        if R0 le K37(0)   -> -128589
  0141  JMP       (jump)   -> 174
  0142  GETTABLE  R4 = R1[K4('battlePassReward')]
  0143  TEST      if not R4 then   -> -130927
  0144  JMP       (jump)   -> 174
  0145  GETTABLE  R4 = R1[K4('battlePassReward')]
  0146  GETTABLE  R4 = R4[K18(1)]
  0147  TEST      if not R4 then   -> -130923
  0148  JMP       (jump)   -> 174
  0149  GETTABLE  R4 = R1[K4('battlePassReward')]
  0150  GETTABLE  R4 = R4[K18(1)]
  0151  GETTABLE  R4 = R4[K11('golden_reward')]
  0152  TEST      if not R4 then   -> -130918
  0153  JMP       (jump)   -> 174
  0154  GETTABLE  R4 = R1[K4('battlePassReward')]
  0155  GETTABLE  R4 = R4[K18(1)]
  0156  GETTABLE  R4 = R4[K11('golden_reward')]
  0157  GETTABLE  R4 = R4[K18(1)]
  0158  TEST      if not R4 then   -> -130912
  0159  JMP       (jump)   -> 174
  0160  GETTABLE  R4 = R1[K4('battlePassReward')]
  0161  GETTABLE  R4 = R4[K18(1)]
  0162  GETTABLE  R4 = R4[K11('golden_reward')]
  0163  GETTABLE  R4 = R4[K18(1)]
  0164  GETTABUP  R5 = _ENV[K40('PROPERTY_TYPE')]
  0165  GETTABLE  R4 = R4[R5]
  0166  GETTABUP  R5 = _ENV[K41('EPropertyType')]
  0167  GETTABLE  R5 = R5[K42('Energy')]
  0168  EQ        if R1 eq R5   -> -128849
  0169  JMP       (jump)   -> 174
  0170  GETTABUP  R4 = _ENV[K2('Log')]
  0171  GETTABLE  R4 = R4[K20('Error')]
  0172  LOADK     R5 = K43 'BP 金券第一个奖励应配置为体力！'
  0173  CALL      R4 = call(R4, 0 args, 1 rets)
  0174  SELF      R5 = R0[K23('GetGeneralConfig')] (self)
  0175  GETTABUP  R6 = _ENV[K24('PassActivityModel')]
  0176  GETTABLE  R6 = R6[K44('MaxTicketTokenCountKey')]
  0177  GETTABUP  R7 = _ENV[K26('EConfigParamType')]
  0178  GETTABLE  R7 = R7[K33('Int')]
  0179  CALL      R4 = call(R4, 1 args, 3 rets)
  0180  SELF      R6 = R0[K23('GetGeneralConfig')] (self)
  0181  GETTABUP  R7 = _ENV[K24('PassActivityModel')]
  0182  GETTABLE  R7 = R7[K45('MaxTicketTokenRatioKey')]
  0183  GETTABUP  R8 = _ENV[K26('EConfigParamType')]
  0184  GETTABLE  R8 = R8[K46('Float')]
  0185  CALL      R5 = call(R5, 1 args, 3 rets)
  0186  SELF      R7 = R0[K23('GetGeneralConfig')] (self)
  0187  GETTABUP  R8 = _ENV[K24('PassActivityModel')]
  0188  GETTABLE  R8 = R8[K47('MaxTicketTokenAddKey')]
  0189  GETTABUP  R9 = _ENV[K26('EConfigParamType')]
  0190  GETTABLE  R9 = R9[K33('Int')]
  0191  CALL      R6 = call(R6, 1 args, 3 rets)
  0192  EQ        if R1 eq K19(nil)   -> -128555
  0193  JMP       (jump)   -> 213
  0194  EQ        if R0 eq K19(nil)   -> -128041
  0195  JMP       (jump)   -> 198
  0196  EQ        if R1 eq K19(nil)   -> -127527
  0197  JMP       (jump)   -> 213
  0198  GETTABLE  R7 = R0[K0('m_config')]
  0199  GETTABUP  R8 = _ENV[K49('tonumber')]
  0200  MOVE      R9 = R0
  0201  CALL      R8 = call(R8, 1 args, 1 rets)
  0202  SETTABLE  R7[K48('maxTicketTokenCount')] = R8
  0203  GETTABLE  R7 = R0[K0('m_config')]
  0204  GETTABUP  R8 = _ENV[K49('tonumber')]
  0205  MOVE      R9 = R0
  0206  CALL      R8 = call(R8, 1 args, 1 rets)
  0207  SETTABLE  R7[K50('maxTicketTokenRatio')] = R8
  0208  GETTABLE  R7 = R0[K0('m_config')]
  0209  GETTABUP  R8 = _ENV[K49('tonumber')]
  0210  MOVE      R9 = R0
  0211  CALL      R8 = call(R8, 1 args, 1 rets)
  0212  SETTABLE  R7[K51('maxTicketTokenAdd')] = R8
  0213  GETTABUP  R7 = EBPIAPSeries[K53('Default')]
  0214  SETTABLE  R0[K52('m_eIapSeries')] = R7
  0215  GETTABUP  R7 = _ENV[K49('tonumber')]
  0216  SELF      R9 = R0[K23('GetGeneralConfig')] (self)
  0217  GETTABUP  R10 = _ENV[K24('PassActivityModel')]
  0218  GETTABLE  R10 = R10[K54('NewIapTypeServer')]
  0219  GETTABUP  R11 = _ENV[K26('EConfigParamType')]
  0220  GETTABLE  R11 = R11[K33('Int')]
  0221  CALL      R8 = call(R8, -1 args, 3 rets)
  0222  CALL      R7 = call(R7, 1 args, -1 rets)
  0223  EQ        if R0 eq K55(3)   -> -126952
  0224  JMP       (jump)   -> 228
  0225  GETTABUP  R8 = EBPIAPSeries[K56('BackUp2')]
  0226  SETTABLE  R0[K52('m_eIapSeries')] = R8
  0227  JMP       (jump)   -> 232
  0228  TEST      if not R7 then   -> -130842
  0229  JMP       (jump)   -> 232
  0230  GETTABUP  R8 = EBPIAPSeries[K57('BackUp')]
  0231  SETTABLE  R0[K52('m_eIapSeries')] = R8
  0232  SELF      R9 = R0[K58('_CheckIfTakeAllRewards')] (self)
  0233  CALL      R8 = call(R8, 0 args, 1 rets)
  0234  GETTABLE  R8 = R0[K59('m_tokenHelper')]
  0235  SELF      R9 = R8[K60('LoadConfig')] (self)
  0236  MOVE      R10 = R0
  0237  CALL      R8 = call(R8, 0 args, 2 rets)
  0238  RETURN    return R0..R-1
; ---------- proto8 [OnCheckResourcesFinished] ----------
  ; fn ?  line 221-223 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_OnLoginFinished'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_OnLoginFinished')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto9 [_OnLoginFinished] ----------
  ; fn ?  line 225-237 np=1 va=0 ms=3 code=15 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='CheckResourcesStageFinished'
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='_UpdateShouldPopMainWindow'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('CheckResourcesStageFinished')]
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  SELF      R2 = R0[K2('GetState')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0008  GETTABLE  R2 = R2[K4('Started')]
  0009  EQ        if R1 eq R2   -> -130547
  0010  JMP       (jump)   -> 12
  0011  RETURN    return R0..R-1
  0012  SELF      R2 = R0[K5('_UpdateShouldPopMainWindow')] (self)
  0013  CALL      R1 = call(R1, 0 args, 1 rets)
  0014  RETURN    return R0..R-1
; ---------- proto10 [_UpdateShouldPopMainWindow] ----------
  ; fn ?  line 240-257 np=1 va=0 ms=7 code=43 consts=21 upvals=1 protos=0
  ;   K[0]='m_shouldPopMainWindow'
  ;   K[1]='m_dbTable'
  ;   K[2]='GetValue'
  ;   K[3]='PassActivityModel'
  ;   K[4]='LastPopMainDayKey'
  ;   K[5]='value'
  ;   K[6]=-1
  ;   K[7]='GM'
  ;   K[8]='GameModel'
  ;   K[9]='GetServerDay'
  ;   K[10]='GetCurrentLevel'
  ;   K[11]='GetLevel'
  ;   K[12]='GetLastTokenNumber'
  ;   K[13]='HasMaxTicket'
  ;   K[14]='GetCanTakeExtraRewardNum'
  ;   K[15]=0
  ;   K[16]=true
  ;   K[17]='EventDispatcher'
  ;   K[18]='DispatchEvent'
  ;   K[19]='m_activityDefinition'
  ;   K[20]='ShouldRefreshTimelimitTasksEvent'
  ;   upvals: _ENV
  ;   locals: self(0-43), lastDay(13-43)
  0000  GETTABLE  R1 = R0[K0('m_shouldPopMainWindow')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K1('m_dbTable')]
  0005  SELF      R2 = R1[K2('GetValue')] (self)
  0006  GETTABUP  R3 = _ENV[K3('PassActivityModel')]
  0007  GETTABLE  R3 = R3[K4('LastPopMainDayKey')]
  0008  LOADK     R4 = K5 'value'
  0009  CALL      R1 = call(R1, 1 args, 3 rets)
  0010  TEST      if not R1 then   -> -131059
  0011  JMP       (jump)   -> 13
  0012  LOADK     R1 = K6 -1
  0013  GETTABUP  R2 = _ENV[K7('GM')]
  0014  GETTABLE  R2 = R2[K8('GameModel')]
  0015  SELF      R3 = R2[K9('GetServerDay')] (self)
  0016  CALL      R2 = call(R2, 1 args, 1 rets)
  0017  LE        if R0 le R1   -> -130028
  0018  JMP       (jump)   -> 20
  0019  RETURN    return R0..R-1
  0020  SELF      R3 = R0[K10('GetCurrentLevel')] (self)
  0021  CALL      R2 = call(R2, 1 args, 1 rets)
  0022  SELF      R4 = R0[K11('GetLevel')] (self)
  0023  SELF      R6 = R0[K12('GetLastTokenNumber')] (self)
  0024  CALL      R5 = call(R5, -1 args, 1 rets)
  0025  CALL      R3 = call(R3, 1 args, -1 rets)
  0026  LT        if R1 lt R2   -> -129506
  0027  JMP       (jump)   -> 36
  0028  SELF      R3 = R0[K13('HasMaxTicket')] (self)
  0029  CALL      R2 = call(R2, 1 args, 1 rets)
  0030  TEST      if not R2 then   -> -131040
  0031  JMP       (jump)   -> 42
  0032  SELF      R3 = R0[K14('GetCanTakeExtraRewardNum')] (self)
  0033  CALL      R2 = call(R2, 1 args, 1 rets)
  0034  LT        if R0 lt R2   -> 7718
  0035  JMP       (jump)   -> 42
  0036  SETTABLE  R0[K0('m_shouldPopMainWindow')] = K16(true)
  0037  GETTABUP  R2 = _ENV[K17('EventDispatcher')]
  0038  GETTABLE  R2 = R2[K18('DispatchEvent')]
  0039  GETTABLE  R3 = R0[K19('m_activityDefinition')]
  0040  GETTABLE  R3 = R3[K20('ShouldRefreshTimelimitTasksEvent')]
  0041  CALL      R2 = call(R2, 0 args, 1 rets)
  0042  RETURN    return R0..R-1
; ---------- proto11 [ShouldPopMainWindow] ----------
  ; fn ?  line 259-261 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_shouldPopMainWindow'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_shouldPopMainWindow')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto12 [OnPopMainWindow] ----------
  ; fn ?  line 263-266 np=1 va=0 ms=7 code=12 consts=10 upvals=1 protos=0
  ;   K[0]='m_shouldPopMainWindow'
  ;   K[1]=false
  ;   K[2]='m_dbTable'
  ;   K[3]='Set'
  ;   K[4]='PassActivityModel'
  ;   K[5]='LastPopMainDayKey'
  ;   K[6]='value'
  ;   K[7]='GM'
  ;   K[8]='GameModel'
  ;   K[9]='GetServerDay'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  SETTABLE  R0[K0('m_shouldPopMainWindow')] = K1(false)
  0001  GETTABLE  R1 = R0[K2('m_dbTable')]
  0002  SELF      R2 = R1[K3('Set')] (self)
  0003  GETTABUP  R3 = _ENV[K4('PassActivityModel')]
  0004  GETTABLE  R3 = R3[K5('LastPopMainDayKey')]
  0005  LOADK     R4 = K6 'value'
  0006  GETTABUP  R5 = _ENV[K7('GM')]
  0007  GETTABLE  R5 = R5[K8('GameModel')]
  0008  SELF      R6 = R5[K9('GetServerDay')] (self)
  0009  CALL      R5 = call(R5, -1 args, 1 rets)
  0010  CALL      R1 = call(R1, 0 args, -1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto13 [_CalculateState] ----------
  ; fn ?  line 268-293 np=2 va=0 ms=7 code=72 consts=18 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   K[2]='_CanStartActivity'
  ;   K[3]='ActivityState'
  ;   K[4]='Released'
  ;   K[5]='GM'
  ;   K[6]='GameModel'
  ;   K[7]='GetServerTime'
  ;   K[8]='GetEndTime'
  ;   K[9]='_IsExistConditionSatisfied'
  ;   K[10]='sTime'
  ;   K[11]='Preparing'
  ;   K[12]='IsSettled'
  ;   K[13]='CanSettleBeforeEnd'
  ;   K[14]='Started'
  ;   K[15]='rTime'
  ;   K[16]='Ended'
  ;   K[17]=-1
  ;   upvals: _ENV
  ;   locals: self(0-72), bIgnoreCondition(0-72), serverTime(17-72), bExistSatisfied(18-72), totalEndTime(21-72)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  EQ        if R1 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 9
  0003  TEST      if not R1 then   -> -131066
  0004  JMP       (jump)   -> 13
  0005  SELF      R3 = R0[K2('_CanStartActivity')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  TEST      if not R2 then   -> -131062
  0008  JMP       (jump)   -> 13
  0009  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0010  GETTABLE  R2 = R2[K4('Released')]
  0011  LOADNIL   R3..R3 = nil
  0012  RETURN    return R2..R1
  0013  GETTABUP  R2 = _ENV[K5('GM')]
  0014  GETTABLE  R2 = R2[K6('GameModel')]
  0015  SELF      R3 = R2[K7('GetServerTime')] (self)
  0016  CALL      R2 = call(R2, 1 args, 1 rets)
  0017  LOADBOOL  R3 = true
  0018  SELF      R5 = R0[K8('GetEndTime')] (self)
  0019  LOADBOOL  R6 = true
  0020  CALL      R4 = call(R4, 1 args, 2 rets)
  0021  TEST      if not R1 then   -> -131048
  0022  JMP       (jump)   -> 27
  0023  SELF      R6 = R0[K9('_IsExistConditionSatisfied')] (self)
  0024  CALL      R5 = call(R5, 2 args, 1 rets)
  0025  MOVE      R4 = R0
  0026  MOVE      R3 = R0
  0027  TEST      if not R3 then   -> -131043
  0028  JMP       (jump)   -> 38
  0029  GETTABLE  R5 = R0[K0('m_config')]
  0030  GETTABLE  R5 = R5[K10('sTime')]
  0031  LT        if R0 lt R5   -> -130010
  0032  JMP       (jump)   -> 38
  0033  GETTABUP  R5 = _ENV[K3('ActivityState')]
  0034  GETTABLE  R5 = R5[K11('Preparing')]
  0035  GETTABLE  R6 = R0[K0('m_config')]
  0036  GETTABLE  R6 = R6[K10('sTime')]
  0037  RETURN    return R5..R4
  0038  TEST      if not R3 then   -> -131032
  0039  JMP       (jump)   -> 54
  0040  LT        if R0 lt R4   -> -130002
  0041  JMP       (jump)   -> 54
  0042  SELF      R6 = R0[K12('IsSettled')] (self)
  0043  CALL      R5 = call(R5, 1 args, 1 rets)
  0044  TEST      if not R5 then   -> -131025
  0045  JMP       (jump)   -> 54
  0046  SELF      R6 = R0[K13('CanSettleBeforeEnd')] (self)
  0047  CALL      R5 = call(R5, 1 args, 1 rets)
  0048  TEST      if not R5 then   -> -131021
  0049  JMP       (jump)   -> 54
  0050  GETTABUP  R5 = _ENV[K3('ActivityState')]
  0051  GETTABLE  R5 = R5[K14('Started')]
  0052  MOVE      R6 = R0
  0053  RETURN    return R5..R4
  0054  GETTABLE  R5 = R0[K0('m_config')]
  0055  GETTABLE  R5 = R5[K15('rTime')]
  0056  TEST      if not R5 then   -> -131014
  0057  JMP       (jump)   -> 67
  0058  GETTABLE  R5 = R0[K0('m_config')]
  0059  GETTABLE  R5 = R5[K15('rTime')]
  0060  LT        if R0 lt R5   -> -129981
  0061  JMP       (jump)   -> 67
  0062  GETTABUP  R5 = _ENV[K3('ActivityState')]
  0063  GETTABLE  R5 = R5[K16('Ended')]
  0064  GETTABLE  R6 = R0[K0('m_config')]
  0065  GETTABLE  R6 = R6[K15('rTime')]
  0066  RETURN    return R5..R4
  0067  GETTABUP  R5 = _ENV[K3('ActivityState')]
  0068  GETTABLE  R5 = R5[K4('Released')]
  0069  LOADK     R6 = K17 -1
  0070  RETURN    return R5..R4
  0071  RETURN    return R0..R-1
; ---------- proto14 [_OnStateChanged] ----------
  ; fn ?  line 295-307 np=1 va=0 ms=4 code=33 consts=18 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='_OnStateChanged'
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='_UpdateShouldPopMainWindow'
  ;   K[6]='Ended'
  ;   K[7]='DoSettle'
  ;   K[8]='m_bPopMaxTicketTokenWindow'
  ;   K[9]=false
  ;   K[10]='event'
  ;   K[11]='Call'
  ;   K[12]='PassActivityEventType'
  ;   K[13]='StateChanged'
  ;   K[14]='EventDispatcher'
  ;   K[15]='DispatchEvent'
  ;   K[16]='m_activityDefinition'
  ;   K[17]='StateChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-33)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_OnStateChanged')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('GetState')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0007  GETTABLE  R2 = R2[K4('Started')]
  0008  EQ        if R0 eq R2   -> -130548
  0009  JMP       (jump)   -> 13
  0010  SELF      R2 = R0[K5('_UpdateShouldPopMainWindow')] (self)
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  JMP       (jump)   -> 21
  0013  SELF      R2 = R0[K2('GetState')] (self)
  0014  CALL      R1 = call(R1, 1 args, 1 rets)
  0015  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0016  GETTABLE  R2 = R2[K6('Ended')]
  0017  EQ        if R0 eq R2   -> -130539
  0018  JMP       (jump)   -> 21
  0019  SELF      R2 = R0[K7('DoSettle')] (self)
  0020  CALL      R1 = call(R1, 0 args, 1 rets)
  0021  SETTABLE  R0[K8('m_bPopMaxTicketTokenWindow')] = K9(false)
  0022  GETTABLE  R1 = R0[K10('event')]
  0023  SELF      R2 = R1[K11('Call')] (self)
  0024  GETTABUP  R3 = _ENV[K12('PassActivityEventType')]
  0025  GETTABLE  R3 = R3[K13('StateChanged')]
  0026  CALL      R1 = call(R1, 0 args, 2 rets)
  0027  GETTABUP  R1 = _ENV[K14('EventDispatcher')]
  0028  GETTABLE  R1 = R1[K15('DispatchEvent')]
  0029  GETTABLE  R2 = R0[K16('m_activityDefinition')]
  0030  GETTABLE  R2 = R2[K17('StateChangedEvent')]
  0031  CALL      R1 = call(R1, 0 args, 1 rets)
  0032  RETURN    return R0..R-1
; ---------- proto15 [_DropData] ----------
  ; fn ?  line 309-317 np=1 va=0 ms=3 code=11 consts=9 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='_DropData'
  ;   K[2]='m_bSettled'
  ;   K[3]=false
  ;   K[4]='m_bHasTakeAllRewards'
  ;   K[5]='m_shouldRefreshTimelimitTasks'
  ;   K[6]='m_shouldPopMainWindow'
  ;   K[7]='m_bPopMaxTicketTokenWindow'
  ;   K[8]='m_bCanTakeVIPExtraEnergyInView'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_DropData')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SETTABLE  R0[K2('m_bSettled')] = K3(false)
  0005  SETTABLE  R0[K4('m_bHasTakeAllRewards')] = K3(false)
  0006  SETTABLE  R0[K5('m_shouldRefreshTimelimitTasks')] = K3(false)
  0007  SETTABLE  R0[K6('m_shouldPopMainWindow')] = K3(false)
  0008  SETTABLE  R0[K7('m_bPopMaxTicketTokenWindow')] = K3(false)
  0009  SETTABLE  R0[K8('m_bCanTakeVIPExtraEnergyInView')] = K3(false)
  0010  RETURN    return R0..R-1
; ---------- proto16 [GetLevelConfigs] ----------
  ; fn ?  line 319-321 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='levelConfigs'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  GETTABLE  R1 = R1[K1('levelConfigs')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto17 [GetLevelConfigIncludeExtra] ----------
  ; fn ?  line 323-333 np=2 va=0 ms=6 code=28 consts=5 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='levelConfigs'
  ;   K[2]='HasExtraLevels'
  ;   K[3]='extraLevelConfigs'
  ;   K[4]=0
  ;   locals: self(0-28), level(0-28), normalLevelCount(3-28), extraLevelCount(17-27), index(19-27)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  GETTABLE  R2 = R2[K1('levelConfigs')]
  0002  LEN       R2 = len R0
  0003  LE        if R0 le R2   -> -130553
  0004  JMP       (jump)   -> 10
  0005  GETTABLE  R3 = R0[K0('m_config')]
  0006  GETTABLE  R3 = R3[K1('levelConfigs')]
  0007  GETTABLE  R3 = R3[R1]
  0008  RETURN    return R3..R2
  0009  JMP       (jump)   -> 27
  0010  SELF      R4 = R0[K2('HasExtraLevels')] (self)
  0011  CALL      R3 = call(R3, 1 args, 1 rets)
  0012  TEST      if not R3 then   -> -131058
  0013  JMP       (jump)   -> 27
  0014  GETTABLE  R3 = R0[K0('m_config')]
  0015  GETTABLE  R3 = R3[K3('extraLevelConfigs')]
  0016  LEN       R3 = len R0
  0017  SUB       R4 = R2 sub R1
  0018  MOD       R4 = R3 mod R4
  0019  EQ        if R0 eq K4(0)   -> -128743
  0020  JMP       (jump)   -> 23
  0021  TESTSET   if R1 then R4   -> -129512
  0022  JMP       (jump)   -> 23
  0023  GETTABLE  R5 = R0[K0('m_config')]
  0024  GETTABLE  R5 = R5[K3('extraLevelConfigs')]
  0025  GETTABLE  R5 = R5[R4]
  0026  RETURN    return R5..R4
  0027  RETURN    return R0..R-1
; ---------- proto18 [HasExtraLevels] ----------
  ; fn ?  line 335-337 np=1 va=0 ms=2 code=9 consts=3 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='extraLevelConfigs'
  ;   K[2]=0
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  GETTABLE  R1 = R1[K1('extraLevelConfigs')]
  0002  LEN       R1 = len R0
  0003  LT        if R1 lt R1   -> 1030
  0004  JMP       (jump)   -> 6
  0005  LOADBOOL  R1 = false
  0006  LOADBOOL  R1 = true
  0007  RETURN    return R1..R0
  0008  RETURN    return R0..R-1
; ---------- proto19 [CanOpenBuyTicketPopupWindow] ----------
  ; fn ?  line 339-363 np=1 va=0 ms=7 code=85 consts=24 upvals=1 protos=0
  ;   K[0]='HasTicket'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Started'
  ;   K[4]='GetCurrentLevel'
  ;   K[5]='GetEndTime'
  ;   K[6]='GM'
  ;   K[7]='GameModel'
  ;   K[8]='GetServerTime'
  ;   K[9]='Sec2Day'
  ;   K[10]=1
  ;   K[11]='m_config'
  ;   K[12]='mapBuyTicketPopLevels'
  ;   K[13]='mapBuyTicketPopDays'
  ;   K[14]='m_popMinLevel'
  ;   K[15]='m_dbTable'
  ;   K[16]='GetValue'
  ;   K[17]='PassActivityModel'
  ;   K[18]='LastBuyTicketPopupWindowDayKey'
  ;   K[19]='value'
  ;   K[20]=-1
  ;   K[21]='sTime'
  ;   K[22]='Ended'
  ;   K[23]='BuyTicketPopupWindowOpenedStateEnded'
  ;   upvals: _ENV
  ;   locals: self(0-85), tokenLevel(14-64), remainDay(24-64), lastDay(50-64), currentDay(59-64)
  0000  SELF      R2 = R0[K0('HasTicket')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 6
  0004  LOADBOOL  R1 = false
  0005  RETURN    return R1..R0
  0006  SELF      R2 = R0[K1('GetState')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0009  GETTABLE  R2 = R2[K3('Started')]
  0010  EQ        if R0 eq R2   -> -130546
  0011  JMP       (jump)   -> 65
  0012  SELF      R2 = R0[K4('GetCurrentLevel')] (self)
  0013  CALL      R1 = call(R1, 1 args, 1 rets)
  0014  SELF      R3 = R0[K5('GetEndTime')] (self)
  0015  CALL      R2 = call(R2, 1 args, 1 rets)
  0016  GETTABUP  R3 = _ENV[K6('GM')]
  0017  GETTABLE  R3 = R3[K7('GameModel')]
  0018  SELF      R4 = R3[K8('GetServerTime')] (self)
  0019  CALL      R3 = call(R3, 1 args, 1 rets)
  0020  SUB       R2 = R3 sub R2
  0021  GETTABUP  R3 = _ENV[K9('Sec2Day')]
  0022  IDIV      R2 = R3 idiv R2
  0023  ADD       R2 = K10(1) add R2
  0024  GETTABLE  R3 = R0[K11('m_config')]
  0025  GETTABLE  R3 = R3[K12('mapBuyTicketPopLevels')]
  0026  GETTABLE  R3 = R3[R1]
  0027  TEST      if not R3 then   -> -131042
  0028  JMP       (jump)   -> 41
  0029  GETTABLE  R3 = R0[K11('m_config')]
  0030  GETTABLE  R3 = R3[K13('mapBuyTicketPopDays')]
  0031  GETTABLE  R3 = R3[R2]
  0032  TEST      if not R3 then   -> -131038
  0033  JMP       (jump)   -> 39
  0034  SELF      R4 = R0[K4('GetCurrentLevel')] (self)
  0035  CALL      R3 = call(R3, 1 args, 1 rets)
  0036  GETTABLE  R4 = R0[K14('m_popMinLevel')]
  0037  LT        if R0 lt R4   -> -129493
  0038  JMP       (jump)   -> 41
  0039  LOADBOOL  R3 = false
  0040  RETURN    return R3..R2
  0041  GETTABLE  R3 = R0[K15('m_dbTable')]
  0042  SELF      R4 = R3[K16('GetValue')] (self)
  0043  GETTABUP  R5 = _ENV[K17('PassActivityModel')]
  0044  GETTABLE  R5 = R5[K18('LastBuyTicketPopupWindowDayKey')]
  0045  LOADK     R6 = K19 'value'
  0046  CALL      R3 = call(R3, 1 args, 3 rets)
  0047  TEST      if not R3 then   -> -131022
  0048  JMP       (jump)   -> 50
  0049  LOADK     R3 = K20 -1
  0050  GETTABUP  R4 = _ENV[K6('GM')]
  0051  GETTABLE  R4 = R4[K7('GameModel')]
  0052  SELF      R5 = R4[K8('GetServerTime')] (self)
  0053  CALL      R4 = call(R4, 1 args, 1 rets)
  0054  GETTABLE  R5 = R0[K11('m_config')]
  0055  GETTABLE  R5 = R5[K21('sTime')]
  0056  SUB       R4 = R5 sub R4
  0057  GETTABUP  R5 = _ENV[K9('Sec2Day')]
  0058  IDIV      R4 = R5 idiv R4
  0059  LT        if R1 lt R4   -> -129471
  0060  JMP       (jump)   -> 62
  0061  LOADBOOL  R5 = false
  0062  LOADBOOL  R5 = true
  0063  RETURN    return R5..R4
  0064  JMP       (jump)   -> 82
  0065  SELF      R2 = R0[K1('GetState')] (self)
  0066  CALL      R1 = call(R1, 1 args, 1 rets)
  0067  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0068  GETTABLE  R2 = R2[K22('Ended')]
  0069  EQ        if R0 eq R2   -> -130487
  0070  JMP       (jump)   -> 82
  0071  GETTABLE  R1 = R0[K15('m_dbTable')]
  0072  SELF      R2 = R1[K16('GetValue')] (self)
  0073  GETTABUP  R3 = _ENV[K17('PassActivityModel')]
  0074  GETTABLE  R3 = R3[K23('BuyTicketPopupWindowOpenedStateEnded')]
  0075  LOADK     R4 = K19 'value'
  0076  CALL      R1 = call(R1, 1 args, 3 rets)
  0077  EQ        if R0 eq K10(1)   -> -130215
  0078  JMP       (jump)   -> 80
  0079  LOADBOOL  R1 = false
  0080  LOADBOOL  R1 = true
  0081  RETURN    return R1..R0
  0082  LOADBOOL  R1 = false
  0083  RETURN    return R1..R0
  0084  RETURN    return R0..R-1
; ---------- proto20 [SetBuyTicketPopupWindowOpened] ----------
  ; fn ?  line 365-372 np=1 va=0 ms=7 code=31 consts=16 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   K[3]='GM'
  ;   K[4]='GameModel'
  ;   K[5]='GetServerTime'
  ;   K[6]='m_config'
  ;   K[7]='sTime'
  ;   K[8]='Sec2Day'
  ;   K[9]='m_dbTable'
  ;   K[10]='Set'
  ;   K[11]='PassActivityModel'
  ;   K[12]='LastBuyTicketPopupWindowDayKey'
  ;   K[13]='value'
  ;   K[14]='BuyTicketPopupWindowOpenedStateEnded'
  ;   K[15]=1
  ;   upvals: _ENV
  ;   locals: self(0-31), day(15-22)
  0000  SELF      R2 = R0[K0('GetState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R2 = R2[K2('Started')]
  0004  EQ        if R0 eq R2   -> -130552
  0005  JMP       (jump)   -> 23
  0006  GETTABUP  R1 = _ENV[K3('GM')]
  0007  GETTABLE  R1 = R1[K4('GameModel')]
  0008  SELF      R2 = R1[K5('GetServerTime')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  GETTABLE  R2 = R0[K6('m_config')]
  0011  GETTABLE  R2 = R2[K7('sTime')]
  0012  SUB       R1 = R2 sub R1
  0013  GETTABUP  R2 = _ENV[K8('Sec2Day')]
  0014  IDIV      R1 = R2 idiv R1
  0015  GETTABLE  R2 = R0[K9('m_dbTable')]
  0016  SELF      R3 = R2[K10('Set')] (self)
  0017  GETTABUP  R4 = _ENV[K11('PassActivityModel')]
  0018  GETTABLE  R4 = R4[K12('LastBuyTicketPopupWindowDayKey')]
  0019  LOADK     R5 = K13 'value'
  0020  MOVE      R6 = R0
  0021  CALL      R2 = call(R2, 0 args, 4 rets)
  0022  JMP       (jump)   -> 30
  0023  GETTABLE  R1 = R0[K9('m_dbTable')]
  0024  SELF      R2 = R1[K10('Set')] (self)
  0025  GETTABUP  R3 = _ENV[K11('PassActivityModel')]
  0026  GETTABLE  R3 = R3[K14('BuyTicketPopupWindowOpenedStateEnded')]
  0027  LOADK     R4 = K13 'value'
  0028  LOADK     R5 = K15 1
  0029  CALL      R1 = call(R1, 0 args, 4 rets)
  0030  RETURN    return R0..R-1
; ---------- proto21 [GetRedPointCount] ----------
  ; fn ?  line 375-377 np=1 va=0 ms=3 code=5 consts=1 upvals=0 protos=0
  ;   K[0]='GetCanTakeRewards'
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('GetCanTakeRewards')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  LEN       R1 = len R0
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto22 [GetLastTokenNumber] ----------
  ; fn ?  line 380-382 np=1 va=0 ms=5 code=11 consts=6 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='PassActivityModel'
  ;   K[3]='LastTokenNumberKey'
  ;   K[4]='value'
  ;   K[5]=0
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('LastTokenNumberKey')]
  0004  LOADK     R4 = K4 'value'
  0005  CALL      R1 = call(R1, 1 args, 3 rets)
  0006  TEST      if not R1 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  LOADK     R1 = K5 0
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto23 [UpdateLastTokenNumber] ----------
  ; fn ?  line 384-386 np=1 va=0 ms=7 code=9 consts=6 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='PassActivityModel'
  ;   K[3]='LastTokenNumberKey'
  ;   K[4]='value'
  ;   K[5]='GetTokenNumber'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('Set')] (self)
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('LastTokenNumberKey')]
  0004  LOADK     R4 = K4 'value'
  0005  SELF      R6 = R0[K5('GetTokenNumber')] (self)
  0006  CALL      R5 = call(R5, -1 args, 1 rets)
  0007  CALL      R1 = call(R1, 0 args, -1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto24 [GetTokenNumber] ----------
  ; fn ?  line 389-391 np=1 va=0 ms=5 code=11 consts=6 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='PassActivityModel'
  ;   K[3]='TokenNumberKey'
  ;   K[4]='value'
  ;   K[5]=0
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('TokenNumberKey')]
  0004  LOADK     R4 = K4 'value'
  0005  CALL      R1 = call(R1, 1 args, 3 rets)
  0006  TEST      if not R1 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  LOADK     R1 = K5 0
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto25 [GetActivityTokenNumber] ----------
  ; fn ?  line 394-396 np=1 va=0 ms=3 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='GetTokenNumber'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('GetTokenNumber')] (self)
  0001  TAILCALL  tailcall(R1, 0)
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto26 [AcquireToken] ----------
  ; fn ?  line 398-419 np=3 va=0 ms=13 code=59 consts=18 upvals=1 protos=0
  ;   K[0]='GetTokenNumber'
  ;   K[1]='m_dbTable'
  ;   K[2]='Set'
  ;   K[3]='PassActivityModel'
  ;   K[4]='TokenNumberKey'
  ;   K[5]='value'
  ;   K[6]='GetValue'
  ;   K[7]='FinishedLevelKey'
  ;   K[8]=1
  ;   K[9]='GetCurrentLevel'
  ;   K[10]='GetMaxLevel'
  ;   K[11]='LogActivity'
  ;   K[12]='EBIType'
  ;   K[13]='ActivityRankUp'
  ;   K[14]='math'
  ;   K[15]='min'
  ;   K[16]='BattlePassExtraRankUp'
  ;   K[17]='ActivityAddScore'
  ;   upvals: _ENV
  ;   locals: self(0-59), count(0-59), biType(0-59), currentTokenNumber(2-59), finishedLevel(18-59), currentTokenLevel(21-59), maxLevel(25-43)
  0000  SELF      R4 = R0[K0('GetTokenNumber')] (self)
  0001  CALL      R3 = call(R3, 1 args, 1 rets)
  0002  GETTABLE  R4 = R0[K1('m_dbTable')]
  0003  SELF      R5 = R4[K2('Set')] (self)
  0004  GETTABUP  R6 = _ENV[K3('PassActivityModel')]
  0005  GETTABLE  R6 = R6[K4('TokenNumberKey')]
  0006  LOADK     R7 = K5 'value'
  0007  ADD       R8 = R1 add R3
  0008  CALL      R4 = call(R4, 0 args, 4 rets)
  0009  GETTABLE  R4 = R0[K1('m_dbTable')]
  0010  SELF      R5 = R4[K6('GetValue')] (self)
  0011  GETTABUP  R6 = _ENV[K3('PassActivityModel')]
  0012  GETTABLE  R6 = R6[K7('FinishedLevelKey')]
  0013  LOADK     R7 = K5 'value'
  0014  CALL      R4 = call(R4, 1 args, 3 rets)
  0015  TEST      if not R4 then   -> -131054
  0016  JMP       (jump)   -> 18
  0017  LOADK     R4 = K8 1
  0018  SELF      R6 = R0[K9('GetCurrentLevel')] (self)
  0019  LOADBOOL  R7 = true
  0020  CALL      R5 = call(R5, 1 args, 2 rets)
  0021  LT        if R0 lt R5   -> -128996
  0022  JMP       (jump)   -> 43
  0023  SELF      R7 = R0[K10('GetMaxLevel')] (self)
  0024  CALL      R6 = call(R6, 1 args, 1 rets)
  0025  LT        if R0 lt R6   -> -128991
  0026  JMP       (jump)   -> 36
  0027  SELF      R8 = R0[K11('LogActivity')] (self)
  0028  GETTABUP  R9 = _ENV[K12('EBIType')]
  0029  GETTABLE  R9 = R9[K13('ActivityRankUp')]
  0030  GETTABUP  R10 = _ENV[K14('math')]
  0031  GETTABLE  R10 = R10[K15('min')]
  0032  MOVE      R11 = R0
  0033  MOVE      R12 = R0
  0034  CALL      R10 = call(R10, -1 args, 2 rets)
  0035  CALL      R7 = call(R7, 0 args, -1 rets)
  0036  LT        if R0 lt R5   -> -127957
  0037  JMP       (jump)   -> 43
  0038  SELF      R8 = R0[K11('LogActivity')] (self)
  0039  GETTABUP  R9 = _ENV[K12('EBIType')]
  0040  GETTABLE  R9 = R9[K16('BattlePassExtraRankUp')]
  0041  SUB       R10 = R6 sub R5
  0042  CALL      R7 = call(R7, 0 args, 3 rets)
  0043  GETTABLE  R6 = R0[K1('m_dbTable')]
  0044  SELF      R7 = R6[K2('Set')] (self)
  0045  GETTABUP  R8 = _ENV[K3('PassActivityModel')]
  0046  GETTABLE  R8 = R8[K7('FinishedLevelKey')]
  0047  LOADK     R9 = K5 'value'
  0048  MOVE      R10 = R0
  0049  CALL      R6 = call(R6, 0 args, 4 rets)
  0050  TEST      if not R2 then   -> -131019
  0051  JMP       (jump)   -> 54
  0052  GETTABUP  R6 = _ENV[K12('EBIType')]
  0053  GETTABLE  R2 = R6[K17('ActivityAddScore')]
  0054  SELF      R7 = R0[K11('LogActivity')] (self)
  0055  MOVE      R8 = R0
  0056  MOVE      R9 = R0
  0057  CALL      R6 = call(R6, 0 args, 3 rets)
  0058  RETURN    return R0..R-1
; ---------- proto27 [AcquireActivityToken] ----------
  ; fn ?  line 422-427 np=2 va=0 ms=5 code=15 consts=7 upvals=1 protos=0
  ;   K[0]='AcquireToken'
  ;   K[1]='EventDispatcher'
  ;   K[2]='DispatchEvent'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='CanTakeRewardNumberChangedEvent'
  ;   K[5]='EEventType'
  ;   K[6]='ObtainBPTokenForWeeklyRank'
  ;   upvals: _ENV
  ;   locals: self(0-15), count(0-15)
  0000  SELF      R3 = R0[K0('AcquireToken')] (self)
  0001  MOVE      R4 = R0
  0002  CALL      R2 = call(R2, 0 args, 2 rets)
  0003  GETTABUP  R2 = _ENV[K1('EventDispatcher')]
  0004  GETTABLE  R2 = R2[K2('DispatchEvent')]
  0005  GETTABLE  R3 = R0[K3('m_activityDefinition')]
  0006  GETTABLE  R3 = R3[K4('CanTakeRewardNumberChangedEvent')]
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  GETTABUP  R2 = _ENV[K1('EventDispatcher')]
  0009  GETTABLE  R2 = R2[K2('DispatchEvent')]
  0010  GETTABUP  R3 = _ENV[K5('EEventType')]
  0011  GETTABLE  R3 = R3[K6('ObtainBPTokenForWeeklyRank')]
  0012  MOVE      R4 = R0
  0013  CALL      R2 = call(R2, 0 args, 2 rets)
  0014  RETURN    return R0..R-1
; ---------- proto28 [CanAddScore] ----------
  ; fn ?  line 429-431 np=1 va=0 ms=3 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('GetState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R2 = R2[K2('Started')]
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R1 = false
  0007  LOADBOOL  R1 = true
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto29 [GetOrderExtraReward] ----------
  ; fn ?  line 433-447 np=4 va=0 ms=8 code=29 consts=10 upvals=1 protos=0
  ;   K[0]='m_tokenHelper'
  ;   K[1]='GetOrderExtraReward'
  ;   K[2]=nil
  ;   K[3]=0
  ;   K[4]='CanBuyMaxTicket'
  ;   K[5]='GetTicketState'
  ;   K[6]='EBPTicketState'
  ;   K[7]='Purchase'
  ;   K[8]='GetMaxTicketTokenAdd'
  ;   K[9]='PROPERTY_COUNT'
  ;   upvals: _ENV
  ;   locals: self(0-29), orderScore(0-29), coinNum(0-29), orderId(0-29), reward(5-29), add(9-29)
  0000  GETTABLE  R4 = R0[K0('m_tokenHelper')]
  0001  SELF      R5 = R4[K1('GetOrderExtraReward')] (self)
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  CALL      R4 = call(R4, 1 args, 3 rets)
  0005  EQ        if R0 eq K2(nil)   -> -128759
  0006  JMP       (jump)   -> 8
  0007  RETURN    return R0..R-1
  0008  LOADK     R5 = K3 0
  0009  SELF      R7 = R0[K4('CanBuyMaxTicket')] (self)
  0010  CALL      R6 = call(R6, 1 args, 1 rets)
  0011  TEST      if not R6 then   -> -131059
  0012  JMP       (jump)   -> 22
  0013  SELF      R7 = R0[K5('GetTicketState')] (self)
  0014  CALL      R6 = call(R6, 1 args, 1 rets)
  0015  GETTABUP  R7 = _ENV[K6('EBPTicketState')]
  0016  GETTABLE  R7 = R7[K7('Purchase')]
  0017  EQ        if R0 eq R7   -> -127974
  0018  JMP       (jump)   -> 22
  0019  SELF      R7 = R0[K8('GetMaxTicketTokenAdd')] (self)
  0020  CALL      R6 = call(R6, 1 args, 1 rets)
  0021  MOVE      R5 = R0
  0022  GETTABUP  R6 = _ENV[K9('PROPERTY_COUNT')]
  0023  GETTABUP  R7 = _ENV[K9('PROPERTY_COUNT')]
  0024  GETTABLE  R7 = R4[R7]
  0025  ADD       R7 = R5 add R7
  0026  SETTABLE  R4[R6] = R7
  0027  RETURN    return R4..R3
  0028  RETURN    return R0..R-1
; ---------- proto30 [GetLevel] ----------
  ; fn ?  line 450-483 np=3 va=0 ms=10 code=49 consts=8 upvals=1 protos=0
  ;   K[0]=0
  ;   K[1]='ipairs'
  ;   K[2]='m_config'
  ;   K[3]='levelConfigs'
  ;   K[4]='require'
  ;   K[5]='GetMaxLevel'
  ;   K[6]='extraLevelConfigs'
  ;   K[7]=1
  ;   upvals: _ENV
  ;   locals: self(0-49), tokenNumber(0-49), bIncludeExtra(0-49), tokenLevel(1-49), (for generator)(5-16), (for state)(5-16), (for control)(5-16), level(6-14), config(6-14), extraLevelConfigs(24-45), extraLevelConfigsCount(25-45), index(28-45), requireCount(32-44)
  0000  LOADK     R3 = K0 0
  0001  GETTABUP  R4 = _ENV[K1('ipairs')]
  0002  GETTABLE  R5 = R0[K2('m_config')]
  0003  GETTABLE  R5 = R5[K3('levelConfigs')]
  0004  CALL      R4 = call(R4, 3 args, 1 rets)
  0005  JMP       (jump)   -> 14
  0006  GETTABLE  R9 = R8[K4('require')]
  0007  LE        if R0 le R1   -> -126454
  0008  JMP       (jump)   -> 16
  0009  MOVE      R3 = R0
  0010  GETTABLE  R9 = R8[K4('require')]
  0011  SUB       R1 = R9 sub R1
  0012  JMP       (jump)   -> 14
  0013  JMP       (jump)   -> 16
  0014  TFORCALL  tforcall R4
  0015  TFORLOOP  tforloop R6(sBx=-10)   -> 6
  0016  TEST      if not R2 then   -> -131054
  0017  JMP       (jump)   -> 45
  0018  SELF      R5 = R0[K5('GetMaxLevel')] (self)
  0019  CALL      R4 = call(R4, 1 args, 1 rets)
  0020  EQ        if R0 eq R4   -> -129510
  0021  JMP       (jump)   -> 45
  0022  GETTABLE  R4 = R0[K2('m_config')]
  0023  GETTABLE  R4 = R4[K6('extraLevelConfigs')]
  0024  LEN       R5 = len R0
  0025  LT        if R0 lt R5   -> 32
  0026  JMP       (jump)   -> 45
  0027  LOADK     R6 = K7 1
  0028  LT        if R0 lt R1   -> 31
  0029  JMP       (jump)   -> 45
  0030  GETTABLE  R7 = R4[R6]
  0031  GETTABLE  R7 = R7[K4('require')]
  0032  LE        if R0 le R1   -> -127453
  0033  JMP       (jump)   -> 45
  0034  SUB       R1 = R7 sub R1
  0035  ADD       R3 = K7(1) add R3
  0036  JMP       (jump)   -> 38
  0037  JMP       (jump)   -> 45
  0038  LE        if R0 le R6   -> -128466
  0039  JMP       (jump)   -> 43
  0040  LOADK     R8 = K7 1
  0041  TESTSET   if R1 then R6   -> -126932
  0042  JMP       (jump)   -> 44
  0043  ADD       R6 = K7(1) add R6
  0044  JMP       (jump)   -> 28
  0045  MOVE      R4 = R0
  0046  MOVE      R5 = R0
  0047  RETURN    return R4..R3
  0048  RETURN    return R0..R-1
; ---------- proto31 [GetCurrentLevel] ----------
  ; fn ?  line 486-488 np=2 va=0 ms=6 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='GetLevel'
  ;   K[1]='GetTokenNumber'
  ;   locals: self(0-7), bIncludeExtra(0-7)
  0000  SELF      R3 = R0[K0('GetLevel')] (self)
  0001  SELF      R5 = R0[K1('GetTokenNumber')] (self)
  0002  CALL      R4 = call(R4, 1 args, 1 rets)
  0003  MOVE      R5 = R0
  0004  TAILCALL  tailcall(R2, 0)
  0005  RETURN    return R2..R1
  0006  RETURN    return R0..R-1
; ---------- proto32 [GetMaxLevel] ----------
  ; fn ?  line 491-493 np=1 va=0 ms=2 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='levelConfigs'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  GETTABLE  R1 = R1[K1('levelConfigs')]
  0002  LEN       R1 = len R0
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto33 [CanBuyMaxTicket] ----------
  ; fn ?  line 499-501 np=1 va=0 ms=2 code=16 consts=5 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='maxTicketTokenCount'
  ;   K[2]=nil
  ;   K[3]='maxTicketTokenRatio'
  ;   K[4]='maxTicketTokenAdd'
  ;   locals: self(0-16)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  GETTABLE  R1 = R1[K1('maxTicketTokenCount')]
  0002  EQ        if R1 eq K2(nil)   -> -130298
  0003  JMP       (jump)   -> 12
  0004  GETTABLE  R1 = R0[K0('m_config')]
  0005  GETTABLE  R1 = R1[K3('maxTicketTokenRatio')]
  0006  EQ        if R0 eq K2(nil)   -> -130294
  0007  JMP       (jump)   -> 13
  0008  GETTABLE  R1 = R0[K0('m_config')]
  0009  GETTABLE  R1 = R1[K4('maxTicketTokenAdd')]
  0010  EQ        if R0 eq K2(nil)   -> -130290
  0011  JMP       (jump)   -> 13
  0012  LOADBOOL  R1 = false
  0013  LOADBOOL  R1 = true
  0014  RETURN    return R1..R0
  0015  RETURN    return R0..R-1
; ---------- proto34 [GetTicketState] ----------
  ; fn ?  line 504-515 np=1 va=0 ms=3 code=42 consts=9 upvals=1 protos=0
  ;   K[0]='HasMaxTicket'
  ;   K[1]='HasTicket'
  ;   K[2]='EBPTicketState'
  ;   K[3]='Purchase'
  ;   K[4]='Upgrade'
  ;   K[5]='None'
  ;   K[6]='Log'
  ;   K[7]='Error'
  ;   K[8]='[PassActivityModel] Ticket State Error, please check!'
  ;   upvals: _ENV
  ;   locals: self(0-42)
  0000  SELF      R2 = R0[K0('HasMaxTicket')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 12
  0004  SELF      R2 = R0[K1('HasTicket')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 12
  0008  GETTABUP  R1 = _ENV[K2('EBPTicketState')]
  0009  GETTABLE  R1 = R1[K3('Purchase')]
  0010  RETURN    return R1..R0
  0011  JMP       (jump)   -> 35
  0012  SELF      R2 = R0[K1('HasTicket')] (self)
  0013  CALL      R1 = call(R1, 1 args, 1 rets)
  0014  TEST      if not R1 then   -> -131056
  0015  JMP       (jump)   -> 24
  0016  SELF      R2 = R0[K0('HasMaxTicket')] (self)
  0017  CALL      R1 = call(R1, 1 args, 1 rets)
  0018  TEST      if not R1 then   -> -131051
  0019  JMP       (jump)   -> 24
  0020  GETTABUP  R1 = _ENV[K2('EBPTicketState')]
  0021  GETTABLE  R1 = R1[K4('Upgrade')]
  0022  RETURN    return R1..R0
  0023  JMP       (jump)   -> 35
  0024  SELF      R2 = R0[K1('HasTicket')] (self)
  0025  CALL      R1 = call(R1, 1 args, 1 rets)
  0026  TEST      if not R1 then   -> -131043
  0027  JMP       (jump)   -> 35
  0028  SELF      R2 = R0[K0('HasMaxTicket')] (self)
  0029  CALL      R1 = call(R1, 1 args, 1 rets)
  0030  TEST      if not R1 then   -> -131039
  0031  JMP       (jump)   -> 35
  0032  GETTABUP  R1 = _ENV[K2('EBPTicketState')]
  0033  GETTABLE  R1 = R1[K5('None')]
  0034  RETURN    return R1..R0
  0035  GETTABUP  R1 = _ENV[K6('Log')]
  0036  GETTABLE  R1 = R1[K7('Error')]
  0037  LOADK     R2 = K8 '[PassActivityModel] Ticket State Error, please check!'
  0038  CALL      R1 = call(R1, 0 args, 1 rets)
  0039  LOADNIL   R1..R1 = nil
  0040  RETURN    return R1..R0
  0041  RETURN    return R0..R-1
; ---------- proto35 [HasMaxTicket] ----------
  ; fn ?  line 517-519 np=1 va=0 ms=5 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='PassActivityModel'
  ;   K[3]='MaxTicketKey'
  ;   K[4]='value'
  ;   K[5]=1
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('MaxTicketKey')]
  0004  LOADK     R4 = K4 'value'
  0005  CALL      R1 = call(R1, 1 args, 3 rets)
  0006  EQ        if R1 eq K5(1)   -> -130291
  0007  JMP       (jump)   -> 9
  0008  LOADBOOL  R1 = false
  0009  LOADBOOL  R1 = true
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto36 [GetMaxTicketTokenNumber] ----------
  ; fn ?  line 521-523 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='maxTicketTokenCount'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  GETTABLE  R1 = R1[K1('maxTicketTokenCount')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto37 [GetMaxTicketTokenRatio] ----------
  ; fn ?  line 525-527 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='maxTicketTokenRatio'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  GETTABLE  R1 = R1[K1('maxTicketTokenRatio')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto38 [GetMaxTicketTokenAdd] ----------
  ; fn ?  line 529-531 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='maxTicketTokenAdd'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  GETTABLE  R1 = R1[K1('maxTicketTokenAdd')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto39 [GetPassTicketIapType] ----------
  ; fn ?  line 534-537 np=1 va=0 ms=3 code=11 consts=5 upvals=2 protos=0
  ;   K[0]='m_eIapSeries'
  ;   K[1]='EBPTicketType'
  ;   K[2]='Normal'
  ;   K[3]='EIAPType'
  ;   K[4]='vip_ticket_1'
  ;   upvals: arrIAPType, _ENV
  ;   locals: self(0-11), mapIapType(2-11)
  0000  GETTABLE  R1 = R0[K0('m_eIapSeries')]
  0001  GETTABUP  R1 = arrIAPType[R1]
  0002  GETTABUP  R2 = _ENV[K1('EBPTicketType')]
  0003  GETTABLE  R2 = R2[K2('Normal')]
  0004  GETTABLE  R2 = R1[R2]
  0005  TEST      if not R2 then   -> -131064
  0006  JMP       (jump)   -> 9
  0007  GETTABUP  R2 = _ENV[K3('EIAPType')]
  0008  GETTABLE  R2 = R2[K4('vip_ticket_1')]
  0009  RETURN    return R2..R1
  0010  RETURN    return R0..R-1
; ---------- proto40 [GetUpPassTicketIapType] ----------
  ; fn ?  line 539-542 np=1 va=0 ms=3 code=11 consts=5 upvals=2 protos=0
  ;   K[0]='m_eIapSeries'
  ;   K[1]='EBPTicketType'
  ;   K[2]='Up'
  ;   K[3]='EIAPType'
  ;   K[4]='up_vip_ticket_1'
  ;   upvals: arrIAPType, _ENV
  ;   locals: self(0-11), mapIapType(2-11)
  0000  GETTABLE  R1 = R0[K0('m_eIapSeries')]
  0001  GETTABUP  R1 = arrIAPType[R1]
  0002  GETTABUP  R2 = _ENV[K1('EBPTicketType')]
  0003  GETTABLE  R2 = R2[K2('Up')]
  0004  GETTABLE  R2 = R1[R2]
  0005  TEST      if not R2 then   -> -131064
  0006  JMP       (jump)   -> 9
  0007  GETTABUP  R2 = _ENV[K3('EIAPType')]
  0008  GETTABLE  R2 = R2[K4('up_vip_ticket_1')]
  0009  RETURN    return R2..R1
  0010  RETURN    return R0..R-1
; ---------- proto41 [GetMaxPassTicektIapType] ----------
  ; fn ?  line 544-547 np=1 va=0 ms=3 code=11 consts=5 upvals=2 protos=0
  ;   K[0]='m_eIapSeries'
  ;   K[1]='EBPTicketType'
  ;   K[2]='Max'
  ;   K[3]='EIAPType'
  ;   K[4]='super_vip_ticket_1'
  ;   upvals: arrIAPType, _ENV
  ;   locals: self(0-11), mapIapType(2-11)
  0000  GETTABLE  R1 = R0[K0('m_eIapSeries')]
  0001  GETTABUP  R1 = arrIAPType[R1]
  0002  GETTABUP  R2 = _ENV[K1('EBPTicketType')]
  0003  GETTABLE  R2 = R2[K2('Max')]
  0004  GETTABLE  R2 = R1[R2]
  0005  TEST      if not R2 then   -> -131064
  0006  JMP       (jump)   -> 9
  0007  GETTABUP  R2 = _ENV[K3('EIAPType')]
  0008  GETTABLE  R2 = R2[K4('super_vip_ticket_1')]
  0009  RETURN    return R2..R1
  0010  RETURN    return R0..R-1
; ---------- proto42 [BuyMaxTicket] ----------
  ; fn ?  line 550-559 np=1 va=0 ms=7 code=22 consts=10 upvals=1 protos=1
  ;   K[0]='CanBuyMaxTicket'
  ;   K[1]='GetTicketState'
  ;   K[2]='EBPTicketState'
  ;   K[3]='None'
  ;   K[4]='GM'
  ;   K[5]='InAppPurchaseModel'
  ;   K[6]='StartPurchase'
  ;   K[7]='GetMaxPassTicektIapType'
  ;   K[8]='EBIType'
  ;   K[9]='ShopBuy'
  ;   upvals: _ENV
  ;   locals: self(0-22), purchaseCallback(12-22)
  0000  SELF      R2 = R0[K0('CanBuyMaxTicket')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 10
  0004  SELF      R2 = R0[K1('GetTicketState')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K2('EBPTicketState')]
  0007  GETTABLE  R2 = R2[K3('None')]
  0008  EQ        if R1 eq R2   -> -130548
  0009  JMP       (jump)   -> 11
  0010  RETURN    return R0..R-1
  0011  CLOSURE   R1 = closure proto0
  0012  GETTABUP  R2 = _ENV[K4('GM')]
  0013  GETTABLE  R2 = R2[K5('InAppPurchaseModel')]
  0014  SELF      R3 = R2[K6('StartPurchase')] (self)
  0015  SELF      R5 = R0[K7('GetMaxPassTicektIapType')] (self)
  0016  CALL      R4 = call(R4, 1 args, 1 rets)
  0017  MOVE      R5 = R0
  0018  GETTABUP  R6 = _ENV[K8('EBIType')]
  0019  GETTABLE  R6 = R6[K9('ShopBuy')]
  0020  CALL      R2 = call(R2, 0 args, 4 rets)
  0021  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 555-557 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='_OnBuyMaxTicketSuccess'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('_OnBuyMaxTicketSuccess')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto43 [_AcquireMaxTicketToken] ----------
  ; fn ?  line 561-578 np=1 va=0 ms=6 code=37 consts=15 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]='maxTicketTokenCount'
  ;   K[2]='AcquireToken'
  ;   K[3]='EBIType'
  ;   K[4]='BPVIPAcquireToken'
  ;   K[5]='arrProperties'
  ;   K[6]='PROPERTY_TYPE'
  ;   K[7]='EPropertyType'
  ;   K[8]='BPFaceToken'
  ;   K[9]='PROPERTY_COUNT'
  ;   K[10]='scene'
  ;   K[11]='EventDispatcher'
  ;   K[12]='DispatchEvent'
  ;   K[13]='EEventType'
  ;   K[14]='PropertyAcquired'
  ;   upvals: _ENV
  ;   locals: self(0-37), message(30-37)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K1('maxTicketTokenCount')]
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  RETURN    return R0..R-1
  0008  SELF      R2 = R0[K2('AcquireToken')] (self)
  0009  GETTABLE  R3 = R0[K0('m_config')]
  0010  GETTABLE  R3 = R3[K1('maxTicketTokenCount')]
  0011  GETTABUP  R4 = _ENV[K3('EBIType')]
  0012  GETTABLE  R4 = R4[K4('BPVIPAcquireToken')]
  0013  CALL      R1 = call(R1, 0 args, 3 rets)
  0014  NEWTABLE  R1 = {} (0 items)
  0015  NEWTABLE  R2 = {} (1 items)
  0016  NEWTABLE  R3 = {} (0 items)
  0017  GETTABUP  R4 = _ENV[K6('PROPERTY_TYPE')]
  0018  GETTABUP  R5 = _ENV[K7('EPropertyType')]
  0019  GETTABLE  R5 = R5[K8('BPFaceToken')]
  0020  SETTABLE  R3[R4] = R5
  0021  GETTABUP  R4 = _ENV[K9('PROPERTY_COUNT')]
  0022  GETTABLE  R5 = R0[K0('m_config')]
  0023  GETTABLE  R5 = R5[K1('maxTicketTokenCount')]
  0024  SETTABLE  R3[R4] = R5
  0025  SETLIST   setlist R2[B=1,C=1]
  0026  SETTABLE  R1[K5('arrProperties')] = R2
  0027  GETTABUP  R2 = _ENV[K3('EBIType')]
  0028  GETTABLE  R2 = R2[K4('BPVIPAcquireToken')]
  0029  SETTABLE  R1[K10('scene')] = R2
  0030  GETTABUP  R2 = _ENV[K11('EventDispatcher')]
  0031  GETTABLE  R2 = R2[K12('DispatchEvent')]
  0032  GETTABUP  R3 = _ENV[K13('EEventType')]
  0033  GETTABLE  R3 = R3[K14('PropertyAcquired')]
  0034  MOVE      R4 = R0
  0035  CALL      R2 = call(R2, 0 args, 2 rets)
  0036  RETURN    return R0..R-1
; ---------- proto44 [_OnBuyMaxTicketSuccess] ----------
  ; fn ?  line 580-592 np=1 va=0 ms=6 code=42 consts=21 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='PassActivityModel'
  ;   K[3]='TicketKey'
  ;   K[4]='value'
  ;   K[5]=1
  ;   K[6]='MaxTicketKey'
  ;   K[7]='_AcquireMaxTicketToken'
  ;   K[8]='TryTakeVIPExtraEnergy'
  ;   K[9]='m_bPopMaxTicketTokenWindow'
  ;   K[10]='GetState'
  ;   K[11]='ActivityState'
  ;   K[12]='Started'
  ;   K[13]='EventDispatcher'
  ;   K[14]='DispatchEvent'
  ;   K[15]='m_activityDefinition'
  ;   K[16]='CanTakeRewardNumberChangedEvent'
  ;   K[17]='BuyMaxTicketSuccessEvent'
  ;   K[18]='LogActivity'
  ;   K[19]='EBIType'
  ;   K[20]='BattlePassBuyMaxTicketSuccess'
  ;   upvals: _ENV
  ;   locals: self(0-42)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('Set')] (self)
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('TicketKey')]
  0004  LOADK     R4 = K4 'value'
  0005  LOADK     R5 = K5 1
  0006  CALL      R1 = call(R1, 0 args, 4 rets)
  0007  GETTABLE  R1 = R0[K0('m_dbTable')]
  0008  SELF      R2 = R1[K1('Set')] (self)
  0009  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0010  GETTABLE  R3 = R3[K6('MaxTicketKey')]
  0011  LOADK     R4 = K4 'value'
  0012  LOADK     R5 = K5 1
  0013  CALL      R1 = call(R1, 0 args, 4 rets)
  0014  SELF      R2 = R0[K7('_AcquireMaxTicketToken')] (self)
  0015  CALL      R1 = call(R1, 0 args, 1 rets)
  0016  SELF      R2 = R0[K8('TryTakeVIPExtraEnergy')] (self)
  0017  CALL      R1 = call(R1, 0 args, 1 rets)
  0018  SELF      R2 = R0[K10('GetState')] (self)
  0019  CALL      R1 = call(R1, 1 args, 1 rets)
  0020  GETTABUP  R2 = _ENV[K11('ActivityState')]
  0021  GETTABLE  R2 = R2[K12('Started')]
  0022  EQ        if R1 eq R2   -> -130534
  0023  JMP       (jump)   -> 25
  0024  LOADBOOL  R1 = false
  0025  LOADBOOL  R1 = true
  0026  SETTABLE  R0[K9('m_bPopMaxTicketTokenWindow')] = R1
  0027  GETTABUP  R1 = _ENV[K13('EventDispatcher')]
  0028  GETTABLE  R1 = R1[K14('DispatchEvent')]
  0029  GETTABLE  R2 = R0[K15('m_activityDefinition')]
  0030  GETTABLE  R2 = R2[K16('CanTakeRewardNumberChangedEvent')]
  0031  CALL      R1 = call(R1, 0 args, 1 rets)
  0032  GETTABUP  R1 = _ENV[K13('EventDispatcher')]
  0033  GETTABLE  R1 = R1[K14('DispatchEvent')]
  0034  GETTABLE  R2 = R0[K15('m_activityDefinition')]
  0035  GETTABLE  R2 = R2[K17('BuyMaxTicketSuccessEvent')]
  0036  CALL      R1 = call(R1, 0 args, 1 rets)
  0037  SELF      R2 = R0[K18('LogActivity')] (self)
  0038  GETTABUP  R3 = _ENV[K19('EBIType')]
  0039  GETTABLE  R3 = R3[K20('BattlePassBuyMaxTicketSuccess')]
  0040  CALL      R1 = call(R1, 0 args, 2 rets)
  0041  RETURN    return R0..R-1
; ---------- proto45 [BuyUpTicket] ----------
  ; fn ?  line 595-604 np=1 va=0 ms=7 code=22 consts=10 upvals=1 protos=1
  ;   K[0]='CanBuyMaxTicket'
  ;   K[1]='GetTicketState'
  ;   K[2]='EBPTicketState'
  ;   K[3]='Upgrade'
  ;   K[4]='GM'
  ;   K[5]='InAppPurchaseModel'
  ;   K[6]='StartPurchase'
  ;   K[7]='GetUpPassTicketIapType'
  ;   K[8]='EBIType'
  ;   K[9]='ShopBuy'
  ;   upvals: _ENV
  ;   locals: self(0-22), purchaseCallback(12-22)
  0000  SELF      R2 = R0[K0('CanBuyMaxTicket')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 10
  0004  SELF      R2 = R0[K1('GetTicketState')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K2('EBPTicketState')]
  0007  GETTABLE  R2 = R2[K3('Upgrade')]
  0008  EQ        if R1 eq R2   -> -130548
  0009  JMP       (jump)   -> 11
  0010  RETURN    return R0..R-1
  0011  CLOSURE   R1 = closure proto0
  0012  GETTABUP  R2 = _ENV[K4('GM')]
  0013  GETTABLE  R2 = R2[K5('InAppPurchaseModel')]
  0014  SELF      R3 = R2[K6('StartPurchase')] (self)
  0015  SELF      R5 = R0[K7('GetUpPassTicketIapType')] (self)
  0016  CALL      R4 = call(R4, 1 args, 1 rets)
  0017  MOVE      R5 = R0
  0018  GETTABUP  R6 = _ENV[K8('EBIType')]
  0019  GETTABLE  R6 = R6[K9('ShopBuy')]
  0020  CALL      R2 = call(R2, 0 args, 4 rets)
  0021  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 600-602 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='_OnBuyUpTicketSuccess'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('_OnBuyUpTicketSuccess')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto46 [_OnBuyUpTicketSuccess] ----------
  ; fn ?  line 606-616 np=1 va=0 ms=6 code=33 consts=19 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='PassActivityModel'
  ;   K[3]='MaxTicketKey'
  ;   K[4]='value'
  ;   K[5]=1
  ;   K[6]='_AcquireMaxTicketToken'
  ;   K[7]='m_bPopMaxTicketTokenWindow'
  ;   K[8]='GetState'
  ;   K[9]='ActivityState'
  ;   K[10]='Started'
  ;   K[11]='EventDispatcher'
  ;   K[12]='DispatchEvent'
  ;   K[13]='m_activityDefinition'
  ;   K[14]='CanTakeRewardNumberChangedEvent'
  ;   K[15]='BuyUpTicketSuccessEvent'
  ;   K[16]='LogActivity'
  ;   K[17]='EBIType'
  ;   K[18]='BattlePassBuyUpTicketSuccess'
  ;   upvals: _ENV
  ;   locals: self(0-33)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('Set')] (self)
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('MaxTicketKey')]
  0004  LOADK     R4 = K4 'value'
  0005  LOADK     R5 = K5 1
  0006  CALL      R1 = call(R1, 0 args, 4 rets)
  0007  SELF      R2 = R0[K6('_AcquireMaxTicketToken')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  SELF      R2 = R0[K8('GetState')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  GETTABUP  R2 = _ENV[K9('ActivityState')]
  0012  GETTABLE  R2 = R2[K10('Started')]
  0013  EQ        if R1 eq R2   -> -130543
  0014  JMP       (jump)   -> 16
  0015  LOADBOOL  R1 = false
  0016  LOADBOOL  R1 = true
  0017  SETTABLE  R0[K7('m_bPopMaxTicketTokenWindow')] = R1
  0018  GETTABUP  R1 = _ENV[K11('EventDispatcher')]
  0019  GETTABLE  R1 = R1[K12('DispatchEvent')]
  0020  GETTABLE  R2 = R0[K13('m_activityDefinition')]
  0021  GETTABLE  R2 = R2[K14('CanTakeRewardNumberChangedEvent')]
  0022  CALL      R1 = call(R1, 0 args, 1 rets)
  0023  GETTABUP  R1 = _ENV[K11('EventDispatcher')]
  0024  GETTABLE  R1 = R1[K12('DispatchEvent')]
  0025  GETTABLE  R2 = R0[K13('m_activityDefinition')]
  0026  GETTABLE  R2 = R2[K15('BuyUpTicketSuccessEvent')]
  0027  CALL      R1 = call(R1, 0 args, 1 rets)
  0028  SELF      R2 = R0[K16('LogActivity')] (self)
  0029  GETTABUP  R3 = _ENV[K17('EBIType')]
  0030  GETTABLE  R3 = R3[K18('BattlePassBuyUpTicketSuccess')]
  0031  CALL      R1 = call(R1, 0 args, 2 rets)
  0032  RETURN    return R0..R-1
; ---------- proto47 [GetBuyTicketWindowByCurState] ----------
  ; fn ?  line 618-624 np=1 va=0 ms=3 code=20 consts=7 upvals=1 protos=0
  ;   K[0]='GetTicketState'
  ;   K[1]='EBPTicketState'
  ;   K[2]='None'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='BuyMaxTicketWindowPrefabName'
  ;   K[5]='Upgrade'
  ;   K[6]='BuyUpTicketWindowPrefabName'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  0000  SELF      R2 = R0[K0('GetTicketState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('EBPTicketState')]
  0003  GETTABLE  R2 = R2[K2('None')]
  0004  EQ        if R0 eq R2   -> -130552
  0005  JMP       (jump)   -> 10
  0006  GETTABLE  R1 = R0[K3('m_activityDefinition')]
  0007  GETTABLE  R1 = R1[K4('BuyMaxTicketWindowPrefabName')]
  0008  RETURN    return R1..R0
  0009  JMP       (jump)   -> 19
  0010  SELF      R2 = R0[K0('GetTicketState')] (self)
  0011  CALL      R1 = call(R1, 1 args, 1 rets)
  0012  GETTABUP  R2 = _ENV[K1('EBPTicketState')]
  0013  GETTABLE  R2 = R2[K5('Upgrade')]
  0014  EQ        if R0 eq R2   -> -130542
  0015  JMP       (jump)   -> 19
  0016  GETTABLE  R1 = R0[K3('m_activityDefinition')]
  0017  GETTABLE  R1 = R1[K6('BuyUpTicketWindowPrefabName')]
  0018  RETURN    return R1..R0
  0019  RETURN    return R0..R-1
; ---------- proto48 [IsVIPTicket] ----------
  ; fn ?  line 626-633 np=1 va=0 ms=7 code=17 consts=4 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='PassActivityDefinition'
  ;   K[2]='TicketPropertyType'
  ;   K[3]='PlusTicketPropertyType'
  ;   upvals: _ENV
  ;   locals: propertyType(0-17), (for generator)(3-14), (for state)(3-14), (for control)(3-14), _(4-12), activityDefinition(4-12)
  0000  GETTABUP  R1 = _ENV[K0('pairs')]
  0001  GETTABUP  R2 = _ENV[K1('PassActivityDefinition')]
  0002  CALL      R1 = call(R1, 3 args, 1 rets)
  0003  JMP       (jump)   -> 12
  0004  GETTABLE  R6 = R5[K2('TicketPropertyType')]
  0005  EQ        if R1 eq R6   -> -131059
  0006  JMP       (jump)   -> 10
  0007  GETTABLE  R6 = R5[K3('PlusTicketPropertyType')]
  0008  EQ        if R0 eq R6   -> -131056
  0009  JMP       (jump)   -> 12
  0010  LOADBOOL  R6 = true
  0011  RETURN    return R6..R5
  0012  TFORCALL  tforcall R1
  0013  TFORLOOP  tforloop R3(sBx=-10)   -> 4
  0014  LOADBOOL  R1 = false
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
; ---------- proto49 [TryAcquireVIPTicket] ----------
  ; fn ?  line 636-660 np=2 va=0 ms=10 code=57 consts=19 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Released'
  ;   K[3]='HasTakenVIPExtraEnergy'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='TicketPropertyType'
  ;   K[6]='HasTicket'
  ;   K[7]='_OnBuyTicketSuccess'
  ;   K[8]='PlusTicketPropertyType'
  ;   K[9]='HasMaxTicket'
  ;   K[10]='_OnBuyMaxTicketSuccess'
  ;   K[11]='Ended'
  ;   K[12]='GetCanTakeRewards'
  ;   K[13]=0
  ;   K[14]='GM'
  ;   K[15]='UIManager'
  ;   K[16]='OpenViewWhenIdle'
  ;   K[17]='RewardRecoverWindowPrefabName'
  ;   K[18]='m_type'
  ;   upvals: _ENV
  ;   locals: self(0-57), propertyType(0-57), bHasTakenExtraEnergyBefore(10-57), bAcquired(11-57), canTakeRewards(44-55)
  0000  SELF      R3 = R0[K0('GetState')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  GETTABUP  R3 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R3 = R3[K2('Released')]
  0004  EQ        if R0 eq R3   -> -130039
  0005  JMP       (jump)   -> 8
  0006  LOADBOOL  R2 = false
  0007  RETURN    return R2..R1
  0008  SELF      R3 = R0[K3('HasTakenVIPExtraEnergy')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  LOADBOOL  R3 = false
  0011  GETTABLE  R4 = R0[K4('m_activityDefinition')]
  0012  GETTABLE  R4 = R4[K5('TicketPropertyType')]
  0013  EQ        if R0 eq R4   -> -130541
  0014  JMP       (jump)   -> 23
  0015  SELF      R5 = R0[K6('HasTicket')] (self)
  0016  CALL      R4 = call(R4, 1 args, 1 rets)
  0017  TEST      if not R4 then   -> -131052
  0018  JMP       (jump)   -> 23
  0019  LOADBOOL  R3 = true
  0020  SELF      R5 = R0[K7('_OnBuyTicketSuccess')] (self)
  0021  CALL      R4 = call(R4, 0 args, 1 rets)
  0022  JMP       (jump)   -> 34
  0023  GETTABLE  R4 = R0[K4('m_activityDefinition')]
  0024  GETTABLE  R4 = R4[K8('PlusTicketPropertyType')]
  0025  EQ        if R0 eq R4   -> -130529
  0026  JMP       (jump)   -> 34
  0027  SELF      R5 = R0[K9('HasMaxTicket')] (self)
  0028  CALL      R4 = call(R4, 1 args, 1 rets)
  0029  TEST      if not R4 then   -> -131040
  0030  JMP       (jump)   -> 34
  0031  LOADBOOL  R3 = true
  0032  SELF      R5 = R0[K10('_OnBuyMaxTicketSuccess')] (self)
  0033  CALL      R4 = call(R4, 0 args, 1 rets)
  0034  TEST      if not R3 then   -> -131036
  0035  JMP       (jump)   -> 55
  0036  SELF      R5 = R0[K0('GetState')] (self)
  0037  CALL      R4 = call(R4, 1 args, 1 rets)
  0038  GETTABUP  R5 = _ENV[K1('ActivityState')]
  0039  GETTABLE  R5 = R5[K11('Ended')]
  0040  EQ        if R0 eq R5   -> -128977
  0041  JMP       (jump)   -> 55
  0042  SELF      R5 = R0[K12('GetCanTakeRewards')] (self)
  0043  CALL      R4 = call(R4, 1 args, 1 rets)
  0044  LEN       R5 = len R0
  0045  EQ        if R1 eq K13(0)   -> -128196
  0046  JMP       (jump)   -> 55
  0047  GETTABUP  R5 = _ENV[K14('GM')]
  0048  GETTABLE  R5 = R5[K15('UIManager')]
  0049  SELF      R6 = R5[K16('OpenViewWhenIdle')] (self)
  0050  GETTABLE  R7 = R0[K4('m_activityDefinition')]
  0051  GETTABLE  R7 = R7[K17('RewardRecoverWindowPrefabName')]
  0052  GETTABLE  R8 = R0[K18('m_type')]
  0053  MOVE      R9 = R0
  0054  CALL      R5 = call(R5, 0 args, 4 rets)
  0055  RETURN    return R3..R2
  0056  RETURN    return R0..R-1
; ---------- proto50 [GetVipRewards] ----------
  ; fn ?  line 662-692 np=3 va=0 ms=18 code=64 consts=16 upvals=1 protos=0
  ;   K[0]='m_vipExtraEnergyCount'
  ;   K[1]=0
  ;   K[2]='GetLevelConfigs'
  ;   K[3]='GetMaxLevel'
  ;   K[4]='GetCurrentLevel'
  ;   K[5]=1
  ;   K[6]='ipairs'
  ;   K[7]='vipRewards'
  ;   K[8]='PROPERTY_TYPE'
  ;   K[9]='EPropertyType'
  ;   K[10]='Energy'
  ;   K[11]=nil
  ;   K[12]='PROPERTY_COUNT'
  ;   K[13]='pairs'
  ;   K[14]='table'
  ;   K[15]='insert'
  ;   upvals: _ENV
  ;   locals: self(0-64), bIngnoreLevel(0-64), bIngnoreFirstEnergy(0-64), rewards(5-64), levelConfigs(7-64), tokenLevel(15-64), (for index)(18-46), (for limit)(18-46), (for step)(18-46), level(19-45), (for generator)(23-45), (for state)(23-45), (for control)(23-45), _(24-43), reward(24-43), rewardType(26-43), formattedRewards(47-64), (for generator)(50-62), (for state)(50-62), (for control)(50-62), type(51-60), count(51-60)
  0000  GETTABLE  R3 = R0[K0('m_vipExtraEnergyCount')]
  0001  LT        if R0 lt R3   -> 518
  0002  JMP       (jump)   -> 4
  0003  LOADBOOL  R2 = false
  0004  NEWTABLE  R3 = {} (0 items)
  0005  SELF      R5 = R0[K2('GetLevelConfigs')] (self)
  0006  CALL      R4 = call(R4, 1 args, 1 rets)
  0007  TEST      if not R1 then   -> -131063
  0008  JMP       (jump)   -> 13
  0009  SELF      R6 = R0[K3('GetMaxLevel')] (self)
  0010  CALL      R5 = call(R5, 1 args, 1 rets)
  0011  TEST      if not R5 then   -> -131058
  0012  JMP       (jump)   -> 15
  0013  SELF      R6 = R0[K4('GetCurrentLevel')] (self)
  0014  CALL      R5 = call(R5, 1 args, 1 rets)
  0015  LOADK     R6 = K5 1
  0016  MOVE      R7 = R0
  0017  LOADK     R8 = K5 1
  0018  FORPREP   forprep R6(sBx=26)   -> 45
  0019  GETTABUP  R10 = _ENV[K6('ipairs')]
  0020  GETTABLE  R11 = R4[R9]
  0021  GETTABLE  R11 = R11[K7('vipRewards')]
  0022  CALL      R10 = call(R10, 3 args, 1 rets)
  0023  JMP       (jump)   -> 43
  0024  GETTABUP  R15 = _ENV[K8('PROPERTY_TYPE')]
  0025  GETTABLE  R15 = R14[R15]
  0026  EQ        if R0 eq K5(1)   -> -126175
  0027  JMP       (jump)   -> 34
  0028  TEST      if not R2 then   -> -131042
  0029  JMP       (jump)   -> 34
  0030  GETTABUP  R16 = _ENV[K9('EPropertyType')]
  0031  GETTABLE  R16 = R16[K10('Energy')]
  0032  EQ        if R1 eq R16   -> -123342
  0033  JMP       (jump)   -> 43
  0034  GETTABLE  R16 = R3[R15]
  0035  EQ        if R0 eq K11(nil)   -> -122576
  0036  JMP       (jump)   -> 38
  0037  SETTABLE  R3[R15] = K1(0)
  0038  GETTABLE  R16 = R3[R15]
  0039  GETTABUP  R17 = _ENV[K12('PROPERTY_COUNT')]
  0040  GETTABLE  R17 = R14[R17]
  0041  ADD       R16 = R17 add R16
  0042  SETTABLE  R3[R15] = R16
  0043  TFORCALL  tforcall R10
  0044  TFORLOOP  tforloop R12(sBx=-21)   -> 24
  0045  FORLOOP   forloop R6(sBx=-27)   -> 19
  0046  NEWTABLE  R6 = {} (0 items)
  0047  GETTABUP  R7 = _ENV[K13('pairs')]
  0048  MOVE      R8 = R0
  0049  CALL      R7 = call(R7, 3 args, 1 rets)
  0050  JMP       (jump)   -> 60
  0051  GETTABUP  R12 = _ENV[K14('table')]
  0052  GETTABLE  R12 = R12[K15('insert')]
  0053  MOVE      R13 = R0
  0054  NEWTABLE  R14 = {} (0 items)
  0055  GETTABUP  R15 = _ENV[K8('PROPERTY_TYPE')]
  0056  SETTABLE  R14[R15] = R10
  0057  GETTABUP  R15 = _ENV[K12('PROPERTY_COUNT')]
  0058  SETTABLE  R14[R15] = R11
  0059  CALL      R12 = call(R12, 0 args, 2 rets)
  0060  TFORCALL  tforcall R7
  0061  TFORLOOP  tforloop R9(sBx=-11)   -> 51
  0062  RETURN    return R6..R5
  0063  RETURN    return R0..R-1
; ---------- proto51 [HasTicket] ----------
  ; fn ?  line 697-699 np=1 va=0 ms=5 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='PassActivityModel'
  ;   K[3]='TicketKey'
  ;   K[4]='value'
  ;   K[5]=1
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('TicketKey')]
  0004  LOADK     R4 = K4 'value'
  0005  CALL      R1 = call(R1, 1 args, 3 rets)
  0006  EQ        if R1 eq K5(1)   -> -130291
  0007  JMP       (jump)   -> 9
  0008  LOADBOOL  R1 = false
  0009  LOADBOOL  R1 = true
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto52 [BuyTicket] ----------
  ; fn ?  line 701-712 np=1 va=0 ms=7 code=18 consts=8 upvals=1 protos=1
  ;   K[0]='HasTicket'
  ;   K[1]='_OnBuyTicketSuccess'
  ;   K[2]='GM'
  ;   K[3]='InAppPurchaseModel'
  ;   K[4]='StartPurchase'
  ;   K[5]='GetPassTicketIapType'
  ;   K[6]='EBIType'
  ;   K[7]='ShopBuy'
  ;   upvals: _ENV
  ;   locals: self(0-18), purchaseCallback(8-18)
  0000  SELF      R2 = R0[K0('HasTicket')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 7
  0004  SELF      R2 = R0[K1('_OnBuyTicketSuccess')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
  0007  CLOSURE   R1 = closure proto0
  0008  GETTABUP  R2 = _ENV[K2('GM')]
  0009  GETTABLE  R2 = R2[K3('InAppPurchaseModel')]
  0010  SELF      R3 = R2[K4('StartPurchase')] (self)
  0011  SELF      R5 = R0[K5('GetPassTicketIapType')] (self)
  0012  CALL      R4 = call(R4, 1 args, 1 rets)
  0013  MOVE      R5 = R0
  0014  GETTABUP  R6 = _ENV[K6('EBIType')]
  0015  GETTABLE  R6 = R6[K7('ShopBuy')]
  0016  CALL      R2 = call(R2, 0 args, 4 rets)
  0017  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 708-710 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='_OnBuyTicketSuccess'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('_OnBuyTicketSuccess')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto53 [RestoreIapRewards] ----------
  ; fn ?  line 714-732 np=2 va=0 ms=6 code=57 consts=12 upvals=1 protos=0
  ;   K[0]='GetPassTicketIapType'
  ;   K[1]='HasTicket'
  ;   K[2]='_OnBuyTicketSuccess'
  ;   K[3]='_GetVipShowRewards'
  ;   K[4]='GetMaxPassTicektIapType'
  ;   K[5]='GetTicketState'
  ;   K[6]='EBPTicketState'
  ;   K[7]='None'
  ;   K[8]='_OnBuyMaxTicketSuccess'
  ;   K[9]='GetUpPassTicketIapType'
  ;   K[10]='Upgrade'
  ;   K[11]='_OnBuyUpTicketSuccess'
  ;   upvals: _ENV
  ;   locals: self(0-57), iapType(0-57), rewards(1-57)
  0000  LOADNIL   R2..R2 = nil
  0001  SELF      R4 = R0[K0('GetPassTicketIapType')] (self)
  0002  CALL      R3 = call(R3, 1 args, 1 rets)
  0003  EQ        if R0 eq R3   -> -130552
  0004  JMP       (jump)   -> 16
  0005  SELF      R4 = R0[K1('HasTicket')] (self)
  0006  CALL      R3 = call(R3, 1 args, 1 rets)
  0007  TEST      if not R3 then   -> -131062
  0008  JMP       (jump)   -> 16
  0009  SELF      R4 = R0[K2('_OnBuyTicketSuccess')] (self)
  0010  CALL      R3 = call(R3, 0 args, 1 rets)
  0011  SELF      R4 = R0[K3('_GetVipShowRewards')] (self)
  0012  LOADBOOL  R5 = false
  0013  CALL      R3 = call(R3, 1 args, 2 rets)
  0014  MOVE      R2 = R0
  0015  JMP       (jump)   -> 49
  0016  SELF      R4 = R0[K4('GetMaxPassTicektIapType')] (self)
  0017  CALL      R3 = call(R3, 1 args, 1 rets)
  0018  EQ        if R0 eq R3   -> -130537
  0019  JMP       (jump)   -> 33
  0020  SELF      R4 = R0[K5('GetTicketState')] (self)
  0021  CALL      R3 = call(R3, 1 args, 1 rets)
  0022  GETTABUP  R4 = _ENV[K6('EBPTicketState')]
  0023  GETTABLE  R4 = R4[K7('None')]
  0024  EQ        if R0 eq R4   -> -129506
  0025  JMP       (jump)   -> 33
  0026  SELF      R4 = R0[K8('_OnBuyMaxTicketSuccess')] (self)
  0027  CALL      R3 = call(R3, 0 args, 1 rets)
  0028  SELF      R4 = R0[K3('_GetVipShowRewards')] (self)
  0029  LOADBOOL  R5 = true
  0030  CALL      R3 = call(R3, 1 args, 2 rets)
  0031  MOVE      R2 = R0
  0032  JMP       (jump)   -> 49
  0033  SELF      R4 = R0[K9('GetUpPassTicketIapType')] (self)
  0034  CALL      R3 = call(R3, 1 args, 1 rets)
  0035  EQ        if R0 eq R3   -> -130520
  0036  JMP       (jump)   -> 49
  0037  SELF      R4 = R0[K5('GetTicketState')] (self)
  0038  CALL      R3 = call(R3, 1 args, 1 rets)
  0039  GETTABUP  R4 = _ENV[K6('EBPTicketState')]
  0040  GETTABLE  R4 = R4[K10('Upgrade')]
  0041  EQ        if R0 eq R4   -> -129489
  0042  JMP       (jump)   -> 49
  0043  SELF      R4 = R0[K11('_OnBuyUpTicketSuccess')] (self)
  0044  CALL      R3 = call(R3, 0 args, 1 rets)
  0045  SELF      R4 = R0[K3('_GetVipShowRewards')] (self)
  0046  LOADBOOL  R5 = true
  0047  CALL      R3 = call(R3, 1 args, 2 rets)
  0048  MOVE      R2 = R0
  0049  TEST      if not R2 then   -> -131021
  0050  JMP       (jump)   -> 54
  0051  LOADBOOL  R3 = true
  0052  RETURN    return R3..R2
  0053  JMP       (jump)   -> 56
  0054  LOADBOOL  R3 = false
  0055  RETURN    return R3..R2
  0056  RETURN    return R0..R-1
; ---------- proto54 [_GetVipShowRewards] ----------
  ; fn ?  line 734-754 np=2 va=0 ms=7 code=33 consts=9 upvals=1 protos=0
  ;   K[0]='PROPERTY_TYPE'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='PlusTicketPropertyType'
  ;   K[3]='PROPERTY_COUNT'
  ;   K[4]=1
  ;   K[5]='ActivityTokenPropertyType'
  ;   K[6]='m_config'
  ;   K[7]='maxTicketTokenCount'
  ;   K[8]='TicketPropertyType'
  ;   upvals: _ENV
  ;   locals: self(0-33), bhasToken(0-33)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 22
  0002  NEWTABLE  R2 = {} (2 items)
  0003  NEWTABLE  R3 = {} (0 items)
  0004  GETTABUP  R4 = _ENV[K0('PROPERTY_TYPE')]
  0005  GETTABLE  R5 = R0[K1('m_activityDefinition')]
  0006  GETTABLE  R5 = R5[K2('PlusTicketPropertyType')]
  0007  SETTABLE  R3[R4] = R5
  0008  GETTABUP  R4 = _ENV[K3('PROPERTY_COUNT')]
  0009  SETTABLE  R3[R4] = K4(1)
  0010  NEWTABLE  R4 = {} (0 items)
  0011  GETTABUP  R5 = _ENV[K0('PROPERTY_TYPE')]
  0012  GETTABLE  R6 = R0[K1('m_activityDefinition')]
  0013  GETTABLE  R6 = R6[K5('ActivityTokenPropertyType')]
  0014  SETTABLE  R4[R5] = R6
  0015  GETTABUP  R5 = _ENV[K3('PROPERTY_COUNT')]
  0016  GETTABLE  R6 = R0[K6('m_config')]
  0017  GETTABLE  R6 = R6[K7('maxTicketTokenCount')]
  0018  SETTABLE  R4[R5] = R6
  0019  SETLIST   setlist R2[B=1,C=2]
  0020  RETURN    return R2..R1
  0021  JMP       (jump)   -> 32
  0022  NEWTABLE  R2 = {} (1 items)
  0023  NEWTABLE  R3 = {} (0 items)
  0024  GETTABUP  R4 = _ENV[K0('PROPERTY_TYPE')]
  0025  GETTABLE  R5 = R0[K1('m_activityDefinition')]
  0026  GETTABLE  R5 = R5[K8('TicketPropertyType')]
  0027  SETTABLE  R3[R4] = R5
  0028  GETTABUP  R4 = _ENV[K3('PROPERTY_COUNT')]
  0029  SETTABLE  R3[R4] = K4(1)
  0030  SETLIST   setlist R2[B=1,C=1]
  0031  RETURN    return R2..R1
  0032  RETURN    return R0..R-1
; ---------- proto55 [_OnBuyTicketSuccess] ----------
  ; fn ?  line 756-764 np=1 va=0 ms=6 code=24 consts=15 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='PassActivityModel'
  ;   K[3]='TicketKey'
  ;   K[4]='value'
  ;   K[5]=1
  ;   K[6]='EventDispatcher'
  ;   K[7]='DispatchEvent'
  ;   K[8]='m_activityDefinition'
  ;   K[9]='CanTakeRewardNumberChangedEvent'
  ;   K[10]='BuyTicketSuccessEvent'
  ;   K[11]='TryTakeVIPExtraEnergy'
  ;   K[12]='LogActivity'
  ;   K[13]='EBIType'
  ;   K[14]='BattlePassBuyTicketSuccess'
  ;   upvals: _ENV
  ;   locals: self(0-24)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('Set')] (self)
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('TicketKey')]
  0004  LOADK     R4 = K4 'value'
  0005  LOADK     R5 = K5 1
  0006  CALL      R1 = call(R1, 0 args, 4 rets)
  0007  GETTABUP  R1 = _ENV[K6('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K7('DispatchEvent')]
  0009  GETTABLE  R2 = R0[K8('m_activityDefinition')]
  0010  GETTABLE  R2 = R2[K9('CanTakeRewardNumberChangedEvent')]
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  GETTABUP  R1 = _ENV[K6('EventDispatcher')]
  0013  GETTABLE  R1 = R1[K7('DispatchEvent')]
  0014  GETTABLE  R2 = R0[K8('m_activityDefinition')]
  0015  GETTABLE  R2 = R2[K10('BuyTicketSuccessEvent')]
  0016  CALL      R1 = call(R1, 0 args, 1 rets)
  0017  SELF      R2 = R0[K11('TryTakeVIPExtraEnergy')] (self)
  0018  CALL      R1 = call(R1, 0 args, 1 rets)
  0019  SELF      R2 = R0[K12('LogActivity')] (self)
  0020  GETTABUP  R3 = _ENV[K13('EBIType')]
  0021  GETTABLE  R3 = R3[K14('BattlePassBuyTicketSuccess')]
  0022  CALL      R1 = call(R1, 0 args, 2 rets)
  0023  RETURN    return R0..R-1
; ---------- proto56 [GetCanTakeRewards] ----------
  ; fn ?  line 766-798 np=1 va=0 ms=13 code=60 consts=18 upvals=1 protos=0
  ;   K[0]='GetCurrentLevel'
  ;   K[1]='HasTicket'
  ;   K[2]='ipairs'
  ;   K[3]='m_config'
  ;   K[4]='levelConfigs'
  ;   K[5]='IsRewardTaken'
  ;   K[6]='table'
  ;   K[7]='insert'
  ;   K[8]='Level'
  ;   K[9]='IsVip'
  ;   K[10]=false
  ;   K[11]='Rewards'
  ;   K[12]='rewards'
  ;   K[13]=true
  ;   K[14]='vipRewards'
  ;   K[15]='Table'
  ;   K[16]='ListAppend'
  ;   K[17]='GetCanTakeExtraRewards'
  ;   upvals: _ENV
  ;   locals: self(0-60), rewards(1-60), currentTokenLevel(3-60), hasTicket(5-60), (for generator)(15-52), (for state)(15-52), (for control)(15-52), level(16-50), config(16-50)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SELF      R3 = R0[K0('GetCurrentLevel')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  SELF      R4 = R0[K1('HasTicket')] (self)
  0004  CALL      R3 = call(R3, 1 args, 1 rets)
  0005  GETTABUP  R4 = _ENV[K2('ipairs')]
  0006  GETTABLE  R5 = R0[K3('m_config')]
  0007  TEST      if not R5 then   -> -131063
  0008  JMP       (jump)   -> 13
  0009  GETTABLE  R5 = R0[K3('m_config')]
  0010  GETTABLE  R5 = R5[K4('levelConfigs')]
  0011  TEST      if not R5 then   -> -131058
  0012  JMP       (jump)   -> 14
  0013  NEWTABLE  R5 = {} (0 items)
  0014  CALL      R4 = call(R4, 3 args, 1 rets)
  0015  JMP       (jump)   -> 50
  0016  LT        if R1 lt R7   -> -130023
  0017  JMP       (jump)   -> 52
  0018  SELF      R10 = R0[K5('IsRewardTaken')] (self)
  0019  MOVE      R11 = R0
  0020  LOADBOOL  R12 = false
  0021  CALL      R9 = call(R9, 1 args, 3 rets)
  0022  TEST      if not R9 then   -> -131047
  0023  JMP       (jump)   -> 33
  0024  GETTABUP  R9 = _ENV[K6('table')]
  0025  GETTABLE  R9 = R9[K7('insert')]
  0026  MOVE      R10 = R0
  0027  NEWTABLE  R11 = {} (0 items)
  0028  SETTABLE  R11[K8('Level')] = R7
  0029  SETTABLE  R11[K9('IsVip')] = K10(false)
  0030  GETTABLE  R12 = R8[K12('rewards')]
  0031  SETTABLE  R11[K11('Rewards')] = R12
  0032  CALL      R9 = call(R9, 0 args, 2 rets)
  0033  TEST      if not R3 then   -> -131037
  0034  JMP       (jump)   -> 50
  0035  SELF      R10 = R0[K5('IsRewardTaken')] (self)
  0036  MOVE      R11 = R0
  0037  LOADBOOL  R12 = true
  0038  CALL      R9 = call(R9, 1 args, 3 rets)
  0039  TEST      if not R9 then   -> -131030
  0040  JMP       (jump)   -> 50
  0041  GETTABUP  R9 = _ENV[K6('table')]
  0042  GETTABLE  R9 = R9[K7('insert')]
  0043  MOVE      R10 = R0
  0044  NEWTABLE  R11 = {} (0 items)
  0045  SETTABLE  R11[K8('Level')] = R7
  0046  SETTABLE  R11[K9('IsVip')] = K13(true)
  0047  GETTABLE  R12 = R8[K14('vipRewards')]
  0048  SETTABLE  R11[K11('Rewards')] = R12
  0049  CALL      R9 = call(R9, 0 args, 2 rets)
  0050  TFORCALL  tforcall R4
  0051  TFORLOOP  tforloop R6(sBx=-36)   -> 16
  0052  GETTABUP  R4 = _ENV[K15('Table')]
  0053  GETTABLE  R4 = R4[K16('ListAppend')]
  0054  MOVE      R5 = R0
  0055  SELF      R7 = R0[K17('GetCanTakeExtraRewards')] (self)
  0056  CALL      R6 = call(R6, -1 args, 1 rets)
  0057  CALL      R4 = call(R4, 0 args, -1 rets)
  0058  RETURN    return R1..R0
  0059  RETURN    return R0..R-1
; ---------- proto57 [GetCanTakeExtraRewards] ----------
  ; fn ?  line 800-807 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='HasMaxTicket'
  ;   K[1]='_GetCanTakeExtraRewards'
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('HasMaxTicket')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 6
  0004  NEWTABLE  R1 = {} (0 items)
  0005  RETURN    return R1..R0
  0006  SELF      R2 = R0[K1('_GetCanTakeExtraRewards')] (self)
  0007  TAILCALL  tailcall(R1, 0)
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto58 [_GetCanTakeExtraRewards] ----------
  ; fn ?  line 809-827 np=1 va=0 ms=16 code=47 consts=20 upvals=1 protos=0
  ;   K[0]='GetCurrentLevel'
  ;   K[1]='math'
  ;   K[2]='min'
  ;   K[3]='GetMaxLevel'
  ;   K[4]='m_dbTable'
  ;   K[5]='GetValue'
  ;   K[6]='PassActivityModel'
  ;   K[7]='ExtraRewardTakenKey'
  ;   K[8]='value'
  ;   K[9]=0
  ;   K[10]='m_config'
  ;   K[11]='extraLevelConfigs'
  ;   K[12]=1
  ;   K[13]='table'
  ;   K[14]='insert'
  ;   K[15]='IsExtra'
  ;   K[16]=true
  ;   K[17]='Index'
  ;   K[18]='Rewards'
  ;   K[19]='reward'
  ;   upvals: _ENV
  ;   locals: self(0-47), currentTokenLevelWithExtra(3-47), currentTokenLevel(9-47), extraLevelsToReward(10-47), rewards(11-47), extraRewardTakenIndex(20-47), configCount(23-47), (for index)(26-45), (for limit)(26-45), (for step)(26-45), index(27-44), realIndex(28-44)
  0000  SELF      R2 = R0[K0('GetCurrentLevel')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 1 args, 2 rets)
  0003  GETTABUP  R2 = _ENV[K1('math')]
  0004  GETTABLE  R2 = R2[K2('min')]
  0005  MOVE      R3 = R0
  0006  SELF      R5 = R0[K3('GetMaxLevel')] (self)
  0007  CALL      R4 = call(R4, -1 args, 1 rets)
  0008  CALL      R2 = call(R2, 1 args, -1 rets)
  0009  SUB       R3 = R2 sub R1
  0010  NEWTABLE  R4 = {} (0 items)
  0011  GETTABLE  R5 = R0[K4('m_dbTable')]
  0012  SELF      R6 = R5[K5('GetValue')] (self)
  0013  GETTABUP  R7 = _ENV[K6('PassActivityModel')]
  0014  GETTABLE  R7 = R7[K7('ExtraRewardTakenKey')]
  0015  LOADK     R8 = K8 'value'
  0016  CALL      R5 = call(R5, 1 args, 3 rets)
  0017  TEST      if not R5 then   -> -131052
  0018  JMP       (jump)   -> 20
  0019  LOADK     R5 = K9 0
  0020  GETTABLE  R6 = R0[K10('m_config')]
  0021  GETTABLE  R6 = R6[K11('extraLevelConfigs')]
  0022  LEN       R6 = len R0
  0023  ADD       R7 = K12(1) add R5
  0024  MOVE      R8 = R0
  0025  LOADK     R9 = K12 1
  0026  FORPREP   forprep R7(sBx=17)   -> 44
  0027  MOD       R11 = R6 mod R10
  0028  EQ        if R0 eq K9(0)   -> -125145
  0029  JMP       (jump)   -> 32
  0030  TESTSET   if R1 then R11   -> -127967
  0031  JMP       (jump)   -> 32
  0032  GETTABUP  R12 = _ENV[K13('table')]
  0033  GETTABLE  R12 = R12[K14('insert')]
  0034  MOVE      R13 = R0
  0035  NEWTABLE  R14 = {} (0 items)
  0036  SETTABLE  R14[K15('IsExtra')] = K16(true)
  0037  SETTABLE  R14[K17('Index')] = R10
  0038  GETTABLE  R15 = R0[K10('m_config')]
  0039  GETTABLE  R15 = R15[K11('extraLevelConfigs')]
  0040  GETTABLE  R15 = R15[R11]
  0041  GETTABLE  R15 = R15[K19('reward')]
  0042  SETTABLE  R14[K18('Rewards')] = R15
  0043  CALL      R12 = call(R12, 0 args, 2 rets)
  0044  FORLOOP   forloop R7(sBx=-18)   -> 27
  0045  RETURN    return R4..R3
  0046  RETURN    return R0..R-1
; ---------- proto59 [GetCanTakeExtraRewardNum] ----------
  ; fn ?  line 829-831 np=1 va=0 ms=3 code=5 consts=1 upvals=0 protos=0
  ;   K[0]='_GetCanTakeExtraRewards'
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('_GetCanTakeExtraRewards')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  LEN       R1 = len R0
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto60 [GetNextExtraRewardConfig] ----------
  ; fn ?  line 833-843 np=1 va=0 ms=5 code=29 consts=10 upvals=1 protos=0
  ;   K[0]='HasExtraLevels'
  ;   K[1]='m_dbTable'
  ;   K[2]='GetValue'
  ;   K[3]='PassActivityModel'
  ;   K[4]='ExtraRewardTakenKey'
  ;   K[5]='value'
  ;   K[6]=0
  ;   K[7]='m_config'
  ;   K[8]='extraLevelConfigs'
  ;   K[9]=1
  ;   upvals: _ENV
  ;   locals: self(0-29), extraRewardTakenIndex(15-29), configCount(18-29)
  0000  SELF      R2 = R0[K0('HasExtraLevels')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 6
  0004  LOADNIL   R1..R1 = nil
  0005  RETURN    return R1..R0
  0006  GETTABLE  R1 = R0[K1('m_dbTable')]
  0007  SELF      R2 = R1[K2('GetValue')] (self)
  0008  GETTABUP  R3 = _ENV[K3('PassActivityModel')]
  0009  GETTABLE  R3 = R3[K4('ExtraRewardTakenKey')]
  0010  LOADK     R4 = K5 'value'
  0011  CALL      R1 = call(R1, 1 args, 3 rets)
  0012  TEST      if not R1 then   -> -131057
  0013  JMP       (jump)   -> 15
  0014  LOADK     R1 = K6 0
  0015  GETTABLE  R2 = R0[K7('m_config')]
  0016  GETTABLE  R2 = R2[K8('extraLevelConfigs')]
  0017  LEN       R2 = len R0
  0018  ADD       R3 = K9(1) add R1
  0019  MOD       R1 = R2 mod R3
  0020  EQ        if R0 eq K6(0)   -> -130276
  0021  JMP       (jump)   -> 24
  0022  TESTSET   if R1 then R1   -> -130023
  0023  JMP       (jump)   -> 24
  0024  GETTABLE  R3 = R0[K7('m_config')]
  0025  GETTABLE  R3 = R3[K8('extraLevelConfigs')]
  0026  GETTABLE  R3 = R3[R1]
  0027  RETURN    return R3..R2
  0028  RETURN    return R0..R-1
; ---------- proto61 [GetAllExtraRewards] ----------
  ; fn ?  line 845-856 np=1 va=0 ms=13 code=24 consts=6 upvals=1 protos=0
  ;   K[0]='HasExtraLevels'
  ;   K[1]='ipairs'
  ;   K[2]='m_config'
  ;   K[3]='extraLevelConfigs'
  ;   K[4]='reward'
  ;   K[5]=1
  ;   upvals: _ENV
  ;   locals: self(0-24), rewards(1-24), (for generator)(10-22), (for state)(10-22), (for control)(10-22), _(11-20), config(11-20), (for generator)(14-20), (for state)(14-20), (for control)(14-20), _(15-18), reward(15-18)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SELF      R3 = R0[K0('HasExtraLevels')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  TEST      if not R2 then   -> -131066
  0004  JMP       (jump)   -> 6
  0005  RETURN    return R0..R-1
  0006  GETTABUP  R2 = _ENV[K1('ipairs')]
  0007  GETTABLE  R3 = R0[K2('m_config')]
  0008  GETTABLE  R3 = R3[K3('extraLevelConfigs')]
  0009  CALL      R2 = call(R2, 3 args, 1 rets)
  0010  JMP       (jump)   -> 20
  0011  GETTABUP  R7 = _ENV[K1('ipairs')]
  0012  GETTABLE  R8 = R6[K4('reward')]
  0013  CALL      R7 = call(R7, 3 args, 1 rets)
  0014  JMP       (jump)   -> 18
  0015  LEN       R12 = len R0
  0016  ADD       R12 = K5(1) add R12
  0017  SETTABLE  R1[R12] = R11
  0018  TFORCALL  tforcall R7
  0019  TFORLOOP  tforloop R9(sBx=-5)   -> 15
  0020  TFORCALL  tforcall R2
  0021  TFORLOOP  tforloop R4(sBx=-11)   -> 11
  0022  RETURN    return R1..R0
  0023  RETURN    return R0..R-1
; ---------- proto62 [IsRewardTaken] ----------
  ; fn ?  line 858-861 np=3 va=0 ms=8 code=23 consts=9 upvals=1 protos=0
  ;   K[0]='string'
  ;   K[1]='format'
  ;   K[2]='PassActivityModel'
  ;   K[3]='RewardTakenKey'
  ;   K[4]=1
  ;   K[5]=0
  ;   K[6]='m_dbTable'
  ;   K[7]='GetValue'
  ;   K[8]='value'
  ;   upvals: _ENV
  ;   locals: self(0-23), level(0-23), isVip(0-23), rewardTakenKey(12-23)
  0000  GETTABUP  R3 = _ENV[K0('string')]
  0001  GETTABLE  R3 = R3[K1('format')]
  0002  GETTABUP  R4 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R4 = R4[K3('RewardTakenKey')]
  0004  MOVE      R5 = R0
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 10
  0007  LOADK     R6 = K4 1
  0008  TEST      if not R6 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  LOADK     R6 = K5 0
  0011  CALL      R3 = call(R3, 1 args, 3 rets)
  0012  GETTABLE  R4 = R0[K6('m_dbTable')]
  0013  SELF      R5 = R4[K7('GetValue')] (self)
  0014  MOVE      R6 = R0
  0015  LOADK     R7 = K8 'value'
  0016  CALL      R4 = call(R4, 1 args, 3 rets)
  0017  EQ        if R1 eq K4(1)   -> -128745
  0018  JMP       (jump)   -> 20
  0019  LOADBOOL  R4 = false
  0020  LOADBOOL  R4 = true
  0021  RETURN    return R4..R3
  0022  RETURN    return R0..R-1
; ---------- proto63 [TakeReward] ----------
  ; fn ?  line 863-889 np=4 va=0 ms=13 code=74 consts=35 upvals=1 protos=0
  ;   K[0]='string'
  ;   K[1]='format'
  ;   K[2]='PassActivityModel'
  ;   K[3]='RewardTakenKey'
  ;   K[4]=1
  ;   K[5]=0
  ;   K[6]='m_dbTable'
  ;   K[7]='GetValue'
  ;   K[8]='value'
  ;   K[9]='EPropertySource'
  ;   K[10]='Buy'
  ;   K[11]='Give'
  ;   K[12]='RewardApi'
  ;   K[13]='AcquireRewardsLogic'
  ;   K[14]='m_activityDefinition'
  ;   K[15]='TakeRewardBIType'
  ;   K[16]='ERewardScene'
  ;   K[17]='Other'
  ;   K[18]='EGameMode'
  ;   K[19]='Board'
  ;   K[20]='CacheItemType'
  ;   K[21]='Stack'
  ;   K[22]='Set'
  ;   K[23]='level'
  ;   K[24]='vip'
  ;   K[25]='GM'
  ;   K[26]='BIManager'
  ;   K[27]='TableToString'
  ;   K[28]='LogActivity'
  ;   K[29]='EBIType'
  ;   K[30]='ActivityGetRewards'
  ;   K[31]='EventDispatcher'
  ;   K[32]='DispatchEvent'
  ;   K[33]='CanTakeRewardNumberChangedEvent'
  ;   K[34]='_CheckIfTakeAllRewards'
  ;   upvals: _ENV
  ;   locals: self(0-74), level(0-74), isVip(0-74), rewards(0-74), rewardTakenKey(12-74), eFree(28-74), action(56-74), actionString(61-74)
  0000  GETTABUP  R4 = _ENV[K0('string')]
  0001  GETTABLE  R4 = R4[K1('format')]
  0002  GETTABUP  R5 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R5 = R5[K3('RewardTakenKey')]
  0004  MOVE      R6 = R0
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 10
  0007  LOADK     R7 = K4 1
  0008  TEST      if not R7 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  LOADK     R7 = K5 0
  0011  CALL      R4 = call(R4, 1 args, 3 rets)
  0012  GETTABLE  R5 = R0[K6('m_dbTable')]
  0013  SELF      R6 = R5[K7('GetValue')] (self)
  0014  MOVE      R7 = R0
  0015  LOADK     R8 = K8 'value'
  0016  CALL      R5 = call(R5, 1 args, 3 rets)
  0017  EQ        if R0 eq K4(1)   -> -128233
  0018  JMP       (jump)   -> 20
  0019  RETURN    return R0..R-1
  0020  TEST      if not R2 then   -> -131050
  0021  JMP       (jump)   -> 26
  0022  GETTABUP  R5 = _ENV[K9('EPropertySource')]
  0023  GETTABLE  R5 = R5[K10('Buy')]
  0024  TEST      if not R5 then   -> -131045
  0025  JMP       (jump)   -> 28
  0026  GETTABUP  R5 = _ENV[K9('EPropertySource')]
  0027  GETTABLE  R5 = R5[K11('Give')]
  0028  GETTABUP  R6 = _ENV[K12('RewardApi')]
  0029  GETTABLE  R6 = R6[K13('AcquireRewardsLogic')]
  0030  MOVE      R7 = R0
  0031  MOVE      R8 = R0
  0032  GETTABLE  R9 = R0[K14('m_activityDefinition')]
  0033  GETTABLE  R9 = R9[K15('TakeRewardBIType')]
  0034  GETTABUP  R10 = _ENV[K16('ERewardScene')]
  0035  GETTABLE  R10 = R10[K17('Other')]
  0036  GETTABUP  R11 = _ENV[K18('EGameMode')]
  0037  GETTABLE  R11 = R11[K19('Board')]
  0038  GETTABUP  R12 = _ENV[K20('CacheItemType')]
  0039  GETTABLE  R12 = R12[K21('Stack')]
  0040  CALL      R6 = call(R6, 0 args, 6 rets)
  0041  GETTABLE  R6 = R0[K6('m_dbTable')]
  0042  SELF      R7 = R6[K22('Set')] (self)
  0043  MOVE      R8 = R0
  0044  LOADK     R9 = K8 'value'
  0045  LOADK     R10 = K4 1
  0046  CALL      R6 = call(R6, 0 args, 4 rets)
  0047  NEWTABLE  R6 = {} (0 items)
  0048  SETTABLE  R6[K23('level')] = R1
  0049  TEST      if not R2 then   -> -131021
  0050  JMP       (jump)   -> 54
  0051  LOADK     R7 = K4 1
  0052  TEST      if not R7 then   -> -131017
  0053  JMP       (jump)   -> 55
  0054  LOADK     R7 = K5 0
  0055  SETTABLE  R6[K24('vip')] = R7
  0056  GETTABUP  R7 = _ENV[K25('GM')]
  0057  GETTABLE  R7 = R7[K26('BIManager')]
  0058  SELF      R8 = R7[K27('TableToString')] (self)
  0059  MOVE      R9 = R0
  0060  CALL      R7 = call(R7, 1 args, 2 rets)
  0061  SELF      R9 = R0[K28('LogActivity')] (self)
  0062  GETTABUP  R10 = _ENV[K29('EBIType')]
  0063  GETTABLE  R10 = R10[K30('ActivityGetRewards')]
  0064  MOVE      R11 = R0
  0065  CALL      R8 = call(R8, 0 args, 3 rets)
  0066  GETTABUP  R8 = _ENV[K31('EventDispatcher')]
  0067  GETTABLE  R8 = R8[K32('DispatchEvent')]
  0068  GETTABLE  R9 = R0[K14('m_activityDefinition')]
  0069  GETTABLE  R9 = R9[K33('CanTakeRewardNumberChangedEvent')]
  0070  CALL      R8 = call(R8, 0 args, 1 rets)
  0071  SELF      R9 = R0[K34('_CheckIfTakeAllRewards')] (self)
  0072  CALL      R8 = call(R8, 0 args, 1 rets)
  0073  RETURN    return R0..R-1
; ---------- proto64 [TakeExtraReward] ----------
  ; fn ?  line 891-909 np=3 va=0 ms=10 code=54 consts=31 upvals=1 protos=0
  ;   K[0]='RewardApi'
  ;   K[1]='AcquireRewardsLogic'
  ;   K[2]='EPropertySource'
  ;   K[3]='Buy'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='TakeExtraRewardBIType'
  ;   K[6]='ERewardScene'
  ;   K[7]='Other'
  ;   K[8]='EGameMode'
  ;   K[9]='Board'
  ;   K[10]='CacheItemType'
  ;   K[11]='Stack'
  ;   K[12]='m_dbTable'
  ;   K[13]='GetValue'
  ;   K[14]='PassActivityModel'
  ;   K[15]='ExtraRewardTakenKey'
  ;   K[16]='value'
  ;   K[17]=0
  ;   K[18]='math'
  ;   K[19]='max'
  ;   K[20]='Set'
  ;   K[21]='index'
  ;   K[22]='GM'
  ;   K[23]='BIManager'
  ;   K[24]='TableToString'
  ;   K[25]='LogActivity'
  ;   K[26]='EBIType'
  ;   K[27]='ActivityGetRewards'
  ;   K[28]='EventDispatcher'
  ;   K[29]='DispatchEvent'
  ;   K[30]='CanTakeRewardNumberChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-54), index(0-54), rewards(0-54), extraRewardTakenIndex(23-54), action(38-54), actionString(43-54)
  0000  GETTABUP  R3 = _ENV[K0('RewardApi')]
  0001  GETTABLE  R3 = R3[K1('AcquireRewardsLogic')]
  0002  MOVE      R4 = R0
  0003  GETTABUP  R5 = _ENV[K2('EPropertySource')]
  0004  GETTABLE  R5 = R5[K3('Buy')]
  0005  GETTABLE  R6 = R0[K4('m_activityDefinition')]
  0006  GETTABLE  R6 = R6[K5('TakeExtraRewardBIType')]
  0007  GETTABUP  R7 = _ENV[K6('ERewardScene')]
  0008  GETTABLE  R7 = R7[K7('Other')]
  0009  GETTABUP  R8 = _ENV[K8('EGameMode')]
  0010  GETTABLE  R8 = R8[K9('Board')]
  0011  GETTABUP  R9 = _ENV[K10('CacheItemType')]
  0012  GETTABLE  R9 = R9[K11('Stack')]
  0013  CALL      R3 = call(R3, 0 args, 6 rets)
  0014  GETTABLE  R3 = R0[K12('m_dbTable')]
  0015  SELF      R4 = R3[K13('GetValue')] (self)
  0016  GETTABUP  R5 = _ENV[K14('PassActivityModel')]
  0017  GETTABLE  R5 = R5[K15('ExtraRewardTakenKey')]
  0018  LOADK     R6 = K16 'value'
  0019  CALL      R3 = call(R3, 1 args, 3 rets)
  0020  TEST      if not R3 then   -> -131049
  0021  JMP       (jump)   -> 23
  0022  LOADK     R3 = K17 0
  0023  GETTABUP  R4 = _ENV[K18('math')]
  0024  GETTABLE  R4 = R4[K19('max')]
  0025  MOVE      R5 = R0
  0026  MOVE      R6 = R0
  0027  CALL      R4 = call(R4, 1 args, 2 rets)
  0028  MOVE      R3 = R0
  0029  GETTABLE  R4 = R0[K12('m_dbTable')]
  0030  SELF      R5 = R4[K20('Set')] (self)
  0031  GETTABUP  R6 = _ENV[K14('PassActivityModel')]
  0032  GETTABLE  R6 = R6[K15('ExtraRewardTakenKey')]
  0033  LOADK     R7 = K16 'value'
  0034  MOVE      R8 = R0
  0035  CALL      R4 = call(R4, 0 args, 4 rets)
  0036  NEWTABLE  R4 = {} (0 items)
  0037  SETTABLE  R4[K21('index')] = R3
  0038  GETTABUP  R5 = _ENV[K22('GM')]
  0039  GETTABLE  R5 = R5[K23('BIManager')]
  0040  SELF      R6 = R5[K24('TableToString')] (self)
  0041  MOVE      R7 = R0
  0042  CALL      R5 = call(R5, 1 args, 2 rets)
  0043  SELF      R7 = R0[K25('LogActivity')] (self)
  0044  GETTABUP  R8 = _ENV[K26('EBIType')]
  0045  GETTABLE  R8 = R8[K27('ActivityGetRewards')]
  0046  MOVE      R9 = R0
  0047  CALL      R6 = call(R6, 0 args, 3 rets)
  0048  GETTABUP  R6 = _ENV[K28('EventDispatcher')]
  0049  GETTABLE  R6 = R6[K29('DispatchEvent')]
  0050  GETTABLE  R7 = R0[K4('m_activityDefinition')]
  0051  GETTABLE  R7 = R7[K30('CanTakeRewardNumberChangedEvent')]
  0052  CALL      R6 = call(R6, 0 args, 1 rets)
  0053  RETURN    return R0..R-1
; ---------- proto65 [_CheckIfTakeAllRewards] ----------
  ; fn ?  line 911-928 np=1 va=0 ms=9 code=27 consts=7 upvals=0 protos=0
  ;   K[0]='m_bHasTakeAllRewards'
  ;   K[1]=false
  ;   K[2]='HasExtraLevels'
  ;   K[3]=1
  ;   K[4]='GetMaxLevel'
  ;   K[5]='IsRewardTaken'
  ;   K[6]=true
  ;   locals: self(0-27), (for index)(10-25), (for limit)(10-25), (for step)(10-25), level(11-24)
  0000  SETTABLE  R0[K0('m_bHasTakeAllRewards')] = K1(false)
  0001  SELF      R2 = R0[K2('HasExtraLevels')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 6
  0005  RETURN    return R0..R-1
  0006  LOADK     R1 = K3 1
  0007  SELF      R3 = R0[K4('GetMaxLevel')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  LOADK     R3 = K3 1
  0010  FORPREP   forprep R1(sBx=13)   -> 24
  0011  SELF      R6 = R0[K5('IsRewardTaken')] (self)
  0012  MOVE      R7 = R0
  0013  LOADBOOL  R8 = false
  0014  CALL      R5 = call(R5, 1 args, 3 rets)
  0015  TEST      if not R5 then   -> -131055
  0016  JMP       (jump)   -> 23
  0017  SELF      R6 = R0[K5('IsRewardTaken')] (self)
  0018  MOVE      R7 = R0
  0019  LOADBOOL  R8 = true
  0020  CALL      R5 = call(R5, 1 args, 3 rets)
  0021  TEST      if not R5 then   -> -131048
  0022  JMP       (jump)   -> 24
  0023  RETURN    return R0..R-1
  0024  FORLOOP   forloop R1(sBx=-14)   -> 11
  0025  SETTABLE  R0[K0('m_bHasTakeAllRewards')] = K6(true)
  0026  RETURN    return R0..R-1
; ---------- proto66 [CanSettleBeforeEnd] ----------
  ; fn ?  line 930-932 np=1 va=0 ms=3 code=22 consts=8 upvals=1 protos=0
  ;   K[0]='m_bHasTakeAllRewards'
  ;   K[1]='GM'
  ;   K[2]='UIManager'
  ;   K[3]='allWindowClosed'
  ;   K[4]='PropertyAnimationManager'
  ;   K[5]='uiLockFlyingCount'
  ;   K[6]=0
  ;   K[7]='IsEventLock'
  ;   upvals: _ENV
  ;   locals: self(0-22)
  0000  GETTABLE  R1 = R0[K0('m_bHasTakeAllRewards')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 20
  0003  GETTABUP  R1 = _ENV[K1('GM')]
  0004  GETTABLE  R1 = R1[K2('UIManager')]
  0005  GETTABLE  R1 = R1[K3('allWindowClosed')]
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 20
  0008  GETTABUP  R1 = _ENV[K4('PropertyAnimationManager')]
  0009  GETTABLE  R1 = R1[K5('uiLockFlyingCount')]
  0010  LE        if R0 le K6(0)   -> -130286
  0011  JMP       (jump)   -> 18
  0012  GETTABUP  R1 = _ENV[K1('GM')]
  0013  GETTABLE  R1 = R1[K2('UIManager')]
  0014  SELF      R2 = R1[K7('IsEventLock')] (self)
  0015  CALL      R1 = call(R1, 1 args, 1 rets)
  0016  NOT       R1 = not R0
  0017  JMP       (jump)   -> 20
  0018  LOADBOOL  R1 = false
  0019  LOADBOOL  R1 = true
  0020  RETURN    return R1..R0
  0021  RETURN    return R0..R-1
; ---------- proto67 [IsSettled] ----------
  ; fn ?  line 934-939 np=1 va=0 ms=5 code=16 consts=7 upvals=1 protos=0
  ;   K[0]='m_bSettled'
  ;   K[1]=nil
  ;   K[2]='m_dbTable'
  ;   K[3]='GetValue'
  ;   K[4]='PassActivityModel'
  ;   K[5]='SettleKey'
  ;   K[6]='value'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABLE  R1 = R0[K0('m_bSettled')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 13
  0003  GETTABLE  R1 = R0[K2('m_dbTable')]
  0004  SELF      R2 = R1[K3('GetValue')] (self)
  0005  GETTABUP  R3 = _ENV[K4('PassActivityModel')]
  0006  GETTABLE  R3 = R3[K5('SettleKey')]
  0007  LOADK     R4 = K6 'value'
  0008  CALL      R1 = call(R1, 1 args, 3 rets)
  0009  TEST      if not R1 then   -> -131060
  0010  JMP       (jump)   -> 12
  0011  LOADBOOL  R1 = false
  0012  SETTABLE  R0[K0('m_bSettled')] = R1
  0013  GETTABLE  R1 = R0[K0('m_bSettled')]
  0014  RETURN    return R1..R0
  0015  RETURN    return R0..R-1
; ---------- proto68 [DoSettle] ----------
  ; fn ?  line 941-944 np=1 va=0 ms=6 code=9 consts=7 upvals=1 protos=0
  ;   K[0]='m_bSettled'
  ;   K[1]=true
  ;   K[2]='m_dbTable'
  ;   K[3]='Set'
  ;   K[4]='PassActivityModel'
  ;   K[5]='SettleKey'
  ;   K[6]='value'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  SETTABLE  R0[K0('m_bSettled')] = K1(true)
  0001  GETTABLE  R1 = R0[K2('m_dbTable')]
  0002  SELF      R2 = R1[K3('Set')] (self)
  0003  GETTABUP  R3 = _ENV[K4('PassActivityModel')]
  0004  GETTABLE  R3 = R3[K5('SettleKey')]
  0005  LOADK     R4 = K6 'value'
  0006  LOADBOOL  R5 = true
  0007  CALL      R1 = call(R1, 0 args, 4 rets)
  0008  RETURN    return R0..R-1
; ---------- proto69 [CanShowNoticeBubble] ----------
  ; fn ?  line 946-960 np=2 va=0 ms=11 code=33 consts=7 upvals=1 protos=0
  ;   K[0]='Group'
  ;   K[1]=nil
  ;   K[2]='_GetTimeLimitGroupTasks'
  ;   K[3]='GetTimelimitTaskOrder'
  ;   K[4]='ipairs'
  ;   K[5]='Index'
  ;   K[6]='_IsTimelimitTaskFinished'
  ;   upvals: _ENV
  ;   locals: self(0-33), task(0-33), mapGroup2Task(9-33), (for generator)(16-30), (for state)(16-30), (for control)(16-30), _(17-28), v(17-28)
  0000  GETTABLE  R2 = R1[K0('Group')]
  0001  EQ        if R0 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 5
  0003  LOADBOOL  R2 = true
  0004  RETURN    return R2..R1
  0005  SELF      R3 = R0[K2('_GetTimeLimitGroupTasks')] (self)
  0006  SELF      R5 = R0[K3('GetTimelimitTaskOrder')] (self)
  0007  CALL      R4 = call(R4, -1 args, 1 rets)
  0008  CALL      R2 = call(R2, 1 args, -1 rets)
  0009  GETTABUP  R3 = _ENV[K4('ipairs')]
  0010  GETTABLE  R4 = R1[K0('Group')]
  0011  GETTABLE  R4 = R2[R4]
  0012  TEST      if not R4 then   -> -131057
  0013  JMP       (jump)   -> 15
  0014  NEWTABLE  R4 = {} (0 items)
  0015  CALL      R3 = call(R3, 3 args, 1 rets)
  0016  JMP       (jump)   -> 28
  0017  GETTABLE  R8 = R7[K5('Index')]
  0018  GETTABLE  R9 = R1[K5('Index')]
  0019  LT        if R0 lt R9   -> -126946
  0020  JMP       (jump)   -> 28
  0021  SELF      R9 = R0[K6('_IsTimelimitTaskFinished')] (self)
  0022  MOVE      R10 = R0
  0023  CALL      R8 = call(R8, 1 args, 2 rets)
  0024  TEST      if not R8 then   -> -131045
  0025  JMP       (jump)   -> 28
  0026  LOADBOOL  R8 = false
  0027  RETURN    return R8..R7
  0028  TFORCALL  tforcall R3
  0029  TFORLOOP  tforloop R5(sBx=-13)   -> 17
  0030  LOADBOOL  R3 = true
  0031  RETURN    return R3..R2
  0032  RETURN    return R0..R-1
; ---------- proto70 [CanPopMaxTicketTokenWindow] ----------
  ; fn ?  line 962-964 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bPopMaxTicketTokenWindow'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bPopMaxTicketTokenWindow')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto71 [SetPopMaxTicketTokenWindow] ----------
  ; fn ?  line 966-968 np=1 va=0 ms=2 code=2 consts=2 upvals=0 protos=0
  ;   K[0]='m_bPopMaxTicketTokenWindow'
  ;   K[1]=false
  ;   locals: self(0-2)
  0000  SETTABLE  R0[K0('m_bPopMaxTicketTokenWindow')] = K1(false)
  0001  RETURN    return R0..R-1
; ---------- proto72 [NeedPlayMaxTicketAnim] ----------
  ; fn ?  line 970-979 np=0 va=0 ms=5 code=24 consts=12 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetOneActivityModel'
  ;   K[3]='ActivityModelType'
  ;   K[4]='Pass'
  ;   K[5]=nil
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='CanPopMaxTicketTokenWindow'
  ;   K[8]='UIManager'
  ;   K[9]='IsViewExisting'
  ;   K[10]='UIPrefabConfigName'
  ;   K[11]='PassActivityMaxTicketTokenWindow'
  ;   upvals: _ENV
  ;   locals: activeModel(6-24), definition(10-21)
  0000  GETTABUP  R0 = _ENV[K0('GM')]
  0001  GETTABLE  R0 = R0[K1('ActivityManager')]
  0002  SELF      R1 = R0[K2('GetOneActivityModel')] (self)
  0003  GETTABUP  R2 = _ENV[K3('ActivityModelType')]
  0004  GETTABLE  R2 = R2[K4('Pass')]
  0005  CALL      R0 = call(R0, 1 args, 2 rets)
  0006  EQ        if R1 eq K5(nil)   -> -130803
  0007  JMP       (jump)   -> 21
  0008  SELF      R2 = R0[K6('GetActivityDefinition')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  SELF      R3 = R0[K7('CanPopMaxTicketTokenWindow')] (self)
  0011  CALL      R2 = call(R2, 1 args, 1 rets)
  0012  TEST      if not R2 then   -> -131057
  0013  JMP       (jump)   -> 20
  0014  GETTABUP  R2 = _ENV[K0('GM')]
  0015  GETTABLE  R2 = R2[K8('UIManager')]
  0016  SELF      R3 = R2[K9('IsViewExisting')] (self)
  0017  GETTABUP  R4 = _ENV[K10('UIPrefabConfigName')]
  0018  GETTABLE  R4 = R4[K11('PassActivityMaxTicketTokenWindow')]
  0019  CALL      R2 = call(R2, 1 args, 2 rets)
  0020  RETURN    return R2..R1
  0021  LOADBOOL  R1 = false
  0022  RETURN    return R1..R0
  0023  RETURN    return R0..R-1
; ---------- proto73 [GetHighlightEnergyRewardCount] ----------
  ; fn ?  line 983-992 np=1 va=0 ms=4 code=19 consts=7 upvals=1 protos=0
  ;   K[0]='m_vipExtraEnergyCount'
  ;   K[1]=0
  ;   K[2]='m_config'
  ;   K[3]='levelConfigs'
  ;   K[4]=1
  ;   K[5]='vipRewards'
  ;   K[6]='PROPERTY_COUNT'
  ;   upvals: _ENV
  ;   locals: self(0-19), levelConfig(8-19)
  0000  GETTABLE  R1 = R0[K0('m_vipExtraEnergyCount')]
  0001  LT        if R0 lt R1   -> 516
  0002  JMP       (jump)   -> 5
  0003  GETTABLE  R1 = R0[K0('m_vipExtraEnergyCount')]
  0004  RETURN    return R1..R0
  0005  GETTABLE  R1 = R0[K2('m_config')]
  0006  GETTABLE  R1 = R1[K3('levelConfigs')]
  0007  GETTABLE  R1 = R1[K4(1)]
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 16
  0010  GETTABLE  R2 = R1[K5('vipRewards')]
  0011  GETTABLE  R2 = R2[K4(1)]
  0012  GETTABUP  R3 = _ENV[K6('PROPERTY_COUNT')]
  0013  GETTABLE  R2 = R2[R3]
  0014  TEST      if not R2 then   -> -131055
  0015  JMP       (jump)   -> 17
  0016  LOADK     R2 = K1 0
  0017  RETURN    return R2..R1
  0018  RETURN    return R0..R-1
; ---------- proto74 [GetVIPExtraEnergyRewards] ----------
  ; fn ?  line 994-1006 np=1 va=0 ms=5 code=17 consts=6 upvals=1 protos=0
  ;   K[0]='m_vipExtraEnergyCount'
  ;   K[1]=0
  ;   K[2]='PROPERTY_TYPE'
  ;   K[3]='EPropertyType'
  ;   K[4]='Energy'
  ;   K[5]='PROPERTY_COUNT'
  ;   upvals: _ENV
  ;   locals: self(0-17), rewards(15-17)
  0000  GETTABLE  R1 = R0[K0('m_vipExtraEnergyCount')]
  0001  LE        if R0 le K1(0)   -> -130300
  0002  JMP       (jump)   -> 5
  0003  LOADNIL   R1..R1 = nil
  0004  RETURN    return R1..R0
  0005  NEWTABLE  R1 = {} (1 items)
  0006  NEWTABLE  R2 = {} (0 items)
  0007  GETTABUP  R3 = _ENV[K2('PROPERTY_TYPE')]
  0008  GETTABUP  R4 = _ENV[K3('EPropertyType')]
  0009  GETTABLE  R4 = R4[K4('Energy')]
  0010  SETTABLE  R2[R3] = R4
  0011  GETTABUP  R3 = _ENV[K5('PROPERTY_COUNT')]
  0012  GETTABLE  R4 = R0[K0('m_vipExtraEnergyCount')]
  0013  SETTABLE  R2[R3] = R4
  0014  SETLIST   setlist R1[B=1,C=1]
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
; ---------- proto75 [HasTakenVIPExtraEnergy] ----------
  ; fn ?  line 1008-1010 np=1 va=0 ms=5 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='PassActivityModel'
  ;   K[3]='TicketBonusRewardTakenKey'
  ;   K[4]='value'
  ;   K[5]=1
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('TicketBonusRewardTakenKey')]
  0004  LOADK     R4 = K4 'value'
  0005  CALL      R1 = call(R1, 1 args, 3 rets)
  0006  EQ        if R1 eq K5(1)   -> -130291
  0007  JMP       (jump)   -> 9
  0008  LOADBOOL  R1 = false
  0009  LOADBOOL  R1 = true
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto76 [CanTakeVIPExtraEnergy] ----------
  ; fn ?  line 1012-1016 np=1 va=0 ms=3 code=17 consts=6 upvals=1 protos=0
  ;   K[0]='m_vipExtraEnergyCount'
  ;   K[1]=0
  ;   K[2]='HasTakenVIPExtraEnergy'
  ;   K[3]='GetTicketState'
  ;   K[4]='EBPTicketState'
  ;   K[5]='None'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  GETTABLE  R1 = R0[K0('m_vipExtraEnergyCount')]
  0001  LT        if R0 lt R1   -> 516
  0002  JMP       (jump)   -> 13
  0003  SELF      R2 = R0[K2('HasTakenVIPExtraEnergy')] (self)
  0004  CALL      R1 = call(R1, 1 args, 1 rets)
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 13
  0007  SELF      R2 = R0[K3('GetTicketState')] (self)
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  GETTABUP  R2 = _ENV[K4('EBPTicketState')]
  0010  GETTABLE  R2 = R2[K5('None')]
  0011  EQ        if R0 eq R2   -> -130545
  0012  JMP       (jump)   -> 14
  0013  LOADBOOL  R1 = false
  0014  LOADBOOL  R1 = true
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
; ---------- proto77 [TryTakeVIPExtraEnergy] ----------
  ; fn ?  line 1018-1028 np=1 va=0 ms=9 code=36 consts=23 upvals=1 protos=0
  ;   K[0]='CanTakeVIPExtraEnergy'
  ;   K[1]='m_dbTable'
  ;   K[2]='Set'
  ;   K[3]='PassActivityModel'
  ;   K[4]='TicketBonusRewardTakenKey'
  ;   K[5]='value'
  ;   K[6]=1
  ;   K[7]='GetVIPExtraEnergyRewards'
  ;   K[8]='RewardApi'
  ;   K[9]='CryptRewards'
  ;   K[10]='m_bCanTakeVIPExtraEnergyInView'
  ;   K[11]=true
  ;   K[12]='AcquireRewardsLogic'
  ;   K[13]='EPropertySource'
  ;   K[14]='Buy'
  ;   K[15]='EBIType'
  ;   K[16]='BPTaskVIPExtraEnergy'
  ;   K[17]='ERewardScene'
  ;   K[18]='Other'
  ;   K[19]='EGameMode'
  ;   K[20]='Board'
  ;   K[21]='CacheItemType'
  ;   K[22]='Stack'
  ;   upvals: _ENV
  ;   locals: self(0-36), rewards(15-36)
  0000  SELF      R2 = R0[K0('CanTakeVIPExtraEnergy')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 6
  0004  LOADNIL   R1..R1 = nil
  0005  RETURN    return R1..R0
  0006  GETTABLE  R1 = R0[K1('m_dbTable')]
  0007  SELF      R2 = R1[K2('Set')] (self)
  0008  GETTABUP  R3 = _ENV[K3('PassActivityModel')]
  0009  GETTABLE  R3 = R3[K4('TicketBonusRewardTakenKey')]
  0010  LOADK     R4 = K5 'value'
  0011  LOADK     R5 = K6 1
  0012  CALL      R1 = call(R1, 0 args, 4 rets)
  0013  SELF      R2 = R0[K7('GetVIPExtraEnergyRewards')] (self)
  0014  CALL      R1 = call(R1, 1 args, 1 rets)
  0015  GETTABUP  R2 = _ENV[K8('RewardApi')]
  0016  GETTABLE  R2 = R2[K9('CryptRewards')]
  0017  MOVE      R3 = R0
  0018  CALL      R2 = call(R2, 0 args, 1 rets)
  0019  SETTABLE  R0[K10('m_bCanTakeVIPExtraEnergyInView')] = K11(true)
  0020  GETTABUP  R2 = _ENV[K8('RewardApi')]
  0021  GETTABLE  R2 = R2[K12('AcquireRewardsLogic')]
  0022  MOVE      R3 = R0
  0023  GETTABUP  R4 = _ENV[K13('EPropertySource')]
  0024  GETTABLE  R4 = R4[K14('Buy')]
  0025  GETTABUP  R5 = _ENV[K15('EBIType')]
  0026  GETTABLE  R5 = R5[K16('BPTaskVIPExtraEnergy')]
  0027  GETTABUP  R6 = _ENV[K17('ERewardScene')]
  0028  GETTABLE  R6 = R6[K18('Other')]
  0029  GETTABUP  R7 = _ENV[K19('EGameMode')]
  0030  GETTABLE  R7 = R7[K20('Board')]
  0031  GETTABUP  R8 = _ENV[K21('CacheItemType')]
  0032  GETTABLE  R8 = R8[K22('Stack')]
  0033  TAILCALL  tailcall(R2, 0)
  0034  RETURN    return R2..R1
  0035  RETURN    return R0..R-1
; ---------- proto78 [CanTakeVIPExtraEnergyInView] ----------
  ; fn ?  line 1030-1032 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bCanTakeVIPExtraEnergyInView'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bCanTakeVIPExtraEnergyInView')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto79 [OnTakenVIPExtraEnergyInView] ----------
  ; fn ?  line 1034-1036 np=1 va=0 ms=2 code=2 consts=2 upvals=0 protos=0
  ;   K[0]='m_bCanTakeVIPExtraEnergyInView'
  ;   K[1]=false
  ;   locals: self(0-2)
  0000  SETTABLE  R0[K0('m_bCanTakeVIPExtraEnergyInView')] = K1(false)
  0001  RETURN    return R0..R-1
; ---------- proto80 [HasShownRewardEffect] ----------
  ; fn ?  line 1039-1042 np=3 va=0 ms=8 code=23 consts=9 upvals=1 protos=0
  ;   K[0]='string'
  ;   K[1]='format'
  ;   K[2]='PassActivityModel'
  ;   K[3]='RewardEffectKey'
  ;   K[4]=1
  ;   K[5]=0
  ;   K[6]='m_dbTable'
  ;   K[7]='GetValue'
  ;   K[8]='value'
  ;   upvals: _ENV
  ;   locals: self(0-23), level(0-23), isVip(0-23), rewardEffectKey(12-23)
  0000  GETTABUP  R3 = _ENV[K0('string')]
  0001  GETTABLE  R3 = R3[K1('format')]
  0002  GETTABUP  R4 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R4 = R4[K3('RewardEffectKey')]
  0004  MOVE      R5 = R0
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 10
  0007  LOADK     R6 = K4 1
  0008  TEST      if not R6 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  LOADK     R6 = K5 0
  0011  CALL      R3 = call(R3, 1 args, 3 rets)
  0012  GETTABLE  R4 = R0[K6('m_dbTable')]
  0013  SELF      R5 = R4[K7('GetValue')] (self)
  0014  MOVE      R6 = R0
  0015  LOADK     R7 = K8 'value'
  0016  CALL      R4 = call(R4, 1 args, 3 rets)
  0017  EQ        if R1 eq K4(1)   -> -128745
  0018  JMP       (jump)   -> 20
  0019  LOADBOOL  R4 = false
  0020  LOADBOOL  R4 = true
  0021  RETURN    return R4..R3
  0022  RETURN    return R0..R-1
; ---------- proto81 [SetShownRewardEffect] ----------
  ; fn ?  line 1044-1047 np=3 va=0 ms=9 code=19 consts=9 upvals=1 protos=0
  ;   K[0]='string'
  ;   K[1]='format'
  ;   K[2]='PassActivityModel'
  ;   K[3]='RewardEffectKey'
  ;   K[4]=1
  ;   K[5]=0
  ;   K[6]='m_dbTable'
  ;   K[7]='Set'
  ;   K[8]='value'
  ;   upvals: _ENV
  ;   locals: self(0-19), level(0-19), isVip(0-19), rewardEffectKey(12-19)
  0000  GETTABUP  R3 = _ENV[K0('string')]
  0001  GETTABLE  R3 = R3[K1('format')]
  0002  GETTABUP  R4 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R4 = R4[K3('RewardEffectKey')]
  0004  MOVE      R5 = R0
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 10
  0007  LOADK     R6 = K4 1
  0008  TEST      if not R6 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  LOADK     R6 = K5 0
  0011  CALL      R3 = call(R3, 1 args, 3 rets)
  0012  GETTABLE  R4 = R0[K6('m_dbTable')]
  0013  SELF      R5 = R4[K7('Set')] (self)
  0014  MOVE      R6 = R0
  0015  LOADK     R7 = K8 'value'
  0016  LOADK     R8 = K4 1
  0017  CALL      R4 = call(R4, 0 args, 4 rets)
  0018  RETURN    return R0..R-1
; ---------- proto82 [HasShownProgressEffect] ----------
  ; fn ?  line 1049-1052 np=2 va=0 ms=7 code=17 consts=8 upvals=1 protos=0
  ;   K[0]='string'
  ;   K[1]='format'
  ;   K[2]='PassActivityModel'
  ;   K[3]='ProgressEffectKey'
  ;   K[4]='m_dbTable'
  ;   K[5]='GetValue'
  ;   K[6]='value'
  ;   K[7]=1
  ;   upvals: _ENV
  ;   locals: self(0-17), level(0-17), progressEffectKey(6-17)
  0000  GETTABUP  R2 = _ENV[K0('string')]
  0001  GETTABLE  R2 = R2[K1('format')]
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('ProgressEffectKey')]
  0004  MOVE      R4 = R0
  0005  CALL      R2 = call(R2, 1 args, 2 rets)
  0006  GETTABLE  R3 = R0[K4('m_dbTable')]
  0007  SELF      R4 = R3[K5('GetValue')] (self)
  0008  MOVE      R5 = R0
  0009  LOADK     R6 = K6 'value'
  0010  CALL      R3 = call(R3, 1 args, 3 rets)
  0011  EQ        if R1 eq K7(1)   -> -129260
  0012  JMP       (jump)   -> 14
  0013  LOADBOOL  R3 = false
  0014  LOADBOOL  R3 = true
  0015  RETURN    return R3..R2
  0016  RETURN    return R0..R-1
; ---------- proto83 [SetShownProgressEffect] ----------
  ; fn ?  line 1054-1057 np=2 va=0 ms=8 code=13 consts=8 upvals=1 protos=0
  ;   K[0]='string'
  ;   K[1]='format'
  ;   K[2]='PassActivityModel'
  ;   K[3]='ProgressEffectKey'
  ;   K[4]='m_dbTable'
  ;   K[5]='Set'
  ;   K[6]='value'
  ;   K[7]=1
  ;   upvals: _ENV
  ;   locals: self(0-13), level(0-13), progressEffectKey(6-13)
  0000  GETTABUP  R2 = _ENV[K0('string')]
  0001  GETTABLE  R2 = R2[K1('format')]
  0002  GETTABUP  R3 = _ENV[K2('PassActivityModel')]
  0003  GETTABLE  R3 = R3[K3('ProgressEffectKey')]
  0004  MOVE      R4 = R0
  0005  CALL      R2 = call(R2, 1 args, 2 rets)
  0006  GETTABLE  R3 = R0[K4('m_dbTable')]
  0007  SELF      R4 = R3[K5('Set')] (self)
  0008  MOVE      R5 = R0
  0009  LOADK     R6 = K6 'value'
  0010  LOADK     R7 = K7 1
  0011  CALL      R3 = call(R3, 0 args, 4 rets)
  0012  RETURN    return R0..R-1
; ---------- proto84 [GetButtonTarget] ----------
  ; fn ?  line 1060-1086 np=1 va=0 ms=13 code=85 consts=28 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='PassActivityDefinition'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='ActivityTokenPropertyType'
  ;   K[6]='TicketPropertyType'
  ;   K[7]='PlusTicketPropertyType'
  ;   K[8]='EPropertyType'
  ;   K[9]='BPFaceToken'
  ;   K[10]=nil
  ;   K[11]='CanAddScore'
  ;   K[12]='UIManager'
  ;   K[13]='GetOpenedViewByName'
  ;   K[14]='MainWindowPrefabName'
  ;   K[15]='GetIconArea'
  ;   K[16]='SceneManager'
  ;   K[17]='GetGameMode'
  ;   K[18]='EGameMode'
  ;   K[19]='Board'
  ;   K[20]='MainBoardView'
  ;   K[21]='GetInstance'
  ;   K[22]='GetOrderArea'
  ;   K[23]='GetIconAreaByActivityType'
  ;   K[24]='Main'
  ;   K[25]='TutorialHelper'
  ;   K[26]='GetHudButton'
  ;   K[27]='EntryButtonKey'
  ;   upvals: _ENV
  ;   locals: propertyType(0-85), model(1-85), (for generator)(4-82), (for state)(4-82), (for control)(4-82), activityType(5-80), activityDefinition(5-80), mainWindow(35-80), boardView(56-66), orderArea(60-66)
  0000  LOADNIL   R1..R1 = nil
  0001  GETTABUP  R2 = _ENV[K0('pairs')]
  0002  GETTABUP  R3 = _ENV[K1('PassActivityDefinition')]
  0003  CALL      R2 = call(R2, 3 args, 1 rets)
  0004  JMP       (jump)   -> 80
  0005  GETTABUP  R7 = _ENV[K2('GM')]
  0006  GETTABLE  R7 = R7[K3('ActivityManager')]
  0007  SELF      R8 = R7[K4('GetModel')] (self)
  0008  MOVE      R9 = R0
  0009  CALL      R7 = call(R7, 1 args, 2 rets)
  0010  MOVE      R1 = R0
  0011  GETTABLE  R7 = R6[K5('ActivityTokenPropertyType')]
  0012  EQ        if R1 eq R7   -> -131051
  0013  JMP       (jump)   -> 30
  0014  GETTABLE  R7 = R6[K6('TicketPropertyType')]
  0015  EQ        if R1 eq R7   -> -131048
  0016  JMP       (jump)   -> 30
  0017  GETTABLE  R7 = R6[K7('PlusTicketPropertyType')]
  0018  EQ        if R1 eq R7   -> -131045
  0019  JMP       (jump)   -> 30
  0020  GETTABUP  R7 = _ENV[K8('EPropertyType')]
  0021  GETTABLE  R7 = R7[K9('BPFaceToken')]
  0022  EQ        if R0 eq R7   -> -131041
  0023  JMP       (jump)   -> 80
  0024  EQ        if R1 eq K10(nil)   -> -130268
  0025  JMP       (jump)   -> 80
  0026  SELF      R8 = R1[K11('CanAddScore')] (self)
  0027  CALL      R7 = call(R7, 1 args, 1 rets)
  0028  TEST      if not R7 then   -> -131042
  0029  JMP       (jump)   -> 80
  0030  GETTABUP  R7 = _ENV[K2('GM')]
  0031  GETTABLE  R7 = R7[K12('UIManager')]
  0032  SELF      R8 = R7[K13('GetOpenedViewByName')] (self)
  0033  GETTABLE  R9 = R6[K14('MainWindowPrefabName')]
  0034  CALL      R7 = call(R7, 1 args, 2 rets)
  0035  GETTABUP  R8 = _ENV[K8('EPropertyType')]
  0036  GETTABLE  R8 = R8[K9('BPFaceToken')]
  0037  EQ        if R0 eq R8   -> -131025
  0038  JMP       (jump)   -> 45
  0039  EQ        if R1 eq K10(nil)   -> -127181
  0040  JMP       (jump)   -> 45
  0041  SELF      R9 = R7[K15('GetIconArea')] (self)
  0042  TAILCALL  tailcall(R8, 0)
  0043  RETURN    return R8..R7
  0044  JMP       (jump)   -> 80
  0045  GETTABUP  R8 = _ENV[K2('GM')]
  0046  GETTABLE  R8 = R8[K16('SceneManager')]
  0047  SELF      R9 = R8[K17('GetGameMode')] (self)
  0048  CALL      R8 = call(R8, 1 args, 1 rets)
  0049  GETTABUP  R9 = _ENV[K18('EGameMode')]
  0050  GETTABLE  R9 = R9[K19('Board')]
  0051  EQ        if R0 eq R9   -> -126914
  0052  JMP       (jump)   -> 67
  0053  GETTABUP  R8 = _ENV[K20('MainBoardView')]
  0054  GETTABLE  R8 = R8[K21('GetInstance')]
  0055  CALL      R8 = call(R8, 1 args, 0 rets)
  0056  EQ        if R1 eq K10(nil)   -> -126652
  0057  JMP       (jump)   -> 80
  0058  SELF      R10 = R8[K22('GetOrderArea')] (self)
  0059  CALL      R9 = call(R9, 1 args, 1 rets)
  0060  EQ        if R1 eq K10(nil)   -> -126136
  0061  JMP       (jump)   -> 80
  0062  SELF      R11 = R9[K23('GetIconAreaByActivityType')] (self)
  0063  MOVE      R12 = R0
  0064  TAILCALL  tailcall(R10, 0)
  0065  RETURN    return R10..R9
  0066  JMP       (jump)   -> 80
  0067  GETTABUP  R8 = _ENV[K2('GM')]
  0068  GETTABLE  R8 = R8[K16('SceneManager')]
  0069  SELF      R9 = R8[K17('GetGameMode')] (self)
  0070  CALL      R8 = call(R8, 1 args, 1 rets)
  0071  GETTABUP  R9 = _ENV[K18('EGameMode')]
  0072  GETTABLE  R9 = R9[K24('Main')]
  0073  EQ        if R0 eq R9   -> -126892
  0074  JMP       (jump)   -> 80
  0075  GETTABUP  R8 = _ENV[K25('TutorialHelper')]
  0076  GETTABLE  R8 = R8[K26('GetHudButton')]
  0077  GETTABLE  R9 = R6[K27('EntryButtonKey')]
  0078  TAILCALL  tailcall(R8, 0)
  0079  RETURN    return R8..R7
  0080  TFORCALL  tforcall R2
  0081  TFORLOOP  tforloop R4(sBx=-77)   -> 5
  0082  LOADNIL   R2..R2 = nil
  0083  RETURN    return R2..R1
  0084  RETURN    return R0..R-1
