# UI_Window_Shop_ShopCellProperty_502.luac
; fn @ShopCellProperty.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='ShopCellProperty'
;   K[1]='setmetatable'
;   K[2]='BaseShopCell'
;   K[3]='__index'
;   K[4]='UpdateContent'
;   K[5]='GetSpriteName'
;   K[6]='UpdateSortingOrder'
;   K[7]='OnClose'
;   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('ShopCellProperty')] = R0
0005  GETTABUP  R0 = _ENV[K0('ShopCellProperty')]
0006  GETTABUP  R1 = _ENV[K0('ShopCellProperty')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ShopCellProperty')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('UpdateContent')] = R1
0011  GETTABUP  R0 = _ENV[K0('ShopCellProperty')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('GetSpriteName')] = R1
0014  GETTABUP  R0 = _ENV[K0('ShopCellProperty')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdateSortingOrder')] = R1
0017  GETTABUP  R0 = _ENV[K0('ShopCellProperty')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnClose')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [UpdateContent] ----------
  ; fn ?  line 19-59 np=2 va=0 ms=8 code=110 consts=43 upvals=1 protos=2
  ;   K[0]='BaseShopCell'
  ;   K[1]='UpdateContent'
  ;   K[2]='m_icon'
  ;   K[3]='icon'
  ;   K[4]='m_iconImg'
  ;   K[5]='gameObject'
  ;   K[6]='SetActive'
  ;   K[7]='SpriteUtil'
  ;   K[8]='SetImage'
  ;   K[9]='GetSpriteName'
  ;   K[10]='goods'
  ;   K[11]=1
  ;   K[12]='PROPERTY_COUNT'
  ;   K[13]='m_numText'
  ;   K[14]='text'
  ;   K[15]='UIUtil'
  ;   K[16]='SetSizeDelta'
  ;   K[17]='transform'
  ;   K[18]='preferredWidth'
  ;   K[19]='m_numIcon'
  ;   K[20]='PROPERTY_TYPE'
  ;   K[21]='m_numIconImg'
  ;   K[22]='enabled'
  ;   K[23]=false
  ;   K[24]='EPropertySprite'
  ;   K[25]='m_IAPButton'
  ;   K[26]='Init'
  ;   K[27]='GM'
  ;   K[28]='InAppPurchaseModel'
  ;   K[29]='GetLocalizedPrice'
  ;   K[30]='purchaseId'
  ;   K[31]='m_callback'
  ;   K[32]='m_redTagGo'
  ;   K[33]='SetActive'
  ;   K[34]='redTag'
  ;   K[35]=nil
  ;   K[36]='IsString'
  ;   K[37]='m_redTagText'
  ;   K[38]='GameTextModel'
  ;   K[39]='GetText'
  ;   K[40]='m_purpleTagGo'
  ;   K[41]='purpleTag'
  ;   K[42]='m_purpleTagText'
  ;   upvals: _ENV
  ;   locals: self(0-110), tbData(0-110), realCount(28-110)
  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_icon')]
  0006  GETTABLE  R3 = R1[K3('icon')]
  0007  EQ        if R1 eq R3   -> -130036
  0008  JMP       (jump)   -> 24
  0009  GETTABLE  R2 = R1[K3('icon')]
  0010  SETTABLE  R0[K2('m_icon')] = R2
  0011  GETTABLE  R2 = R0[K4('m_iconImg')]
  0012  GETTABLE  R2 = R2[K5('gameObject')]
  0013  SELF      R3 = R2[K6('SetActive')] (self)
  0014  LOADBOOL  R4 = false
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  GETTABUP  R2 = _ENV[K7('SpriteUtil')]
  0017  GETTABLE  R2 = R2[K8('SetImage')]
  0018  GETTABLE  R3 = R0[K4('m_iconImg')]
  0019  SELF      R5 = R0[K9('GetSpriteName')] (self)
  0020  CALL      R4 = call(R4, 1 args, 1 rets)
  0021  LOADBOOL  R5 = true
  0022  CLOSURE   R6 = closure proto0
  0023  CALL      R2 = call(R2, 0 args, 4 rets)
  0024  GETTABLE  R2 = R1[K10('goods')]
  0025  GETTABLE  R2 = R2[K11(1)]
  0026  GETTABUP  R3 = _ENV[K12('PROPERTY_COUNT')]
  0027  GETTABLE  R2 = R2[R3]
  0028  GETTABLE  R3 = R0[K13('m_numText')]
  0029  SETTABLE  R3[K14('text')] = R2
  0030  GETTABUP  R3 = _ENV[K15('UIUtil')]
  0031  GETTABLE  R3 = R3[K16('SetSizeDelta')]
  0032  GETTABLE  R4 = R0[K13('m_numText')]
  0033  GETTABLE  R4 = R4[K17('transform')]
  0034  GETTABLE  R5 = R0[K13('m_numText')]
  0035  GETTABLE  R5 = R5[K18('preferredWidth')]
  0036  CALL      R3 = call(R3, 0 args, 2 rets)
  0037  GETTABLE  R3 = R0[K19('m_numIcon')]
  0038  GETTABLE  R4 = R1[K10('goods')]
  0039  GETTABLE  R4 = R4[K11(1)]
  0040  GETTABUP  R5 = _ENV[K20('PROPERTY_TYPE')]
  0041  GETTABLE  R4 = R4[R5]
  0042  EQ        if R1 eq R4   -> -129488
  0043  JMP       (jump)   -> 60
  0044  GETTABLE  R3 = R1[K10('goods')]
  0045  GETTABLE  R3 = R3[K11(1)]
  0046  GETTABUP  R4 = _ENV[K20('PROPERTY_TYPE')]
  0047  GETTABLE  R3 = R3[R4]
  0048  SETTABLE  R0[K19('m_numIcon')] = R3
  0049  GETTABLE  R3 = R0[K21('m_numIconImg')]
  0050  SETTABLE  R3[K22('enabled')] = K23(false)
  0051  GETTABUP  R3 = _ENV[K7('SpriteUtil')]
  0052  GETTABLE  R3 = R3[K8('SetImage')]
  0053  GETTABLE  R4 = R0[K21('m_numIconImg')]
  0054  GETTABUP  R5 = _ENV[K24('EPropertySprite')]
  0055  GETTABLE  R6 = R0[K19('m_numIcon')]
  0056  GETTABLE  R5 = R5[R6]
  0057  LOADBOOL  R6 = true
  0058  CLOSURE   R7 = closure proto1
  0059  CALL      R3 = call(R3, 0 args, 4 rets)
  0060  GETTABLE  R3 = R0[K25('m_IAPButton')]
  0061  SELF      R4 = R3[K26('Init')] (self)
  0062  GETTABUP  R5 = _ENV[K27('GM')]
  0063  GETTABLE  R5 = R5[K28('InAppPurchaseModel')]
  0064  SELF      R6 = R5[K29('GetLocalizedPrice')] (self)
  0065  GETTABLE  R7 = R1[K30('purchaseId')]
  0066  CALL      R5 = call(R5, 1 args, 2 rets)
  0067  GETTABLE  R6 = R0[K31('m_callback')]
  0068  CALL      R3 = call(R3, 0 args, 3 rets)
  0069  GETTABLE  R3 = R0[K32('m_redTagGo')]
  0070  SELF      R4 = R3[K33('SetActive')] (self)
  0071  GETTABLE  R5 = R1[K34('redTag')]
  0072  EQ        if R0 eq K35(nil)   -> -128147
  0073  JMP       (jump)   -> 75
  0074  LOADBOOL  R5 = false
  0075  LOADBOOL  R5 = true
  0076  CALL      R3 = call(R3, 0 args, 2 rets)
  0077  GETTABUP  R3 = _ENV[K36('IsString')]
  0078  GETTABLE  R4 = R1[K34('redTag')]
  0079  CALL      R3 = call(R3, 1 args, 1 rets)
  0080  TEST      if not R3 then   -> -130990
  0081  JMP       (jump)   -> 89
  0082  GETTABLE  R3 = R0[K37('m_redTagText')]
  0083  GETTABUP  R4 = _ENV[K27('GM')]
  0084  GETTABLE  R4 = R4[K38('GameTextModel')]
  0085  SELF      R5 = R4[K39('GetText')] (self)
  0086  GETTABLE  R6 = R1[K34('redTag')]
  0087  CALL      R4 = call(R4, 1 args, 2 rets)
  0088  SETTABLE  R3[K14('text')] = R4
  0089  GETTABLE  R3 = R0[K40('m_purpleTagGo')]
  0090  SELF      R4 = R3[K33('SetActive')] (self)
  0091  GETTABLE  R5 = R1[K41('purpleTag')]
  0092  EQ        if R0 eq K35(nil)   -> -128127
  0093  JMP       (jump)   -> 95
  0094  LOADBOOL  R5 = false
  0095  LOADBOOL  R5 = true
  0096  CALL      R3 = call(R3, 0 args, 2 rets)
  0097  GETTABUP  R3 = _ENV[K36('IsString')]
  0098  GETTABLE  R4 = R1[K41('purpleTag')]
  0099  CALL      R3 = call(R3, 1 args, 1 rets)
  0100  TEST      if not R3 then   -> -130970
  0101  JMP       (jump)   -> 109
  0102  GETTABLE  R3 = R0[K42('m_purpleTagText')]
  0103  GETTABUP  R4 = _ENV[K27('GM')]
  0104  GETTABLE  R4 = R4[K38('GameTextModel')]
  0105  SELF      R5 = R4[K39('GetText')] (self)
  0106  GETTABLE  R6 = R1[K41('purpleTag')]
  0107  CALL      R4 = call(R4, 1 args, 2 rets)
  0108  SETTABLE  R3[K14('text')] = R4
  0109  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 26-30 np=0 va=0 ms=3 code=11 consts=4 upvals=1 protos=0
    ;   K[0]='m_iconImg'
    ;   K[1]='IsNull'
    ;   K[2]='gameObject'
    ;   K[3]='SetActive'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_iconImg')]
    0001  SELF      R1 = R0[K1('IsNull')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  TEST      if not R0 then   -> -131066
    0004  JMP       (jump)   -> 10
    0005  GETTABUP  R0 = self[K0('m_iconImg')]
    0006  GETTABLE  R0 = R0[K2('gameObject')]
    0007  SELF      R1 = R0[K3('SetActive')] (self)
    0008  LOADBOOL  R2 = true
    0009  CALL      R0 = call(R0, 0 args, 2 rets)
    0010  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 40-44 np=0 va=0 ms=2 code=8 consts=4 upvals=1 protos=0
    ;   K[0]='m_numIconImg'
    ;   K[1]='IsNull'
    ;   K[2]='enabled'
    ;   K[3]=true
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_numIconImg')]
    0001  SELF      R1 = R0[K1('IsNull')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  TEST      if not R0 then   -> -131066
    0004  JMP       (jump)   -> 7
    0005  GETTABUP  R0 = self[K0('m_numIconImg')]
    0006  SETTABLE  R0[K2('enabled')] = K3(true)
    0007  RETURN    return R0..R-1
; ---------- proto1 [GetSpriteName] ----------
  ; fn ?  line 61-64 np=2 va=0 ms=4 code=9 consts=3 upvals=1 protos=0
  ;   K[0]='m_data'
  ;   K[1]='icon'
  ;   K[2]='ShopSpriteKeyPrefix'
  ;   upvals: _ENV
  ;   locals: self(0-9), iconName(0-9)
  0000  TEST      if not R1 then   -> -131069
  0001  JMP       (jump)   -> 4
  0002  GETTABLE  R2 = R0[K0('m_data')]
  0003  GETTABLE  R1 = R2[K1('icon')]
  0004  GETTABUP  R2 = _ENV[K2('ShopSpriteKeyPrefix')]
  0005  MOVE      R3 = R0
  0006  CONCAT    R2 = concat(R2..R2)
  0007  RETURN    return R2..R1
  0008  RETURN    return R0..R-1
; ---------- proto2 [UpdateSortingOrder] ----------
  ; fn ?  line 66-68 np=2 va=0 ms=5 code=6 consts=4 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='UpdateSortingOrder'
  ;   K[2]='m_effectGo'
  ;   K[3]=1
  ;   upvals: _ENV
  ;   locals: self(0-6), sortingOrder(0-6)
  0000  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R2 = R2[K1('UpdateSortingOrder')]
  0002  GETTABLE  R3 = R0[K2('m_effectGo')]
  0003  ADD       R4 = K3(1) add R1
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto3 [OnClose] ----------
  ; fn ?  line 70-72 np=1 va=0 ms=4 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_effectGo'
  ;   K[1]='SetActive'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_effectGo')]
  0001  SELF      R2 = R1[K1('SetActive')] (self)
  0002  LOADBOOL  R3 = false
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
