# UI_Button_BundleButton_306.luac
; fn @BundleButton.lua  line 0-0 np=0 va=1 ms=3 code=33 consts=12 upvals=1 protos=8
;   K[0]='BundleButton'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='OnDestroy'
;   K[6]='Init'
;   K[7]='UpdatePerSecond'
;   K[8]='UpdateContent'
;   K[9]='_UpdateExclamation'
;   K[10]='OnClicked'
;   K[11]='GetTriggerStartTime'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudGeneralButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('BundleButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('BundleButton')]
0006  GETTABUP  R1 = _ENV[K0('BundleButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('BundleButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('BundleButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('BundleButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('Init')] = R1
0017  GETTABUP  R0 = _ENV[K0('BundleButton')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('UpdatePerSecond')] = R1
0020  GETTABUP  R0 = _ENV[K0('BundleButton')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('UpdateContent')] = R1
0023  GETTABUP  R0 = _ENV[K0('BundleButton')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('_UpdateExclamation')] = R1
0026  GETTABUP  R0 = _ENV[K0('BundleButton')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('OnClicked')] = R1
0029  GETTABUP  R0 = _ENV[K0('BundleButton')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('GetTriggerStartTime')] = R1
0032  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-7 np=1 va=0 ms=3 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='Awake'
  ;   K[2]='_UpdateExclamation'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_UpdateExclamation')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 9-12 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='OnDestroy'
  ;   K[2]='EventDispatcher'
  ;   K[3]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('RemoveTarget')]
  0006  MOVE      R2 = R0
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto2 [Init] ----------
  ; fn ?  line 14-20 np=3 va=0 ms=6 code=11 consts=7 upvals=1 protos=0
  ;   K[0]='m_bundleType'
  ;   K[1]='m_model'
  ;   K[2]='GM'
  ;   K[3]='BundleManager'
  ;   K[4]='GetModel'
  ;   K[5]='m_dataGroup'
  ;   K[6]='UpdateContent'
  ;   upvals: _ENV
  ;   locals: self(0-11), bundleType(0-11), dataGroup(0-11)
  0000  SETTABLE  R0[K0('m_bundleType')] = R1
  0001  GETTABUP  R3 = _ENV[K2('GM')]
  0002  GETTABLE  R3 = R3[K3('BundleManager')]
  0003  SELF      R4 = R3[K4('GetModel')] (self)
  0004  MOVE      R5 = R0
  0005  CALL      R3 = call(R3, 1 args, 2 rets)
  0006  SETTABLE  R0[K1('m_model')] = R3
  0007  SETTABLE  R0[K5('m_dataGroup')] = R2
  0008  SELF      R4 = R0[K6('UpdateContent')] (self)
  0009  CALL      R3 = call(R3, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto3 [UpdatePerSecond] ----------
  ; fn ?  line 22-32 np=1 va=0 ms=5 code=22 consts=10 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_dataGroup'
  ;   K[3]='GetRestDuration'
  ;   K[4]=0
  ;   K[5]='m_countdownText'
  ;   K[6]='text'
  ;   K[7]='TimeUtil'
  ;   K[8]='ParseTimeDescription'
  ;   K[9]='_UpdateExclamation'
  ;   upvals: _ENV
  ;   locals: self(0-22), restDuration(10-19)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 19
  0003  GETTABLE  R1 = R0[K2('m_dataGroup')]
  0004  EQ        if R1 eq K1(nil)   -> -130297
  0005  JMP       (jump)   -> 19
  0006  GETTABLE  R1 = R0[K0('m_model')]
  0007  SELF      R2 = R1[K3('GetRestDuration')] (self)
  0008  GETTABLE  R3 = R0[K2('m_dataGroup')]
  0009  CALL      R1 = call(R1, 1 args, 2 rets)
  0010  LT        if R0 lt R1   -> 2061
  0011  JMP       (jump)   -> 19
  0012  GETTABLE  R2 = R0[K5('m_countdownText')]
  0013  GETTABUP  R3 = _ENV[K7('TimeUtil')]
  0014  GETTABLE  R3 = R3[K8('ParseTimeDescription')]
  0015  MOVE      R4 = R0
  0016  CALL      R3 = call(R3, 1 args, 1 rets)
  0017  SETTABLE  R2[K6('text')] = R3
  0018  JMP       (jump)   -> 19
  0019  SELF      R2 = R0[K9('_UpdateExclamation')] (self)
  0020  CALL      R1 = call(R1, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto4 [UpdateContent] ----------
  ; fn ?  line 34-56 np=1 va=0 ms=7 code=53 consts=21 upvals=1 protos=0
  ;   K[0]='m_dataGroup'
  ;   K[1]=nil
  ;   K[2]='m_model'
  ;   K[3]='m_uiCode'
  ;   K[4]='GetBundleUIType'
  ;   K[5]='BundleUIType'
  ;   K[6]='GameConfig'
  ;   K[7]='IsTestMode'
  ;   K[8]='GM'
  ;   K[9]='UIManager'
  ;   K[10]='ShowTestPrompt'
  ;   K[11]='礼包UICode '
  ;   K[12]=' 不存在'
  ;   K[13]='m_uiStyle'
  ;   K[14]='icon'
  ;   K[15]='m_iconImg'
  ;   K[16]='enabled'
  ;   K[17]=false
  ;   K[18]='SpriteUtil'
  ;   K[19]='SetImage'
  ;   K[20]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-53), model(5-53)
  0000  GETTABLE  R1 = R0[K0('m_dataGroup')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K2('m_model')]
  0005  GETTABLE  R2 = R0[K3('m_uiCode')]
  0006  GETTABLE  R3 = R0[K0('m_dataGroup')]
  0007  SELF      R4 = R3[K4('GetBundleUIType')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  EQ        if R1 eq R3   -> -130034
  0010  JMP       (jump)   -> 50
  0011  GETTABLE  R2 = R0[K0('m_dataGroup')]
  0012  SELF      R3 = R2[K4('GetBundleUIType')] (self)
  0013  CALL      R2 = call(R2, 1 args, 1 rets)
  0014  SETTABLE  R0[K3('m_uiCode')] = R2
  0015  GETTABUP  R2 = _ENV[K5('BundleUIType')]
  0016  GETTABLE  R3 = R0[K3('m_uiCode')]
  0017  GETTABLE  R2 = R2[R3]
  0018  EQ        if R0 eq K1(nil)   -> -129771
  0019  JMP       (jump)   -> 33
  0020  GETTABUP  R2 = _ENV[K6('GameConfig')]
  0021  GETTABLE  R2 = R2[K7('IsTestMode')]
  0022  CALL      R2 = call(R2, 1 args, 0 rets)
  0023  TEST      if not R2 then   -> -131047
  0024  JMP       (jump)   -> 33
  0025  GETTABUP  R2 = _ENV[K8('GM')]
  0026  GETTABLE  R2 = R2[K9('UIManager')]
  0027  SELF      R3 = R2[K10('ShowTestPrompt')] (self)
  0028  LOADK     R4 = K11 '礼包UICode '
  0029  GETTABLE  R5 = R0[K3('m_uiCode')]
  0030  LOADK     R6 = K12 ' 不存在'
  0031  CONCAT    R4 = concat(R4..R4)
  0032  CALL      R2 = call(R2, 0 args, 2 rets)
  0033  GETTABUP  R2 = _ENV[K5('BundleUIType')]
  0034  GETTABLE  R3 = R0[K3('m_uiCode')]
  0035  GETTABLE  R2 = R2[R3]
  0036  SETTABLE  R0[K13('m_uiStyle')] = R2
  0037  GETTABLE  R2 = R0[K13('m_uiStyle')]
  0038  GETTABLE  R2 = R2[K14('icon')]
  0039  EQ        if R1 eq K1(nil)   -> -129750
  0040  JMP       (jump)   -> 50
  0041  GETTABLE  R2 = R0[K15('m_iconImg')]
  0042  SETTABLE  R2[K16('enabled')] = K17(false)
  0043  GETTABUP  R2 = _ENV[K18('SpriteUtil')]
  0044  GETTABLE  R2 = R2[K19('SetImage')]
  0045  GETTABLE  R3 = R0[K15('m_iconImg')]
  0046  GETTABLE  R4 = R0[K13('m_uiStyle')]
  0047  GETTABLE  R4 = R4[K14('icon')]
  0048  LOADBOOL  R5 = true
  0049  CALL      R2 = call(R2, 0 args, 3 rets)
  0050  SELF      R3 = R0[K20('UpdatePerSecond')] (self)
  0051  CALL      R2 = call(R2, 0 args, 1 rets)
  0052  RETURN    return R0..R-1
; ---------- proto5 [_UpdateExclamation] ----------
  ; fn ?  line 58-60 np=1 va=0 ms=4 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_exclamationGo'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetActive')]
  0002  GETTABLE  R2 = R0[K2('m_exclamationGo')]
  0003  LOADBOOL  R3 = false
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto6 [OnClicked] ----------
  ; fn ?  line 62-66 np=1 va=0 ms=6 code=10 consts=4 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='OpenBundleView'
  ;   K[3]='m_dataGroup'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 9
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('OpenBundleView')] (self)
  0005  GETTABLE  R3 = R0[K3('m_dataGroup')]
  0006  LOADBOOL  R4 = true
  0007  LOADBOOL  R5 = true
  0008  CALL      R1 = call(R1, 0 args, 4 rets)
  0009  RETURN    return R0..R-1
; ---------- proto7 [GetTriggerStartTime] ----------
  ; fn ?  line 68-74 np=1 va=0 ms=4 code=17 consts=7 upvals=1 protos=0
  ;   K[0]='m_dataGroup'
  ;   K[1]=nil
  ;   K[2]='m_model'
  ;   K[3]='GM'
  ;   K[4]='GameModel'
  ;   K[5]='GetServerTime'
  ;   K[6]='GetBundleTriggerStartTime'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  GETTABLE  R1 = R0[K0('m_dataGroup')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K2('m_model')]
  0004  EQ        if R0 eq K1(nil)   -> -130297
  0005  JMP       (jump)   -> 11
  0006  GETTABUP  R1 = _ENV[K3('GM')]
  0007  GETTABLE  R1 = R1[K4('GameModel')]
  0008  SELF      R2 = R1[K5('GetServerTime')] (self)
  0009  TAILCALL  tailcall(R1, 0)
  0010  RETURN    return R1..R0
  0011  GETTABLE  R1 = R0[K2('m_model')]
  0012  SELF      R2 = R1[K6('GetBundleTriggerStartTime')] (self)
  0013  GETTABLE  R3 = R0[K0('m_dataGroup')]
  0014  TAILCALL  tailcall(R1, 0)
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
