# PairRaceActivity_View_PairRaceActivityEndWindow_1838.luac
; fn @PairRaceActivityEndWindow.lua  line 0-0 np=0 va=1 ms=3 code=25 consts=11 upvals=1 protos=5
;   K[0]='PairRaceActivityEndWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='PairRaceActivityBaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='OnBtnClicked'
;   K[8]='OnCloseBtnClick'
;   K[9]='_OnStateChanged'
;   K[10]='_CheckOpenRewardRecoverWindow'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('PairRaceActivityBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('PairRaceActivityEndWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('PairRaceActivityEndWindow')]
0007  GETTABUP  R1 = _ENV[K0('PairRaceActivityEndWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('PairRaceActivityEndWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('PairRaceActivityEndWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnBtnClicked')] = R1
0015  GETTABUP  R0 = _ENV[K0('PairRaceActivityEndWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('OnCloseBtnClick')] = R1
0018  GETTABUP  R0 = _ENV[K0('PairRaceActivityEndWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('_OnStateChanged')] = R1
0021  GETTABUP  R0 = _ENV[K0('PairRaceActivityEndWindow')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K10('_CheckOpenRewardRecoverWindow')] = R1
0024  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 9-13 np=4 va=0 ms=9 code=15 consts=6 upvals=1 protos=0
  ;   K[0]='PairRaceActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_unclaimedRewards'
  ;   K[3]='m_model'
  ;   K[4]='ClaimLeftRewards'
  ;   K[5]='CheckGroupEnd'
  ;   upvals: _ENV
  ;   locals: self(0-15), activityType(0-15), id(0-15), bAutoPop(0-15)
  0000  GETTABUP  R4 = _ENV[K0('PairRaceActivityBaseWindow')]
  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[K3('m_model')]
  0008  SELF      R5 = R4[K4('ClaimLeftRewards')] (self)
  0009  CALL      R4 = call(R4, 1 args, 1 rets)
  0010  SETTABLE  R0[K2('m_unclaimedRewards')] = R4
  0011  GETTABLE  R4 = R0[K3('m_model')]
  0012  SELF      R5 = R4[K5('CheckGroupEnd')] (self)
  0013  CALL      R4 = call(R4, 0 args, 1 rets)
  0014  RETURN    return R0..R-1
; ---------- proto1 [OnBtnClicked] ----------
  ; fn ?  line 15-18 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='Close'
  ;   K[1]='_CheckOpenRewardRecoverWindow'
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  SELF      R2 = R0[K1('_CheckOpenRewardRecoverWindow')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [OnCloseBtnClick] ----------
  ; fn ?  line 20-23 np=1 va=0 ms=3 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='PairRaceActivityBaseWindow'
  ;   K[1]='OnCloseBtnClick'
  ;   K[2]='_CheckOpenRewardRecoverWindow'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  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  SELF      R2 = R0[K2('_CheckOpenRewardRecoverWindow')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto3 [_OnStateChanged] ----------
  ; fn ?  line 25-28 np=1 va=0 ms=3 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='PairRaceActivityBaseWindow'
  ;   K[1]='_OnStateChanged'
  ;   K[2]='_CheckOpenRewardRecoverWindow'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('PairRaceActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('_OnStateChanged')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_CheckOpenRewardRecoverWindow')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto4 [_CheckOpenRewardRecoverWindow] ----------
  ; fn ?  line 30-35 np=1 va=0 ms=8 code=17 consts=10 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='m_unclaimedRewards'
  ;   K[3]='GM'
  ;   K[4]='UIManager'
  ;   K[5]='OpenView'
  ;   K[6]='m_activityDefinition'
  ;   K[7]='RewardRecoverWindowPrefabName'
  ;   K[8]='m_activityType'
  ;   K[9]='m_id'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('IsEmpty')]
  0002  GETTABLE  R2 = R0[K2('m_unclaimedRewards')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 16
  0006  GETTABUP  R1 = _ENV[K3('GM')]
  0007  GETTABLE  R1 = R1[K4('UIManager')]
  0008  SELF      R2 = R1[K5('OpenView')] (self)
  0009  GETTABLE  R3 = R0[K6('m_activityDefinition')]
  0010  GETTABLE  R3 = R3[K7('RewardRecoverWindowPrefabName')]
  0011  GETTABLE  R4 = R0[K8('m_activityType')]
  0012  GETTABLE  R5 = R0[K9('m_id')]
  0013  LOADBOOL  R6 = true
  0014  GETTABLE  R7 = R0[K2('m_unclaimedRewards')]
  0015  CALL      R1 = call(R1, 0 args, 6 rets)
  0016  RETURN    return R0..R-1
