# Model_Bundle_BundleTriggerData_118.luac
; fn @BundleTriggerData.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=7 upvals=1 protos=4
;   K[0]='BundleTriggerData'
;   K[1]='__index'
;   K[2]='Create'
;   K[3]='BundleTriggerData'
;   K[4]='Init'
;   K[5]='CanTrigger'
;   K[6]='CanPopup'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('BundleTriggerData')] = R0
0002  GETTABUP  R0 = _ENV[K0('BundleTriggerData')]
0003  GETTABUP  R1 = _ENV[K0('BundleTriggerData')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('BundleTriggerData')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Create')] = R1
0008  GETTABUP  R0 = _ENV[K3('BundleTriggerData')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K3('BundleTriggerData')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K5('CanTrigger')] = R1
0014  GETTABUP  R0 = _ENV[K3('BundleTriggerData')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K6('CanPopup')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 6-10 np=2 va=0 ms=6 code=9 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='BundleTriggerData'
  ;   K[2]='Init'
  ;   upvals: _ENV
  ;   locals: triggerData(0-9), dataGroup(0-9), tri(4-9)
  0000  GETTABUP  R2 = _ENV[K0('setmetatable')]
  0001  MOVE      R3 = R0
  0002  GETTABUP  R4 = _ENV[K1('BundleTriggerData')]
  0003  CALL      R2 = call(R2, 1 args, 2 rets)
  0004  SELF      R4 = R2[K2('Init')] (self)
  0005  MOVE      R5 = R0
  0006  CALL      R3 = call(R3, 0 args, 2 rets)
  0007  RETURN    return R2..R1
  0008  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 12-14 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_dataGroup'
  ;   locals: self(0-2), dataGroup(0-2)
  0000  SETTABLE  R0[K0('m_dataGroup')] = R1
  0001  RETURN    return R0..R-1
; ---------- proto2 [CanTrigger] ----------
  ; fn ?  line 16-38 np=4 va=0 ms=8 code=70 consts=19 upvals=1 protos=0
  ;   K[0]='trigger'
  ;   K[1]='EBundleTriggerType'
  ;   K[2]='LackGem'
  ;   K[3]='IsNumber'
  ;   K[4]='GetCurBundleGemByDataGroup'
  ;   K[5]='m_dataGroup'
  ;   K[6]='LackEnergy'
  ;   K[7]='GM'
  ;   K[8]='EnergyModel'
  ;   K[9]='GetEnergy'
  ;   K[10]='EnergyType'
  ;   K[11]='Main'
  ;   K[12]=50
  ;   K[13]='PdCDNumber'
  ;   K[14]='GetGeneralConfig'
  ;   K[15]='EConfigParamType'
  ;   K[16]='Int'
  ;   K[17]=4
  ;   K[18]=0
  ;   upvals: _ENV
  ;   locals: self(0-70), eTriggerType(0-70), triggerArg(0-70), bundleModel(0-70), configCount(57-65)
  0000  GETTABLE  R4 = R0[K0('trigger')]
  0001  EQ        if R0 eq R4   -> -130553
  0002  JMP       (jump)   -> 67
  0003  GETTABUP  R4 = _ENV[K1('EBundleTriggerType')]
  0004  GETTABLE  R4 = R4[K2('LackGem')]
  0005  EQ        if R0 eq R4   -> -130549
  0006  JMP       (jump)   -> 27
  0007  GETTABUP  R4 = _ENV[K3('IsNumber')]
  0008  MOVE      R5 = R0
  0009  CALL      R4 = call(R4, 1 args, 1 rets)
  0010  TEST      if not R4 then   -> -131060
  0011  JMP       (jump)   -> 24
  0012  TEST      if not R3 then   -> -131058
  0013  JMP       (jump)   -> 24
  0014  GETTABLE  R4 = R3[K4('GetCurBundleGemByDataGroup')]
  0015  TEST      if not R4 then   -> -131055
  0016  JMP       (jump)   -> 24
  0017  SELF      R5 = R3[K4('GetCurBundleGemByDataGroup')] (self)
  0018  GETTABLE  R6 = R0[K5('m_dataGroup')]
  0019  CALL      R4 = call(R4, 1 args, 2 rets)
  0020  LE        if R0 le R4   -> -130022
  0021  JMP       (jump)   -> 24
  0022  LOADBOOL  R4 = true
  0023  RETURN    return R4..R3
  0024  LOADBOOL  R4 = false
  0025  RETURN    return R4..R3
  0026  JMP       (jump)   -> 65
  0027  GETTABUP  R4 = _ENV[K1('EBundleTriggerType')]
  0028  GETTABLE  R4 = R4[K6('LackEnergy')]
  0029  EQ        if R0 eq R4   -> -130525
  0030  JMP       (jump)   -> 43
  0031  GETTABUP  R4 = _ENV[K7('GM')]
  0032  GETTABLE  R4 = R4[K8('EnergyModel')]
  0033  SELF      R5 = R4[K9('GetEnergy')] (self)
  0034  GETTABUP  R6 = _ENV[K10('EnergyType')]
  0035  GETTABLE  R6 = R6[K11('Main')]
  0036  CALL      R4 = call(R4, 1 args, 2 rets)
  0037  LT        if R1 lt K12(50)   -> -128717
  0038  JMP       (jump)   -> 40
  0039  LOADBOOL  R4 = false
  0040  LOADBOOL  R4 = true
  0041  RETURN    return R4..R3
  0042  JMP       (jump)   -> 65
  0043  GETTABUP  R4 = _ENV[K1('EBundleTriggerType')]
  0044  GETTABLE  R4 = R4[K13('PdCDNumber')]
  0045  EQ        if R0 eq R4   -> -130509
  0046  JMP       (jump)   -> 65
  0047  GETTABLE  R4 = R0[K5('m_dataGroup')]
  0048  SELF      R5 = R4[K14('GetGeneralConfig')] (self)
  0049  GETTABUP  R6 = _ENV[K1('EBundleTriggerType')]
  0050  GETTABLE  R6 = R6[K13('PdCDNumber')]
  0051  GETTABUP  R7 = _ENV[K15('EConfigParamType')]
  0052  GETTABLE  R7 = R7[K16('Int')]
  0053  CALL      R4 = call(R4, 1 args, 3 rets)
  0054  TEST      if not R4 then   -> -131015
  0055  JMP       (jump)   -> 57
  0056  LOADK     R4 = K17 4
  0057  TESTSET   if R1 then R5   -> -129988
  0058  JMP       (jump)   -> 60
  0059  LOADK     R5 = K18 0
  0060  LE        if R1 le R5   -> -128957
  0061  JMP       (jump)   -> 63
  0062  LOADBOOL  R5 = false
  0063  LOADBOOL  R5 = true
  0064  RETURN    return R5..R4
  0065  LOADBOOL  R4 = true
  0066  RETURN    return R4..R3
  0067  LOADBOOL  R4 = false
  0068  RETURN    return R4..R3
  0069  RETURN    return R0..R-1
; ---------- proto3 [CanPopup] ----------
  ; fn ?  line 41-47 np=3 va=0 ms=4 code=14 consts=3 upvals=0 protos=0
  ;   K[0]='trigger'
  ;   K[1]='dailyShowNum'
  ;   K[2]=nil
  ;   locals: self(0-14), eTriggerType(0-14), hasTriggerNum(0-14)
  0000  GETTABLE  R3 = R0[K0('trigger')]
  0001  EQ        if R0 eq R3   -> -130554
  0002  JMP       (jump)   -> 11
  0003  GETTABLE  R3 = R0[K1('dailyShowNum')]
  0004  EQ        if R1 eq K2(nil)   -> -129272
  0005  JMP       (jump)   -> 9
  0006  GETTABLE  R3 = R0[K1('dailyShowNum')]
  0007  LT        if R0 lt R3   -> -130036
  0008  JMP       (jump)   -> 11
  0009  LOADBOOL  R3 = true
  0010  RETURN    return R3..R2
  0011  LOADBOOL  R3 = false
  0012  RETURN    return R3..R2
  0013  RETURN    return R0..R-1
