# UI_Window_Shop_ShopContainerDiamonds_506.luac
; fn @ShopContainerDiamonds.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='ShopContainerDiamonds'
;   K[1]='setmetatable'
;   K[2]='BaseShopListContainer'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='_GetCellData'
;   K[6]='_OnCellClicked'
;   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('ShopContainerDiamonds')] = R0
0005  GETTABUP  R0 = _ENV[K0('ShopContainerDiamonds')]
0006  GETTABUP  R1 = _ENV[K0('ShopContainerDiamonds')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ShopContainerDiamonds')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('ShopContainerDiamonds')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_GetCellData')] = R1
0014  GETTABUP  R0 = _ENV[K0('ShopContainerDiamonds')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_OnCellClicked')] = R1
0017  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]='Diamonds'
  ;   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('Diamonds')]
  0005  LOADBOOL  R4 = false
  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-12 np=1 va=0 ms=3 code=9 consts=3 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ShopModel'
  ;   K[2]='GetDiamondsDatas'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ShopModel')]
  0002  SELF      R2 = R1[K2('GetDiamondsDatas')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  NEWTABLE  R1 = {} (0 items)
  0007  RETURN    return R1..R0
  0008  RETURN    return R0..R-1
; ---------- proto2 [_OnCellClicked] ----------
  ; fn ?  line 14-22 np=2 va=0 ms=7 code=9 consts=4 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='ShopModel'
  ;   K[2]='BuyDiamonds'
  ;   K[3]='GetData'
  ;   upvals: _ENV
  ;   locals: self(0-9), cell(0-9), callback(1-9)
  0000  CLOSURE   R2 = closure proto0
  0001  GETTABUP  R3 = _ENV[K0('GM')]
  0002  GETTABLE  R3 = R3[K1('ShopModel')]
  0003  SELF      R4 = R3[K2('BuyDiamonds')] (self)
  0004  SELF      R6 = R1[K3('GetData')] (self)
  0005  CALL      R5 = call(R5, 1 args, 1 rets)
  0006  MOVE      R6 = R0
  0007  CALL      R3 = call(R3, 0 args, 3 rets)
  0008  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 15-20 np=2 va=0 ms=9 code=20 consts=12 upvals=1 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='OpenView'
    ;   K[3]='UIPrefabConfigName'
    ;   K[4]='AnimatedRewardWindow'
    ;   K[5]='rewards_window_title_shop'
    ;   K[6]='ERewardScene'
    ;   K[7]='Other'
    ;   K[8]='AudioModel'
    ;   K[9]='PlayEffect'
    ;   K[10]='AudioFileConfigName'
    ;   K[11]='SfxShopBuy'
    ;   upvals: _ENV
    ;   locals: success(0-20), rewards(0-20)
    0000  TEST      if not R0 then   -> -131070
    0001  JMP       (jump)   -> 19
    0002  GETTABUP  R2 = _ENV[K0('GM')]
    0003  GETTABLE  R2 = R2[K1('UIManager')]
    0004  SELF      R3 = R2[K2('OpenView')] (self)
    0005  GETTABUP  R4 = _ENV[K3('UIPrefabConfigName')]
    0006  GETTABLE  R4 = R4[K4('AnimatedRewardWindow')]
    0007  MOVE      R5 = R0
    0008  LOADK     R6 = K5 'rewards_window_title_shop'
    0009  LOADBOOL  R7 = false
    0010  GETTABUP  R8 = _ENV[K6('ERewardScene')]
    0011  GETTABLE  R8 = R8[K7('Other')]
    0012  CALL      R2 = call(R2, 0 args, 6 rets)
    0013  GETTABUP  R2 = _ENV[K0('GM')]
    0014  GETTABLE  R2 = R2[K8('AudioModel')]
    0015  SELF      R3 = R2[K9('PlayEffect')] (self)
    0016  GETTABUP  R4 = _ENV[K10('AudioFileConfigName')]
    0017  GETTABLE  R4 = R4[K11('SfxShopBuy')]
    0018  CALL      R2 = call(R2, 0 args, 2 rets)
    0019  RETURN    return R0..R-1
