# UI_Window_Notification_NotificationOpenWindow_643.luac
; fn @NotificationOpenWindow.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=9 upvals=1 protos=5
;   K[0]='NotificationOpenWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='BeforeOpenCheck'
;   K[5]='Init'
;   K[6]='ApplicationWillEnterForeground'
;   K[7]='OnRequestAuthorization'
;   K[8]='OnLateButtonClicked'
;   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('NotificationOpenWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('NotificationOpenWindow')]
0006  GETTABUP  R1 = _ENV[K0('NotificationOpenWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('NotificationOpenWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('BeforeOpenCheck')] = R1
0011  GETTABUP  R0 = _ENV[K0('NotificationOpenWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('NotificationOpenWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('ApplicationWillEnterForeground')] = R1
0017  GETTABUP  R0 = _ENV[K0('NotificationOpenWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnRequestAuthorization')] = R1
0020  GETTABUP  R0 = _ENV[K0('NotificationOpenWindow')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnLateButtonClicked')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 4-11 np=2 va=0 ms=5 code=18 consts=8 upvals=1 protos=0
  ;   K[0]='ENotiSceneDescKey'
  ;   K[1]='EnergyEmpty'
  ;   K[2]='GM'
  ;   K[3]='PropertyDataManager'
  ;   K[4]='GetPropertyNum'
  ;   K[5]='EPropertyType'
  ;   K[6]='Energy'
  ;   K[7]=10
  ;   upvals: _ENV
  ;   locals: self(0-18), descKey(0-18)
  0000  GETTABUP  R2 = _ENV[K0('ENotiSceneDescKey')]
  0001  GETTABLE  R2 = R2[K1('EnergyEmpty')]
  0002  EQ        if R1 eq R2   -> -130554
  0003  JMP       (jump)   -> 6
  0004  LOADBOOL  R2 = true
  0005  RETURN    return R2..R1
  0006  GETTABUP  R2 = _ENV[K2('GM')]
  0007  GETTABLE  R2 = R2[K3('PropertyDataManager')]
  0008  SELF      R3 = R2[K4('GetPropertyNum')] (self)
  0009  GETTABUP  R4 = _ENV[K5('EPropertyType')]
  0010  GETTABLE  R4 = R4[K6('Energy')]
  0011  CALL      R2 = call(R2, 1 args, 2 rets)
  0012  LT        if R1 lt K7(10)   -> -129771
  0013  JMP       (jump)   -> 15
  0014  LOADBOOL  R2 = false
  0015  LOADBOOL  R2 = true
  0016  RETURN    return R2..R1
  0017  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 13-22 np=2 va=0 ms=8 code=46 consts=26 upvals=1 protos=0
  ;   K[0]='m_descKey'
  ;   K[1]='PlayerPrefs'
  ;   K[2]='SetInt'
  ;   K[3]='EPlayerPrefKey'
  ;   K[4]='LastNotifiWindowPopTime'
  ;   K[5]='GM'
  ;   K[6]='GameModel'
  ;   K[7]='GetServerTime'
  ;   K[8]='GetInt'
  ;   K[9]='NotifiWindowPopTimes'
  ;   K[10]=0
  ;   K[11]=1
  ;   K[12]='m_descriptionText'
  ;   K[13]='text'
  ;   K[14]='GameTextModel'
  ;   K[15]='GetText'
  ;   K[16]='LogWindowAction'
  ;   K[17]='EBIType'
  ;   K[18]='UIActionType'
  ;   K[19]='Open'
  ;   K[20]='EBIReferType'
  ;   K[21]='AutoPopup'
  ;   K[22]='EventDispatcher'
  ;   K[23]='AddListener'
  ;   K[24]='EEventType'
  ;   K[25]='ApplicationWillEnterForeground'
  ;   upvals: _ENV
  ;   locals: self(0-46), descKey(0-46), times(16-46)
  0000  SETTABLE  R0[K0('m_descKey')] = R1
  0001  GETTABUP  R2 = _ENV[K1('PlayerPrefs')]
  0002  GETTABLE  R2 = R2[K2('SetInt')]
  0003  GETTABUP  R3 = _ENV[K3('EPlayerPrefKey')]
  0004  GETTABLE  R3 = R3[K4('LastNotifiWindowPopTime')]
  0005  GETTABUP  R4 = _ENV[K5('GM')]
  0006  GETTABLE  R4 = R4[K6('GameModel')]
  0007  SELF      R5 = R4[K7('GetServerTime')] (self)
  0008  CALL      R4 = call(R4, -1 args, 1 rets)
  0009  CALL      R2 = call(R2, 0 args, -1 rets)
  0010  GETTABUP  R2 = _ENV[K1('PlayerPrefs')]
  0011  GETTABLE  R2 = R2[K8('GetInt')]
  0012  GETTABUP  R3 = _ENV[K3('EPlayerPrefKey')]
  0013  GETTABLE  R3 = R3[K9('NotifiWindowPopTimes')]
  0014  LOADK     R4 = K10 0
  0015  CALL      R2 = call(R2, 1 args, 2 rets)
  0016  GETTABUP  R3 = _ENV[K1('PlayerPrefs')]
  0017  GETTABLE  R3 = R3[K2('SetInt')]
  0018  GETTABUP  R4 = _ENV[K3('EPlayerPrefKey')]
  0019  GETTABLE  R4 = R4[K9('NotifiWindowPopTimes')]
  0020  ADD       R5 = K11(1) add R2
  0021  CALL      R3 = call(R3, 0 args, 2 rets)
  0022  GETTABLE  R3 = R0[K12('m_descriptionText')]
  0023  GETTABUP  R4 = _ENV[K5('GM')]
  0024  GETTABLE  R4 = R4[K14('GameTextModel')]
  0025  SELF      R5 = R4[K15('GetText')] (self)
  0026  MOVE      R6 = R0
  0027  CALL      R4 = call(R4, 1 args, 2 rets)
  0028  SETTABLE  R3[K13('text')] = R4
  0029  SELF      R4 = R0[K16('LogWindowAction')] (self)
  0030  GETTABUP  R5 = _ENV[K17('EBIType')]
  0031  GETTABLE  R5 = R5[K18('UIActionType')]
  0032  GETTABLE  R5 = R5[K19('Open')]
  0033  NEWTABLE  R6 = {} (1 items)
  0034  GETTABUP  R7 = _ENV[K20('EBIReferType')]
  0035  GETTABLE  R7 = R7[K21('AutoPopup')]
  0036  SETLIST   setlist R6[B=1,C=1]
  0037  CALL      R3 = call(R3, 0 args, 3 rets)
  0038  GETTABUP  R3 = _ENV[K22('EventDispatcher')]
  0039  GETTABLE  R3 = R3[K23('AddListener')]
  0040  GETTABUP  R4 = _ENV[K24('EEventType')]
  0041  GETTABLE  R4 = R4[K25('ApplicationWillEnterForeground')]
  0042  MOVE      R5 = R0
  0043  GETTABLE  R6 = R0[K25('ApplicationWillEnterForeground')]
  0044  CALL      R3 = call(R3, 0 args, 3 rets)
  0045  RETURN    return R0..R-1
; ---------- proto2 [ApplicationWillEnterForeground] ----------
  ; fn ?  line 24-28 np=1 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='PlatformInterface'
  ;   K[1]='IsNotificationsEnabled'
  ;   K[2]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('PlatformInterface')]
  0001  GETTABLE  R1 = R1[K1('IsNotificationsEnabled')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 7
  0005  SELF      R2 = R0[K2('Close')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto3 [OnRequestAuthorization] ----------
  ; fn ?  line 30-33 np=1 va=0 ms=4 code=11 consts=7 upvals=1 protos=0
  ;   K[0]='LogWindowAction'
  ;   K[1]='EBIType'
  ;   K[2]='UIActionType'
  ;   K[3]='Click'
  ;   K[4]='GM'
  ;   K[5]='NotificationModel'
  ;   K[6]='TryOpenNotification'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  SELF      R2 = R0[K0('LogWindowAction')] (self)
  0001  GETTABUP  R3 = _ENV[K1('EBIType')]
  0002  GETTABLE  R3 = R3[K2('UIActionType')]
  0003  GETTABLE  R3 = R3[K3('Click')]
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  GETTABUP  R1 = _ENV[K4('GM')]
  0006  GETTABLE  R1 = R1[K5('NotificationModel')]
  0007  SELF      R2 = R1[K6('TryOpenNotification')] (self)
  0008  LOADBOOL  R3 = true
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  RETURN    return R0..R-1
; ---------- proto4 [OnLateButtonClicked] ----------
  ; fn ?  line 35-38 np=1 va=0 ms=4 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='LogWindowAction'
  ;   K[1]='EBIType'
  ;   K[2]='UIActionType'
  ;   K[3]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  SELF      R2 = R0[K0('LogWindowAction')] (self)
  0001  GETTABUP  R3 = _ENV[K1('EBIType')]
  0002  GETTABLE  R3 = R3[K2('UIActionType')]
  0003  GETTABLE  R3 = R3[K3('Close')]
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  SELF      R2 = R0[K3('Close')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
