# AlbumActivity_View_AlbumJokerExchangeCompleteWindow_1149.luac
; fn @AlbumJokerExchangeCompleteWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='AlbumJokerExchangeCompleteWindow'
;   K[1]='setmetatable'
;   K[2]='AlbumActivityBaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnCloseBtnClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('AlbumActivityBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('AlbumJokerExchangeCompleteWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('AlbumJokerExchangeCompleteWindow')]
0006  GETTABUP  R1 = _ENV[K0('AlbumJokerExchangeCompleteWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AlbumJokerExchangeCompleteWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumJokerExchangeCompleteWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnCloseBtnClick')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-26 np=3 va=0 ms=12 code=38 consts=12 upvals=1 protos=0
  ;   K[0]='AlbumActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='_GetModelByCardId'
  ;   K[3]='m_cardId'
  ;   K[4]='m_cardInfo'
  ;   K[5]='GetCardInfo'
  ;   K[6]=nil
  ;   K[7]='Close'
  ;   K[8]='m_num'
  ;   K[9]='GetCardCount'
  ;   K[10]=1
  ;   K[11]='m_cardLuaTable'
  ;   upvals: _ENV
  ;   locals: self(0-38), activityType(0-38), cardId(0-38), targetModel(8-38), bRed(29-38)
  0000  GETTABUP  R3 = _ENV[K0('AlbumActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 0 args, 2 rets)
  0005  SELF      R4 = R0[K2('_GetModelByCardId')] (self)
  0006  MOVE      R5 = R0
  0007  CALL      R3 = call(R3, 1 args, 2 rets)
  0008  SETTABLE  R0[K3('m_cardId')] = R2
  0009  SELF      R5 = R3[K5('GetCardInfo')] (self)
  0010  MOVE      R6 = R0
  0011  CALL      R4 = call(R4, 1 args, 2 rets)
  0012  SETTABLE  R0[K4('m_cardInfo')] = R4
  0013  GETTABLE  R4 = R0[K4('m_cardInfo')]
  0014  EQ        if R0 eq K6(nil)   -> -128746
  0015  JMP       (jump)   -> 19
  0016  SELF      R5 = R0[K7('Close')] (self)
  0017  CALL      R4 = call(R4, 0 args, 1 rets)
  0018  RETURN    return R0..R-1
  0019  SELF      R5 = R3[K9('GetCardCount')] (self)
  0020  MOVE      R6 = R0
  0021  LOADBOOL  R7 = true
  0022  CALL      R4 = call(R4, 1 args, 3 rets)
  0023  SETTABLE  R0[K8('m_num')] = R4
  0024  GETTABLE  R4 = R0[K8('m_num')]
  0025  EQ        if R1 eq K10(1)   -> -128731
  0026  JMP       (jump)   -> 28
  0027  LOADBOOL  R4 = false
  0028  LOADBOOL  R4 = true
  0029  GETTABLE  R5 = R0[K11('m_cardLuaTable')]
  0030  SELF      R6 = R5[K1('Init')] (self)
  0031  MOVE      R7 = R0
  0032  MOVE      R8 = R0
  0033  MOVE      R9 = R0
  0034  LOADBOOL  R10 = false
  0035  LOADNIL   R11..R11 = nil
  0036  CALL      R5 = call(R5, 0 args, 6 rets)
  0037  RETURN    return R0..R-1
; ---------- proto1 [OnCloseBtnClick] ----------
  ; fn ?  line 28-42 np=1 va=0 ms=8 code=36 consts=17 upvals=1 protos=0
  ;   K[0]='m_bClosed'
  ;   K[1]='GM'
  ;   K[2]='UIManager'
  ;   K[3]='GetOpenedViewByName'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='MainWindowPrefabName'
  ;   K[6]='GetSetCell'
  ;   K[7]='m_cardInfo'
  ;   K[8]='setId'
  ;   K[9]=nil
  ;   K[10]='FlyCard2SetCell'
  ;   K[11]='m_cardRect'
  ;   K[12]='gameObject'
  ;   K[13]='m_cardId'
  ;   K[14]='UIUtil'
  ;   K[15]='SetActive'
  ;   K[16]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-36), mainWindow(10-36), cell(16-36)
  0000  GETTABLE  R1 = R0[K0('m_bClosed')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABUP  R1 = _ENV[K1('GM')]
  0005  GETTABLE  R1 = R1[K2('UIManager')]
  0006  SELF      R2 = R1[K3('GetOpenedViewByName')] (self)
  0007  GETTABLE  R3 = R0[K4('m_activityDefinition')]
  0008  GETTABLE  R3 = R3[K5('MainWindowPrefabName')]
  0009  CALL      R1 = call(R1, 1 args, 2 rets)
  0010  TESTSET   if R0 then R2   -> -130548
  0011  JMP       (jump)   -> 16
  0012  SELF      R3 = R1[K6('GetSetCell')] (self)
  0013  GETTABLE  R4 = R0[K7('m_cardInfo')]
  0014  GETTABLE  R4 = R4[K8('setId')]
  0015  CALL      R2 = call(R2, 1 args, 2 rets)
  0016  EQ        if R1 eq K9(nil)   -> -130277
  0017  JMP       (jump)   -> 33
  0018  EQ        if R1 eq K9(nil)   -> -129763
  0019  JMP       (jump)   -> 33
  0020  SELF      R4 = R1[K10('FlyCard2SetCell')] (self)
  0021  GETTABLE  R5 = R0[K11('m_cardRect')]
  0022  GETTABLE  R5 = R5[K12('gameObject')]
  0023  GETTABLE  R6 = R0[K13('m_cardId')]
  0024  GETTABLE  R7 = R0[K7('m_cardInfo')]
  0025  GETTABLE  R7 = R7[K8('setId')]
  0026  CALL      R3 = call(R3, 0 args, 4 rets)
  0027  GETTABUP  R3 = _ENV[K14('UIUtil')]
  0028  GETTABLE  R3 = R3[K15('SetActive')]
  0029  GETTABLE  R4 = R0[K11('m_cardRect')]
  0030  GETTABLE  R4 = R4[K12('gameObject')]
  0031  LOADBOOL  R5 = false
  0032  CALL      R3 = call(R3, 0 args, 2 rets)
  0033  SELF      R4 = R0[K16('Close')] (self)
  0034  CALL      R3 = call(R3, 0 args, 1 rets)
  0035  RETURN    return R0..R-1
