# SurpriseChest_View_SurpriseChestBaseWindow_774.luac
; fn @SurpriseChestBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=8 upvals=1 protos=1
;   K[0]='SurpriseChestBaseWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='BaseWindow'
;   K[6]='__index'
;   K[7]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  GETTABUP  R2 = _ENV[K5('BaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('SurpriseChestBaseWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('SurpriseChestBaseWindow')]
0009  GETTABUP  R1 = _ENV[K0('SurpriseChestBaseWindow')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('SurpriseChestBaseWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('Init')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-15 np=3 va=0 ms=8 code=27 consts=13 upvals=1 protos=0
  ;   K[0]=nil
  ;   K[1]='m_model'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='SetWindowOpened'
  ;   K[6]='LogWindowAction'
  ;   K[7]='EBIType'
  ;   K[8]='UIActionType'
  ;   K[9]='Open'
  ;   K[10]='EBIReferType'
  ;   K[11]='UserClick'
  ;   K[12]='AutoPopup'
  ;   upvals: _ENV
  ;   locals: self(0-27), activityType(0-27), bUserClick(0-27)
  0000  EQ        if R1 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 11
  0002  GETTABUP  R3 = _ENV[K2('GM')]
  0003  GETTABLE  R3 = R3[K3('ActivityManager')]
  0004  SELF      R4 = R3[K4('GetModel')] (self)
  0005  MOVE      R5 = R0
  0006  CALL      R3 = call(R3, 1 args, 2 rets)
  0007  SETTABLE  R0[K1('m_model')] = R3
  0008  GETTABLE  R3 = R0[K1('m_model')]
  0009  SELF      R4 = R3[K5('SetWindowOpened')] (self)
  0010  CALL      R3 = call(R3, 0 args, 1 rets)
  0011  SELF      R4 = R0[K6('LogWindowAction')] (self)
  0012  GETTABUP  R5 = _ENV[K7('EBIType')]
  0013  GETTABLE  R5 = R5[K8('UIActionType')]
  0014  GETTABLE  R5 = R5[K9('Open')]
  0015  NEWTABLE  R6 = {} (1 items)
  0016  TEST      if not R2 then   -> -131054
  0017  JMP       (jump)   -> 22
  0018  GETTABUP  R7 = _ENV[K10('EBIReferType')]
  0019  GETTABLE  R7 = R7[K11('UserClick')]
  0020  TEST      if not R7 then   -> -131049
  0021  JMP       (jump)   -> 24
  0022  GETTABUP  R7 = _ENV[K10('EBIReferType')]
  0023  GETTABLE  R7 = R7[K12('AutoPopup')]
  0024  SETLIST   setlist R6[B=1,C=1]
  0025  CALL      R3 = call(R3, 0 args, 3 rets)
  0026  RETURN    return R0..R-1
