# UI_Window_Shop_ShopContainerDailyDeals_504.luac
; fn @ShopContainerDailyDeals.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=9 upvals=1 protos=5
;   K[0]='ShopContainerDailyDeals'
;   K[1]='setmetatable'
;   K[2]='BaseShopListContainer'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='_GetCellData'
;   K[6]='_OnCellClicked'
;   K[7]='_GetRefreshTime'
;   K[8]='UpdatePerSecond'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseShopListContainer')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('ShopContainerDailyDeals')] = R0
0005  GETTABUP  R0 = _ENV[K0('ShopContainerDailyDeals')]
0006  GETTABUP  R1 = _ENV[K0('ShopContainerDailyDeals')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ShopContainerDailyDeals')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('ShopContainerDailyDeals')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_GetCellData')] = R1
0014  GETTABUP  R0 = _ENV[K0('ShopContainerDailyDeals')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_OnCellClicked')] = R1
0017  GETTABUP  R0 = _ENV[K0('ShopContainerDailyDeals')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('_GetRefreshTime')] = R1
0020  GETTABUP  R0 = _ENV[K0('ShopContainerDailyDeals')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('UpdatePerSecond')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 6-10 np=1 va=0 ms=6 code=15 consts=9 upvals=1 protos=0
  ;   K[0]='BaseShopListContainer'
  ;   K[1]='Init'
  ;   K[2]='EShopType'
  ;   K[3]='DailyDeals'
  ;   K[4]=3
  ;   K[5]='UpdatePerSecond'
  ;   K[6]='LayoutRebuilder'
  ;   K[7]='ForceRebuildLayoutImmediate'
  ;   K[8]='m_layoutTrans'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABUP  R1 = _ENV[K0('BaseShopListContainer')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  GETTABUP  R3 = _ENV[K2('EShopType')]
  0004  GETTABLE  R3 = R3[K3('DailyDeals')]
  0005  LOADBOOL  R4 = false
  0006  LOADK     R5 = K4 3
  0007  CALL      R1 = call(R1, 0 args, 4 rets)
  0008  SELF      R2 = R0[K5('UpdatePerSecond')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  GETTABUP  R1 = _ENV[K6('LayoutRebuilder')]
  0011  GETTABLE  R1 = R1[K7('ForceRebuildLayoutImmediate')]
  0012  GETTABLE  R2 = R0[K8('m_layoutTrans')]
  0013  CALL      R1 = call(R1, 0 args, 1 rets)
  0014  RETURN    return R0..R-1
; ---------- proto1 [_GetCellData] ----------
  ; fn ?  line 12-30 np=1 va=0 ms=14 code=42 consts=20 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ShopModel'
  ;   K[2]='GetItemIdsDailyDeals'
  ;   K[3]='ipairs'
  ;   K[4]='GetItemData'
  ;   K[5]='ShopDataModel'
  ;   K[6]='GetDailyDealsConfig'
  ;   K[7]='itemCode'
  ;   K[8]='table'
  ;   K[9]='insert'
  ;   K[10]='Id'
  ;   K[11]='Code'
  ;   K[12]='Count'
  ;   K[13]='leftCount'
  ;   K[14]='Price'
  ;   K[15]='costCount'
  ;   K[16]='RedTag'
  ;   K[17]='redTag'
  ;   K[18]='PurpleTag'
  ;   K[19]='purpleTag'
  ;   upvals: _ENV
  ;   locals: self(0-42), data(1-42), ids(8-42), (for generator)(11-40), (for state)(11-40), (for control)(11-40), _(12-38), id(12-38), itemData(17-38), config(22-38)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABUP  R2 = _ENV[K0('GM')]
  0002  GETTABLE  R2 = R2[K1('ShopModel')]
  0003  SELF      R3 = R2[K2('GetItemIdsDailyDeals')] (self)
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  TEST      if not R2 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  NEWTABLE  R2 = {} (0 items)
  0008  GETTABUP  R3 = _ENV[K3('ipairs')]
  0009  MOVE      R4 = R0
  0010  CALL      R3 = call(R3, 3 args, 1 rets)
  0011  JMP       (jump)   -> 38
  0012  GETTABUP  R8 = _ENV[K0('GM')]
  0013  GETTABLE  R8 = R8[K1('ShopModel')]
  0014  SELF      R9 = R8[K4('GetItemData')] (self)
  0015  MOVE      R10 = R0
  0016  CALL      R8 = call(R8, 1 args, 2 rets)
  0017  GETTABUP  R9 = _ENV[K0('GM')]
  0018  GETTABLE  R9 = R9[K5('ShopDataModel')]
  0019  SELF      R10 = R9[K6('GetDailyDealsConfig')] (self)
  0020  GETTABLE  R11 = R8[K7('itemCode')]
  0021  CALL      R9 = call(R9, 1 args, 2 rets)
  0022  GETTABUP  R10 = _ENV[K8('table')]
  0023  GETTABLE  R10 = R10[K9('insert')]
  0024  MOVE      R11 = R0
  0025  NEWTABLE  R12 = {} (0 items)
  0026  SETTABLE  R12[K10('Id')] = R7
  0027  GETTABLE  R13 = R8[K7('itemCode')]
  0028  SETTABLE  R12[K11('Code')] = R13
  0029  GETTABLE  R13 = R8[K13('leftCount')]
  0030  SETTABLE  R12[K12('Count')] = R13
  0031  GETTABLE  R13 = R8[K15('costCount')]
  0032  SETTABLE  R12[K14('Price')] = R13
  0033  GETTABLE  R13 = R9[K17('redTag')]
  0034  SETTABLE  R12[K16('RedTag')] = R13
  0035  GETTABLE  R13 = R9[K19('purpleTag')]
  0036  SETTABLE  R12[K18('PurpleTag')] = R13
  0037  CALL      R10 = call(R10, 0 args, 2 rets)
  0038  TFORCALL  tforcall R3
  0039  TFORLOOP  tforloop R5(sBx=-28)   -> 12
  0040  RETURN    return R1..R0
  0041  RETURN    return R0..R-1
; ---------- proto2 [_OnCellClicked] ----------
  ; fn ?  line 32-39 np=2 va=0 ms=9 code=24 consts=12 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ShopModel'
  ;   K[2]='BuyItem'
  ;   K[3]='m_shopType'
  ;   K[4]='GetData'
  ;   K[5]='Id'
  ;   K[6]='transform'
  ;   K[7]='position'
  ;   K[8]='_UpdateContent'
  ;   K[9]='OnLackOfGem'
  ;   K[10]='EBIType'
  ;   K[11]='ShopBuy'
  ;   upvals: _ENV
  ;   locals: self(0-24), cell(0-24), success(11-24), type(11-24), count(11-24)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('ShopModel')]
  0002  SELF      R3 = R2[K2('BuyItem')] (self)
  0003  GETTABLE  R4 = R0[K3('m_shopType')]
  0004  SELF      R6 = R1[K4('GetData')] (self)
  0005  CALL      R5 = call(R5, 1 args, 1 rets)
  0006  GETTABLE  R5 = R5[K5('Id')]
  0007  LOADBOOL  R6 = false
  0008  GETTABLE  R7 = R1[K6('transform')]
  0009  GETTABLE  R7 = R7[K7('position')]
  0010  CALL      R2 = call(R2, 3 args, 5 rets)
  0011  TEST      if not R2 then   -> -131059
  0012  JMP       (jump)   -> 16
  0013  SELF      R6 = R0[K8('_UpdateContent')] (self)
  0014  CALL      R5 = call(R5, 0 args, 1 rets)
  0015  JMP       (jump)   -> 23
  0016  GETTABUP  R5 = _ENV[K0('GM')]
  0017  GETTABLE  R5 = R5[K1('ShopModel')]
  0018  SELF      R6 = R5[K9('OnLackOfGem')] (self)
  0019  MOVE      R7 = R0
  0020  GETTABUP  R8 = _ENV[K10('EBIType')]
  0021  GETTABLE  R8 = R8[K11('ShopBuy')]
  0022  CALL      R5 = call(R5, 0 args, 3 rets)
  0023  RETURN    return R0..R-1
; ---------- proto3 [_GetRefreshTime] ----------
  ; fn ?  line 41-43 np=1 va=0 ms=3 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ShopModel'
  ;   K[2]='GetRefreshTimeDailyDeals'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ShopModel')]
  0002  SELF      R2 = R1[K2('GetRefreshTimeDailyDeals')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto4 [UpdatePerSecond] ----------
  ; fn ?  line 45-51 np=1 va=0 ms=5 code=29 consts=12 upvals=1 protos=0
  ;   K[0]='BaseShopListContainer'
  ;   K[1]='UpdatePerSecond'
  ;   K[2]='UIUtil'
  ;   K[3]='SetSizeDelta'
  ;   K[4]='m_tipText'
  ;   K[5]='transform'
  ;   K[6]='preferredWidth'
  ;   K[7]='m_refreshText'
  ;   K[8]='m_countDownTrans'
  ;   K[9]='m_iconTrans'
  ;   K[10]='sizeDelta'
  ;   K[11]='x'
  ;   upvals: _ENV
  ;   locals: self(0-29)
  0000  GETTABUP  R1 = _ENV[K0('BaseShopListContainer')]
  0001  GETTABLE  R1 = R1[K1('UpdatePerSecond')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('UIUtil')]
  0005  GETTABLE  R1 = R1[K3('SetSizeDelta')]
  0006  GETTABLE  R2 = R0[K4('m_tipText')]
  0007  GETTABLE  R2 = R2[K5('transform')]
  0008  GETTABLE  R3 = R0[K4('m_tipText')]
  0009  GETTABLE  R3 = R3[K6('preferredWidth')]
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  GETTABUP  R1 = _ENV[K2('UIUtil')]
  0012  GETTABLE  R1 = R1[K3('SetSizeDelta')]
  0013  GETTABLE  R2 = R0[K7('m_refreshText')]
  0014  GETTABLE  R2 = R2[K5('transform')]
  0015  GETTABLE  R3 = R0[K7('m_refreshText')]
  0016  GETTABLE  R3 = R3[K6('preferredWidth')]
  0017  CALL      R1 = call(R1, 0 args, 2 rets)
  0018  GETTABUP  R1 = _ENV[K2('UIUtil')]
  0019  GETTABLE  R1 = R1[K3('SetSizeDelta')]
  0020  GETTABLE  R2 = R0[K8('m_countDownTrans')]
  0021  GETTABLE  R3 = R0[K7('m_refreshText')]
  0022  GETTABLE  R3 = R3[K6('preferredWidth')]
  0023  GETTABLE  R4 = R0[K9('m_iconTrans')]
  0024  GETTABLE  R4 = R4[K10('sizeDelta')]
  0025  GETTABLE  R4 = R4[K11('x')]
  0026  ADD       R3 = R4 add R3
  0027  CALL      R1 = call(R1, 0 args, 2 rets)
  0028  RETURN    return R0..R-1
