# UI_Window_Promotion_CrossPromotionPermissionWindow_666.luac
; fn @CrossPromotionPermissionWindow.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='CrossPromotionPermissionWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnAgree'
;   K[6]='OnCloseBtnClick'
;   K[7]='OnCloseFinish'
;   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('CrossPromotionPermissionWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('CrossPromotionPermissionWindow')]
0006  GETTABUP  R1 = _ENV[K0('CrossPromotionPermissionWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('CrossPromotionPermissionWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('CrossPromotionPermissionWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnAgree')] = R1
0014  GETTABUP  R0 = _ENV[K0('CrossPromotionPermissionWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnCloseBtnClick')] = R1
0017  GETTABUP  R0 = _ENV[K0('CrossPromotionPermissionWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnCloseFinish')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-9 np=1 va=0 ms=6 code=10 consts=6 upvals=1 protos=0
  ;   K[0]='LogWindowAction'
  ;   K[1]='EBIType'
  ;   K[2]='UIActionType'
  ;   K[3]='Open'
  ;   K[4]='EBIReferType'
  ;   K[5]='UserClick'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('LogWindowAction')] (self)
  0001  GETTABUP  R3 = _ENV[K1('EBIType')]
  0002  GETTABLE  R3 = R3[K2('UIActionType')]
  0003  GETTABLE  R3 = R3[K3('Open')]
  0004  NEWTABLE  R4 = {} (1 items)
  0005  GETTABUP  R5 = _ENV[K4('EBIReferType')]
  0006  GETTABLE  R5 = R5[K5('UserClick')]
  0007  SETLIST   setlist R4[B=1,C=1]
  0008  CALL      R1 = call(R1, 0 args, 3 rets)
  0009  RETURN    return R0..R-1
; ---------- proto1 [OnAgree] ----------
  ; fn ?  line 11-15 np=1 va=0 ms=5 code=15 consts=9 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='CrossPromotionModel'
  ;   K[2]='SetCPPermission'
  ;   K[3]=1
  ;   K[4]='BIManager'
  ;   K[5]='LogAction'
  ;   K[6]='EBIType'
  ;   K[7]='CrossPromotionPermission'
  ;   K[8]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('CrossPromotionModel')]
  0002  SELF      R2 = R1[K2('SetCPPermission')] (self)
  0003  LOADK     R3 = K3 1
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  GETTABUP  R1 = _ENV[K0('GM')]
  0006  GETTABLE  R1 = R1[K4('BIManager')]
  0007  SELF      R2 = R1[K5('LogAction')] (self)
  0008  GETTABUP  R3 = _ENV[K6('EBIType')]
  0009  GETTABLE  R3 = R3[K7('CrossPromotionPermission')]
  0010  LOADK     R4 = K3 1
  0011  CALL      R1 = call(R1, 0 args, 3 rets)
  0012  SELF      R2 = R0[K8('Close')] (self)
  0013  CALL      R1 = call(R1, 0 args, 1 rets)
  0014  RETURN    return R0..R-1
; ---------- proto2 [OnCloseBtnClick] ----------
  ; fn ?  line 17-20 np=1 va=0 ms=5 code=12 consts=8 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseBtnClick'
  ;   K[2]='GM'
  ;   K[3]='BIManager'
  ;   K[4]='LogAction'
  ;   K[5]='EBIType'
  ;   K[6]='CrossPromotionPermission'
  ;   K[7]=0
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseBtnClick')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('BIManager')]
  0006  SELF      R2 = R1[K4('LogAction')] (self)
  0007  GETTABUP  R3 = _ENV[K5('EBIType')]
  0008  GETTABLE  R3 = R3[K6('CrossPromotionPermission')]
  0009  LOADK     R4 = K7 0
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  RETURN    return R0..R-1
; ---------- proto3 [OnCloseFinish] ----------
  ; fn ?  line 23-28 np=1 va=0 ms=3 code=15 consts=6 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseFinish'
  ;   K[2]='GM'
  ;   K[3]='CrossPromotionModel'
  ;   K[4]='IsCPPermission'
  ;   K[5]='OpenCrossPromotionWindow'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseFinish')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('CrossPromotionModel')]
  0006  SELF      R2 = R1[K4('IsCPPermission')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 14
  0010  GETTABUP  R1 = _ENV[K2('GM')]
  0011  GETTABLE  R1 = R1[K3('CrossPromotionModel')]
  0012  SELF      R2 = R1[K5('OpenCrossPromotionWindow')] (self)
  0013  CALL      R1 = call(R1, 0 args, 1 rets)
  0014  RETURN    return R0..R-1
