# AlbumActivity_View_AlbumFixedCardBundleButton_1170.luac
; fn @AlbumFixedCardBundleButton.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='AlbumFixedCardBundleButton'
;   K[1]='setmetatable'
;   K[2]='BundleButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='UpdateCard'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BundleButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('AlbumFixedCardBundleButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('AlbumFixedCardBundleButton')]
0006  GETTABUP  R1 = _ENV[K0('AlbumFixedCardBundleButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AlbumFixedCardBundleButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumFixedCardBundleButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdateCard')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-12 np=1 va=1 ms=6 code=23 consts=12 upvals=1 protos=0
  ;   K[0]='BundleButton'
  ;   K[1]='Init'
  ;   K[2]='m_dataGroup'
  ;   K[3]='GetBundleIds'
  ;   K[4]='m_bundleData'
  ;   K[5]='GetConfigData'
  ;   K[6]=1
  ;   K[7]='UpdateCard'
  ;   K[8]='EventDispatcher'
  ;   K[9]='AddListener'
  ;   K[10]='EEventType'
  ;   K[11]='AlbumAcquireCard'
  ;   upvals: _ENV
  ;   locals: self(0-23), arrBundleIds(8-23)
  0000  GETTABUP  R1 = _ENV[K0('BundleButton')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  GETTABLE  R1 = R0[K2('m_dataGroup')]
  0006  SELF      R2 = R1[K3('GetBundleIds')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  GETTABLE  R2 = R0[K2('m_dataGroup')]
  0009  SELF      R3 = R2[K5('GetConfigData')] (self)
  0010  GETTABLE  R4 = R1[K6(1)]
  0011  CALL      R2 = call(R2, 1 args, 2 rets)
  0012  SETTABLE  R0[K4('m_bundleData')] = R2
  0013  SELF      R3 = R0[K7('UpdateCard')] (self)
  0014  CALL      R2 = call(R2, 0 args, 1 rets)
  0015  GETTABUP  R2 = _ENV[K8('EventDispatcher')]
  0016  GETTABLE  R2 = R2[K9('AddListener')]
  0017  GETTABUP  R3 = _ENV[K10('EEventType')]
  0018  GETTABLE  R3 = R3[K11('AlbumAcquireCard')]
  0019  MOVE      R4 = R0
  0020  GETTABLE  R5 = R0[K7('UpdateCard')]
  0021  CALL      R2 = call(R2, 0 args, 3 rets)
  0022  RETURN    return R0..R-1
; ---------- proto1 [UpdateCard] ----------
  ; fn ?  line 14-55 np=1 va=0 ms=12 code=64 consts=21 upvals=1 protos=1
  ;   K[0]='m_bundleData'
  ;   K[1]=nil
  ;   K[2]='AlbumActivityModel'
  ;   K[3]='GetActiveModel'
  ;   K[4]='GetGoods'
  ;   K[5]='ipairs'
  ;   K[6]='IsLastNewCardPropertyType'
  ;   K[7]='PROPERTY_TYPE'
  ;   K[8]='GetLastNewCardTargetId'
  ;   K[9]='m_cardRoot'
  ;   K[10]='DestroyAllChildren'
  ;   K[11]='m_curCardId'
  ;   K[12]='GM'
  ;   K[13]='DataResource'
  ;   K[14]='UIPrefabConfig'
  ;   K[15]='GetConfig'
  ;   K[16]='UIPrefabConfigName'
  ;   K[17]='AlbumActivityCard'
  ;   K[18]='ResourceLoader'
  ;   K[19]='LoadPrefab'
  ;   K[20]='V3Zero'
  ;   upvals: _ENV
  ;   locals: self(0-64), albumModel(7-64), goods(10-64), targetCardId(11-64), (for generator)(16-34), (for state)(16-34), (for control)(16-34), _(17-32), reward(17-32), config(55-63)
  0000  GETTABLE  R1 = R0[K0('m_bundleData')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABUP  R1 = _ENV[K2('AlbumActivityModel')]
  0005  GETTABLE  R1 = R1[K3('GetActiveModel')]
  0006  CALL      R1 = call(R1, 1 args, 0 rets)
  0007  GETTABLE  R2 = R0[K0('m_bundleData')]
  0008  SELF      R3 = R2[K4('GetGoods')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  LOADNIL   R3..R3 = nil
  0011  GETTABUP  R4 = _ENV[K5('ipairs')]
  0012  TESTSET   if R1 then R5   -> -130033
  0013  JMP       (jump)   -> 15
  0014  NEWTABLE  R5 = {} (0 items)
  0015  CALL      R4 = call(R4, 3 args, 1 rets)
  0016  JMP       (jump)   -> 32
  0017  EQ        if R1 eq K1(nil)   -> -130284
  0018  JMP       (jump)   -> 32
  0019  GETTABUP  R9 = _ENV[K2('AlbumActivityModel')]
  0020  GETTABLE  R9 = R9[K6('IsLastNewCardPropertyType')]
  0021  GETTABUP  R10 = _ENV[K7('PROPERTY_TYPE')]
  0022  GETTABLE  R10 = R8[R10]
  0023  CALL      R9 = call(R9, 1 args, 1 rets)
  0024  TEST      if not R9 then   -> -131046
  0025  JMP       (jump)   -> 32
  0026  SELF      R10 = R1[K8('GetLastNewCardTargetId')] (self)
  0027  GETTABUP  R11 = _ENV[K7('PROPERTY_TYPE')]
  0028  GETTABLE  R11 = R8[R11]
  0029  CALL      R9 = call(R9, 1 args, 2 rets)
  0030  MOVE      R3 = R0
  0031  JMP       (jump)   -> 34
  0032  TFORCALL  tforcall R4
  0033  TFORLOOP  tforloop R6(sBx=-17)   -> 17
  0034  EQ        if R0 eq K1(nil)   -> -129243
  0035  JMP       (jump)   -> 41
  0036  GETTABLE  R4 = R0[K9('m_cardRoot')]
  0037  SELF      R5 = R4[K10('DestroyAllChildren')] (self)
  0038  CALL      R4 = call(R4, 0 args, 1 rets)
  0039  SETTABLE  R0[K11('m_curCardId')] = K1(nil)
  0040  RETURN    return R0..R-1
  0041  GETTABLE  R4 = R0[K11('m_curCardId')]
  0042  EQ        if R1 eq R3   -> -128977
  0043  JMP       (jump)   -> 63
  0044  GETTABLE  R4 = R0[K9('m_cardRoot')]
  0045  SELF      R5 = R4[K10('DestroyAllChildren')] (self)
  0046  CALL      R4 = call(R4, 0 args, 1 rets)
  0047  SETTABLE  R0[K11('m_curCardId')] = R3
  0048  GETTABUP  R4 = _ENV[K12('GM')]
  0049  GETTABLE  R4 = R4[K13('DataResource')]
  0050  GETTABLE  R4 = R4[K14('UIPrefabConfig')]
  0051  SELF      R5 = R4[K15('GetConfig')] (self)
  0052  GETTABUP  R6 = _ENV[K16('UIPrefabConfigName')]
  0053  GETTABLE  R6 = R6[K17('AlbumActivityCard')]
  0054  CALL      R4 = call(R4, 1 args, 2 rets)
  0055  GETTABUP  R5 = _ENV[K12('GM')]
  0056  GETTABLE  R5 = R5[K18('ResourceLoader')]
  0057  SELF      R6 = R5[K19('LoadPrefab')] (self)
  0058  MOVE      R7 = R0
  0059  GETTABLE  R8 = R0[K9('m_cardRoot')]
  0060  GETTABUP  R9 = _ENV[K20('V3Zero')]
  0061  CLOSURE   R10 = closure proto0
  0062  CALL      R5 = call(R5, 0 args, 5 rets)
  0063  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 39-53 np=1 va=0 ms=11 code=33 consts=11 upvals=4 protos=0
    ;   K[0]='UIUtil'
    ;   K[1]='IsEmptyComponent'
    ;   K[2]='m_curCardId'
    ;   K[3]='GameObject'
    ;   K[4]='Destroy'
    ;   K[5]='GetLuaTable'
    ;   K[6]='Init'
    ;   K[7]=1
    ;   K[8]='ForceHideFrontName'
    ;   K[9]='m_button'
    ;   K[10]='UpdateGraphics'
    ;   upvals: _ENV, targetCardId, self, albumModel
    ;   locals: go(0-33), tbCard(18-33)
    0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
    0001  GETTABLE  R1 = R1[K1('IsEmptyComponent')]
    0002  MOVE      R2 = R0
    0003  CALL      R1 = call(R1, 1 args, 1 rets)
    0004  TEST      if not R1 then   -> -131066
    0005  JMP       (jump)   -> 7
    0006  RETURN    return R0..R-1
    0007  GETUPVAL  R1 = _ENV
    0008  GETTABUP  R2 = self[K2('m_curCardId')]
    0009  EQ        if R1 eq R2   -> -130547
    0010  JMP       (jump)   -> 16
    0011  GETTABUP  R1 = _ENV[K3('GameObject')]
    0012  GETTABLE  R1 = R1[K4('Destroy')]
    0013  MOVE      R2 = R0
    0014  CALL      R1 = call(R1, 0 args, 1 rets)
    0015  RETURN    return R0..R-1
    0016  SELF      R2 = R0[K5('GetLuaTable')] (self)
    0017  CALL      R1 = call(R1, 1 args, 1 rets)
    0018  SELF      R3 = R1[K6('Init')] (self)
    0019  GETUPVAL  R4 = _ENV
    0020  GETUPVAL  R5 = _ENV
    0021  LOADBOOL  R6 = false
    0022  LOADBOOL  R7 = false
    0023  LOADK     R8 = K7 1
    0024  LOADBOOL  R9 = true
    0025  LOADBOOL  R10 = false
    0026  CALL      R2 = call(R2, 0 args, 8 rets)
    0027  SELF      R3 = R1[K8('ForceHideFrontName')] (self)
    0028  CALL      R2 = call(R2, 0 args, 1 rets)
    0029  GETTABUP  R2 = self[K9('m_button')]
    0030  SELF      R3 = R2[K10('UpdateGraphics')] (self)
    0031  CALL      R2 = call(R2, 0 args, 1 rets)
    0032  RETURN    return R0..R-1
