# AlbumActivity_View_LimitAlbumBaseWindow_1176.luac
; fn @LimitAlbumBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=19 consts=12 upvals=1 protos=2
;   K[0]='LimitAlbumBaseWindow'
;   K[1]='setmetatable'
;   K[2]='bCloseByStateChanged'
;   K[3]=true
;   K[4]='disableEffectWhenCloseView'
;   K[5]='bAutoBI'
;   K[6]='bCloseWhenLimitAlbumStateChanged'
;   K[7]=false
;   K[8]='BaseWindow'
;   K[9]='__index'
;   K[10]='Init'
;   K[11]='TryCloseByStateChanged'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('bCloseByStateChanged')] = K3(true)
0003  SETTABLE  R1[K4('disableEffectWhenCloseView')] = K3(true)
0004  SETTABLE  R1[K5('bAutoBI')] = K3(true)
0005  SETTABLE  R1[K6('bCloseWhenLimitAlbumStateChanged')] = K7(false)
0006  GETTABUP  R2 = _ENV[K8('BaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('LimitAlbumBaseWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('LimitAlbumBaseWindow')]
0010  GETTABUP  R1 = _ENV[K0('LimitAlbumBaseWindow')]
0011  SETTABLE  R0[K9('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('LimitAlbumBaseWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K10('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('LimitAlbumBaseWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K11('TryCloseByStateChanged')] = R1
0018  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 11-27 np=3 va=0 ms=8 code=44 consts=22 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]='m_id'
  ;   K[5]='GetId'
  ;   K[6]='m_activityType'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='GetActivityDefinition'
  ;   K[9]='bCloseByStateChanged'
  ;   K[10]='EventDispatcher'
  ;   K[11]='AddListener'
  ;   K[12]='StateChangedEvent'
  ;   K[13]='TryCloseByStateChanged'
  ;   K[14]='bAutoBI'
  ;   K[15]='LogWindowAction'
  ;   K[16]='EBIType'
  ;   K[17]='UIActionType'
  ;   K[18]='Open'
  ;   K[19]='EBIReferType'
  ;   K[20]='UserClick'
  ;   K[21]='AutoPopup'
  ;   upvals: _ENV
  ;   locals: self(0-44), activityType(0-44), bUserClick(0-44)
  0000  GETTABUP  R3 = _ENV[K1('GM')]
  0001  GETTABLE  R3 = R3[K2('ActivityManager')]
  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  GETTABLE  R3 = R0[K0('m_model')]
  0007  SELF      R4 = R3[K5('GetId')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  SETTABLE  R0[K4('m_id')] = R3
  0010  SETTABLE  R0[K6('m_activityType')] = R1
  0011  GETTABLE  R3 = R0[K0('m_model')]
  0012  SELF      R4 = R3[K8('GetActivityDefinition')] (self)
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  SETTABLE  R0[K7('m_activityDefinition')] = R3
  0015  GETTABLE  R3 = R0[K9('bCloseByStateChanged')]
  0016  TEST      if not R3 then   -> -131054
  0017  JMP       (jump)   -> 25
  0018  GETTABUP  R3 = _ENV[K10('EventDispatcher')]
  0019  GETTABLE  R3 = R3[K11('AddListener')]
  0020  GETTABLE  R4 = R0[K7('m_activityDefinition')]
  0021  GETTABLE  R4 = R4[K12('StateChangedEvent')]
  0022  MOVE      R5 = R0
  0023  GETTABLE  R6 = R0[K13('TryCloseByStateChanged')]
  0024  CALL      R3 = call(R3, 0 args, 3 rets)
  0025  GETTABLE  R3 = R0[K14('bAutoBI')]
  0026  TEST      if not R3 then   -> -131044
  0027  JMP       (jump)   -> 43
  0028  SELF      R4 = R0[K15('LogWindowAction')] (self)
  0029  GETTABUP  R5 = _ENV[K16('EBIType')]
  0030  GETTABLE  R5 = R5[K17('UIActionType')]
  0031  GETTABLE  R5 = R5[K18('Open')]
  0032  NEWTABLE  R6 = {} (1 items)
  0033  TEST      if not R2 then   -> -131037
  0034  JMP       (jump)   -> 39
  0035  GETTABUP  R7 = _ENV[K19('EBIReferType')]
  0036  GETTABLE  R7 = R7[K20('UserClick')]
  0037  TEST      if not R7 then   -> -131032
  0038  JMP       (jump)   -> 41
  0039  GETTABUP  R7 = _ENV[K19('EBIReferType')]
  0040  GETTABLE  R7 = R7[K21('AutoPopup')]
  0041  SETLIST   setlist R6[B=1,C=1]
  0042  CALL      R3 = call(R3, 0 args, 3 rets)
  0043  RETURN    return R0..R-1
; ---------- proto1 [TryCloseByStateChanged] ----------
  ; fn ?  line 29-31 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='Close'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
