# FrameDecoActivity_View_FrameDecoActivityBaseWindow_1735.luac
; fn @FrameDecoActivityBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=57 consts=21 upvals=1 protos=12
;   K[0]='FrameDecoActivityBaseWindow'
;   K[1]='setmetatable'
;   K[2]='m_bCloseWhenFinish'
;   K[3]=true
;   K[4]='BaseWindow'
;   K[5]='__index'
;   K[6]='BeforeOpenCheck'
;   K[7]='Init'
;   K[8]='GetModel'
;   K[9]='GetActivityDefinition'
;   K[10]='_IsModelIdChanged'
;   K[11]='IsActivityValid'
;   K[12]='_OnStateChanged'
;   K[13]='_OnTriggerStateChanged'
;   K[14]='CloseWhenNotValid'
;   K[15]='UpdatePerSecond'
;   K[16]='_GetCountDownEndTime'
;   K[17]='FrameDecoActivityHelpWindow'
;   K[18]='windowMaskAlpha'
;   K[19]='EWindowMaskAlpha'
;   K[20]='Dark'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('m_bCloseWhenFinish')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('BaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('FrameDecoActivityBaseWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0007  GETTABUP  R1 = _ENV[K0('FrameDecoActivityBaseWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('BeforeOpenCheck')] = R1
0012  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('GetModel')] = R1
0018  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('GetActivityDefinition')] = R1
0021  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K10('_IsModelIdChanged')] = R1
0024  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0025  CLOSURE   R1 = closure proto5
0026  SETTABLE  R0[K11('IsActivityValid')] = R1
0027  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0028  CLOSURE   R1 = closure proto6
0029  SETTABLE  R0[K12('_OnStateChanged')] = R1
0030  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0031  CLOSURE   R1 = closure proto7
0032  SETTABLE  R0[K13('_OnTriggerStateChanged')] = R1
0033  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0034  CLOSURE   R1 = closure proto8
0035  SETTABLE  R0[K14('CloseWhenNotValid')] = R1
0036  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0037  CLOSURE   R1 = closure proto9
0038  SETTABLE  R0[K15('UpdatePerSecond')] = R1
0039  GETTABUP  R0 = _ENV[K0('FrameDecoActivityBaseWindow')]
0040  CLOSURE   R1 = closure proto10
0041  SETTABLE  R0[K16('_GetCountDownEndTime')] = R1
0042  GETTABUP  R0 = _ENV[K1('setmetatable')]
0043  NEWTABLE  R1 = {} (0 items)
0044  GETTABUP  R2 = _ENV[K19('EWindowMaskAlpha')]
0045  GETTABLE  R2 = R2[K20('Dark')]
0046  SETTABLE  R1[K18('windowMaskAlpha')] = R2
0047  GETTABUP  R2 = _ENV[K0('FrameDecoActivityBaseWindow')]
0048  CALL      R0 = call(R0, 1 args, 2 rets)
0049  SETTABUP  _ENV[K17('FrameDecoActivityHelpWindow')] = R0
0050  GETTABUP  R0 = _ENV[K17('FrameDecoActivityHelpWindow')]
0051  GETTABUP  R1 = _ENV[K17('FrameDecoActivityHelpWindow')]
0052  SETTABLE  R0[K5('__index')] = R1
0053  GETTABUP  R0 = _ENV[K17('FrameDecoActivityHelpWindow')]
0054  CLOSURE   R1 = closure proto11
0055  SETTABLE  R0[K7('Init')] = R1
0056  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 16-21 np=3 va=0 ms=7 code=25 consts=9 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetModel'
  ;   K[3]='GetState'
  ;   K[4]=nil
  ;   K[5]='ActivityState'
  ;   K[6]='Started'
  ;   K[7]='Ended'
  ;   K[8]='GetId'
  ;   upvals: _ENV
  ;   locals: self(0-25), activityType(0-25), id(0-25), model(5-25), state(7-25)
  0000  GETTABUP  R3 = _ENV[K0('GM')]
  0001  GETTABLE  R3 = R3[K1('ActivityManager')]
  0002  SELF      R4 = R3[K2('GetModel')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  SELF      R5 = R3[K3('GetState')] (self)
  0006  CALL      R4 = call(R4, 1 args, 1 rets)
  0007  EQ        if R1 eq K4(nil)   -> -129267
  0008  JMP       (jump)   -> 21
  0009  GETTABUP  R5 = _ENV[K5('ActivityState')]
  0010  GETTABLE  R5 = R5[K6('Started')]
  0011  EQ        if R1 eq R5   -> -129006
  0012  JMP       (jump)   -> 17
  0013  GETTABUP  R5 = _ENV[K5('ActivityState')]
  0014  GETTABLE  R5 = R5[K7('Ended')]
  0015  EQ        if R0 eq R5   -> -129002
  0016  JMP       (jump)   -> 21
  0017  SELF      R6 = R3[K8('GetId')] (self)
  0018  CALL      R5 = call(R5, 1 args, 1 rets)
  0019  EQ        if R1 eq R2   -> -128489
  0020  JMP       (jump)   -> 22
  0021  LOADBOOL  R5 = false
  0022  LOADBOOL  R5 = true
  0023  RETURN    return R5..R4
  0024  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 26-38 np=4 va=0 ms=9 code=41 consts=21 upvals=1 protos=0
  ;   K[0]='m_activityType'
  ;   K[1]='m_model'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='m_id'
  ;   K[6]='m_activityDefinition'
  ;   K[7]='GetActivityDefinition'
  ;   K[8]='SetWindowOpened'
  ;   K[9]='LogWindowAction'
  ;   K[10]='EBIType'
  ;   K[11]='UIActionType'
  ;   K[12]='Open'
  ;   K[13]='EBIReferType'
  ;   K[14]='AutoPopup'
  ;   K[15]='UserClick'
  ;   K[16]='EventDispatcher'
  ;   K[17]='AddListener'
  ;   K[18]='StateChangedEvent'
  ;   K[19]='_OnStateChanged'
  ;   K[20]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-41), activityType(0-41), id(0-41), bAutoPop(0-41)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  GETTABUP  R4 = _ENV[K2('GM')]
  0002  GETTABLE  R4 = R4[K3('ActivityManager')]
  0003  SELF      R5 = R4[K4('GetModel')] (self)
  0004  MOVE      R6 = R0
  0005  CALL      R4 = call(R4, 1 args, 2 rets)
  0006  SETTABLE  R0[K1('m_model')] = R4
  0007  SETTABLE  R0[K5('m_id')] = R2
  0008  GETTABLE  R4 = R0[K1('m_model')]
  0009  SELF      R5 = R4[K7('GetActivityDefinition')] (self)
  0010  CALL      R4 = call(R4, 1 args, 1 rets)
  0011  SETTABLE  R0[K6('m_activityDefinition')] = R4
  0012  GETTABLE  R4 = R0[K1('m_model')]
  0013  SELF      R5 = R4[K8('SetWindowOpened')] (self)
  0014  CALL      R4 = call(R4, 0 args, 1 rets)
  0015  SELF      R5 = R0[K9('LogWindowAction')] (self)
  0016  GETTABUP  R6 = _ENV[K10('EBIType')]
  0017  GETTABLE  R6 = R6[K11('UIActionType')]
  0018  GETTABLE  R6 = R6[K12('Open')]
  0019  NEWTABLE  R7 = {} (1 items)
  0020  TEST      if not R3 then   -> -131050
  0021  JMP       (jump)   -> 26
  0022  GETTABUP  R8 = _ENV[K13('EBIReferType')]
  0023  GETTABLE  R8 = R8[K14('AutoPopup')]
  0024  TEST      if not R8 then   -> -131045
  0025  JMP       (jump)   -> 28
  0026  GETTABUP  R8 = _ENV[K13('EBIReferType')]
  0027  GETTABLE  R8 = R8[K15('UserClick')]
  0028  SETLIST   setlist R7[B=1,C=1]
  0029  CALL      R4 = call(R4, 0 args, 3 rets)
  0030  GETTABUP  R4 = _ENV[K16('EventDispatcher')]
  0031  GETTABLE  R4 = R4[K17('AddListener')]
  0032  SELF      R6 = R0[K7('GetActivityDefinition')] (self)
  0033  CALL      R5 = call(R5, 1 args, 1 rets)
  0034  GETTABLE  R5 = R5[K18('StateChangedEvent')]
  0035  MOVE      R6 = R0
  0036  GETTABLE  R7 = R0[K19('_OnStateChanged')]
  0037  CALL      R4 = call(R4, 0 args, 3 rets)
  0038  SELF      R5 = R0[K20('UpdatePerSecond')] (self)
  0039  CALL      R4 = call(R4, 0 args, 1 rets)
  0040  RETURN    return R0..R-1
