# UI_Window_Shop_BaseShopSectionContainer_489.luac
; fn @BaseShopSectionContainer.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='BaseShopSectionContainer'
;   K[1]='setmetatable'
;   K[2]='BaseShopContainer'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='GetContentHeight'
;   K[6]='_OnShopRefreshed'
;   K[7]='_UpdateContent'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseShopContainer')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('BaseShopSectionContainer')] = R0
0005  GETTABUP  R0 = _ENV[K0('BaseShopSectionContainer')]
0006  GETTABUP  R1 = _ENV[K0('BaseShopSectionContainer')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('BaseShopSectionContainer')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('BaseShopSectionContainer')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('GetContentHeight')] = R1
0014  GETTABUP  R0 = _ENV[K0('BaseShopSectionContainer')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_OnShopRefreshed')] = R1
0017  GETTABUP  R0 = _ENV[K0('BaseShopSectionContainer')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('_UpdateContent')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-9 np=2 va=0 ms=6 code=12 consts=7 upvals=1 protos=0
  ;   K[0]='m_shopType'
  ;   K[1]='_UpdateContent'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='EEventType'
  ;   K[5]='ShopRefreshed'
  ;   K[6]='_OnShopRefreshed'
  ;   upvals: _ENV
  ;   locals: self(0-12), shopType(0-12)
  0000  SETTABLE  R0[K0('m_shopType')] = R1
  0001  SELF      R3 = R0[K1('_UpdateContent')] (self)
  0002  LOADBOOL  R4 = true
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  GETTABUP  R2 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R2 = R2[K3('AddListener')]
  0006  GETTABUP  R3 = _ENV[K4('EEventType')]
  0007  GETTABLE  R3 = R3[K5('ShopRefreshed')]
  0008  MOVE      R4 = R0
  0009  GETTABLE  R5 = R0[K6('_OnShopRefreshed')]
  0010  CALL      R2 = call(R2, 0 args, 3 rets)
  0011  RETURN    return R0..R-1
; ---------- proto1 [GetContentHeight] ----------
  ; fn ?  line 11-13 np=1 va=0 ms=2 code=12 consts=6 upvals=0 protos=0
  ;   K[0]='gameObject'
  ;   K[1]='activeSelf'
  ;   K[2]='transform'
  ;   K[3]='sizeDelta'
  ;   K[4]='y'
  ;   K[5]=0
  ;   locals: self(0-12)
  0000  GETTABLE  R1 = R0[K0('gameObject')]
  0001  GETTABLE  R1 = R1[K1('activeSelf')]
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 9
  0004  GETTABLE  R1 = R0[K2('transform')]
  0005  GETTABLE  R1 = R1[K3('sizeDelta')]
  0006  GETTABLE  R1 = R1[K4('y')]
  0007  TEST      if not R1 then   -> -131062
  0008  JMP       (jump)   -> 10
  0009  LOADK     R1 = K5 0
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto2 [_OnShopRefreshed] ----------
  ; fn ?  line 15-19 np=2 va=0 ms=4 code=9 consts=4 upvals=0 protos=0
  ;   K[0]=nil
  ;   K[1]='shopType'
  ;   K[2]='m_shopType'
  ;   K[3]='_UpdateContent'
  ;   locals: self(0-9), message(0-9)
  0000  EQ        if R1 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 8
  0002  GETTABLE  R2 = R1[K1('shopType')]
  0003  GETTABLE  R3 = R0[K2('m_shopType')]
  0004  EQ        if R0 eq R3   -> -130039
  0005  JMP       (jump)   -> 8
  0006  SELF      R3 = R0[K3('_UpdateContent')] (self)
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto3 [_UpdateContent] ----------
  ; fn ?  line 21-30 np=2 va=0 ms=8 code=20 consts=6 upvals=0 protos=0
  ;   K[0]='_GetCellData'
  ;   K[1]=0
  ;   K[2]='gameObject'
  ;   K[3]='SetActive'
  ;   K[4]='m_sectionView'
  ;   K[5]='UpdateCells'
  ;   locals: self(0-20), flushAnimation(0-20), cellData(2-20), cellDataEmpty(7-20)
  0000  SELF      R3 = R0[K0('_GetCellData')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  LEN       R3 = len R0
  0003  EQ        if R1 eq K1(0)   -> -129274
  0004  JMP       (jump)   -> 6
  0005  LOADBOOL  R3 = false
  0006  LOADBOOL  R3 = true
  0007  GETTABLE  R4 = R0[K2('gameObject')]
  0008  SELF      R5 = R4[K3('SetActive')] (self)
  0009  NOT       R6 = not R0
  0010  CALL      R4 = call(R4, 0 args, 2 rets)
  0011  TEST      if not R3 then   -> -131059
  0012  JMP       (jump)   -> 14
  0013  RETURN    return R0..R-1
  0014  GETTABLE  R4 = R0[K4('m_sectionView')]
  0015  SELF      R5 = R4[K5('UpdateCells')] (self)
  0016  MOVE      R6 = R0
  0017  MOVE      R7 = R0
  0018  CALL      R4 = call(R4, 0 args, 3 rets)
  0019  RETURN    return R0..R-1
