# UI_Window_Bundle_ShopContainerBundleMultiTier_535.luac
; fn @ShopContainerBundleMultiTier.lua  line 0-0 np=0 va=1 ms=3 code=39 consts=14 upvals=1 protos=10
;   K[0]='ShopContainerBundleMultiTier'
;   K[1]='setmetatable'
;   K[2]='BaseShopContainer'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='OnDestroy'
;   K[6]='OnClose'
;   K[7]='OnBundleDataRefreshed'
;   K[8]='_GetCellData'
;   K[9]='_OnCellClicked'
;   K[10]='GetContentHeight'
;   K[11]='Init'
;   K[12]='UpdateSortingOrder'
;   K[13]='UpdatePerSecond'
;   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('ShopContainerBundleMultiTier')] = R0
0005  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0006  GETTABUP  R1 = _ENV[K0('ShopContainerBundleMultiTier')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnClose')] = R1
0017  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnBundleDataRefreshed')] = R1
0020  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_GetCellData')] = R1
0023  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('_OnCellClicked')] = R1
0026  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('GetContentHeight')] = R1
0029  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('Init')] = R1
0032  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0033  CLOSURE   R1 = closure proto8
0034  SETTABLE  R0[K12('UpdateSortingOrder')] = R1
0035  GETTABUP  R0 = _ENV[K0('ShopContainerBundleMultiTier')]
0036  CLOSURE   R1 = closure proto9
0037  SETTABLE  R0[K13('UpdatePerSecond')] = R1
0038  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-8 np=1 va=0 ms=5 code=11 consts=8 upvals=1 protos=0
  ;   K[0]='m_shopType'
  ;   K[1]='EShopType'
  ;   K[2]='MultiTierBundle'
  ;   K[3]='EventDispatcher'
  ;   K[4]='AddListener'
  ;   K[5]='EEventType'
  ;   K[6]='BundleDataRefreshed'
  ;   K[7]='OnBundleDataRefreshed'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K1('EShopType')]
  0001  GETTABLE  R1 = R1[K2('MultiTierBundle')]
  0002  SETTABLE  R0[K0('m_shopType')] = R1
  0003  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0004  GETTABLE  R1 = R1[K4('AddListener')]
  0005  GETTABUP  R2 = _ENV[K5('EEventType')]
  0006  GETTABLE  R2 = R2[K6('BundleDataRefreshed')]
  0007  MOVE      R3 = R0
  0008  GETTABLE  R4 = R0[K7('OnBundleDataRefreshed')]
  0009  CALL      R1 = call(R1, 0 args, 3 rets)
  0010  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 10-12 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [OnClose] ----------
  ; fn ?  line 14-16 np=1 va=0 ms=4 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_bestDealGo'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetActive')]
  0002  GETTABLE  R2 = R0[K2('m_bestDealGo')]
  0003  LOADBOOL  R3 = false
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto3 [OnBundleDataRefreshed] ----------
  ; fn ?  line 19-34 np=2 va=0 ms=6 code=26 consts=10 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_dataGroup'
  ;   K[3]='GetLastDuration'
  ;   K[4]=0
  ;   K[5]='GetBundleState'
  ;   K[6]='EBundleState'
  ;   K[7]='Opening'
  ;   K[8]='gameObject'
  ;   K[9]='SetActive'
  ;   upvals: _ENV
  ;   locals: self(0-26), msg(0-26), bundleState(17-26)
  0000  GETTABLE  R2 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R2 = R0[K2('m_dataGroup')]
  0004  EQ        if R0 eq K1(nil)   -> -129785
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R2 = R0[K2('m_dataGroup')]
  0008  SELF      R3 = R2[K3('GetLastDuration')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  EQ        if R0 eq K4(0)   -> -129776
  0011  JMP       (jump)   -> 13
  0012  RETURN    return R0..R-1
  0013  GETTABLE  R2 = R0[K0('m_model')]
  0014  SELF      R3 = R2[K5('GetBundleState')] (self)
  0015  GETTABLE  R4 = R0[K2('m_dataGroup')]
  0016  CALL      R2 = call(R2, 1 args, 2 rets)
  0017  GETTABUP  R3 = _ENV[K6('EBundleState')]
  0018  GETTABLE  R3 = R3[K7('Opening')]
  0019  EQ        if R1 eq R3   -> -130024
  0020  JMP       (jump)   -> 25
  0021  GETTABLE  R3 = R0[K8('gameObject')]
  0022  SELF      R4 = R3[K9('SetActive')] (self)
  0023  LOADBOOL  R5 = false
  0024  CALL      R3 = call(R3, 0 args, 2 rets)
  0025  RETURN    return R0..R-1
; ---------- proto4 [_GetCellData] ----------
  ; fn ?  line 36-38 np=1 va=0 ms=2 code=3 consts=0 upvals=0 protos=0
  ;   locals: self(0-3)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto5 [_OnCellClicked] ----------
  ; fn ?  line 40-41 np=1 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto6 [GetContentHeight] ----------
  ; fn ?  line 43-45 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
; ---------- proto7 [Init] ----------
  ; fn ?  line 47-54 np=3 va=0 ms=9 code=18 consts=9 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='BundleManager'
  ;   K[3]='GetModel'
  ;   K[4]='m_dataGroup'
  ;   K[5]='m_cellContainer'
  ;   K[6]='Init'
  ;   K[7]='GetCurBundleDatas'
  ;   K[8]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-18), bundleType(0-18), dataGroup(0-18)
  0000  GETTABUP  R3 = _ENV[K1('GM')]
  0001  GETTABLE  R3 = R3[K2('BundleManager')]
  0002  SELF      R4 = R3[K3('GetModel')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  SETTABLE  R0[K0('m_model')] = R3
  0006  SETTABLE  R0[K4('m_dataGroup')] = R2
  0007  GETTABLE  R3 = R0[K5('m_cellContainer')]
  0008  SELF      R4 = R3[K6('Init')] (self)
  0009  GETTABLE  R5 = R0[K0('m_model')]
  0010  GETTABLE  R6 = R0[K0('m_model')]
  0011  SELF      R7 = R6[K7('GetCurBundleDatas')] (self)
  0012  MOVE      R8 = R0
  0013  CALL      R6 = call(R6, -1 args, 2 rets)
  0014  CALL      R3 = call(R3, 0 args, -1 rets)
  0015  SELF      R4 = R0[K8('UpdatePerSecond')] (self)
  0016  CALL      R3 = call(R3, 0 args, 1 rets)
  0017  RETURN    return R0..R-1
; ---------- proto8 [UpdateSortingOrder] ----------
  ; fn ?  line 56-60 np=2 va=0 ms=5 code=12 consts=7 upvals=1 protos=0
  ;   K[0]='m_behindSortingGroup'
  ;   K[1]='sortingOrder'
  ;   K[2]=1
  ;   K[3]='m_frontSortingGroup'
  ;   K[4]='UIUtil'
  ;   K[5]='UpdateSortingOrder'
  ;   K[6]='m_bestDealGo'
  ;   upvals: _ENV
  ;   locals: self(0-12), baseSortingOrder(0-12)
  0000  GETTABLE  R2 = R0[K0('m_behindSortingGroup')]
  0001  SUB       R3 = K2(1) sub R1
  0002  SETTABLE  R2[K1('sortingOrder')] = R3
  0003  GETTABLE  R2 = R0[K3('m_frontSortingGroup')]
  0004  ADD       R3 = K2(1) add R1
  0005  SETTABLE  R2[K1('sortingOrder')] = R3
  0006  GETTABUP  R2 = _ENV[K4('UIUtil')]
  0007  GETTABLE  R2 = R2[K5('UpdateSortingOrder')]
  0008  GETTABLE  R3 = R0[K6('m_bestDealGo')]
  0009  ADD       R4 = K2(1) add R1
  0010  CALL      R2 = call(R2, 0 args, 2 rets)
  0011  RETURN    return R0..R-1
; ---------- proto9 [UpdatePerSecond] ----------
  ; fn ?  line 62-71 np=1 va=0 ms=8 code=28 consts=13 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_dataGroup'
  ;   K[3]='GetRestDuration'
  ;   K[4]=0
  ;   K[5]='m_countdownText'
  ;   K[6]='text'
  ;   K[7]='TimeUtil'
  ;   K[8]='ParseTimeDescription'
  ;   K[9]=2
  ;   K[10]='UIUtil'
  ;   K[11]='SetActive'
  ;   K[12]='m_countdownGo'
  ;   upvals: _ENV
  ;   locals: self(0-28), restDuration(10-27)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 27
  0003  GETTABLE  R1 = R0[K2('m_dataGroup')]
  0004  EQ        if R1 eq K1(nil)   -> -130297
  0005  JMP       (jump)   -> 27
  0006  GETTABLE  R1 = R0[K0('m_model')]
  0007  SELF      R2 = R1[K3('GetRestDuration')] (self)
  0008  GETTABLE  R3 = R0[K2('m_dataGroup')]
  0009  CALL      R1 = call(R1, 1 args, 2 rets)
  0010  LT        if R0 lt R1   -> 2061
  0011  JMP       (jump)   -> 22
  0012  GETTABLE  R2 = R0[K5('m_countdownText')]
  0013  GETTABUP  R3 = _ENV[K7('TimeUtil')]
  0014  GETTABLE  R3 = R3[K8('ParseTimeDescription')]
  0015  MOVE      R4 = R0
  0016  LOADK     R5 = K9 2
  0017  LOADBOOL  R6 = false
  0018  LOADBOOL  R7 = false
  0019  CALL      R3 = call(R3, 1 args, 4 rets)
  0020  SETTABLE  R2[K6('text')] = R3
  0021  JMP       (jump)   -> 27
  0022  GETTABUP  R2 = _ENV[K10('UIUtil')]
  0023  GETTABLE  R2 = R2[K11('SetActive')]
  0024  GETTABLE  R3 = R0[K12('m_countdownGo')]
  0025  LOADBOOL  R4 = false
  0026  CALL      R2 = call(R2, 0 args, 2 rets)
  0027  RETURN    return R0..R-1
