# DeliveryProgress_View_DeliveryProgressBaseWindow_1501.luac
; fn @DeliveryProgressBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=37 consts=15 upvals=1 protos=9
;   K[0]='DeliveryProgressBaseWindow'
;   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]='CloseWhenNotValid'
;   K[14]='UpdatePerSecond'
;   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('DeliveryProgressBaseWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0007  GETTABUP  R1 = _ENV[K0('DeliveryProgressBaseWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('BeforeOpenCheck')] = R1
0012  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('GetModel')] = R1
0018  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('GetActivityDefinition')] = R1
0021  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K10('_IsModelIdChanged')] = R1
0024  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0025  CLOSURE   R1 = closure proto5
0026  SETTABLE  R0[K11('IsActivityValid')] = R1
0027  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0028  CLOSURE   R1 = closure proto6
0029  SETTABLE  R0[K12('_OnStateChanged')] = R1
0030  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0031  CLOSURE   R1 = closure proto7
0032  SETTABLE  R0[K13('CloseWhenNotValid')] = R1
0033  GETTABUP  R0 = _ENV[K0('DeliveryProgressBaseWindow')]
0034  CLOSURE   R1 = closure proto8
0035  SETTABLE  R0[K14('UpdatePerSecond')] = R1
0036  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 13-18 np=3 va=0 ms=7 code=28 consts=10 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetModel'
  ;   K[3]='GetState'
  ;   K[4]=nil
  ;   K[5]='m_bCloseWhenFinish'
  ;   K[6]='ActivityState'
  ;   K[7]='Started'
  ;   K[8]='Ended'
  ;   K[9]='GetId'
  ;   upvals: _ENV
  ;   locals: self(0-28), activityType(0-28), id(0-28), model(5-28), state(7-28)
  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)   -> 24
  0009  GETTABLE  R5 = R0[K5('m_bCloseWhenFinish')]
  0010  TEST      if not R5 then   -> -131060
  0011  JMP       (jump)   -> 20
  0012  GETTABUP  R5 = _ENV[K6('ActivityState')]
  0013  GETTABLE  R5 = R5[K7('Started')]
  0014  EQ        if R1 eq R5   -> -129003
  0015  JMP       (jump)   -> 20
  0016  GETTABUP  R5 = _ENV[K6('ActivityState')]
  0017  GETTABLE  R5 = R5[K8('Ended')]
  0018  EQ        if R0 eq R5   -> -128999
  0019  JMP       (jump)   -> 24
  0020  SELF      R6 = R3[K9('GetId')] (self)
  0021  CALL      R5 = call(R5, 1 args, 1 rets)
  0022  EQ        if R1 eq R2   -> -128486
  0023  JMP       (jump)   -> 25
  0024  LOADBOOL  R5 = false
  0025  LOADBOOL  R5 = true
  0026  RETURN    return R5..R4
  0027  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 20-32 np=5 va=0 ms=10 code=46 consts=22 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]='GetId'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='GetActivityDefinition'
  ;   K[9]='LogWindowAction'
  ;   K[10]='EBIType'
  ;   K[11]='UIActionType'
  ;   K[12]='Open'
  ;   K[13]='EBIReferType'
  ;   K[14]='AutoPopup'
  ;   K[15]='UserClick'
  ;   K[16]='m_bCloseWhenFinish'
  ;   K[17]='EventDispatcher'
  ;   K[18]='AddListener'
  ;   K[19]='StateChangedEvent'
  ;   K[20]='_OnStateChanged'
  ;   K[21]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-46), activityType(0-46), id(0-46), bAutoPop(0-46), ext(0-46)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  GETTABUP  R5 = _ENV[K2('GM')]
  0002  GETTABLE  R5 = R5[K3('ActivityManager')]
  0003  SELF      R6 = R5[K4('GetModel')] (self)
  0004  MOVE      R7 = R0
  0005  CALL      R5 = call(R5, 1 args, 2 rets)
  0006  SETTABLE  R0[K1('m_model')] = R5
  0007  SELF      R6 = R0[K4('GetModel')] (self)
  0008  CALL      R5 = call(R5, 1 args, 1 rets)
  0009  SELF      R6 = R5[K6('GetId')] (self)
  0010  CALL      R5 = call(R5, 1 args, 1 rets)
  0011  SETTABLE  R0[K5('m_id')] = R5
  0012  GETTABLE  R5 = R0[K1('m_model')]
  0013  SELF      R6 = R5[K8('GetActivityDefinition')] (self)
  0014  CALL      R5 = call(R5, 1 args, 1 rets)
  0015  SETTABLE  R0[K7('m_activityDefinition')] = R5
  0016  SELF      R6 = R0[K9('LogWindowAction')] (self)
  0017  GETTABUP  R7 = _ENV[K10('EBIType')]
  0018  GETTABLE  R7 = R7[K11('UIActionType')]
  0019  GETTABLE  R7 = R7[K12('Open')]
  0020  NEWTABLE  R8 = {} (1 items)
  0021  TEST      if not R3 then   -> -131049
  0022  JMP       (jump)   -> 27
  0023  GETTABUP  R9 = _ENV[K13('EBIReferType')]
  0024  GETTABLE  R9 = R9[K14('AutoPopup')]
  0025  TEST      if not R9 then   -> -131044
  0026  JMP       (jump)   -> 29
  0027  GETTABUP  R9 = _ENV[K13('EBIReferType')]
  0028  GETTABLE  R9 = R9[K15('UserClick')]
  0029  SETLIST   setlist R8[B=1,C=1]
  0030  MOVE      R9 = R0
  0031  CALL      R5 = call(R5, 0 args, 4 rets)
  0032  GETTABLE  R5 = R0[K16('m_bCloseWhenFinish')]
  0033  TEST      if not R5 then   -> -131037
  0034  JMP       (jump)   -> 43
  0035  GETTABUP  R5 = _ENV[K17('EventDispatcher')]
  0036  GETTABLE  R5 = R5[K18('AddListener')]
  0037  SELF      R7 = R0[K8('GetActivityDefinition')] (self)
  0038  CALL      R6 = call(R6, 1 args, 1 rets)
  0039  GETTABLE  R6 = R6[K19('StateChangedEvent')]
  0040  MOVE      R7 = R0
  0041  GETTABLE  R8 = R0[K20('_OnStateChanged')]
  0042  CALL      R5 = call(R5, 0 args, 3 rets)
  0043  SELF      R6 = R0[K21('UpdatePerSecond')] (self)
  0044  CALL      R5 = call(R5, 0 args, 1 rets)
  0045  RETURN    return R0..R-1
