# AlbumActivity_View_AlbumFixedCardBundleWindow_1168.luac
; fn @AlbumFixedCardBundleWindow.lua  line 0-0 np=0 va=1 ms=3 code=37 consts=12 upvals=1 protos=5
;   K[0]='AlbumFixedCardBundleWindow'
;   K[1]='setmetatable'
;   K[2]='BundleNormalWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnBtnClicked'
;   K[6]='OnTipClicked'
;   K[7]='AlbumFixedCardBundleGroupIcon'
;   K[8]='Init'
;   K[9]='AlbumFixedCardBundleGroupTip'
;   K[10]='CommonTip'
;   K[11]='Show'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BundleNormalWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('AlbumFixedCardBundleWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('AlbumFixedCardBundleWindow')]
0006  GETTABUP  R1 = _ENV[K0('AlbumFixedCardBundleWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AlbumFixedCardBundleWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumFixedCardBundleWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnBtnClicked')] = R1
0014  GETTABUP  R0 = _ENV[K0('AlbumFixedCardBundleWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnTipClicked')] = R1
0017  NEWTABLE  R0 = {} (0 items)
0018  SETTABUP  _ENV[K7('AlbumFixedCardBundleGroupIcon')] = R0
0019  GETTABUP  R0 = _ENV[K7('AlbumFixedCardBundleGroupIcon')]
0020  GETTABUP  R1 = _ENV[K7('AlbumFixedCardBundleGroupIcon')]
0021  SETTABLE  R0[K3('__index')] = R1
0022  GETTABUP  R0 = _ENV[K7('AlbumFixedCardBundleGroupIcon')]
0023  CLOSURE   R1 = closure proto3
0024  SETTABLE  R0[K8('Init')] = R1
0025  GETTABUP  R0 = _ENV[K1('setmetatable')]
0026  NEWTABLE  R1 = {} (0 items)
0027  GETTABUP  R2 = _ENV[K10('CommonTip')]
0028  CALL      R0 = call(R0, 1 args, 2 rets)
0029  SETTABUP  _ENV[K9('AlbumFixedCardBundleGroupTip')] = R0
0030  GETTABUP  R0 = _ENV[K9('AlbumFixedCardBundleGroupTip')]
0031  GETTABUP  R1 = _ENV[K9('AlbumFixedCardBundleGroupTip')]
0032  SETTABLE  R0[K3('__index')] = R1
0033  GETTABUP  R0 = _ENV[K9('AlbumFixedCardBundleGroupTip')]
0034  CLOSURE   R1 = closure proto4
0035  SETTABLE  R0[K11('Show')] = R1
0036  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-44 np=1 va=1 ms=16 code=101 consts=32 upvals=1 protos=0
  ;   K[0]='BundleNormalWindow'
  ;   K[1]='Init'
  ;   K[2]='m_albumModel'
  ;   K[3]='AlbumActivityModel'
  ;   K[4]='GetActiveModel'
  ;   K[5]=nil
  ;   K[6]='m_bundleData'
  ;   K[7]='GetGoods'
  ;   K[8]='ipairs'
  ;   K[9]='IsLastNewCardPropertyType'
  ;   K[10]='PROPERTY_TYPE'
  ;   K[11]='GetLastNewCardTargetId'
  ;   K[12]='GetAlbumCollectProgress'
  ;   K[13]=1
  ;   K[14]='m_actionTb'
  ;   K[15]='rewards'
  ;   K[16]='ConfigUtil'
  ;   K[17]='Rewards2String'
  ;   K[18]='cardId'
  ;   K[19]='setId'
  ;   K[20]='setRewards'
  ;   K[21]='GetCardSetRewards'
  ;   K[22]='bLast'
  ;   K[23]=0
  ;   K[24]='m_setId'
  ;   K[25]='GM'
  ;   K[26]='BIManager'
  ;   K[27]='LogAction'
  ;   K[28]='EBIType'
  ;   K[29]='AlbumOpenFixedCardBundleWindow'
  ;   K[30]='m_cardIcon'
  ;   K[31]='m_albumCard'
  ;   upvals: _ENV
  ;   locals: self(0-101), goods(16-101), targetCardId(17-101), setId(17-101), (for generator)(22-40), (for state)(22-40), (for control)(22-40), _(23-38), reward(23-38), curNum(48-101), maxNum(48-101), bLast(53-101)
  0000  GETTABUP  R1 = _ENV[K0('BundleNormalWindow')]
  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  GETTABUP  R1 = _ENV[K3('AlbumActivityModel')]
  0006  GETTABLE  R1 = R1[K4('GetActiveModel')]
  0007  CALL      R1 = call(R1, 1 args, 0 rets)
  0008  SETTABLE  R0[K2('m_albumModel')] = R1
  0009  GETTABLE  R1 = R0[K2('m_albumModel')]
  0010  EQ        if R0 eq K5(nil)   -> -130287
  0011  JMP       (jump)   -> 13
  0012  RETURN    return R0..R-1
  0013  GETTABLE  R1 = R0[K6('m_bundleData')]
  0014  SELF      R2 = R1[K7('GetGoods')] (self)
  0015  CALL      R1 = call(R1, 1 args, 1 rets)
  0016  LOADNIL   R2..R2 = nil
  0017  GETTABUP  R4 = _ENV[K8('ipairs')]
  0018  TESTSET   if R1 then R5   -> -130539
  0019  JMP       (jump)   -> 21
  0020  NEWTABLE  R5 = {} (0 items)
  0021  CALL      R4 = call(R4, 3 args, 1 rets)
  0022  JMP       (jump)   -> 38
  0023  GETTABUP  R9 = _ENV[K3('AlbumActivityModel')]
  0024  GETTABLE  R9 = R9[K9('IsLastNewCardPropertyType')]
  0025  GETTABUP  R10 = _ENV[K10('PROPERTY_TYPE')]
  0026  GETTABLE  R10 = R8[R10]
  0027  CALL      R9 = call(R9, 1 args, 1 rets)
  0028  TEST      if not R9 then   -> -131042
  0029  JMP       (jump)   -> 38
  0030  GETTABLE  R9 = R0[K2('m_albumModel')]
  0031  SELF      R10 = R9[K11('GetLastNewCardTargetId')] (self)
  0032  GETTABUP  R11 = _ENV[K10('PROPERTY_TYPE')]
  0033  GETTABLE  R11 = R8[R11]
  0034  CALL      R9 = call(R9, 2 args, 2 rets)
  0035  MOVE      R3 = R0
  0036  MOVE      R2 = R0
  0037  JMP       (jump)   -> 40
  0038  TFORCALL  tforcall R4
  0039  TFORLOOP  tforloop R6(sBx=-17)   -> 23
  0040  EQ        if R1 eq K5(nil)   -> -129745
  0041  JMP       (jump)   -> 44
  0042  EQ        if R0 eq K5(nil)   -> -129231
  0043  JMP       (jump)   -> 45
  0044  RETURN    return R0..R-1
  0045  GETTABLE  R4 = R0[K2('m_albumModel')]
  0046  SELF      R5 = R4[K12('GetAlbumCollectProgress')] (self)
  0047  CALL      R4 = call(R4, 2 args, 1 rets)
  0048  SUB       R6 = R4 sub R5
  0049  EQ        if R1 eq K13(1)   -> -127680
  0050  JMP       (jump)   -> 52
  0051  LOADBOOL  R6 = false
  0052  LOADBOOL  R6 = true
  0053  NEWTABLE  R7 = {} (0 items)
  0054  GETTABUP  R8 = _ENV[K16('ConfigUtil')]
  0055  GETTABLE  R8 = R8[K17('Rewards2String')]
  0056  MOVE      R9 = R0
  0057  CALL      R8 = call(R8, 1 args, 1 rets)
  0058  SETTABLE  R7[K15('rewards')] = R8
  0059  SETTABLE  R7[K18('cardId')] = R2
  0060  SETTABLE  R7[K19('setId')] = R3
  0061  GETTABUP  R8 = _ENV[K16('ConfigUtil')]
  0062  GETTABLE  R8 = R8[K17('Rewards2String')]
  0063  GETTABLE  R9 = R0[K2('m_albumModel')]
  0064  SELF      R10 = R9[K21('GetCardSetRewards')] (self)
  0065  MOVE      R11 = R0
  0066  CALL      R9 = call(R9, -1 args, 2 rets)
  0067  CALL      R8 = call(R8, 1 args, -1 rets)
  0068  SETTABLE  R7[K20('setRewards')] = R8
  0069  TEST      if not R6 then   -> -131001
  0070  JMP       (jump)   -> 74
  0071  LOADK     R8 = K13 1
  0072  TEST      if not R8 then   -> -130997
  0073  JMP       (jump)   -> 75
  0074  LOADK     R8 = K23 0
  0075  SETTABLE  R7[K22('bLast')] = R8
  0076  SETTABLE  R0[K14('m_actionTb')] = R7
  0077  SETTABLE  R0[K24('m_setId')] = R3
  0078  GETTABUP  R7 = _ENV[K25('GM')]
  0079  GETTABLE  R7 = R7[K26('BIManager')]
  0080  SELF      R8 = R7[K27('LogAction')] (self)
  0081  GETTABUP  R9 = _ENV[K28('EBIType')]
  0082  GETTABLE  R9 = R9[K29('AlbumOpenFixedCardBundleWindow')]
  0083  GETTABLE  R10 = R0[K14('m_actionTb')]
  0084  CALL      R7 = call(R7, 0 args, 3 rets)
  0085  GETTABLE  R7 = R0[K30('m_cardIcon')]
  0086  SELF      R8 = R7[K1('Init')] (self)
  0087  GETTABLE  R9 = R0[K2('m_albumModel')]
  0088  MOVE      R10 = R0
  0089  CALL      R7 = call(R7, 0 args, 3 rets)
  0090  GETTABLE  R7 = R0[K31('m_albumCard')]
  0091  SELF      R8 = R7[K1('Init')] (self)
  0092  MOVE      R9 = R0
  0093  GETTABLE  R10 = R0[K2('m_albumModel')]
  0094  LOADBOOL  R11 = false
  0095  LOADBOOL  R12 = false
  0096  LOADK     R13 = K13 1
  0097  LOADBOOL  R14 = true
  0098  LOADBOOL  R15 = false
  0099  CALL      R7 = call(R7, 0 args, 8 rets)
  0100  RETURN    return R0..R-1
; ---------- proto1 [OnBtnClicked] ----------
  ; fn ?  line 46-62 np=1 va=0 ms=5 code=29 consts=12 upvals=1 protos=1
  ;   K[0]='m_bDisableTouch'
  ;   K[1]='m_model'
  ;   K[2]=nil
  ;   K[3]='m_dataGroup'
  ;   K[4]='m_actionTb'
  ;   K[5]='GM'
  ;   K[6]='BIManager'
  ;   K[7]='LogAction'
  ;   K[8]='EBIType'
  ;   K[9]='AlbumBuyFixedCardBundle'
  ;   K[10]='BuyBundle'
  ;   K[11]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-29)
  0000  GETTABLE  R1 = R0[K0('m_bDisableTouch')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K1('m_model')]
  0005  EQ        if R1 eq K2(nil)   -> -130295
  0006  JMP       (jump)   -> 26
  0007  GETTABLE  R1 = R0[K3('m_dataGroup')]
  0008  EQ        if R1 eq K2(nil)   -> -130292
  0009  JMP       (jump)   -> 26
  0010  GETTABLE  R1 = R0[K4('m_actionTb')]
  0011  EQ        if R1 eq K2(nil)   -> -130289
  0012  JMP       (jump)   -> 20
  0013  GETTABUP  R1 = _ENV[K5('GM')]
  0014  GETTABLE  R1 = R1[K6('BIManager')]
  0015  SELF      R2 = R1[K7('LogAction')] (self)
  0016  GETTABUP  R3 = _ENV[K8('EBIType')]
  0017  GETTABLE  R3 = R3[K9('AlbumBuyFixedCardBundle')]
  0018  GETTABLE  R4 = R0[K4('m_actionTb')]
  0019  CALL      R1 = call(R1, 0 args, 3 rets)
  0020  GETTABLE  R1 = R0[K1('m_model')]
  0021  SELF      R2 = R1[K10('BuyBundle')] (self)
  0022  GETTABLE  R3 = R0[K3('m_dataGroup')]
  0023  CLOSURE   R4 = closure proto0
  0024  CALL      R1 = call(R1, 0 args, 3 rets)
  0025  JMP       (jump)   -> 28
  0026  SELF      R2 = R0[K11('Close')] (self)
  0027  CALL      R1 = call(R1, 0 args, 1 rets)
  0028  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 55-58 np=1 va=0 ms=8 code=15 consts=9 upvals=2 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='OpenView'
    ;   K[3]='UIPrefabConfigName'
    ;   K[4]='AnimatedRewardWindow'
    ;   K[5]='rewards_window_title_shop'
    ;   K[6]='ERewardScene'
    ;   K[7]='Bundle'
    ;   K[8]='Close'
    ;   upvals: _ENV, self
    ;   locals: rewards(0-15)
    0000  GETTABUP  R1 = _ENV[K0('GM')]
    0001  GETTABLE  R1 = R1[K1('UIManager')]
    0002  SELF      R2 = R1[K2('OpenView')] (self)
    0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
    0004  GETTABLE  R3 = R3[K4('AnimatedRewardWindow')]
    0005  MOVE      R4 = R0
    0006  LOADK     R5 = K5 'rewards_window_title_shop'
    0007  LOADBOOL  R6 = true
    0008  GETTABUP  R7 = _ENV[K6('ERewardScene')]
    0009  GETTABLE  R7 = R7[K7('Bundle')]
    0010  CALL      R1 = call(R1, 0 args, 6 rets)
    0011  GETUPVAL  R1 = _ENV
    0012  SELF      R2 = R1[K8('Close')] (self)
    0013  CALL      R1 = call(R1, 0 args, 1 rets)
    0014  RETURN    return R0..R-1
