# FundPack_View_FundPackActivityBaseWindow_1447.luac
; fn @FundPackActivityBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=37 consts=15 upvals=1 protos=9
;   K[0]='FundPackActivityBaseWindow'
;   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]='HasConfig'
;   K[12]='IsActivityValid'
;   K[13]='_OnStateChanged'
;   K[14]='CloseWhenNotValid'
;   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('FundPackActivityBaseWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0007  GETTABUP  R1 = _ENV[K0('FundPackActivityBaseWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('BeforeOpenCheck')] = R1
0012  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('GetModel')] = R1
0018  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('GetActivityDefinition')] = R1
0021  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K10('_IsModelIdChanged')] = R1
0024  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0025  CLOSURE   R1 = closure proto5
0026  SETTABLE  R0[K11('HasConfig')] = R1
0027  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0028  CLOSURE   R1 = closure proto6
0029  SETTABLE  R0[K12('IsActivityValid')] = R1
0030  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0031  CLOSURE   R1 = closure proto7
0032  SETTABLE  R0[K13('_OnStateChanged')] = R1
0033  GETTABUP  R0 = _ENV[K0('FundPackActivityBaseWindow')]
0034  CLOSURE   R1 = closure proto8
0035  SETTABLE  R0[K14('CloseWhenNotValid')] = R1
0036  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 12-16 np=3 va=0 ms=6 code=22 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetModel'
  ;   K[3]=nil
  ;   K[4]='m_bCloseWhenFinish'
  ;   K[5]='IsActivityOpen'
  ;   K[6]='GetId'
  ;   upvals: _ENV
  ;   locals: self(0-22), activityType(0-22), id(0-22), model(5-22)
  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  EQ        if R1 eq K3(nil)   -> -129270
  0006  JMP       (jump)   -> 18
  0007  GETTABLE  R4 = R0[K4('m_bCloseWhenFinish')]
  0008  TEST      if not R4 then   -> -131062
  0009  JMP       (jump)   -> 14
  0010  SELF      R5 = R3[K5('IsActivityOpen')] (self)
  0011  CALL      R4 = call(R4, 1 args, 1 rets)
  0012  TEST      if not R4 then   -> -131058
  0013  JMP       (jump)   -> 20
  0014  SELF      R5 = R3[K6('GetId')] (self)
  0015  CALL      R4 = call(R4, 1 args, 1 rets)
  0016  EQ        if R1 eq R2   -> -129004
  0017  JMP       (jump)   -> 19
  0018  LOADBOOL  R4 = false
  0019  LOADBOOL  R4 = true
  0020  RETURN    return R4..R3
  0021  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 19-26 np=2 va=0 ms=6 code=23 consts=12 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]='m_id'
  ;   K[5]='GetId'
  ;   K[6]='m_bCloseWhenFinish'
  ;   K[7]='EventDispatcher'
  ;   K[8]='AddListener'
  ;   K[9]='GetActivityDefinition'
  ;   K[10]='StateChangedEvent'
  ;   K[11]='_OnStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-23), activityType(0-23)
  0000  GETTABUP  R2 = _ENV[K1('GM')]
  0001  GETTABLE  R2 = R2[K2('ActivityManager')]
  0002  SELF      R3 = R2[K3('GetModel')] (self)
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  SETTABLE  R0[K0('m_model')] = R2
  0006  SELF      R3 = R0[K3('GetModel')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  SELF      R3 = R2[K5('GetId')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  SETTABLE  R0[K4('m_id')] = R2
  0011  GETTABLE  R2 = R0[K6('m_bCloseWhenFinish')]
  0012  TEST      if not R2 then   -> -131058
  0013  JMP       (jump)   -> 22
  0014  GETTABUP  R2 = _ENV[K7('EventDispatcher')]
  0015  GETTABLE  R2 = R2[K8('AddListener')]
  0016  SELF      R4 = R0[K9('GetActivityDefinition')] (self)
  0017  CALL      R3 = call(R3, 1 args, 1 rets)
  0018  GETTABLE  R3 = R3[K10('StateChangedEvent')]
  0019  MOVE      R4 = R0
  0020  GETTABLE  R5 = R0[K11('_OnStateChanged')]
  0021  CALL      R2 = call(R2, 0 args, 3 rets)
  0022  RETURN    return R0..R-1
; ---------- proto2 [GetModel] ----------
  ; fn ?  line 28-30 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 32-34 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 36-38 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 [HasConfig] ----------
  ; fn ?  line 40-42 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='HasConfig'
  ;   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('HasConfig')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto6 [IsActivityValid] ----------
  ; fn ?  line 45-47 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
; ---------- proto7 [_OnStateChanged] ----------
  ; fn ?  line 49-52 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 54-58 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
