# ExtraBoardBp_View_ExtraBoardBpActivityRewardRecoverWindow_1608.luac
; fn @ExtraBoardBpActivityRewardRecoverWindow.lua  line 0-0 np=0 va=1 ms=3 code=22 consts=10 upvals=1 protos=4
;   K[0]='ExtraBoardBpActivityRewardRecoverWindow'
;   K[1]='setmetatable'
;   K[2]='m_bCloseWhenFinish'
;   K[3]=false
;   K[4]='ExtraBoardBpActivityBaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='_InitView'
;   K[8]='_TryClaimRewards'
;   K[9]='Close'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('m_bCloseWhenFinish')] = K3(false)
0003  GETTABUP  R2 = _ENV[K4('ExtraBoardBpActivityBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('ExtraBoardBpActivityRewardRecoverWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('ExtraBoardBpActivityRewardRecoverWindow')]
0007  GETTABUP  R1 = _ENV[K0('ExtraBoardBpActivityRewardRecoverWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('ExtraBoardBpActivityRewardRecoverWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('ExtraBoardBpActivityRewardRecoverWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('_InitView')] = R1
0015  GETTABUP  R0 = _ENV[K0('ExtraBoardBpActivityRewardRecoverWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('_TryClaimRewards')] = R1
0018  GETTABUP  R0 = _ENV[K0('ExtraBoardBpActivityRewardRecoverWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('Close')] = R1
0021  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 13-18 np=4 va=0 ms=9 code=12 consts=4 upvals=1 protos=0
  ;   K[0]='ExtraBoardBpActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='_TryClaimRewards'
  ;   K[3]='_InitView'
  ;   upvals: _ENV
  ;   locals: self(0-12), activityType(0-12), id(0-12), bAutoPop(0-12), rewards(9-12)
  0000  GETTABUP  R4 = _ENV[K0('ExtraBoardBpActivityBaseWindow')]
  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  SELF      R5 = R0[K2('_TryClaimRewards')] (self)
  0008  CALL      R4 = call(R4, 1 args, 1 rets)
  0009  SELF      R6 = R0[K3('_InitView')] (self)
  0010  CALL      R5 = call(R5, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto1 [_InitView] ----------
  ; fn ?  line 20-22 np=1 va=0 ms=7 code=9 consts=6 upvals=1 protos=0
  ;   K[0]='m_rewardContent'
  ;   K[1]='Init'
  ;   K[2]='m_rewards'
  ;   K[3]='ERewardScene'
  ;   K[4]='Other'
  ;   K[5]=4
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_rewardContent')]
  0001  SELF      R2 = R1[K1('Init')] (self)
  0002  GETTABLE  R3 = R0[K2('m_rewards')]
  0003  GETTABUP  R4 = _ENV[K3('ERewardScene')]
  0004  GETTABLE  R4 = R4[K4('Other')]
  0005  LOADNIL   R5..R5 = nil
  0006  LOADK     R6 = K5 4
  0007  CALL      R1 = call(R1, 0 args, 5 rets)
  0008  RETURN    return R0..R-1
; ---------- proto2 [_TryClaimRewards] ----------
  ; fn ?  line 24-37 np=1 va=0 ms=13 code=43 consts=17 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetQuestHelper'
  ;   K[2]='ipairs'
  ;   K[3]='GetAllCompletedQuests'
  ;   K[4]='CanAcquirePaidReward'
  ;   K[5]='RewardApi'
  ;   K[6]='MergeRewards'
  ;   K[7]='GetPaidRewards'
  ;   K[8]='FilterRewards'
  ;   K[9]='ERewardScene'
  ;   K[10]='Other'
  ;   K[11]='AcquireRewardsLogic'
  ;   K[12]='EPropertySource'
  ;   K[13]='Buy'
  ;   K[14]='GetActivityDefinition'
  ;   K[15]='GetRewardsBIType'
  ;   K[16]='m_rewards'
  ;   upvals: _ENV
  ;   locals: self(0-43), model(2-43), questHelper(4-43), rewards(5-43), (for generator)(9-23), (for state)(9-23), (for control)(9-23), _(10-21), questEntity(10-21)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K1('GetQuestHelper')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  NEWTABLE  R3 = {} (0 items)
  0005  GETTABUP  R4 = _ENV[K2('ipairs')]
  0006  SELF      R6 = R2[K3('GetAllCompletedQuests')] (self)
  0007  CALL      R5 = call(R5, -1 args, 1 rets)
  0008  CALL      R4 = call(R4, 3 args, -1 rets)
  0009  JMP       (jump)   -> 21
  0010  SELF      R10 = R8[K4('CanAcquirePaidReward')] (self)
  0011  CALL      R9 = call(R9, 1 args, 1 rets)
  0012  TEST      if not R9 then   -> -131058
  0013  JMP       (jump)   -> 21
  0014  GETTABUP  R9 = _ENV[K5('RewardApi')]
  0015  GETTABLE  R9 = R9[K6('MergeRewards')]
  0016  MOVE      R10 = R0
  0017  SELF      R12 = R8[K7('GetPaidRewards')] (self)
  0018  CALL      R11 = call(R11, -1 args, 1 rets)
  0019  CALL      R9 = call(R9, 1 args, -1 rets)
  0020  MOVE      R3 = R0
  0021  TFORCALL  tforcall R4
  0022  TFORLOOP  tforloop R6(sBx=-13)   -> 10
  0023  GETTABUP  R4 = _ENV[K5('RewardApi')]
  0024  GETTABLE  R4 = R4[K8('FilterRewards')]
  0025  MOVE      R5 = R0
  0026  GETTABUP  R6 = _ENV[K9('ERewardScene')]
  0027  GETTABLE  R6 = R6[K10('Other')]
  0028  CALL      R4 = call(R4, 1 args, 2 rets)
  0029  MOVE      R3 = R0
  0030  GETTABUP  R4 = _ENV[K5('RewardApi')]
  0031  GETTABLE  R4 = R4[K11('AcquireRewardsLogic')]
  0032  MOVE      R5 = R0
  0033  GETTABUP  R6 = _ENV[K12('EPropertySource')]
  0034  GETTABLE  R6 = R6[K13('Buy')]
  0035  SELF      R8 = R1[K14('GetActivityDefinition')] (self)
  0036  CALL      R7 = call(R7, 1 args, 1 rets)
  0037  GETTABLE  R7 = R7[K15('GetRewardsBIType')]
  0038  GETTABUP  R8 = _ENV[K9('ERewardScene')]
  0039  GETTABLE  R8 = R8[K10('Other')]
  0040  CALL      R4 = call(R4, 0 args, 4 rets)
  0041  SETTABLE  R0[K16('m_rewards')] = R3
  0042  RETURN    return R0..R-1
; ---------- proto3 [Close] ----------
  ; fn ?  line 39-42 np=1 va=0 ms=3 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='ExtraBoardBpActivityBaseWindow'
  ;   K[1]='Close'
  ;   K[2]='m_rewardContent'
  ;   K[3]='PlayRewardAnimation'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('ExtraBoardBpActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Close')]
  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