; ---------- proto2 [OnTipClicked] ----------
  ; fn ?  line 64-69 np=1 va=0 ms=10 code=21 consts=10 upvals=1 protos=0
  ;   K[0]='m_setId'
  ;   K[1]=nil
  ;   K[2]='m_albumModel'
  ;   K[3]='m_groupTip'
  ;   K[4]='Show'
  ;   K[5]='m_tipTrans'
  ;   K[6]='position'
  ;   K[7]='Vector3'
  ;   K[8]=0
  ;   K[9]=80
  ;   upvals: _ENV
  ;   locals: self(0-21)
  0000  GETTABLE  R1 = R0[K0('m_setId')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K2('m_albumModel')]
  0004  EQ        if R0 eq K1(nil)   -> -130297
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R1 = R0[K3('m_groupTip')]
  0008  SELF      R2 = R1[K4('Show')] (self)
  0009  GETTABLE  R3 = R0[K2('m_albumModel')]
  0010  GETTABLE  R4 = R0[K0('m_setId')]
  0011  GETTABLE  R5 = R0[K5('m_tipTrans')]
  0012  GETTABLE  R5 = R5[K6('position')]
  0013  GETTABUP  R6 = _ENV[K7('Vector3')]
  0014  LOADK     R7 = K8 0
  0015  LOADK     R8 = K9 80
  0016  LOADK     R9 = K8 0
  0017  CALL      R6 = call(R6, 1 args, 3 rets)
  0018  ADD       R5 = R6 add R5
  0019  CALL      R1 = call(R1, 0 args, 4 rets)
  0020  RETURN    return R0..R-1
