# UI_Window_Shop_ShopCellBundle_498.luac
; fn @ShopCellBundle.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='ShopCellBundle'
;   K[1]='setmetatable'
;   K[2]='BaseShopCell'
;   K[3]='__index'
;   K[4]='UpdateContent'
;   K[5]='GetIAPButton'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseShopCell')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('ShopCellBundle')] = R0
0005  GETTABUP  R0 = _ENV[K0('ShopCellBundle')]
0006  GETTABUP  R1 = _ENV[K0('ShopCellBundle')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ShopCellBundle')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('UpdateContent')] = R1
0011  GETTABUP  R0 = _ENV[K0('ShopCellBundle')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('GetIAPButton')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [UpdateContent] ----------
  ; fn ?  line 4-32 np=2 va=0 ms=14 code=111 consts=34 upvals=1 protos=0
  ;   K[0]='BaseShopCell'
  ;   K[1]='UpdateContent'
  ;   K[2]='m_arrItems'
  ;   K[3]=nil
  ;   K[4]='m_itemGo'
  ;   K[5]='GetLuaTable'
  ;   K[6]='ipairs'
  ;   K[7]='GetGroupData'
  ;   K[8]='GetBundleIds'
  ;   K[9]='GetBundleId'
  ;   K[10]='m_titleText'
  ;   K[11]='text'
  ;   K[12]='GM'
  ;   K[13]='GameTextModel'
  ;   K[14]='GetText'
  ;   K[15]='BundleDefinition'
  ;   K[16]='GetCellTitleText'
  ;   K[17]='GetBundleUIType'
  ;   K[18]=1
  ;   K[19]='m_data'
  ;   K[20]='GetGoods'
  ;   K[21]='Object'
  ;   K[22]='Instantiate'
  ;   K[23]='m_itemRoot'
  ;   K[24]='gameObject'
  ;   K[25]='SetActive'
  ;   K[26]='Init'
  ;   K[27]='m_IAPButton'
  ;   K[28]='InAppPurchaseModel'
  ;   K[29]='GetLocalizedPrice'
  ;   K[30]='GetPurchaseId'
  ;   K[31]='m_callback'
  ;   K[32]='m_discountView'
  ;   K[33]='GetDiscountTag'
  ;   upvals: _ENV
  ;   locals: self(0-111), data(0-111), groupIndex(15-111), (for generator)(21-42), (for state)(21-42), (for control)(21-42), i(22-40), bundleId(22-40), (for index)(48-77), (for limit)(48-77), (for step)(48-77), i(49-76), (for index)(85-93), (for limit)(85-93), (for step)(85-93), i(86-92)
  0000  GETTABUP  R2 = _ENV[K0('BaseShopCell')]
  0001  GETTABLE  R2 = R2[K1('UpdateContent')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  GETTABLE  R2 = R0[K2('m_arrItems')]
  0006  EQ        if R0 eq K3(nil)   -> -129781
  0007  JMP       (jump)   -> 14
  0008  NEWTABLE  R2 = {} (0 items)
  0009  GETTABLE  R3 = R0[K4('m_itemGo')]
  0010  SELF      R4 = R3[K5('GetLuaTable')] (self)
  0011  CALL      R3 = call(R3, -1 args, 1 rets)
  0012  SETLIST   setlist R2[B=1,C=0]
  0013  SETTABLE  R0[K2('m_arrItems')] = R2
  0014  LOADNIL   R2..R2 = nil
  0015  GETTABUP  R3 = _ENV[K6('ipairs')]
  0016  SELF      R5 = R1[K7('GetGroupData')] (self)
  0017  CALL      R4 = call(R4, 1 args, 1 rets)
  0018  SELF      R5 = R4[K8('GetBundleIds')] (self)
  0019  CALL      R4 = call(R4, -1 args, 1 rets)
  0020  CALL      R3 = call(R3, 3 args, -1 rets)
  0021  JMP       (jump)   -> 40
  0022  SELF      R9 = R1[K9('GetBundleId')] (self)
  0023  CALL      R8 = call(R8, 1 args, 1 rets)
  0024  EQ        if R0 eq R8   -> -127454
  0025  JMP       (jump)   -> 40
  0026  GETTABLE  R8 = R0[K10('m_titleText')]
  0027  GETTABUP  R9 = _ENV[K12('GM')]
  0028  GETTABLE  R9 = R9[K13('GameTextModel')]
  0029  SELF      R10 = R9[K14('GetText')] (self)
  0030  GETTABUP  R11 = _ENV[K15('BundleDefinition')]
  0031  GETTABLE  R11 = R11[K16('GetCellTitleText')]
  0032  SELF      R13 = R1[K7('GetGroupData')] (self)
  0033  CALL      R12 = call(R12, 1 args, 1 rets)
  0034  SELF      R13 = R12[K17('GetBundleUIType')] (self)
  0035  CALL      R12 = call(R12, 1 args, 1 rets)
  0036  MOVE      R13 = R0
  0037  CALL      R11 = call(R11, -1 args, 2 rets)
  0038  CALL      R9 = call(R9, 1 args, -1 rets)
  0039  SETTABLE  R8[K11('text')] = R9
  0040  TFORCALL  tforcall R3
  0041  TFORLOOP  tforloop R5(sBx=-20)   -> 22
  0042  LOADK     R3 = K18 1
  0043  GETTABLE  R4 = R0[K19('m_data')]
  0044  SELF      R5 = R4[K20('GetGoods')] (self)
  0045  CALL      R4 = call(R4, 1 args, 1 rets)
  0046  LEN       R4 = len R0
  0047  LOADK     R5 = K18 1
  0048  FORPREP   forprep R3(sBx=27)   -> 76
  0049  GETTABLE  R7 = R0[K2('m_arrItems')]
  0050  GETTABLE  R7 = R7[R6]
  0051  TEST      if not R7 then   -> -131018
  0052  JMP       (jump)   -> 62
  0053  GETTABLE  R7 = R0[K2('m_arrItems')]
  0054  GETTABUP  R8 = _ENV[K21('Object')]
  0055  GETTABLE  R8 = R8[K22('Instantiate')]
  0056  GETTABLE  R9 = R0[K4('m_itemGo')]
  0057  GETTABLE  R10 = R0[K23('m_itemRoot')]
  0058  CALL      R8 = call(R8, 1 args, 2 rets)
  0059  SELF      R9 = R8[K5('GetLuaTable')] (self)
  0060  CALL      R8 = call(R8, 1 args, 1 rets)
  0061  SETTABLE  R7[R6] = R8
  0062  GETTABLE  R7 = R0[K2('m_arrItems')]
  0063  GETTABLE  R7 = R7[R6]
  0064  GETTABLE  R7 = R7[K24('gameObject')]
  0065  SELF      R8 = R7[K25('SetActive')] (self)
  0066  LOADBOOL  R9 = true
  0067  CALL      R7 = call(R7, 0 args, 2 rets)
  0068  GETTABLE  R7 = R0[K2('m_arrItems')]
  0069  GETTABLE  R7 = R7[R6]
  0070  SELF      R8 = R7[K26('Init')] (self)
  0071  GETTABLE  R9 = R0[K19('m_data')]
  0072  SELF      R10 = R9[K20('GetGoods')] (self)
  0073  CALL      R9 = call(R9, 1 args, 1 rets)
  0074  GETTABLE  R9 = R9[R6]
  0075  CALL      R7 = call(R7, 0 args, 2 rets)
  0076  FORLOOP   forloop R3(sBx=-28)   -> 49
  0077  GETTABLE  R3 = R0[K19('m_data')]
  0078  SELF      R4 = R3[K20('GetGoods')] (self)
  0079  CALL      R3 = call(R3, 1 args, 1 rets)
  0080  LEN       R3 = len R0
  0081  ADD       R3 = K18(1) add R3
  0082  GETTABLE  R4 = R0[K2('m_arrItems')]
  0083  LEN       R4 = len R0
  0084  LOADK     R5 = K18 1
  0085  FORPREP   forprep R3(sBx=6)   -> 92
  0086  GETTABLE  R7 = R0[K2('m_arrItems')]
  0087  GETTABLE  R7 = R7[R6]
  0088  GETTABLE  R7 = R7[K24('gameObject')]
  0089  SELF      R8 = R7[K25('SetActive')] (self)
  0090  LOADBOOL  R9 = false
  0091  CALL      R7 = call(R7, 0 args, 2 rets)
  0092  FORLOOP   forloop R3(sBx=-7)   -> 86
  0093  GETTABLE  R3 = R0[K27('m_IAPButton')]
  0094  SELF      R4 = R3[K26('Init')] (self)
  0095  GETTABUP  R5 = _ENV[K12('GM')]
  0096  GETTABLE  R5 = R5[K28('InAppPurchaseModel')]
  0097  SELF      R6 = R5[K29('GetLocalizedPrice')] (self)
  0098  GETTABLE  R7 = R0[K19('m_data')]
  0099  SELF      R8 = R7[K30('GetPurchaseId')] (self)
  0100  CALL      R7 = call(R7, -1 args, 1 rets)
  0101  CALL      R5 = call(R5, 1 args, -1 rets)
  0102  GETTABLE  R6 = R0[K31('m_callback')]
  0103  CALL      R3 = call(R3, 0 args, 3 rets)
  0104  GETTABLE  R3 = R0[K32('m_discountView')]
  0105  SELF      R4 = R3[K1('UpdateContent')] (self)
  0106  GETTABLE  R5 = R0[K19('m_data')]
  0107  SELF      R6 = R5[K33('GetDiscountTag')] (self)
  0108  CALL      R5 = call(R5, -1 args, 1 rets)
  0109  CALL      R3 = call(R3, 0 args, -1 rets)
  0110  RETURN    return R0..R-1
; ---------- proto1 [GetIAPButton] ----------
  ; fn ?  line 34-36 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_IAPButton'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_IAPButton')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
