# AlbumActivity_View_JokerExchangeCardCell_1146.luac
; fn @JokerExchangeCardCell.lua  line 0-0 np=0 va=1 ms=2 code=24 consts=8 upvals=1 protos=6
;   K[0]='JokerExchangeCardCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnDestroy'
;   K[4]='UpdateSelectState'
;   K[5]='OnButtonClicked'
;   K[6]='_OnUpdataSelect'
;   K[7]='UpdateSelectUI'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('JokerExchangeCardCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('JokerExchangeCardCell')]
0003  GETTABUP  R1 = _ENV[K0('JokerExchangeCardCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('JokerExchangeCardCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('JokerExchangeCardCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('JokerExchangeCardCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('UpdateSelectState')] = R1
0014  GETTABUP  R0 = _ENV[K0('JokerExchangeCardCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('OnButtonClicked')] = R1
0017  GETTABUP  R0 = _ENV[K0('JokerExchangeCardCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('_OnUpdataSelect')] = R1
0020  GETTABUP  R0 = _ENV[K0('JokerExchangeCardCell')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('UpdateSelectUI')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 9-49 np=7 va=0 ms=17 code=110 consts=34 upvals=1 protos=0
  ;   K[0]='m_cardId'
  ;   K[1]='m_model'
  ;   K[2]='m_bShowNoneCard'
  ;   K[3]='m_selectcallback'
  ;   K[4]='m_exchangeWindow'
  ;   K[5]=nil
  ;   K[6]='UIUtil'
  ;   K[7]='UpdateSortingOrder'
  ;   K[8]='m_selectBgGo'
  ;   K[9]='GetSortingOrder'
  ;   K[10]=1
  ;   K[11]='GetCardCount'
  ;   K[12]='m_cardLuaTable'
  ;   K[13]='Init'
  ;   K[14]='AlbumActivityModel'
  ;   K[15]='GetActiveModel'
  ;   K[16]='IsGoldenJokerCardInUse'
  ;   K[17]='IsGoldCard'
  ;   K[18]='SetActive'
  ;   K[19]='m_lockGo'
  ;   K[20]='m_bLocked'
  ;   K[21]='m_completeGo'
  ;   K[22]='gameObject'
  ;   K[23]=0
  ;   K[24]='IsSelectCard'
  ;   K[25]='m_bSelect'
  ;   K[26]='UpdateSelectUI'
  ;   K[27]='m_bInit'
  ;   K[28]=true
  ;   K[29]='EventDispatcher'
  ;   K[30]='AddListener'
  ;   K[31]='EEventType'
  ;   K[32]='JokerUpdateExchangeSelect'
  ;   K[33]='_OnUpdataSelect'
  ;   upvals: _ENV
  ;   locals: self(0-110), cardId(0-110), model(0-110), bShowNoneCard(0-110), bOnlyOne(0-110), wnd(0-110), selectCallback(0-110), num(21-110), albumModel(37-110), isGoldJoker(44-110), bGoldCard(48-110), bLocked(51-110), bSelect(88-110)
  0000  SETTABLE  R0[K0('m_cardId')] = R1
  0001  SETTABLE  R0[K1('m_model')] = R2
  0002  SETTABLE  R0[K2('m_bShowNoneCard')] = R3
  0003  SETTABLE  R0[K3('m_selectcallback')] = R6
  0004  SETTABLE  R0[K4('m_exchangeWindow')] = R5
  0005  GETTABLE  R7 = R0[K4('m_exchangeWindow')]
  0006  EQ        if R1 eq K5(nil)   -> -127219
  0007  JMP       (jump)   -> 16
  0008  GETTABUP  R7 = _ENV[K6('UIUtil')]
  0009  GETTABLE  R7 = R7[K7('UpdateSortingOrder')]
  0010  GETTABLE  R8 = R0[K8('m_selectBgGo')]
  0011  GETTABLE  R9 = R0[K4('m_exchangeWindow')]
  0012  SELF      R10 = R9[K9('GetSortingOrder')] (self)
  0013  CALL      R9 = call(R9, 1 args, 1 rets)
  0014  ADD       R9 = K10(1) add R9
  0015  CALL      R7 = call(R7, 0 args, 2 rets)
  0016  GETTABLE  R7 = R0[K1('m_model')]
  0017  SELF      R8 = R7[K11('GetCardCount')] (self)
  0018  MOVE      R9 = R0
  0019  LOADBOOL  R10 = true
  0020  CALL      R7 = call(R7, 1 args, 3 rets)
  0021  GETTABLE  R8 = R0[K12('m_cardLuaTable')]
  0022  SELF      R9 = R8[K13('Init')] (self)
  0023  MOVE      R10 = R0
  0024  MOVE      R11 = R0
  0025  LT        if R1 lt K10(1)   -> -127195
  0026  JMP       (jump)   -> 28
  0027  LOADBOOL  R12 = false
  0028  LOADBOOL  R12 = true
  0029  LOADBOOL  R13 = true
  0030  MOVE      R14 = R0
  0031  LOADBOOL  R15 = true
  0032  LOADBOOL  R16 = false
  0033  CALL      R8 = call(R8, 0 args, 8 rets)
  0034  GETTABUP  R8 = _ENV[K14('AlbumActivityModel')]
  0035  GETTABLE  R8 = R8[K15('GetActiveModel')]
  0036  CALL      R8 = call(R8, 1 args, 0 rets)
  0037  EQ        if R1 eq K5(nil)   -> -126676
  0038  JMP       (jump)   -> 42
  0039  SELF      R10 = R8[K16('IsGoldenJokerCardInUse')] (self)
  0040  CALL      R9 = call(R9, 1 args, 1 rets)
  0041  JMP       (jump)   -> 44
  0042  LOADBOOL  R9 = false
  0043  LOADBOOL  R9 = true
  0044  GETTABLE  R10 = R0[K1('m_model')]
  0045  SELF      R11 = R10[K17('IsGoldCard')] (self)
  0046  MOVE      R12 = R0
  0047  CALL      R10 = call(R10, 1 args, 2 rets)
  0048  TESTSET   if R0 then R11   -> -125902
  0049  JMP       (jump)   -> 51
  0050  NOT       R11 = not R0
  0051  GETTABUP  R12 = _ENV[K6('UIUtil')]
  0052  GETTABLE  R12 = R12[K18('SetActive')]
  0053  GETTABLE  R13 = R0[K19('m_lockGo')]
  0054  MOVE      R14 = R0
  0055  CALL      R12 = call(R12, 0 args, 2 rets)
  0056  SETTABLE  R0[K20('m_bLocked')] = R11
  0057  GETTABUP  R12 = _ENV[K6('UIUtil')]
  0058  GETTABLE  R12 = R12[K18('SetActive')]
  0059  GETTABLE  R13 = R0[K21('m_completeGo')]
  0060  TESTSET   if R0 then R14   -> -128962
  0061  JMP       (jump)   -> 68
  0062  TEST      if not R11 then   -> -131007
  0063  JMP       (jump)   -> 66
  0064  LT        if R1 lt K10(1)   -> -127156
  0065  JMP       (jump)   -> 67
  0066  LOADBOOL  R14 = false
  0067  LOADBOOL  R14 = true
  0068  CALL      R12 = call(R12, 0 args, 2 rets)
  0069  TEST      if not R3 then   -> -131001
  0070  JMP       (jump)   -> 78
  0071  GETTABLE  R12 = R0[K22('gameObject')]
  0072  SELF      R13 = R12[K18('SetActive')] (self)
  0073  LE        if R1 le K23(0)   -> -127134
  0074  JMP       (jump)   -> 76
  0075  LOADBOOL  R14 = false
  0076  LOADBOOL  R14 = true
  0077  CALL      R12 = call(R12, 0 args, 2 rets)
  0078  GETTABLE  R12 = R0[K4('m_exchangeWindow')]
  0079  EQ        if R1 eq K5(nil)   -> -124586
  0080  JMP       (jump)   -> 86
  0081  GETTABLE  R12 = R0[K4('m_exchangeWindow')]
  0082  SELF      R13 = R12[K24('IsSelectCard')] (self)
  0083  GETTABLE  R14 = R0[K0('m_cardId')]
  0084  CALL      R12 = call(R12, 1 args, 2 rets)
  0085  JMP       (jump)   -> 88
  0086  LOADBOOL  R12 = false
  0087  LOADBOOL  R12 = true
  0088  SETTABLE  R0[K25('m_bSelect')] = R12
  0089  SELF      R14 = R0[K26('UpdateSelectUI')] (self)
  0090  MOVE      R15 = R0
  0091  CALL      R13 = call(R13, 0 args, 2 rets)
  0092  GETTABLE  R13 = R0[K27('m_bInit')]
  0093  TEST      if not R13 then   -> -130976
  0094  JMP       (jump)   -> 109
  0095  GETTABLE  R13 = R0[K4('m_exchangeWindow')]
  0096  EQ        if R1 eq K5(nil)   -> -124057
  0097  JMP       (jump)   -> 109
  0098  GETTABLE  R13 = R0[K3('m_selectcallback')]
  0099  EQ        if R1 eq K5(nil)   -> -124054
  0100  JMP       (jump)   -> 109
  0101  SETTABLE  R0[K27('m_bInit')] = K28(true)
  0102  GETTABUP  R13 = _ENV[K29('EventDispatcher')]
  0103  GETTABLE  R13 = R13[K30('AddListener')]
  0104  GETTABUP  R14 = _ENV[K31('EEventType')]
  0105  GETTABLE  R14 = R14[K32('JokerUpdateExchangeSelect')]
  0106  MOVE      R15 = R0
  0107  GETTABLE  R16 = R0[K33('_OnUpdataSelect')]
  0108  CALL      R13 = call(R13, 0 args, 3 rets)
  0109  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 51-53 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 [UpdateSelectState] ----------
  ; fn ?  line 55-63 np=1 va=0 ms=4 code=21 consts=8 upvals=0 protos=0
  ;   K[0]='gameObject'
  ;   K[1]='activeSelf'
  ;   K[2]='m_exchangeWindow'
  ;   K[3]=nil
  ;   K[4]='m_bSelect'
  ;   K[5]='IsSelectCard'
  ;   K[6]='m_cardId'
  ;   K[7]='UpdateSelectUI'
  ;   locals: self(0-21)
  0000  GETTABLE  R1 = R0[K0('gameObject')]
  0001  GETTABLE  R1 = R1[K1('activeSelf')]
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 7
  0004  GETTABLE  R1 = R0[K2('m_exchangeWindow')]
  0005  EQ        if R0 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 8
  0007  RETURN    return R0..R-1
  0008  GETTABLE  R1 = R0[K4('m_bSelect')]
  0009  TEST      if not R1 then   -> -131061
  0010  JMP       (jump)   -> 20
  0011  GETTABLE  R1 = R0[K2('m_exchangeWindow')]
  0012  SELF      R2 = R1[K5('IsSelectCard')] (self)
  0013  GETTABLE  R3 = R0[K6('m_cardId')]
  0014  CALL      R1 = call(R1, 1 args, 2 rets)
  0015  TEST      if not R1 then   -> -131054
  0016  JMP       (jump)   -> 20
  0017  SELF      R2 = R0[K7('UpdateSelectUI')] (self)
  0018  LOADBOOL  R3 = false
  0019  CALL      R1 = call(R1, 0 args, 2 rets)
  0020  RETURN    return R0..R-1
; ---------- proto3 [OnButtonClicked] ----------
  ; fn ?  line 65-87 np=1 va=0 ms=4 code=45 consts=16 upvals=1 protos=0
  ;   K[0]='m_exchangeWindow'
  ;   K[1]=nil
  ;   K[2]='m_selectcallback'
  ;   K[3]='m_bLocked'
  ;   K[4]='GM'
  ;   K[5]='UIManager'
  ;   K[6]='ShowPromptWithKey'
  ;   K[7]='golden_card_lock_tip'
  ;   K[8]='AudioModel'
  ;   K[9]='PlayEffect'
  ;   K[10]='AudioFileConfigName'
  ;   K[11]='SfxColdingClick'
  ;   K[12]='m_bSelect'
  ;   K[13]='UpdateSelectUI'
  ;   K[14]='m_cardId'
  ;   K[15]='SfxButtonClick'
  ;   upvals: _ENV
  ;   locals: self(0-45)
  0000  GETTABLE  R1 = R0[K0('m_exchangeWindow')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K2('m_selectcallback')]
  0004  EQ        if R0 eq K1(nil)   -> -130297
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R1 = R0[K3('m_bLocked')]
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 22
  0010  GETTABUP  R1 = _ENV[K4('GM')]
  0011  GETTABLE  R1 = R1[K5('UIManager')]
  0012  SELF      R2 = R1[K6('ShowPromptWithKey')] (self)
  0013  LOADK     R3 = K7 'golden_card_lock_tip'
  0014  CALL      R1 = call(R1, 0 args, 2 rets)
  0015  GETTABUP  R1 = _ENV[K4('GM')]
  0016  GETTABLE  R1 = R1[K8('AudioModel')]
  0017  SELF      R2 = R1[K9('PlayEffect')] (self)
  0018  GETTABUP  R3 = _ENV[K10('AudioFileConfigName')]
  0019  GETTABLE  R3 = R3[K11('SfxColdingClick')]
  0020  CALL      R1 = call(R1, 0 args, 2 rets)
  0021  RETURN    return R0..R-1
  0022  GETTABLE  R1 = R0[K12('m_bSelect')]
  0023  NOT       R1 = not R0
  0024  SETTABLE  R0[K12('m_bSelect')] = R1
  0025  SELF      R2 = R0[K13('UpdateSelectUI')] (self)
  0026  GETTABLE  R3 = R0[K12('m_bSelect')]
  0027  CALL      R1 = call(R1, 0 args, 2 rets)
  0028  GETTABLE  R1 = R0[K12('m_bSelect')]
  0029  TEST      if not R1 then   -> -131041
  0030  JMP       (jump)   -> 35
  0031  GETTABLE  R1 = R0[K2('m_selectcallback')]
  0032  GETTABLE  R2 = R0[K14('m_cardId')]
  0033  CALL      R1 = call(R1, 0 args, 1 rets)
  0034  JMP       (jump)   -> 38
  0035  GETTABLE  R1 = R0[K2('m_selectcallback')]
  0036  LOADNIL   R2..R2 = nil
  0037  CALL      R1 = call(R1, 0 args, 1 rets)
  0038  GETTABUP  R1 = _ENV[K4('GM')]
  0039  GETTABLE  R1 = R1[K8('AudioModel')]
  0040  SELF      R2 = R1[K9('PlayEffect')] (self)
  0041  GETTABUP  R3 = _ENV[K10('AudioFileConfigName')]
  0042  GETTABLE  R3 = R3[K15('SfxButtonClick')]
  0043  CALL      R1 = call(R1, 0 args, 2 rets)
  0044  RETURN    return R0..R-1
; ---------- proto4 [_OnUpdataSelect] ----------
  ; fn ?  line 89-97 np=2 va=0 ms=6 code=14 consts=6 upvals=0 protos=0
  ;   K[0]='cardId'
  ;   K[1]='m_cardId'
  ;   K[2]='m_exchangeWindow'
  ;   K[3]='IsSelectCard'
  ;   K[4]='m_bSelect'
  ;   K[5]='UpdateSelectUI'
  ;   locals: self(0-14), event(0-14), isSelect(9-14)
  0000  GETTABLE  R2 = R1[K0('cardId')]
  0001  GETTABLE  R3 = R0[K1('m_cardId')]
  0002  EQ        if R0 eq R3   -> -130041
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABLE  R2 = R0[K2('m_exchangeWindow')]
  0006  SELF      R3 = R2[K3('IsSelectCard')] (self)
  0007  GETTABLE  R4 = R0[K1('m_cardId')]
  0008  CALL      R2 = call(R2, 1 args, 2 rets)
  0009  SETTABLE  R0[K4('m_bSelect')] = R2
  0010  SELF      R4 = R0[K5('UpdateSelectUI')] (self)
  0011  GETTABLE  R5 = R0[K4('m_bSelect')]
  0012  CALL      R3 = call(R3, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
; ---------- proto5 [UpdateSelectUI] ----------
  ; fn ?  line 99-102 np=2 va=0 ms=6 code=10 consts=5 upvals=0 protos=0
  ;   K[0]='m_selectBgGo'
  ;   K[1]='SetActive'
  ;   K[2]='m_selectAnimator'
  ;   K[3]='SetBool'
  ;   K[4]='select'
  ;   locals: self(0-10), state(0-10)
  0000  GETTABLE  R2 = R0[K0('m_selectBgGo')]
  0001  SELF      R3 = R2[K1('SetActive')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  GETTABLE  R2 = R0[K2('m_selectAnimator')]
  0005  SELF      R3 = R2[K3('SetBool')] (self)
  0006  LOADK     R4 = K4 'select'
  0007  MOVE      R5 = R0
  0008  CALL      R2 = call(R2, 0 args, 3 rets)
  0009  RETURN    return R0..R-1
