# UI_Button_CrossPromotionButton_314.luac
; fn @CrossPromotionButton.lua  line 0-0 np=0 va=1 ms=3 code=27 consts=10 upvals=1 protos=6
;   K[0]='CrossPromotionButton'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='OnDestroy'
;   K[6]='UpdateContent'
;   K[7]='UpdateActivityIcon'
;   K[8]='UpdatePerSecond'
;   K[9]='OnClicked'
;   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('CrossPromotionButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('CrossPromotionButton')]
0006  GETTABUP  R1 = _ENV[K0('CrossPromotionButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('CrossPromotionButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('CrossPromotionButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('CrossPromotionButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdateContent')] = R1
0017  GETTABUP  R0 = _ENV[K0('CrossPromotionButton')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('UpdateActivityIcon')] = R1
0020  GETTABUP  R0 = _ENV[K0('CrossPromotionButton')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('UpdatePerSecond')] = R1
0023  GETTABUP  R0 = _ENV[K0('CrossPromotionButton')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('OnClicked')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 8-14 np=1 va=0 ms=6 code=18 consts=11 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='Awake'
  ;   K[2]='UpdateContent'
  ;   K[3]='AddHandlerAndRecordMap'
  ;   K[4]='GM'
  ;   K[5]='CrossPromotionModel'
  ;   K[6]='event'
  ;   K[7]='ECPEventType'
  ;   K[8]='StateChanged'
  ;   K[9]='obj'
  ;   K[10]='method'
  ;   upvals: _ENV
  ;   locals: self(0-18)
  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('UpdateContent')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  GETTABUP  R1 = _ENV[K3('AddHandlerAndRecordMap')]
  0007  GETTABUP  R2 = _ENV[K4('GM')]
  0008  GETTABLE  R2 = R2[K5('CrossPromotionModel')]
  0009  GETTABLE  R2 = R2[K6('event')]
  0010  GETTABUP  R3 = _ENV[K7('ECPEventType')]
  0011  GETTABLE  R3 = R3[K8('StateChanged')]
  0012  NEWTABLE  R4 = {} (0 items)
  0013  SETTABLE  R4[K9('obj')] = R0
  0014  GETTABLE  R5 = R0[K2('UpdateContent')]
  0015  SETTABLE  R4[K10('method')] = R5
  0016  CALL      R1 = call(R1, 0 args, 3 rets)
  0017  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 16-19 np=1 va=0 ms=4 code=11 consts=6 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='OnDestroy'
  ;   K[2]='RemoveAllHandlers'
  ;   K[3]='GM'
  ;   K[4]='CrossPromotionModel'
  ;   K[5]='event'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  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('RemoveAllHandlers')]
  0005  GETTABUP  R2 = _ENV[K3('GM')]
  0006  GETTABLE  R2 = R2[K4('CrossPromotionModel')]
  0007  GETTABLE  R2 = R2[K5('event')]
  0008  MOVE      R3 = R0
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  RETURN    return R0..R-1
; ---------- proto2 [UpdateContent] ----------
  ; fn ?  line 21-26 np=1 va=0 ms=3 code=9 consts=4 upvals=0 protos=0
  ;   K[0]='UpdateActivityIcon'
  ;   K[1]='gameObject'
  ;   K[2]='activeSelf'
  ;   K[3]='UpdatePerSecond'
  ;   locals: self(0-9)
  0000  SELF      R2 = R0[K0('UpdateActivityIcon')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('gameObject')]
  0003  GETTABLE  R1 = R1[K2('activeSelf')]
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 8
  0006  SELF      R2 = R0[K3('UpdatePerSecond')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto3 [UpdateActivityIcon] ----------
  ; fn ?  line 28-43 np=1 va=0 ms=8 code=31 consts=11 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='CrossPromotionModel'
  ;   K[2]='IsActivityOpen'
  ;   K[3]='gameObject'
  ;   K[4]='SetActive'
  ;   K[5]='m_exclamationGo'
  ;   K[6]='IsStrongTipShow'
  ;   K[7]='LoadImageFromBundleOrUrl'
  ;   K[8]='m_iconImg'
  ;   K[9]='iconPic'
  ;   K[10]='iconPicName'
  ;   upvals: _ENV
  ;   locals: self(0-31), activityOpen(4-31)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('CrossPromotionModel')]
  0002  SELF      R2 = R1[K2('IsActivityOpen')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABLE  R2 = R0[K3('gameObject')]
  0005  SELF      R3 = R2[K4('SetActive')] (self)
  0006  MOVE      R4 = R0
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  TEST      if not R1 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  RETURN    return R0..R-1
  0011  GETTABLE  R2 = R0[K5('m_exclamationGo')]
  0012  SELF      R3 = R2[K4('SetActive')] (self)
  0013  GETTABUP  R4 = _ENV[K0('GM')]
  0014  GETTABLE  R4 = R4[K1('CrossPromotionModel')]
  0015  SELF      R5 = R4[K6('IsStrongTipShow')] (self)
  0016  CALL      R4 = call(R4, -1 args, 1 rets)
  0017  CALL      R2 = call(R2, 0 args, -1 rets)
  0018  GETTABUP  R2 = _ENV[K0('GM')]
  0019  GETTABLE  R2 = R2[K1('CrossPromotionModel')]
  0020  SELF      R3 = R2[K7('LoadImageFromBundleOrUrl')] (self)
  0021  GETTABLE  R4 = R0[K8('m_iconImg')]
  0022  GETTABUP  R5 = _ENV[K0('GM')]
  0023  GETTABLE  R5 = R5[K1('CrossPromotionModel')]
  0024  GETTABLE  R5 = R5[K9('iconPic')]
  0025  GETTABUP  R6 = _ENV[K0('GM')]
  0026  GETTABLE  R6 = R6[K1('CrossPromotionModel')]
  0027  GETTABLE  R6 = R6[K10('iconPicName')]
  0028  LOADBOOL  R7 = false
  0029  CALL      R2 = call(R2, 0 args, 5 rets)
  0030  RETURN    return R0..R-1
; ---------- proto4 [UpdatePerSecond] ----------
  ; fn ?  line 45-57 np=1 va=0 ms=6 code=32 consts=13 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='CrossPromotionModel'
  ;   K[2]='GetEndTime'
  ;   K[3]=0
  ;   K[4]='GameModel'
  ;   K[5]='GetServerTime'
  ;   K[6]='UpdateContent'
  ;   K[7]='TimeUtil'
  ;   K[8]='ParseTimeDescription'
  ;   K[9]='math'
  ;   K[10]='max'
  ;   K[11]='m_timeText'
  ;   K[12]='text'
  ;   upvals: _ENV
  ;   locals: self(0-32), remainTime(16-32), timeStr(29-32)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('CrossPromotionModel')]
  0002  SELF      R2 = R1[K2('GetEndTime')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  EQ        if R0 eq K3(0)   -> -130295
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABUP  R1 = _ENV[K0('GM')]
  0008  GETTABLE  R1 = R1[K1('CrossPromotionModel')]
  0009  SELF      R2 = R1[K2('GetEndTime')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  GETTABUP  R2 = _ENV[K0('GM')]
  0012  GETTABLE  R2 = R2[K4('GameModel')]
  0013  SELF      R3 = R2[K5('GetServerTime')] (self)
  0014  CALL      R2 = call(R2, 1 args, 1 rets)
  0015  SUB       R1 = R2 sub R1
  0016  LE        if R0 le K3(0)   -> -130283
  0017  JMP       (jump)   -> 21
  0018  SELF      R3 = R0[K6('UpdateContent')] (self)
  0019  CALL      R2 = call(R2, 0 args, 1 rets)
  0020  RETURN    return R0..R-1
  0021  GETTABUP  R2 = _ENV[K7('TimeUtil')]
  0022  GETTABLE  R2 = R2[K8('ParseTimeDescription')]
  0023  GETTABUP  R3 = _ENV[K9('math')]
  0024  GETTABLE  R3 = R3[K10('max')]
  0025  LOADK     R4 = K3 0
  0026  MOVE      R5 = R0
  0027  CALL      R3 = call(R3, -1 args, 2 rets)
  0028  CALL      R2 = call(R2, 1 args, -1 rets)
  0029  GETTABLE  R3 = R0[K11('m_timeText')]
  0030  SETTABLE  R3[K12('text')] = R2
  0031  RETURN    return R0..R-1
; ---------- proto5 [OnClicked] ----------
  ; fn ?  line 59-61 np=1 va=0 ms=3 code=5 consts=3 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='CrossPromotionModel'
  ;   K[2]='OpenCrossPromotionWindow'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('CrossPromotionModel')]
  0002  SELF      R2 = R1[K2('OpenCrossPromotionWindow')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
