# FundPack_FundPackActivityDefinition_1436.luac
; fn @FundPackActivityDefinition.lua  line 0-0 np=0 va=1 ms=5 code=29 consts=10 upvals=1 protos=3
;   K[0]='FundPackActivityDefinition'
;   K[1]='ActivityType'
;   K[2]='FundPack'
;   K[3]='FundPack2'
;   K[4]='FundPackTaskType'
;   K[5]='GoldAcquire'
;   K[6]='gold'
;   K[7]='FundPackTaskDefinition'
;   K[8]='GetIcon'
;   K[9]='GetDescKey'
;   upvals: _ENV
;   locals: CreateActivityDefinition(3-29)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('FundPackActivityDefinition')] = R0
0002  CLOSURE   R0 = closure proto0
0003  MOVE      R1 = R0
0004  GETTABUP  R2 = _ENV[K1('ActivityType')]
0005  GETTABLE  R2 = R2[K2('FundPack')]
0006  LOADK     R3 = K2 'FundPack'
0007  NEWTABLE  R4 = {} (0 items)
0008  CALL      R1 = call(R1, 0 args, 3 rets)
0009  MOVE      R1 = R0
0010  GETTABUP  R2 = _ENV[K1('ActivityType')]
0011  GETTABLE  R2 = R2[K3('FundPack2')]
0012  LOADK     R3 = K3 'FundPack2'
0013  NEWTABLE  R4 = {} (0 items)
0014  CALL      R1 = call(R1, 0 args, 3 rets)
0015  NEWTABLE  R1 = {} (0 items)
0016  SETTABLE  R1[K5('GoldAcquire')] = K6('gold')
0017  SETTABUP  _ENV[K4('FundPackTaskType')] = R1
0018  NEWTABLE  R1 = {} (0 items)
0019  GETTABUP  R2 = _ENV[K4('FundPackTaskType')]
0020  GETTABLE  R2 = R2[K5('GoldAcquire')]
0021  NEWTABLE  R3 = {} (0 items)
0022  CLOSURE   R4 = closure proto1
0023  SETTABLE  R3[K8('GetIcon')] = R4
0024  CLOSURE   R4 = closure proto2
0025  SETTABLE  R3[K9('GetDescKey')] = R4
0026  SETTABLE  R1[R2] = R3
0027  SETTABUP  _ENV[K7('FundPackTaskDefinition')] = R1
0028  RETURN    return R0..R-1
; ---------- proto0 [] ----------
  ; fn ?  line 29-78 np=3 va=0 ms=8 code=109 consts=51 upvals=1 protos=0
  ;   K[0]='ActivityDataTableName'
  ;   K[1]='VirtualDBTableName'
  ;   K[2]='StateChangedEvent'
  ;   K[3]='EEventType'
  ;   K[4]='ActivityStateChanged'
  ;   K[5]='RefreshEntryEvent'
  ;   K[6]='ActivityRefreshEntry'
  ;   K[7]='BuyTicketSuccessEvent'
  ;   K[8]='ActivityBuyTicketSuccess'
  ;   K[9]='TaskCompletedEvent'
  ;   K[10]='ActivityTaskCompleted'
  ;   K[11]='AfterMainWindowOpenedEvent'
  ;   K[12]='ActivityAfterMainWindowOpened'
  ;   K[13]='RewardClaimedEvent'
  ;   K[14]='ActivityRewardClaimed'
  ;   K[15]='EntryPrefabName'
  ;   K[16]='UIPrefabConfigName'
  ;   K[17]='ActivityMainEntry'
  ;   K[18]='MainWindowPrefabName'
  ;   K[19]='ActivityMainWindow'
  ;   K[20]='PurchaseWindowPrefabName'
  ;   K[21]='ActivityPurchaseWindow'
  ;   K[22]='EndWindowPrefabName'
  ;   K[23]='ActivityEndWindow'
  ;   K[24]='RewardRecoverWindowPrefabName'
  ;   K[25]='ActivityRewardRecoverWindow'
  ;   K[26]='EntryButtonKey'
  ;   K[27]='ESceneViewHudButtonKey'
  ;   K[28]='RewardDescKey'
  ;   K[29]='fundpack_wintip'
  ;   K[30]='ValueDescKey'
  ;   K[31]='value_tag'
  ;   K[32]='MainWindowBoughtDescKey'
  ;   K[33]='fundPack_bought_desc'
  ;   K[34]='MainWindowBoughtCompleteDescKey'
  ;   K[35]='fundPack_finish_desc'
  ;   K[36]='RewardScene'
  ;   K[37]='ERewardScene'
  ;   K[38]='Other'
  ;   K[39]='PropertyType'
  ;   K[40]='EPropertyType'
  ;   K[41]='FundPackVIP'
  ;   K[42]='PropertyIconName'
  ;   K[43]='ImageFileConfigName'
  ;   K[44]='_main_icon'
  ;   K[45]='ResourceLabels'
  ;   K[46]='AddressableLabel'
  ;   K[47]='FundPackCommon'
  ;   K[48]='__index'
  ;   K[49]='FundPackActivityDefinition'
  ;   K[50]='setmetatable'
  ;   upvals: _ENV
  ;   locals: activityType(0-109), prefix(0-109), overrideTable(0-109), BaseTable(96-109)
  0000  NEWTABLE  R3 = {} (0 items)
  0001  GETTABUP  R4 = _ENV[K1('VirtualDBTableName')]
  0002  GETTABLE  R4 = R4[R1]
  0003  SETTABLE  R3[K0('ActivityDataTableName')] = R4
  0004  GETTABUP  R4 = _ENV[K3('EEventType')]
  0005  MOVE      R5 = R0
  0006  LOADK     R6 = K4 'ActivityStateChanged'
  0007  CONCAT    R5 = concat(R5..R5)
  0008  GETTABLE  R4 = R4[R5]
  0009  SETTABLE  R3[K2('StateChangedEvent')] = R4
  0010  GETTABUP  R4 = _ENV[K3('EEventType')]
  0011  MOVE      R5 = R0
  0012  LOADK     R6 = K6 'ActivityRefreshEntry'
  0013  CONCAT    R5 = concat(R5..R5)
  0014  GETTABLE  R4 = R4[R5]
  0015  SETTABLE  R3[K5('RefreshEntryEvent')] = R4
  0016  GETTABUP  R4 = _ENV[K3('EEventType')]
  0017  MOVE      R5 = R0
  0018  LOADK     R6 = K8 'ActivityBuyTicketSuccess'
  0019  CONCAT    R5 = concat(R5..R5)
  0020  GETTABLE  R4 = R4[R5]
  0021  SETTABLE  R3[K7('BuyTicketSuccessEvent')] = R4
  0022  GETTABUP  R4 = _ENV[K3('EEventType')]
  0023  MOVE      R5 = R0
  0024  LOADK     R6 = K10 'ActivityTaskCompleted'
  0025  CONCAT    R5 = concat(R5..R5)
  0026  GETTABLE  R4 = R4[R5]
  0027  SETTABLE  R3[K9('TaskCompletedEvent')] = R4
  0028  GETTABUP  R4 = _ENV[K3('EEventType')]
  0029  MOVE      R5 = R0
  0030  LOADK     R6 = K12 'ActivityAfterMainWindowOpened'
  0031  CONCAT    R5 = concat(R5..R5)
  0032  GETTABLE  R4 = R4[R5]
  0033  SETTABLE  R3[K11('AfterMainWindowOpenedEvent')] = R4
  0034  GETTABUP  R4 = _ENV[K3('EEventType')]
  0035  MOVE      R5 = R0
  0036  LOADK     R6 = K14 'ActivityRewardClaimed'
  0037  CONCAT    R5 = concat(R5..R5)
  0038  GETTABLE  R4 = R4[R5]
  0039  SETTABLE  R3[K13('RewardClaimedEvent')] = R4
  0040  GETTABUP  R4 = _ENV[K16('UIPrefabConfigName')]
  0041  MOVE      R5 = R0
  0042  LOADK     R6 = K17 'ActivityMainEntry'
  0043  CONCAT    R5 = concat(R5..R5)
  0044  GETTABLE  R4 = R4[R5]
  0045  SETTABLE  R3[K15('EntryPrefabName')] = R4
  0046  GETTABUP  R4 = _ENV[K16('UIPrefabConfigName')]
  0047  MOVE      R5 = R0
  0048  LOADK     R6 = K19 'ActivityMainWindow'
  0049  CONCAT    R5 = concat(R5..R5)
  0050  GETTABLE  R4 = R4[R5]
  0051  SETTABLE  R3[K18('MainWindowPrefabName')] = R4
  0052  GETTABUP  R4 = _ENV[K16('UIPrefabConfigName')]
  0053  MOVE      R5 = R0
  0054  LOADK     R6 = K21 'ActivityPurchaseWindow'
  0055  CONCAT    R5 = concat(R5..R5)
  0056  GETTABLE  R4 = R4[R5]
  0057  SETTABLE  R3[K20('PurchaseWindowPrefabName')] = R4
  0058  GETTABUP  R4 = _ENV[K16('UIPrefabConfigName')]
  0059  MOVE      R5 = R0
  0060  LOADK     R6 = K23 'ActivityEndWindow'
  0061  CONCAT    R5 = concat(R5..R5)
  0062  GETTABLE  R4 = R4[R5]
  0063  SETTABLE  R3[K22('EndWindowPrefabName')] = R4
  0064  GETTABUP  R4 = _ENV[K16('UIPrefabConfigName')]
  0065  MOVE      R5 = R0
  0066  LOADK     R6 = K25 'ActivityRewardRecoverWindow'
  0067  CONCAT    R5 = concat(R5..R5)
  0068  GETTABLE  R4 = R4[R5]
  0069  SETTABLE  R3[K24('RewardRecoverWindowPrefabName')] = R4
  0070  GETTABUP  R4 = _ENV[K27('ESceneViewHudButtonKey')]
  0071  GETTABLE  R4 = R4[R1]
  0072  SETTABLE  R3[K26('EntryButtonKey')] = R4
  0073  SETTABLE  R3[K28('RewardDescKey')] = K29('fundpack_wintip')
  0074  SETTABLE  R3[K30('ValueDescKey')] = K31('value_tag')
  0075  SETTABLE  R3[K32('MainWindowBoughtDescKey')] = K33('fundPack_bought_desc')
  0076  SETTABLE  R3[K34('MainWindowBoughtCompleteDescKey')] = K35('fundPack_finish_desc')
  0077  GETTABUP  R4 = _ENV[K37('ERewardScene')]
  0078  GETTABLE  R4 = R4[K38('Other')]
  0079  SETTABLE  R3[K36('RewardScene')] = R4
  0080  GETTABUP  R4 = _ENV[K40('EPropertyType')]
  0081  GETTABLE  R4 = R4[K41('FundPackVIP')]
  0082  SETTABLE  R3[K39('PropertyType')] = R4
  0083  GETTABUP  R4 = _ENV[K43('ImageFileConfigName')]
  0084  MOVE      R5 = R0
  0085  LOADK     R6 = K44 '_main_icon'
  0086  CONCAT    R5 = concat(R5..R5)
  0087  GETTABLE  R4 = R4[R5]
  0088  SETTABLE  R3[K42('PropertyIconName')] = R4
  0089  NEWTABLE  R4 = {} (2 items)
  0090  GETTABUP  R5 = _ENV[K46('AddressableLabel')]
  0091  GETTABLE  R5 = R5[K47('FundPackCommon')]
  0092  GETTABUP  R6 = _ENV[K46('AddressableLabel')]
  0093  GETTABLE  R6 = R6[R1]
  0094  SETLIST   setlist R4[B=1,C=2]
  0095  SETTABLE  R3[K45('ResourceLabels')] = R4
  0096  SETTABLE  R3[K48('__index')] = R3
  0097  GETTABUP  R4 = _ENV[K49('FundPackActivityDefinition')]
  0098  GETTABUP  R5 = _ENV[K50('setmetatable')]
  0099  MOVE      R6 = R0
  0100  MOVE      R7 = R0
  0101  CALL      R5 = call(R5, 1 args, 2 rets)
  0102  SETTABLE  R4[R0] = R5
  0103  GETTABUP  R4 = _ENV[K49('FundPackActivityDefinition')]
  0104  GETTABLE  R4 = R4[R0]
  0105  GETTABUP  R5 = _ENV[K49('FundPackActivityDefinition')]
  0106  GETTABLE  R5 = R5[R0]
  0107  SETTABLE  R4[K48('__index')] = R5
  0108  RETURN    return R0..R-1
