# AdventureBoardActivity_View_AdventureBoardActivityRewardRecoverWindow_1389.luac
; fn @AdventureBoardActivityRewardRecoverWindow.lua  line 0-0 np=0 va=1 ms=3 code=14 consts=8 upvals=1 protos=1
;   K[0]='AdventureBoardActivityRewardRecoverWindow'
;   K[1]='setmetatable'
;   K[2]='disableEffectWhenCloseView'
;   K[3]=true
;   K[4]='disableSpriteRendererWhenCloseView'
;   K[5]='ExtraBoardActivityRewardRecoverWindow'
;   K[6]='__index'
;   K[7]='BeforeOpenCheck'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('disableEffectWhenCloseView')] = K3(true)
0003  SETTABLE  R1[K4('disableSpriteRendererWhenCloseView')] = K3(true)
0004  GETTABUP  R2 = _ENV[K5('ExtraBoardActivityRewardRecoverWindow')]
0005  CALL      R0 = call(R0, 1 args, 2 rets)
0006  SETTABUP  _ENV[K0('AdventureBoardActivityRewardRecoverWindow')] = R0
0007  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityRewardRecoverWindow')]
0008  GETTABUP  R1 = _ENV[K0('AdventureBoardActivityRewardRecoverWindow')]
0009  SETTABLE  R0[K6('__index')] = R1
0010  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityRewardRecoverWindow')]
0011  CLOSURE   R1 = closure proto0
0012  SETTABLE  R0[K7('BeforeOpenCheck')] = R1
0013  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 8-17 np=1 va=0 ms=10 code=26 consts=8 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='AdventureBoardDefinition'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='GetState'
  ;   K[6]='ActivityState'
  ;   K[7]='Ended'
  ;   upvals: _ENV
  ;   locals: self(0-26), model(1-26), (for generator)(4-23), (for state)(4-23), (for control)(4-23), activityType(5-21), _(5-21)
  0000  LOADNIL   R1..R1 = nil
  0001  GETTABUP  R2 = _ENV[K0('pairs')]
  0002  GETTABUP  R3 = _ENV[K1('AdventureBoardDefinition')]
  0003  CALL      R2 = call(R2, 3 args, 1 rets)
  0004  JMP       (jump)   -> 21
  0005  GETTABUP  R7 = _ENV[K2('GM')]
  0006  GETTABLE  R7 = R7[K3('ActivityManager')]
  0007  SELF      R8 = R7[K4('GetModel')] (self)
  0008  MOVE      R9 = R0
  0009  CALL      R7 = call(R7, 1 args, 2 rets)
  0010  MOVE      R1 = R0
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 21
  0013  SELF      R8 = R1[K5('GetState')] (self)
  0014  CALL      R7 = call(R7, 1 args, 1 rets)
  0015  GETTABUP  R8 = _ENV[K6('ActivityState')]
  0016  GETTABLE  R8 = R8[K7('Ended')]
  0017  EQ        if R0 eq R8   -> -127461
  0018  JMP       (jump)   -> 21
  0019  LOADBOOL  R7 = true
  0020  RETURN    return R7..R6
  0021  TFORCALL  tforcall R2
  0022  TFORLOOP  tforloop R4(sBx=-18)   -> 5
  0023  LOADBOOL  R2 = false
  0024  RETURN    return R2..R1
  0025  RETURN    return R0..R-1
