# UI_Window_Shop_ShopContainerHotSales_508.luac
; fn @ShopContainerHotSales.lua  line 0-0 np=0 va=1 ms=3 code=27 consts=10 upvals=1 protos=6
;   K[0]='ShopContainerHotSales'
;   K[1]='setmetatable'
;   K[2]='BaseShopListContainer'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='_GetCellData'
;   K[6]='_OnCellClicked'
;   K[7]='_GetRefreshTime'
;   K[8]='_DoRefresh'
;   K[9]='_GetGreenBgCellCodeMap'
;   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('ShopContainerHotSales')] = R0
0005  GETTABUP  R0 = _ENV[K0('ShopContainerHotSales')]
0006  GETTABUP  R1 = _ENV[K0('ShopContainerHotSales')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ShopContainerHotSales')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('ShopContainerHotSales')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_GetCellData')] = R1
0014  GETTABUP  R0 = _ENV[K0('ShopContainerHotSales')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_OnCellClicked')] = R1
0017  GETTABUP  R0 = _ENV[K0('ShopContainerHotSales')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('_GetRefreshTime')] = R1
0020  GETTABUP  R0 = _ENV[K0('ShopContainerHotSales')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_DoRefresh')] = R1
0023  GETTABUP  R0 = _ENV[K0('ShopContainerHotSales')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('_GetGreenBgCellCodeMap')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 6-8 np=1 va=0 ms=6 code=9 consts=5 upvals=1 protos=0
  ;   K[0]='BaseShopListContainer'
  ;   K[1]='Init'
  ;   K[2]='EShopType'
  ;   K[3]='FlashSale'
  ;   K[4]=3
  ;   upvals: _ENV
  ;   locals: self(0-9)
  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('FlashSale')]
  0005  LOADBOOL  R4 = true
  0006  LOADK     R5 = K4 3
  0007  CALL      R1 = call(R1, 0 args, 4 rets)
  0008  RETURN    return R0..R-1
; ---------- proto1 [_GetCellData] ----------
  ; fn ?  line 10-29 np=1 va=0 ms=15 code=49 consts=18 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ShopModel'
  ;   K[2]='GetItemIdsFlashSale'
  ;   K[3]='_GetGreenBgCellCodeMap'
  ;   K[4]='ipairs'
  ;   K[5]='GetItemData'
  ;   K[6]=nil
  ;   K[7]='itemCode'
  ;   K[8]='leftCount'
  ;   K[9]=0
  ;   K[10]='table'
  ;   K[11]='insert'
  ;   K[12]='Id'
  ;   K[13]='Code'
  ;   K[14]='Count'
  ;   K[15]='Price'
  ;   K[16]='costCount'
  ;   K[17]='bShowBgGreen'
  ;   upvals: _ENV
  ;   locals: self(0-49), data(1-49), ids(8-49), mapGreenBgCellCode(10-49), itemData(11-49), bShowBgGreen(11-49), (for generator)(14-47), (for state)(14-47), (for control)(14-47), _(15-45), id(15-45)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABUP  R2 = _ENV[K0('GM')]
  0002  GETTABLE  R2 = R2[K1('ShopModel')]
  0003  SELF      R3 = R2[K2('GetItemIdsFlashSale')] (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  SELF      R4 = R0[K3('_GetGreenBgCellCodeMap')] (self)
  0009  CALL      R3 = call(R3, 1 args, 1 rets)
  0010  LOADNIL   R4..R4 = nil
  0011  GETTABUP  R6 = _ENV[K4('ipairs')]
  0012  MOVE      R7 = R0
  0013  CALL      R6 = call(R6, 3 args, 1 rets)
  0014  JMP       (jump)   -> 45
  0015  GETTABUP  R11 = _ENV[K0('GM')]
  0016  GETTABLE  R11 = R11[K1('ShopModel')]
  0017  SELF      R12 = R11[K5('GetItemData')] (self)
  0018  MOVE      R13 = R0
  0019  CALL      R11 = call(R11, 1 args, 2 rets)
  0020  MOVE      R4 = R0
  0021  EQ        if R1 eq K6(nil)   -> -129251
  0022  JMP       (jump)   -> 30
  0023  GETTABLE  R11 = R4[K7('itemCode')]
  0024  GETTABLE  R11 = R3[R11]
  0025  EQ        if R1 eq K6(nil)   -> -125151
  0026  JMP       (jump)   -> 30
  0027  GETTABLE  R11 = R4[K8('leftCount')]
  0028  LT        if R1 lt R11   -> 4649
  0029  JMP       (jump)   -> 31
  0030  LOADBOOL  R5 = false
  0031  LOADBOOL  R5 = true
  0032  GETTABUP  R11 = _ENV[K10('table')]
  0033  GETTABLE  R11 = R11[K11('insert')]
  0034  MOVE      R12 = R0
  0035  NEWTABLE  R13 = {} (0 items)
  0036  SETTABLE  R13[K12('Id')] = R10
  0037  GETTABLE  R14 = R4[K7('itemCode')]
  0038  SETTABLE  R13[K13('Code')] = R14
  0039  GETTABLE  R14 = R4[K8('leftCount')]
  0040  SETTABLE  R13[K14('Count')] = R14
  0041  GETTABLE  R14 = R4[K16('costCount')]
  0042  SETTABLE  R13[K15('Price')] = R14
  0043  SETTABLE  R13[K17('bShowBgGreen')] = R5
  0044  CALL      R11 = call(R11, 0 args, 2 rets)
  0045  TFORCALL  tforcall R6
  0046  TFORLOOP  tforloop R8(sBx=-32)   -> 15
  0047  RETURN    return R1..R0
  0048  RETURN    return R0..R-1
; ---------- proto2 [_OnCellClicked] ----------
  ; fn ?  line 31-38 np=2 va=0 ms=9 code=22 consts=10 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]='_UpdateContent'
  ;   K[7]='OnLackOfGem'
  ;   K[8]='EBIType'
  ;   K[9]='ShopBuy'
  ;   upvals: _ENV
  ;   locals: self(0-22), cell(0-22), success(9-22), type(9-22), count(9-22)
  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  CALL      R2 = call(R2, 3 args, 4 rets)
  0009  TEST      if not R2 then   -> -131061
  0010  JMP       (jump)   -> 14
  0011  SELF      R6 = R0[K6('_UpdateContent')] (self)
  0012  CALL      R5 = call(R5, 0 args, 1 rets)
  0013  JMP       (jump)   -> 21
  0014  GETTABUP  R5 = _ENV[K0('GM')]
  0015  GETTABLE  R5 = R5[K1('ShopModel')]
  0016  SELF      R6 = R5[K7('OnLackOfGem')] (self)
  0017  MOVE      R7 = R0
  0018  GETTABUP  R8 = _ENV[K8('EBIType')]
  0019  GETTABLE  R8 = R8[K9('ShopBuy')]
  0020  CALL      R5 = call(R5, 0 args, 3 rets)
  0021  RETURN    return R0..R-1
; ---------- proto3 [_GetRefreshTime] ----------
  ; fn ?  line 40-42 np=1 va=0 ms=3 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ShopModel'
  ;   K[2]='GetRefreshTimeFlashSale'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ShopModel')]
  0002  SELF      R2 = R1[K2('GetRefreshTimeFlashSale')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto4 [_DoRefresh] ----------
  ; fn ?  line 44-46 np=1 va=0 ms=3 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ShopModel'
  ;   K[2]='RefreshFlashSaleByGemCost'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ShopModel')]
  0002  SELF      R2 = R1[K2('RefreshFlashSaleByGemCost')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto5 [_GetGreenBgCellCodeMap] ----------
  ; fn ?  line 48-51 np=1 va=0 ms=3 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='MainBoardModel'
  ;   K[2]='GetMapGreenBgCellCode'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MainBoardModel')]
  0002  SELF      R2 = R1[K2('GetMapGreenBgCellCode')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
