# EnergyBoost_View_EnergyBoostPopupHelper_921.luac
; fn @EnergyBoostPopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=29 consts=14 upvals=1 protos=4
;   K[0]='EnergyBoostPopupHelper'
;   K[1]='setmetatable'
;   K[2]='canPopScene'
;   K[3]='EPopupScene'
;   K[4]='Main'
;   K[5]=true
;   K[6]='Board'
;   K[7]='BasePopupHelper'
;   K[8]='__index'
;   K[9]='Create'
;   K[10]='EnergyBoostPopupHelper'
;   K[11]='Init'
;   K[12]='_OnEnergyBoostModeChanged'
;   K[13]='CheckPopup'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  NEWTABLE  R2 = {} (0 items)
0003  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0004  GETTABLE  R3 = R3[K4('Main')]
0005  SETTABLE  R2[R3] = K5(true)
0006  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0007  GETTABLE  R3 = R3[K6('Board')]
0008  SETTABLE  R2[R3] = K5(true)
0009  SETTABLE  R1[K2('canPopScene')] = R2
0010  GETTABUP  R2 = _ENV[K7('BasePopupHelper')]
0011  CALL      R0 = call(R0, 1 args, 2 rets)
0012  SETTABUP  _ENV[K0('EnergyBoostPopupHelper')] = R0
0013  GETTABUP  R0 = _ENV[K0('EnergyBoostPopupHelper')]
0014  GETTABUP  R1 = _ENV[K0('EnergyBoostPopupHelper')]
0015  SETTABLE  R0[K8('__index')] = R1
0016  GETTABUP  R0 = _ENV[K0('EnergyBoostPopupHelper')]
0017  CLOSURE   R1 = closure proto0
0018  SETTABLE  R0[K9('Create')] = R1
0019  GETTABUP  R0 = _ENV[K10('EnergyBoostPopupHelper')]
0020  CLOSURE   R1 = closure proto1
0021  SETTABLE  R0[K11('Init')] = R1
0022  GETTABUP  R0 = _ENV[K10('EnergyBoostPopupHelper')]
0023  CLOSURE   R1 = closure proto2
0024  SETTABLE  R0[K12('_OnEnergyBoostModeChanged')] = R1
0025  GETTABUP  R0 = _ENV[K10('EnergyBoostPopupHelper')]
0026  CLOSURE   R1 = closure proto3
0027  SETTABLE  R0[K13('CheckPopup')] = R1
0028  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 9-13 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='EnergyBoostPopupHelper'
  ;   K[2]='Init'
  ;   upvals: _ENV
  ;   locals: helper(4-8)
  0000  GETTABUP  R0 = _ENV[K0('setmetatable')]
  0001  NEWTABLE  R1 = {} (0 items)
  0002  GETTABUP  R2 = _ENV[K1('EnergyBoostPopupHelper')]
  0003  CALL      R0 = call(R0, 1 args, 2 rets)
  0004  SELF      R2 = R0[K2('Init')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
  0007  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 15-18 np=1 va=0 ms=5 code=12 consts=7 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='EEventType'
  ;   K[5]='EnergyBoostModeChanged'
  ;   K[6]='_OnEnergyBoostModeChanged'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('BasePopupHelper')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('AddListener')]
  0006  GETTABUP  R2 = _ENV[K4('EEventType')]
  0007  GETTABLE  R2 = R2[K5('EnergyBoostModeChanged')]
  0008  MOVE      R3 = R0
  0009  GETTABLE  R4 = R0[K6('_OnEnergyBoostModeChanged')]
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  RETURN    return R0..R-1
; ---------- proto2 [_OnEnergyBoostModeChanged] ----------
  ; fn ?  line 20-22 np=1 va=0 ms=4 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='SetNeedCheckPopup'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('SetNeedCheckPopup')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto3 [CheckPopup] ----------
  ; fn ?  line 24-47 np=1 va=0 ms=6 code=71 consts=19 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='MiscModel'
  ;   K[2]='GetEnergyBoostWindowOpenStateInNumber'
  ;   K[3]='EnergyBoostModel'
  ;   K[4]='IsEnergyBoostConfigOn'
  ;   K[5]='ShouldAutoPop'
  ;   K[6]='GetTriggerBoostType'
  ;   K[7]='SetEnergyBoostWindowOpenState'
  ;   K[8]='SceneManager'
  ;   K[9]='GetGameMode'
  ;   K[10]='EGameMode'
  ;   K[11]='Board'
  ;   K[12]='IsFirstTime'
  ;   K[13]='UIPrefabConfigName'
  ;   K[14]='EnergyBoostPrompt'
  ;   K[15]='ShowActivationPrompt'
  ;   K[16]='EnergyBoostSettingWindow'
  ;   K[17]='EEnergyBoostType'
  ;   K[18]='None'
  ;   upvals: _ENV
  ;   locals: self(0-71), openState(4-71), eTriggerType(20-57)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MiscModel')]
  0002  SELF      R2 = R1[K2('GetEnergyBoostWindowOpenStateInNumber')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABUP  R2 = _ENV[K0('GM')]
  0005  GETTABLE  R2 = R2[K3('EnergyBoostModel')]
  0006  SELF      R3 = R2[K4('IsEnergyBoostConfigOn')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  TEST      if not R2 then   -> -131062
  0009  JMP       (jump)   -> 58
  0010  GETTABUP  R2 = _ENV[K0('GM')]
  0011  GETTABLE  R2 = R2[K3('EnergyBoostModel')]
  0012  SELF      R3 = R2[K5('ShouldAutoPop')] (self)
  0013  CALL      R2 = call(R2, 1 args, 1 rets)
  0014  TEST      if not R2 then   -> -131056
  0015  JMP       (jump)   -> 68
  0016  GETTABUP  R2 = _ENV[K0('GM')]
  0017  GETTABLE  R2 = R2[K3('EnergyBoostModel')]
  0018  SELF      R3 = R2[K6('GetTriggerBoostType')] (self)
  0019  CALL      R2 = call(R2, 1 args, 1 rets)
  0020  GETTABUP  R3 = _ENV[K0('GM')]
  0021  GETTABLE  R3 = R3[K1('MiscModel')]
  0022  SELF      R4 = R3[K7('SetEnergyBoostWindowOpenState')] (self)
  0023  MOVE      R5 = R0
  0024  CALL      R3 = call(R3, 0 args, 2 rets)
  0025  GETTABUP  R3 = _ENV[K0('GM')]
  0026  GETTABLE  R3 = R3[K8('SceneManager')]
  0027  SELF      R4 = R3[K9('GetGameMode')] (self)
  0028  CALL      R3 = call(R3, 1 args, 1 rets)
  0029  GETTABUP  R4 = _ENV[K10('EGameMode')]
  0030  GETTABLE  R4 = R4[K11('Board')]
  0031  EQ        if R0 eq R4   -> -129499
  0032  JMP       (jump)   -> 51
  0033  GETTABUP  R3 = _ENV[K0('GM')]
  0034  GETTABLE  R3 = R3[K3('EnergyBoostModel')]
  0035  SELF      R4 = R3[K12('IsFirstTime')] (self)
  0036  CALL      R3 = call(R3, 1 args, 1 rets)
  0037  TEST      if not R3 then   -> -131033
  0038  JMP       (jump)   -> 46
  0039  GETTABUP  R3 = _ENV[K13('UIPrefabConfigName')]
  0040  GETTABLE  R3 = R3[K14('EnergyBoostPrompt')]
  0041  NEWTABLE  R4 = {} (1 items)
  0042  LOADBOOL  R5 = true
  0043  SETLIST   setlist R4[B=1,C=1]
  0044  RETURN    return R3..R2
  0045  JMP       (jump)   -> 68
  0046  GETTABUP  R3 = _ENV[K0('GM')]
  0047  GETTABLE  R3 = R3[K3('EnergyBoostModel')]
  0048  SELF      R4 = R3[K15('ShowActivationPrompt')] (self)
  0049  CALL      R3 = call(R3, 0 args, 1 rets)
  0050  JMP       (jump)   -> 68
  0051  GETTABUP  R3 = _ENV[K13('UIPrefabConfigName')]
  0052  GETTABLE  R3 = R3[K16('EnergyBoostSettingWindow')]
  0053  NEWTABLE  R4 = {} (1 items)
  0054  LOADBOOL  R5 = true
  0055  SETLIST   setlist R4[B=1,C=1]
  0056  RETURN    return R3..R2
  0057  JMP       (jump)   -> 68
  0058  GETTABUP  R2 = _ENV[K17('EEnergyBoostType')]
  0059  GETTABLE  R2 = R2[K18('None')]
  0060  LT        if R0 lt R1   -> -129985
  0061  JMP       (jump)   -> 68
  0062  GETTABUP  R2 = _ENV[K0('GM')]
  0063  GETTABLE  R2 = R2[K1('MiscModel')]
  0064  SELF      R3 = R2[K7('SetEnergyBoostWindowOpenState')] (self)
  0065  GETTABUP  R4 = _ENV[K17('EEnergyBoostType')]
  0066  GETTABLE  R4 = R4[K18('None')]
  0067  CALL      R2 = call(R2, 0 args, 2 rets)
  0068  LOADNIL   R2..R2 = nil
  0069  RETURN    return R2..R1
  0070  RETURN    return R0..R-1