; ---------- proto2 [GetModel] ----------
  ; fn ?  line 40-42 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto3 [GetActivityDefinition] ----------
  ; fn ?  line 44-46 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetActivityDefinition'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('GetActivityDefinition')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto4 [_IsModelIdChanged] ----------
  ; fn ?  line 48-50 np=1 va=0 ms=4 code=11 consts=3 upvals=0 protos=0
  ;   K[0]='m_id'
  ;   K[1]='GetModel'
  ;   K[2]='GetId'
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_id')]
  0001  SELF      R3 = R0[K1('GetModel')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  SELF      R3 = R2[K2('GetId')] (self)
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R1 = false
  0008  LOADBOOL  R1 = true
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto5 [IsActivityValid] ----------
  ; fn ?  line 53-55 np=1 va=0 ms=3 code=11 consts=3 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='IsActivityOpen'
  ;   K[2]='_IsModelIdChanged'
  ;   locals: self(0-11)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('IsActivityOpen')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 9
  0006  SELF      R2 = R0[K2('_IsModelIdChanged')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  NOT       R1 = not R0
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto6 [_OnStateChanged] ----------
  ; fn ?  line 57-60 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='CloseWhenNotValid'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('CloseWhenNotValid')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto7 [_OnTriggerStateChanged] ----------
  ; fn ?  line 62-65 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='CloseWhenNotValid'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('CloseWhenNotValid')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto8 [CloseWhenNotValid] ----------
  ; fn ?  line 67-71 np=1 va=0 ms=3 code=10 consts=3 upvals=0 protos=0
  ;   K[0]='m_bCloseWhenFinish'
  ;   K[1]='IsActivityValid'
  ;   K[2]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_bCloseWhenFinish')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 9
  0003  SELF      R2 = R0[K1('IsActivityValid')] (self)
  0004  CALL      R1 = call(R1, 1 args, 1 rets)
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K2('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto9 [UpdatePerSecond] ----------
  ; fn ?  line 73-83 np=1 va=0 ms=8 code=39 consts=18 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='IsEmptyComponent'
  ;   K[2]='m_countDownText'
  ;   K[3]='IsActivityValid'
  ;   K[4]='text'
  ;   K[5]='GM'
  ;   K[6]='GameTextModel'
  ;   K[7]='GetText'
  ;   K[8]='countdown_finished'
  ;   K[9]='math'
  ;   K[10]='max'
  ;   K[11]=0
  ;   K[12]='_GetCountDownEndTime'
  ;   K[13]='GameModel'
  ;   K[14]='GetServerTime'
  ;   K[15]='TimeUtil'
  ;   K[16]='ParseTimeDescription'
  ;   K[17]=2
  ;   upvals: _ENV
  ;   locals: self(0-39), leftDuration(29-38)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('IsEmptyComponent')]
  0002  GETTABLE  R2 = R0[K2('m_countDownText')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 38
  0006  SELF      R2 = R0[K3('IsActivityValid')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131061
  0009  JMP       (jump)   -> 18
  0010  GETTABLE  R1 = R0[K2('m_countDownText')]
  0011  GETTABUP  R2 = _ENV[K5('GM')]
  0012  GETTABLE  R2 = R2[K6('GameTextModel')]
  0013  SELF      R3 = R2[K7('GetText')] (self)
  0014  LOADK     R4 = K8 'countdown_finished'
  0015  CALL      R2 = call(R2, 1 args, 2 rets)
  0016  SETTABLE  R1[K4('text')] = R2
  0017  JMP       (jump)   -> 38
  0018  GETTABUP  R1 = _ENV[K9('math')]
  0019  GETTABLE  R1 = R1[K10('max')]
  0020  LOADK     R2 = K11 0
  0021  SELF      R4 = R0[K12('_GetCountDownEndTime')] (self)
  0022  CALL      R3 = call(R3, 1 args, 1 rets)
  0023  GETTABUP  R4 = _ENV[K5('GM')]
  0024  GETTABLE  R4 = R4[K13('GameModel')]
  0025  SELF      R5 = R4[K14('GetServerTime')] (self)
  0026  CALL      R4 = call(R4, 1 args, 1 rets)
  0027  SUB       R3 = R4 sub R3
  0028  CALL      R1 = call(R1, 1 args, 2 rets)
  0029  GETTABLE  R2 = R0[K2('m_countDownText')]
  0030  GETTABUP  R3 = _ENV[K15('TimeUtil')]
  0031  GETTABLE  R3 = R3[K16('ParseTimeDescription')]
  0032  MOVE      R4 = R0
  0033  LOADK     R5 = K17 2
  0034  LOADBOOL  R6 = false
  0035  LOADBOOL  R7 = false
  0036  CALL      R3 = call(R3, 1 args, 4 rets)
  0037  SETTABLE  R2[K4('text')] = R3
  0038  RETURN    return R0..R-1
; ---------- proto10 [_GetCountDownEndTime] ----------
  ; fn ?  line 86-88 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetEndTime'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('GetEndTime')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto11 [Init] ----------
  ; fn ?  line 96-99 np=4 va=0 ms=11 code=23 consts=11 upvals=1 protos=0
  ;   K[0]='FrameDecoActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_userAvatar'
  ;   K[3]='SetAvatar'
  ;   K[4]='EAvatarFrame'
  ;   K[5]='Normal'
  ;   K[6]='GM'
  ;   K[7]='UserProfileModel'
  ;   K[8]='GetAvatar'
  ;   K[9]='GetModel'
  ;   K[10]='GetRewardFrameId'
  ;   upvals: _ENV
  ;   locals: self(0-23), activityType(0-23), id(0-23), bAutoPop(0-23)
  0000  GETTABUP  R4 = _ENV[K0('FrameDecoActivityBaseWindow')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  MOVE      R7 = R0
  0005  MOVE      R8 = R0
  0006  CALL      R4 = call(R4, 0 args, 4 rets)
  0007  GETTABLE  R4 = R0[K2('m_userAvatar')]
  0008  SELF      R5 = R4[K3('SetAvatar')] (self)
  0009  GETTABUP  R6 = _ENV[K4('EAvatarFrame')]
  0010  GETTABLE  R6 = R6[K5('Normal')]
  0011  GETTABUP  R7 = _ENV[K6('GM')]
  0012  GETTABLE  R7 = R7[K7('UserProfileModel')]
  0013  SELF      R8 = R7[K8('GetAvatar')] (self)
  0014  CALL      R7 = call(R7, 1 args, 1 rets)
  0015  LOADNIL   R8..R8 = nil
  0016  SELF      R10 = R0[K9('GetModel')] (self)
  0017  CALL      R9 = call(R9, 1 args, 1 rets)
  0018  SELF      R10 = R9[K10('GetRewardFrameId')] (self)
  0019  CALL      R9 = call(R9, 1 args, 1 rets)
  0020  LOADBOOL  R10 = true
  0021  CALL      R4 = call(R4, 0 args, 6 rets)
  0022  RETURN    return R0..R-1
