# UI_Window_Shop_ShopContainerPassActivity_510.luac
; fn @ShopContainerPassActivity.lua  line 0-0 np=0 va=1 ms=3 code=27 consts=10 upvals=1 protos=6
;   K[0]='ShopContainerPassActivity'
;   K[1]='setmetatable'
;   K[2]='BaseShopContainer'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='OnDestroy'
;   K[6]='GetContentHeight'
;   K[7]='_GetCellData'
;   K[8]='_OnCellClicked'
;   K[9]='_OnPassActivityStateChanged'
;   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('ShopContainerPassActivity')] = R0
0005  GETTABUP  R0 = _ENV[K0('ShopContainerPassActivity')]
0006  GETTABUP  R1 = _ENV[K0('ShopContainerPassActivity')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ShopContainerPassActivity')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('ShopContainerPassActivity')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('ShopContainerPassActivity')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('GetContentHeight')] = R1
0017  GETTABUP  R0 = _ENV[K0('ShopContainerPassActivity')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('_GetCellData')] = R1
0020  GETTABUP  R0 = _ENV[K0('ShopContainerPassActivity')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_OnCellClicked')] = R1
0023  GETTABUP  R0 = _ENV[K0('ShopContainerPassActivity')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('_OnPassActivityStateChanged')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 6-30 np=1 va=0 ms=10 code=31 consts=14 upvals=1 protos=2
  ;   K[0]='m_shopType'
  ;   K[1]='EShopType'
  ;   K[2]='PassActivityTicket'
  ;   K[3]='m_shopCellCount'
  ;   K[4]=0
  ;   K[5]='gameObject'
  ;   K[6]='SetActive'
  ;   K[7]='pairs'
  ;   K[8]='PassActivityDefinition'
  ;   K[9]='EventDispatcher'
  ;   K[10]='AddListener'
  ;   K[11]='StateChangedEvent'
  ;   K[12]='BuyTicketSuccessEvent'
  ;   K[13]='_OnPassActivityStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-31), (for generator)(11-30), (for state)(11-30), (for control)(11-30), activityType(12-28), activityDefinition(12-28)
  0000  GETTABUP  R1 = _ENV[K1('EShopType')]
  0001  GETTABLE  R1 = R1[K2('PassActivityTicket')]
  0002  SETTABLE  R0[K0('m_shopType')] = R1
  0003  SETTABLE  R0[K3('m_shopCellCount')] = K4(0)
  0004  GETTABLE  R1 = R0[K5('gameObject')]
  0005  SELF      R2 = R1[K6('SetActive')] (self)
  0006  LOADBOOL  R3 = false
  0007  CALL      R1 = call(R1, 0 args, 2 rets)
  0008  GETTABUP  R1 = _ENV[K7('pairs')]
  0009  GETTABUP  R2 = _ENV[K8('PassActivityDefinition')]
  0010  CALL      R1 = call(R1, 3 args, 1 rets)
  0011  JMP       (jump)   -> 28
  0012  GETTABUP  R6 = _ENV[K9('EventDispatcher')]
  0013  GETTABLE  R6 = R6[K10('AddListener')]
  0014  GETTABLE  R7 = R5[K11('StateChangedEvent')]
  0015  MOVE      R8 = R0
  0016  CLOSURE   R9 = closure proto0
  0017  CALL      R6 = call(R6, 0 args, 3 rets)
  0018  GETTABUP  R6 = _ENV[K9('EventDispatcher')]
  0019  GETTABLE  R6 = R6[K10('AddListener')]
  0020  GETTABLE  R7 = R5[K12('BuyTicketSuccessEvent')]
  0021  MOVE      R8 = R0
  0022  CLOSURE   R9 = closure proto1
  0023  CALL      R6 = call(R6, 0 args, 3 rets)
  0024  SELF      R7 = R0[K13('_OnPassActivityStateChanged')] (self)
  0025  MOVE      R8 = R0
  0026  CALL      R6 = call(R6, 0 args, 2 rets)
  0027  JMP       (jump)   -> 28
  0028  TFORCALL  tforcall R1
  0029  TFORLOOP  tforloop R3(sBx=-18)   -> 12
  0030  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 12-14 np=0 va=0 ms=3 code=5 consts=1 upvals=2 protos=0
    ;   K[0]='_OnPassActivityStateChanged'
    ;   upvals: self, activityType
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('_OnPassActivityStateChanged')] (self)
    0002  GETUPVAL  R2 = self
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 16-18 np=0 va=0 ms=3 code=5 consts=1 upvals=2 protos=0
    ;   K[0]='_OnPassActivityStateChanged'
    ;   upvals: self, activityType
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('_OnPassActivityStateChanged')] (self)
    0002  GETUPVAL  R2 = self
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 32-34 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 [GetContentHeight] ----------
  ; fn ?  line 36-38 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
; ---------- proto3 [_GetCellData] ----------
  ; fn ?  line 40-42 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
; ---------- proto4 [_OnCellClicked] ----------
  ; fn ?  line 44-45 np=1 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto5 [_OnPassActivityStateChanged] ----------
  ; fn ?  line 47-77 np=2 va=0 ms=13 code=85 consts=35 upvals=1 protos=1
  ;   K[0]='PassActivityDefinition'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]='m_'
  ;   K[5]='ShopCell'
  ;   K[6]='GetState'
  ;   K[7]='ActivityState'
  ;   K[8]='Started'
  ;   K[9]='HasTicket'
  ;   K[10]='CanBuyMaxTicket'
  ;   K[11]='HasMaxTicket'
  ;   K[12]='gameObject'
  ;   K[13]='SetActive'
  ;   K[14]=nil
  ;   K[15]='DataResource'
  ;   K[16]='UIPrefabConfig'
  ;   K[17]='GetConfig'
  ;   K[18]='ShopCellPrefabName'
  ;   K[19]='m_shopCellCount'
  ;   K[20]=1
  ;   K[21]='ResourceLoader'
  ;   K[22]='LoadPrefab'
  ;   K[23]='transform'
  ;   K[24]='V3Zero'
  ;   K[25]='AddressableLoader'
  ;   K[26]='Destroy'
  ;   K[27]=0
  ;   K[28]='EventDispatcher'
  ;   K[29]='DispatchEvent'
  ;   K[30]='EEventType'
  ;   K[31]='ShopRefreshed'
  ;   K[32]='shopType'
  ;   K[33]='EShopType'
  ;   K[34]='PassActivityTicket'
  ;   upvals: _ENV
  ;   locals: self(0-85), activityType(0-85), activityDefinition(2-85), model(7-85), cellName(11-85), config(43-55), callback(44-55)
  0000  GETTABUP  R2 = _ENV[K0('PassActivityDefinition')]
  0001  GETTABLE  R2 = R2[R1]
  0002  GETTABUP  R3 = _ENV[K1('GM')]
  0003  GETTABLE  R3 = R3[K2('ActivityManager')]
  0004  SELF      R4 = R3[K3('GetModel')] (self)
  0005  MOVE      R5 = R0
  0006  CALL      R3 = call(R3, 1 args, 2 rets)
  0007  LOADK     R4 = K4 'm_'
  0008  MOVE      R5 = R0
  0009  LOADK     R6 = K5 'ShopCell'
  0010  CONCAT    R4 = concat(R4..R4)
  0011  SELF      R6 = R3[K6('GetState')] (self)
  0012  CALL      R5 = call(R5, 1 args, 1 rets)
  0013  GETTABUP  R6 = _ENV[K7('ActivityState')]
  0014  GETTABLE  R6 = R6[K8('Started')]
  0015  EQ        if R0 eq R6   -> -128489
  0016  JMP       (jump)   -> 56
  0017  SELF      R6 = R3[K9('HasTicket')] (self)
  0018  CALL      R5 = call(R5, 1 args, 1 rets)
  0019  TEST      if not R5 then   -> -131051
  0020  JMP       (jump)   -> 29
  0021  SELF      R6 = R3[K10('CanBuyMaxTicket')] (self)
  0022  CALL      R5 = call(R5, 1 args, 1 rets)
  0023  TEST      if not R5 then   -> -131047
  0024  JMP       (jump)   -> 56
  0025  SELF      R6 = R3[K11('HasMaxTicket')] (self)
  0026  CALL      R5 = call(R5, 1 args, 1 rets)
  0027  TEST      if not R5 then   -> -131042
  0028  JMP       (jump)   -> 56
  0029  GETTABLE  R5 = R0[K12('gameObject')]
  0030  SELF      R6 = R5[K13('SetActive')] (self)
  0031  LOADBOOL  R7 = true
  0032  CALL      R5 = call(R5, 0 args, 2 rets)
  0033  GETTABLE  R5 = R0[R4]
  0034  EQ        if R0 eq K14(nil)   -> -128206
  0035  JMP       (jump)   -> 75
  0036  GETTABUP  R5 = _ENV[K1('GM')]
  0037  GETTABLE  R5 = R5[K15('DataResource')]
  0038  GETTABLE  R5 = R5[K16('UIPrefabConfig')]
  0039  SELF      R6 = R5[K17('GetConfig')] (self)
  0040  GETTABLE  R7 = R2[K18('ShopCellPrefabName')]
  0041  MOVE      R8 = R0
  0042  CALL      R5 = call(R5, 1 args, 3 rets)
  0043  CLOSURE   R6 = closure proto0
  0044  GETTABLE  R7 = R0[K19('m_shopCellCount')]
  0045  ADD       R7 = K20(1) add R7
  0046  SETTABLE  R0[K19('m_shopCellCount')] = R7
  0047  GETTABUP  R7 = _ENV[K1('GM')]
  0048  GETTABLE  R7 = R7[K21('ResourceLoader')]
  0049  SELF      R8 = R7[K22('LoadPrefab')] (self)
  0050  MOVE      R9 = R0
  0051  GETTABLE  R10 = R0[K23('transform')]
  0052  GETTABUP  R11 = _ENV[K24('V3Zero')]
  0053  MOVE      R12 = R0
  0054  CALL      R7 = call(R7, 0 args, 5 rets)
  0055  JMP       (jump)   -> 75
  0056  GETTABLE  R5 = R0[R4]
  0057  EQ        if R1 eq K14(nil)   -> -128183
  0058  JMP       (jump)   -> 68
  0059  GETTABLE  R5 = R0[K19('m_shopCellCount')]
  0060  SUB       R5 = K20(1) sub R5
  0061  SETTABLE  R0[K19('m_shopCellCount')] = R5
  0062  GETTABUP  R5 = _ENV[K25('AddressableLoader')]
  0063  GETTABLE  R5 = R5[K26('Destroy')]
  0064  GETTABLE  R6 = R0[R4]
  0065  GETTABLE  R6 = R6[K12('gameObject')]
  0066  CALL      R5 = call(R5, 0 args, 1 rets)
  0067  SETTABLE  R0[R4] = K14(nil)
  0068  GETTABLE  R5 = R0[K19('m_shopCellCount')]
  0069  EQ        if R0 eq K27(0)   -> -128158
  0070  JMP       (jump)   -> 75
  0071  GETTABLE  R5 = R0[K12('gameObject')]
  0072  SELF      R6 = R5[K13('SetActive')] (self)
  0073  LOADBOOL  R7 = false
  0074  CALL      R5 = call(R5, 0 args, 2 rets)
  0075  GETTABUP  R5 = _ENV[K28('EventDispatcher')]
  0076  GETTABLE  R5 = R5[K29('DispatchEvent')]
  0077  GETTABUP  R6 = _ENV[K30('EEventType')]
  0078  GETTABLE  R6 = R6[K31('ShopRefreshed')]
  0079  NEWTABLE  R7 = {} (0 items)
  0080  GETTABUP  R8 = _ENV[K33('EShopType')]
  0081  GETTABLE  R8 = R8[K34('PassActivityTicket')]
  0082  SETTABLE  R7[K32('shopType')] = R8
  0083  CALL      R5 = call(R5, 0 args, 2 rets)
  0084  RETURN    return R0..R-1
  ; ---------- proto0 [m_shopCellCount] ----------
    ; fn ?  line 55-59 np=1 va=0 ms=5 code=8 consts=2 upvals=3 protos=0
    ;   K[0]='GetLuaTable'
    ;   K[1]='Init'
    ;   upvals: activityType, self, cellName
    ;   locals: gameObject(0-8), cell(2-8)
    0000  SELF      R2 = R0[K0('GetLuaTable')] (self)
    0001  CALL      R1 = call(R1, 1 args, 1 rets)
    0002  SELF      R3 = R1[K1('Init')] (self)
    0003  GETUPVAL  R4 = activityType
    0004  CALL      R2 = call(R2, 0 args, 2 rets)
    0005  GETUPVAL  R2 = activityType
    0006  SETTABUP  self[R2] = R1
    0007  RETURN    return R0..R-1