; ---------- proto1 [GetIcon] ----------
  ; fn ?  line 101-107 np=0 va=0 ms=3 code=19 consts=10 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetModel'
  ;   K[3]='ActivityType'
  ;   K[4]='BakeOut'
  ;   K[5]=nil
  ;   K[6]='CanAcquireToken'
  ;   K[7]='ImageFileConfigName'
  ;   K[8]='fund_pack_task_icon_bakeout'
  ;   K[9]='fund_pack_task_icon_gold'
  ;   upvals: _ENV
  ;   locals: bakeOutModel(6-19)
  0000  GETTABUP  R0 = _ENV[K0('GM')]
  0001  GETTABLE  R0 = R0[K1('ActivityManager')]
  0002  SELF      R1 = R0[K2('GetModel')] (self)
  0003  GETTABUP  R2 = _ENV[K3('ActivityType')]
  0004  GETTABLE  R2 = R2[K4('BakeOut')]
  0005  CALL      R0 = call(R0, 1 args, 2 rets)
  0006  EQ        if R1 eq K5(nil)   -> -130803
  0007  JMP       (jump)   -> 15
  0008  SELF      R2 = R0[K6('CanAcquireToken')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  TEST      if not R1 then   -> -131060
  0011  JMP       (jump)   -> 15
  0012  GETTABUP  R1 = _ENV[K7('ImageFileConfigName')]
  0013  GETTABLE  R1 = R1[K8('fund_pack_task_icon_bakeout')]
  0014  RETURN    return R1..R0
  0015  GETTABUP  R1 = _ENV[K7('ImageFileConfigName')]
  0016  GETTABLE  R1 = R1[K9('fund_pack_task_icon_gold')]
  0017  RETURN    return R1..R0
  0018  RETURN    return R0..R-1
; ---------- proto2 [GetDescKey] ----------
  ; fn ?  line 108-114 np=0 va=0 ms=3 code=17 consts=9 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetModel'
  ;   K[3]='ActivityType'
  ;   K[4]='BakeOut'
  ;   K[5]=nil
  ;   K[6]='CanAcquireToken'
  ;   K[7]='quest_gold_pass_multiple'
  ;   K[8]='fundpack_gold'
  ;   upvals: _ENV
  ;   locals: bakeOutModel(6-17)
  0000  GETTABUP  R0 = _ENV[K0('GM')]
  0001  GETTABLE  R0 = R0[K1('ActivityManager')]
  0002  SELF      R1 = R0[K2('GetModel')] (self)
  0003  GETTABUP  R2 = _ENV[K3('ActivityType')]
  0004  GETTABLE  R2 = R2[K4('BakeOut')]
  0005  CALL      R0 = call(R0, 1 args, 2 rets)
  0006  EQ        if R1 eq K5(nil)   -> -130803
  0007  JMP       (jump)   -> 14
  0008  SELF      R2 = R0[K6('CanAcquireToken')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  TEST      if not R1 then   -> -131060
  0011  JMP       (jump)   -> 14
  0012  LOADK     R1 = K7 'quest_gold_pass_multiple'
  0013  RETURN    return R1..R0
  0014  LOADK     R1 = K8 'fundpack_gold'
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