; ---------- proto3 [Init] ----------
  ; fn ?  line 76-85 np=3 va=0 ms=10 code=35 consts=17 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetCardSetPicId'
  ;   K[2]='m_name'
  ;   K[3]='text'
  ;   K[4]='GM'
  ;   K[5]='GameTextModel'
  ;   K[6]='GetText'
  ;   K[7]='_name'
  ;   K[8]='SpriteUtil'
  ;   K[9]='SetImage'
  ;   K[10]='m_IconImageImg'
  ;   K[11]='ImageFileConfigName'
  ;   K[12]='GetSetCollectProgress'
  ;   K[13]='m_progressSlider'
  ;   K[14]='value'
  ;   K[15]='m_progressText'
  ;   K[16]='/'
  ;   upvals: _ENV
  ;   locals: self(0-35), model(0-35), setId(0-35), picId(5-35), curSetCard(25-35), maxSetCard(25-35)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R3 = R0[K0('m_model')]
  0002  SELF      R4 = R3[K1('GetCardSetPicId')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  GETTABLE  R4 = R0[K2('m_name')]
  0006  GETTABUP  R5 = _ENV[K4('GM')]
  0007  GETTABLE  R5 = R5[K5('GameTextModel')]
  0008  SELF      R6 = R5[K6('GetText')] (self)
  0009  MOVE      R7 = R0
  0010  LOADK     R8 = K7 '_name'
  0011  CONCAT    R7 = concat(R7..R7)
  0012  CALL      R5 = call(R5, 1 args, 2 rets)
  0013  SETTABLE  R4[K3('text')] = R5
  0014  GETTABUP  R4 = _ENV[K8('SpriteUtil')]
  0015  GETTABLE  R4 = R4[K9('SetImage')]
  0016  GETTABLE  R5 = R0[K10('m_IconImageImg')]
  0017  GETTABUP  R6 = _ENV[K11('ImageFileConfigName')]
  0018  GETTABLE  R6 = R6[R3]
  0019  LOADBOOL  R7 = false
  0020  CALL      R4 = call(R4, 0 args, 3 rets)
  0021  GETTABLE  R4 = R0[K0('m_model')]
  0022  SELF      R5 = R4[K12('GetSetCollectProgress')] (self)
  0023  MOVE      R6 = R0
  0024  CALL      R4 = call(R4, 2 args, 2 rets)
  0025  GETTABLE  R6 = R0[K13('m_progressSlider')]
  0026  DIV       R7 = R5 div R4
  0027  SETTABLE  R6[K14('value')] = R7
  0028  GETTABLE  R6 = R0[K15('m_progressText')]
  0029  MOVE      R7 = R0
  0030  LOADK     R8 = K16 '/'
  0031  MOVE      R9 = R0
  0032  CONCAT    R7 = concat(R7..R7)
  0033  SETTABLE  R6[K3('text')] = R7
  0034  RETURN    return R0..R-1
; ---------- proto4 [Show] ----------
  ; fn ?  line 91-100 np=5 va=1 ms=11 code=32 consts=14 upvals=1 protos=0
  ;   K[0]=nil
  ;   K[1]='m_rewardContent'
  ;   K[2]='Init'
  ;   K[3]='GetCardSetRewards'
  ;   K[4]='ERewardScene'
  ;   K[5]='Other'
  ;   K[6]='GetSetCollectProgress'
  ;   K[7]='m_progressSlider'
  ;   K[8]='value'
  ;   K[9]='m_progressText'
  ;   K[10]='text'
  ;   K[11]='/'
  ;   K[12]='CommonTip'
  ;   K[13]='Show'
  ;   upvals: _ENV
  ;   locals: self(0-32), model(0-32), setId(0-32), pos(0-32), halfY(0-32), curSetCard(15-24), maxSetCard(15-24)
  0000  EQ        if R1 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 24
  0002  EQ        if R1 eq K0(nil)   -> -129788
  0003  JMP       (jump)   -> 24
  0004  GETTABLE  R5 = R0[K1('m_rewardContent')]
  0005  SELF      R6 = R5[K2('Init')] (self)
  0006  SELF      R8 = R1[K3('GetCardSetRewards')] (self)
  0007  MOVE      R9 = R0
  0008  CALL      R7 = call(R7, 1 args, 2 rets)
  0009  GETTABUP  R8 = _ENV[K4('ERewardScene')]
  0010  GETTABLE  R8 = R8[K5('Other')]
  0011  CALL      R5 = call(R5, 0 args, 3 rets)
  0012  SELF      R6 = R1[K6('GetSetCollectProgress')] (self)
  0013  MOVE      R7 = R0
  0014  CALL      R5 = call(R5, 2 args, 2 rets)
  0015  GETTABLE  R7 = R0[K7('m_progressSlider')]
  0016  DIV       R8 = R6 div R5
  0017  SETTABLE  R7[K8('value')] = R8
  0018  GETTABLE  R7 = R0[K9('m_progressText')]
  0019  MOVE      R8 = R0
  0020  LOADK     R9 = K11 '/'
  0021  MOVE      R10 = R0
  0022  CONCAT    R8 = concat(R8..R8)
  0023  SETTABLE  R7[K10('text')] = R8
  0024  GETTABUP  R5 = _ENV[K12('CommonTip')]
  0025  GETTABLE  R5 = R5[K13('Show')]
  0026  MOVE      R6 = R0
  0027  MOVE      R7 = R0
  0028  MOVE      R8 = R0
  0029  VARARG    R9 = vararg(0)
  0030  CALL      R5 = call(R5, 0 args, -1 rets)
  0031  RETURN    return R0..R-1
