# BlockActivity_View_BlockActivityBaseWindow_1521.luac
; fn @BlockActivityBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=32 consts=12 upvals=1 protos=4
;   K[0]='BlockActivityBaseWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='BeforeOpenCheck'
;   K[5]='Init'
;   K[6]='OnDestroy'
;   K[7]='OnStateChanged'
;   K[8]='BlockActivityHelpWindow'
;   K[9]='windowMaskAlpha'
;   K[10]='EWindowMaskAlpha'
;   K[11]='Dark'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('BlockActivityBaseWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('BlockActivityBaseWindow')]
0006  GETTABUP  R1 = _ENV[K0('BlockActivityBaseWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('BlockActivityBaseWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('BeforeOpenCheck')] = R1
0011  GETTABUP  R0 = _ENV[K0('BlockActivityBaseWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('BlockActivityBaseWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnDestroy')] = R1
0017  GETTABUP  R0 = _ENV[K0('BlockActivityBaseWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnStateChanged')] = R1
0020  GETTABUP  R0 = _ENV[K1('setmetatable')]
0021  NEWTABLE  R1 = {} (0 items)
0022  GETTABUP  R2 = _ENV[K10('EWindowMaskAlpha')]
0023  GETTABLE  R2 = R2[K11('Dark')]
0024  SETTABLE  R1[K9('windowMaskAlpha')] = R2
0025  GETTABUP  R2 = _ENV[K0('BlockActivityBaseWindow')]
0026  CALL      R0 = call(R0, 1 args, 2 rets)
0027  SETTABUP  _ENV[K8('BlockActivityHelpWindow')] = R0
0028  GETTABUP  R0 = _ENV[K8('BlockActivityHelpWindow')]
0029  GETTABUP  R1 = _ENV[K8('BlockActivityHelpWindow')]
0030  SETTABLE  R0[K3('__index')] = R1
0031  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 4-13 np=1 va=0 ms=10 code=26 consts=8 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='BlockActivityDefinition'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='GetState'
  ;   K[6]='ActivityState'
  ;   K[7]='Released'
  ;   upvals: _ENV
  ;   locals: self(0-26), model(1-26), (for generator)(4-23), (for state)(4-23), (for control)(4-23), activityType(5-21), _(5-21)
  0000  LOADNIL   R1..R1 = nil
  0001  GETTABUP  R2 = _ENV[K0('pairs')]
  0002  GETTABUP  R3 = _ENV[K1('BlockActivityDefinition')]
  0003  CALL      R2 = call(R2, 3 args, 1 rets)
  0004  JMP       (jump)   -> 21
  0005  GETTABUP  R7 = _ENV[K2('GM')]
  0006  GETTABLE  R7 = R7[K3('ActivityManager')]
  0007  SELF      R8 = R7[K4('GetModel')] (self)
  0008  MOVE      R9 = R0
  0009  CALL      R7 = call(R7, 1 args, 2 rets)
  0010  MOVE      R1 = R0
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 21
  0013  SELF      R8 = R1[K5('GetState')] (self)
  0014  CALL      R7 = call(R7, 1 args, 1 rets)
  0015  GETTABUP  R8 = _ENV[K6('ActivityState')]
  0016  GETTABLE  R8 = R8[K7('Released')]
  0017  EQ        if R1 eq R8   -> -127461
  0018  JMP       (jump)   -> 21
  0019  LOADBOOL  R7 = true
  0020  RETURN    return R7..R6
  0021  TFORCALL  tforcall R2
  0022  TFORLOOP  tforloop R4(sBx=-18)   -> 5
  0023  LOADBOOL  R2 = false
  0024  RETURN    return R2..R1
  0025  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 15-29 np=3 va=0 ms=8 code=40 consts=22 upvals=1 protos=0
  ;   K[0]='m_activityType'
  ;   K[1]='m_model'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='SetWindowOpened'
  ;   K[8]='AddHandlerAndRecordMap'
  ;   K[9]='event'
  ;   K[10]='BlockActivityEventType'
  ;   K[11]='StateChanged'
  ;   K[12]='obj'
  ;   K[13]='method'
  ;   K[14]='OnStateChanged'
  ;   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-40), activityType(0-40), bUserClick(0-40)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  GETTABUP  R3 = _ENV[K2('GM')]
  0002  GETTABLE  R3 = R3[K3('ActivityManager')]
  0003  SELF      R4 = R3[K4('GetModel')] (self)
  0004  MOVE      R5 = R0
  0005  CALL      R3 = call(R3, 1 args, 2 rets)
  0006  SETTABLE  R0[K1('m_model')] = R3
  0007  GETTABLE  R3 = R0[K1('m_model')]
  0008  SELF      R4 = R3[K6('GetActivityDefinition')] (self)
  0009  CALL      R3 = call(R3, 1 args, 1 rets)
  0010  SETTABLE  R0[K5('m_activityDefinition')] = R3
  0011  GETTABLE  R3 = R0[K1('m_model')]
  0012  SELF      R4 = R3[K7('SetWindowOpened')] (self)
  0013  CALL      R3 = call(R3, 0 args, 1 rets)
  0014  GETTABUP  R3 = _ENV[K8('AddHandlerAndRecordMap')]
  0015  GETTABLE  R4 = R0[K1('m_model')]
  0016  GETTABLE  R4 = R4[K9('event')]
  0017  GETTABUP  R5 = _ENV[K10('BlockActivityEventType')]
  0018  GETTABLE  R5 = R5[K11('StateChanged')]
  0019  NEWTABLE  R6 = {} (0 items)
  0020  SETTABLE  R6[K12('obj')] = R0
  0021  GETTABLE  R7 = R0[K14('OnStateChanged')]
  0022  SETTABLE  R6[K13('method')] = R7
  0023  CALL      R3 = call(R3, 0 args, 3 rets)
  0024  SELF      R4 = R0[K15('LogWindowAction')] (self)
  0025  GETTABUP  R5 = _ENV[K16('EBIType')]
  0026  GETTABLE  R5 = R5[K17('UIActionType')]
  0027  GETTABLE  R5 = R5[K18('Open')]
  0028  NEWTABLE  R6 = {} (1 items)
  0029  TEST      if not R2 then   -> -131041
  0030  JMP       (jump)   -> 35
  0031  GETTABUP  R7 = _ENV[K19('EBIReferType')]
  0032  GETTABLE  R7 = R7[K20('UserClick')]
  0033  TEST      if not R7 then   -> -131036
  0034  JMP       (jump)   -> 37
  0035  GETTABUP  R7 = _ENV[K19('EBIReferType')]
  0036  GETTABLE  R7 = R7[K21('AutoPopup')]
  0037  SETLIST   setlist R6[B=1,C=1]
  0038  CALL      R3 = call(R3, 0 args, 3 rets)
  0039  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 31-36 np=1 va=0 ms=4 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='RemoveAllHandlers'
  ;   K[5]='event'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_model')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R1 = _ENV[K4('RemoveAllHandlers')]
  0008  GETTABLE  R2 = R0[K2('m_model')]
  0009  GETTABLE  R2 = R2[K5('event')]
  0010  MOVE      R3 = R0
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
; ---------- proto3 [OnStateChanged] ----------
  ; fn ?  line 38-40 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
