# PairRaceActivity_View_PairRaceActivityRewardRecoverWindow_1840.luac
; fn @PairRaceActivityRewardRecoverWindow.lua  line 0-0 np=0 va=1 ms=3 code=23 consts=11 upvals=1 protos=4
;   K[0]='PairRaceActivityRewardRecoverWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=false
;   K[4]='m_bCheckBeforeOpen'
;   K[5]='PairRaceActivityBaseWindow'
;   K[6]='__index'
;   K[7]='BeforeOpenCheck'
;   K[8]='Init'
;   K[9]='OnBtnClicked'
;   K[10]='OnCloseBtnClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(false)
0003  SETTABLE  R1[K4('m_bCheckBeforeOpen')] = K3(false)
0004  GETTABUP  R2 = _ENV[K5('PairRaceActivityBaseWindow')]
0005  CALL      R0 = call(R0, 1 args, 2 rets)
0006  SETTABUP  _ENV[K0('PairRaceActivityRewardRecoverWindow')] = R0
0007  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardRecoverWindow')]
0008  GETTABUP  R1 = _ENV[K0('PairRaceActivityRewardRecoverWindow')]
0009  SETTABLE  R0[K6('__index')] = R1
0010  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardRecoverWindow')]
0011  CLOSURE   R1 = closure proto0
0012  SETTABLE  R0[K7('BeforeOpenCheck')] = R1
0013  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardRecoverWindow')]
0014  CLOSURE   R1 = closure proto1
0015  SETTABLE  R0[K8('Init')] = R1
0016  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardRecoverWindow')]
0017  CLOSURE   R1 = closure proto2
0018  SETTABLE  R0[K9('OnBtnClicked')] = R1
0019  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardRecoverWindow')]
0020  CLOSURE   R1 = closure proto3
0021  SETTABLE  R0[K10('OnCloseBtnClick')] = R1
0022  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 10-16 np=5 va=0 ms=11 code=25 consts=8 upvals=1 protos=0
  ;   K[0]='PairRaceActivityBaseWindow'
  ;   K[1]='BeforeOpenCheck'
  ;   K[2]='Table'
  ;   K[3]='IsEmpty'
  ;   K[4]='RewardApi'
  ;   K[5]='FilterRewards'
  ;   K[6]='ERewardScene'
  ;   K[7]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-25), activityType(0-25), id(0-25), bAutoPop(0-25), rewards(0-25)
  0000  GETTABUP  R5 = _ENV[K0('PairRaceActivityBaseWindow')]
  0001  GETTABLE  R5 = R5[K1('BeforeOpenCheck')]
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  MOVE      R8 = R0
  0005  MOVE      R9 = R0
  0006  CALL      R5 = call(R5, 1 args, 4 rets)
  0007  TEST      if not R5 then   -> -131062
  0008  JMP       (jump)   -> 11
  0009  LOADBOOL  R5 = false
  0010  RETURN    return R5..R4
  0011  GETTABUP  R5 = _ENV[K2('Table')]
  0012  GETTABLE  R5 = R5[K3('IsEmpty')]
  0013  GETTABUP  R6 = _ENV[K4('RewardApi')]
  0014  GETTABLE  R6 = R6[K5('FilterRewards')]
  0015  MOVE      R7 = R0
  0016  GETTABUP  R8 = _ENV[K6('ERewardScene')]
  0017  GETTABLE  R8 = R8[K7('Other')]
  0018  LOADNIL   R9..R9 = nil
  0019  LOADBOOL  R10 = false
  0020  CALL      R6 = call(R6, -1 args, 4 rets)
  0021  CALL      R5 = call(R5, 1 args, -1 rets)
  0022  NOT       R5 = not R0
  0023  RETURN    return R5..R4
  0024  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 18-21 np=5 va=0 ms=10 code=14 consts=5 upvals=1 protos=0
  ;   K[0]='PairRaceActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_rewardContent'
  ;   K[3]='ERewardScene'
  ;   K[4]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-14), activityType(0-14), id(0-14), bAutoPop(0-14), rewards(0-14)
  0000  GETTABUP  R5 = _ENV[K0('PairRaceActivityBaseWindow')]
  0001  GETTABLE  R5 = R5[K1('Init')]
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  MOVE      R8 = R0
  0005  MOVE      R9 = R0
  0006  CALL      R5 = call(R5, 0 args, 4 rets)
  0007  GETTABLE  R5 = R0[K2('m_rewardContent')]
  0008  SELF      R6 = R5[K1('Init')] (self)
  0009  MOVE      R7 = R0
  0010  GETTABUP  R8 = _ENV[K3('ERewardScene')]
  0011  GETTABLE  R8 = R8[K4('Other')]
  0012  CALL      R5 = call(R5, 0 args, 3 rets)
  0013  RETURN    return R0..R-1
; ---------- proto2 [OnBtnClicked] ----------
  ; fn ?  line 23-26 np=1 va=0 ms=3 code=6 consts=3 upvals=0 protos=0
  ;   K[0]='Close'
  ;   K[1]='m_rewardContent'
  ;   K[2]='PlayRewardAnimation'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_rewardContent')]
  0003  SELF      R2 = R1[K2('PlayRewardAnimation')] (self)
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
; ---------- proto3 [OnCloseBtnClick] ----------
  ; fn ?  line 28-31 np=1 va=0 ms=3 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='PairRaceActivityBaseWindow'
  ;   K[1]='OnCloseBtnClick'
  ;   K[2]='m_rewardContent'
  ;   K[3]='PlayRewardAnimation'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('PairRaceActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseBtnClick')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_rewardContent')]
  0005  SELF      R2 = R1[K3('PlayRewardAnimation')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