; ---------- proto2 [GetModel] ----------
  ; fn ?  line 34-36 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 38-40 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 42-44 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 47-49 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 51-54 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 [CloseWhenNotValid] ----------
  ; fn ?  line 56-60 np=1 va=0 ms=3 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='IsActivityValid'
  ;   K[1]='Close'
  ;   locals: self(0-7)
  0000  SELF      R2 = R0[K0('IsActivityValid')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 6
  0004  SELF      R2 = R0[K1('Close')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto8 [UpdatePerSecond] ----------
  ; fn ?  line 62-71 np=1 va=0 ms=8 code=34 consts=16 upvals=1 protos=0
  ;   K[0]='IsActivityValid'
  ;   K[1]='UIUtil'
  ;   K[2]='IsEmptyComponent'
  ;   K[3]='m_countDownText'
  ;   K[4]='math'
  ;   K[5]='max'
  ;   K[6]=0
  ;   K[7]='GetModel'
  ;   K[8]='GetEndTime'
  ;   K[9]='GM'
  ;   K[10]='GameModel'
  ;   K[11]='GetServerTime'
  ;   K[12]='text'
  ;   K[13]='TimeUtil'
  ;   K[14]='ParseTimeDescription'
  ;   K[15]=2
  ;   upvals: _ENV
  ;   locals: self(0-34), leftDuration(24-33)
  0000  SELF      R2 = R0[K0('IsActivityValid')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABUP  R1 = _ENV[K1('UIUtil')]
  0006  GETTABLE  R1 = R1[K2('IsEmptyComponent')]
  0007  GETTABLE  R2 = R0[K3('m_countDownText')]
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  TEST      if not R1 then   -> -131060
  0010  JMP       (jump)   -> 33
  0011  GETTABUP  R1 = _ENV[K4('math')]
  0012  GETTABLE  R1 = R1[K5('max')]
  0013  LOADK     R2 = K6 0
  0014  SELF      R4 = R0[K7('GetModel')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  SELF      R4 = R3[K8('GetEndTime')] (self)
  0017  CALL      R3 = call(R3, 1 args, 1 rets)
  0018  GETTABUP  R4 = _ENV[K9('GM')]
  0019  GETTABLE  R4 = R4[K10('GameModel')]
  0020  SELF      R5 = R4[K11('GetServerTime')] (self)
  0021  CALL      R4 = call(R4, 1 args, 1 rets)
  0022  SUB       R3 = R4 sub R3
  0023  CALL      R1 = call(R1, 1 args, 2 rets)
  0024  GETTABLE  R2 = R0[K3('m_countDownText')]
  0025  GETTABUP  R3 = _ENV[K13('TimeUtil')]
  0026  GETTABLE  R3 = R3[K14('ParseTimeDescription')]
  0027  MOVE      R4 = R0
  0028  LOADK     R5 = K15 2
  0029  LOADBOOL  R6 = false
  0030  LOADBOOL  R7 = false
  0031  CALL      R3 = call(R3, 1 args, 4 rets)
  0032  SETTABLE  R2[K12('text')] = R3
  0033  RETURN    return R0..R-1
