# Model_UserData_EnergyFullNotificationHelper_74.luac
; fn @EnergyFullNotificationHelper.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='EnergyFullNotificationHelper'
;   K[1]='setmetatable'
;   K[2]='BaseNotificationHelper'
;   K[3]='__index'
;   K[4]='IsSceneExist'
;   K[5]='Generate'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseNotificationHelper')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('EnergyFullNotificationHelper')] = R0
0005  GETTABUP  R0 = _ENV[K0('EnergyFullNotificationHelper')]
0006  GETTABUP  R1 = _ENV[K0('EnergyFullNotificationHelper')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('EnergyFullNotificationHelper')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('IsSceneExist')] = R1
0011  GETTABUP  R0 = _ENV[K0('EnergyFullNotificationHelper')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Generate')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [IsSceneExist] ----------
  ; fn ?  line 6-12 np=1 va=0 ms=2 code=9 consts=2 upvals=1 protos=0
  ;   K[0]='NotificationScene'
  ;   K[1]='EnergyRefill'
  ;   upvals: _ENV
  ;   locals: strScene(0-9)
  0000  GETTABUP  R1 = _ENV[K0('NotificationScene')]
  0001  GETTABLE  R1 = R1[K1('EnergyRefill')]
  0002  EQ        if R0 eq R1   -> -131067
  0003  JMP       (jump)   -> 6
  0004  LOADBOOL  R1 = true
  0005  RETURN    return R1..R0
  0006  LOADBOOL  R1 = false
  0007  RETURN    return R1..R0
  0008  RETURN    return R0..R-1
; ---------- proto1 [Generate] ----------
  ; fn ?  line 14-37 np=1 va=0 ms=7 code=61 consts=22 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='EnergyModel'
  ;   K[2]='GetEnergy'
  ;   K[3]='EnergyType'
  ;   K[4]='Main'
  ;   K[5]=50
  ;   K[6]='NotificationModel'
  ;   K[7]='GetTextTileAndDesc'
  ;   K[8]=''
  ;   K[9]='push_energy_title'
  ;   K[10]='push_energy_desc'
  ;   K[11]='Type'
  ;   K[12]='NotificationType'
  ;   K[13]='EnergyFull'
  ;   K[14]='Title'
  ;   K[15]='GameTextModel'
  ;   K[16]='GetText'
  ;   K[17]='Message'
  ;   K[18]='Delay'
  ;   K[19]='GetEnergyFullDuration'
  ;   K[20]=nil
  ;   K[21]=0
  ;   upvals: _ENV
  ;   locals: strScene(0-61), strTileKey(15-61), strDescKey(15-61), notification(48-61)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('EnergyModel')]
  0002  SELF      R2 = R1[K2('GetEnergy')] (self)
  0003  GETTABUP  R3 = _ENV[K3('EnergyType')]
  0004  GETTABLE  R3 = R3[K4('Main')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  LE        if R0 le R1   -> 2569
  0007  JMP       (jump)   -> 10
  0008  NEWTABLE  R1 = {} (0 items)
  0009  RETURN    return R1..R0
  0010  GETTABUP  R1 = _ENV[K0('GM')]
  0011  GETTABLE  R1 = R1[K6('NotificationModel')]
  0012  SELF      R2 = R1[K7('GetTextTileAndDesc')] (self)
  0013  MOVE      R3 = R0
  0014  CALL      R1 = call(R1, 2 args, 2 rets)
  0015  EQ        if R1 eq K8('')   -> -130279
  0016  JMP       (jump)   -> 19
  0017  TEST      if not R1 then   -> -131052
  0018  JMP       (jump)   -> 20
  0019  LOADK     R1 = K9 'push_energy_title'
  0020  EQ        if R1 eq K8('')   -> -129762
  0021  JMP       (jump)   -> 24
  0022  TEST      if not R2 then   -> -131047
  0023  JMP       (jump)   -> 25
  0024  LOADK     R2 = K10 'push_energy_desc'
  0025  NEWTABLE  R3 = {} (0 items)
  0026  GETTABUP  R4 = _ENV[K12('NotificationType')]
  0027  GETTABLE  R4 = R4[K13('EnergyFull')]
  0028  SETTABLE  R3[K11('Type')] = R4
  0029  GETTABUP  R4 = _ENV[K0('GM')]
  0030  GETTABLE  R4 = R4[K15('GameTextModel')]
  0031  SELF      R5 = R4[K16('GetText')] (self)
  0032  MOVE      R6 = R0
  0033  CALL      R4 = call(R4, 1 args, 2 rets)
  0034  SETTABLE  R3[K14('Title')] = R4
  0035  GETTABUP  R4 = _ENV[K0('GM')]
  0036  GETTABLE  R4 = R4[K15('GameTextModel')]
  0037  SELF      R5 = R4[K16('GetText')] (self)
  0038  MOVE      R6 = R0
  0039  CALL      R4 = call(R4, 1 args, 2 rets)
  0040  SETTABLE  R3[K17('Message')] = R4
  0041  GETTABUP  R4 = _ENV[K0('GM')]
  0042  GETTABLE  R4 = R4[K1('EnergyModel')]
  0043  SELF      R5 = R4[K19('GetEnergyFullDuration')] (self)
  0044  GETTABUP  R6 = _ENV[K3('EnergyType')]
  0045  GETTABLE  R6 = R6[K4('Main')]
  0046  CALL      R4 = call(R4, 1 args, 2 rets)
  0047  SETTABLE  R3[K18('Delay')] = R4
  0048  GETTABLE  R4 = R3[K18('Delay')]
  0049  EQ        if R1 eq K20(nil)   -> -128697
  0050  JMP       (jump)   -> 54
  0051  GETTABLE  R4 = R3[K18('Delay')]
  0052  LE        if R0 le K21(0)   -> -128693
  0053  JMP       (jump)   -> 56
  0054  NEWTABLE  R4 = {} (0 items)
  0055  RETURN    return R4..R3
  0056  NEWTABLE  R4 = {} (1 items)
  0057  MOVE      R5 = R0
  0058  SETLIST   setlist R4[B=1,C=1]
  0059  RETURN    return R4..R3
  0060  RETURN    return R0..R-1
