# DashActivity_Common_View_DashActivityRewardRecoverWindow_807.luac
; fn @DashActivityRewardRecoverWindow.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=12 upvals=1 protos=4
;   K[0]='DashActivityRewardRecoverWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=false
;   K[4]='canCloseByAndroidBack'
;   K[5]='showWindowMask'
;   K[6]='DashActivityBaseWindow'
;   K[7]='__index'
;   K[8]='Init'
;   K[9]='_GetRewards'
;   K[10]='OnButtonClicked'
;   K[11]='Close'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(false)
0003  SETTABLE  R1[K4('canCloseByAndroidBack')] = K3(false)
0004  SETTABLE  R1[K5('showWindowMask')] = K3(false)
0005  GETTABUP  R2 = _ENV[K6('DashActivityBaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('DashActivityRewardRecoverWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('DashActivityRewardRecoverWindow')]
0009  GETTABUP  R1 = _ENV[K0('DashActivityRewardRecoverWindow')]
0010  SETTABLE  R0[K7('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('DashActivityRewardRecoverWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K8('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('DashActivityRewardRecoverWindow')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K9('_GetRewards')] = R1
0017  GETTABUP  R0 = _ENV[K0('DashActivityRewardRecoverWindow')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K10('OnButtonClicked')] = R1
0020  GETTABUP  R0 = _ENV[K0('DashActivityRewardRecoverWindow')]
0021  CLOSURE   R1 = closure proto3
0022  SETTABLE  R0[K11('Close')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 10-28 np=2 va=0 ms=6 code=42 consts=19 upvals=1 protos=0
  ;   K[0]='DashActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_activityType'
  ;   K[3]='_GetRewards'
  ;   K[4]='m_rewardContent'
  ;   K[5]='m_rewards'
  ;   K[6]=3
  ;   K[7]='UIUtil'
  ;   K[8]='AddSizeDelta'
  ;   K[9]='m_contentRect'
  ;   K[10]=0
  ;   K[11]=-300
  ;   K[12]=6
  ;   K[13]='m_topEdgeGo'
  ;   K[14]='SetActive'
  ;   K[15]='m_bottomEdgeGo'
  ;   K[16]='m_curId'
  ;   K[17]='m_model'
  ;   K[18]='GetId'
  ;   upvals: _ENV
  ;   locals: self(0-42), activityType(0-42), showRewardEdge(29-42)
  0000  GETTABUP  R2 = _ENV[K0('DashActivityBaseWindow')]
  0001  GETTABLE  R2 = R2[K1('Init')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  LOADBOOL  R5 = true
  0005  CALL      R2 = call(R2, 0 args, 3 rets)
  0006  SETTABLE  R0[K2('m_activityType')] = R1
  0007  SELF      R3 = R0[K3('_GetRewards')] (self)
  0008  CALL      R2 = call(R2, 0 args, 1 rets)
  0009  GETTABLE  R2 = R0[K4('m_rewardContent')]
  0010  SELF      R3 = R2[K1('Init')] (self)
  0011  GETTABLE  R4 = R0[K5('m_rewards')]
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  GETTABLE  R2 = R0[K5('m_rewards')]
  0014  LEN       R2 = len R0
  0015  LE        if R0 le K6(3)   -> -129769
  0016  JMP       (jump)   -> 23
  0017  GETTABUP  R2 = _ENV[K7('UIUtil')]
  0018  GETTABLE  R2 = R2[K8('AddSizeDelta')]
  0019  GETTABLE  R3 = R0[K9('m_contentRect')]
  0020  LOADK     R4 = K10 0
  0021  LOADK     R5 = K11 -300
  0022  CALL      R2 = call(R2, 0 args, 3 rets)
  0023  GETTABLE  R2 = R0[K5('m_rewards')]
  0024  LEN       R2 = len R0
  0025  LT        if R1 lt R2   -> 6173
  0026  JMP       (jump)   -> 28
  0027  LOADBOOL  R2 = false
  0028  LOADBOOL  R2 = true
  0029  GETTABLE  R3 = R0[K13('m_topEdgeGo')]
  0030  SELF      R4 = R3[K14('SetActive')] (self)
  0031  MOVE      R5 = R0
  0032  CALL      R3 = call(R3, 0 args, 2 rets)
  0033  GETTABLE  R3 = R0[K15('m_bottomEdgeGo')]
  0034  SELF      R4 = R3[K14('SetActive')] (self)
  0035  MOVE      R5 = R0
  0036  CALL      R3 = call(R3, 0 args, 2 rets)
  0037  GETTABLE  R3 = R0[K17('m_model')]
  0038  SELF      R4 = R3[K18('GetId')] (self)
  0039  CALL      R3 = call(R3, 1 args, 1 rets)
  0040  SETTABLE  R0[K16('m_curId')] = R3
  0041  RETURN    return R0..R-1
; ---------- proto1 [_GetRewards] ----------
  ; fn ?  line 30-47 np=1 va=0 ms=7 code=27 consts=11 upvals=1 protos=0
  ;   K[0]='m_rewards'
  ;   K[1]='m_model'
  ;   K[2]='GetLevel'
  ;   K[3]='GetLevelConfigs'
  ;   K[4]=nil
  ;   K[5]='GetScore'
  ;   K[6]='score'
  ;   K[7]='Table'
  ;   K[8]='ListAppend'
  ;   K[9]='rewards'
  ;   K[10]='Upgrade'
  ;   upvals: _ENV
  ;   locals: self(0-27), level(5-25), levelConfig(9-25), score(14-25)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SETTABLE  R0[K0('m_rewards')] = R1
  0002  GETTABLE  R1 = R0[K1('m_model')]
  0003  SELF      R2 = R1[K2('GetLevel')] (self)
  0004  CALL      R1 = call(R1, 1 args, 1 rets)
  0005  GETTABLE  R2 = R0[K1('m_model')]
  0006  SELF      R3 = R2[K3('GetLevelConfigs')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  GETTABLE  R2 = R2[R1]
  0009  EQ        if R1 eq K4(nil)   -> -129777
  0010  JMP       (jump)   -> 26
  0011  GETTABLE  R3 = R0[K1('m_model')]
  0012  SELF      R4 = R3[K5('GetScore')] (self)
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  GETTABLE  R4 = R2[K6('score')]
  0015  LT        if R1 lt R4   -> -129515
  0016  JMP       (jump)   -> 26
  0017  GETTABUP  R4 = _ENV[K7('Table')]
  0018  GETTABLE  R4 = R4[K8('ListAppend')]
  0019  GETTABLE  R5 = R0[K0('m_rewards')]
  0020  GETTABLE  R6 = R2[K9('rewards')]
  0021  CALL      R4 = call(R4, 0 args, 2 rets)
  0022  GETTABLE  R4 = R0[K1('m_model')]
  0023  SELF      R5 = R4[K10('Upgrade')] (self)
  0024  CALL      R4 = call(R4, 0 args, 1 rets)
  0025  JMP       (jump)   -> 2
  0026  RETURN    return R0..R-1
; ---------- proto2 [OnButtonClicked] ----------
  ; fn ?  line 49-51 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='Close'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto3 [Close] ----------
  ; fn ?  line 53-73 np=1 va=0 ms=9 code=61 consts=27 upvals=1 protos=0
  ;   K[0]='eventLock'
  ;   K[1]=true
  ;   K[2]='interval'
  ;   K[3]=0.15
  ;   K[4]='RewardApi'
  ;   K[5]='AcquireRewardsInView'
  ;   K[6]='m_rewards'
  ;   K[7]='m_curId'
  ;   K[8]='m_model'
  ;   K[9]='GetId'
  ;   K[10]='GetState'
  ;   K[11]='ActivityState'
  ;   K[12]='Released'
  ;   K[13]='DashActivityDefinition'
  ;   K[14]='m_activityType'
  ;   K[15]='GetLevel'
  ;   K[16]='GetLevelConfigs'
  ;   K[17]=nil
  ;   K[18]='IsPlayEntryFinal'
  ;   K[19]='GetMaxRewardLevel'
  ;   K[20]='GM'
  ;   K[21]='UIManager'
  ;   K[22]='OpenViewWhenIdle'
  ;   K[23]='SuccessWindowPrefabName'
  ;   K[24]='FailWindowPrefabName'
  ;   K[25]='DashActivityBaseWindow'
  ;   K[26]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-61), viewData(3-61), activityDefinition(24-56), level(27-56), levelConfig(31-56)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SETTABLE  R1[K0('eventLock')] = K1(true)
  0002  SETTABLE  R1[K2('interval')] = K3(0.15)
  0003  GETTABUP  R2 = _ENV[K4('RewardApi')]
  0004  GETTABLE  R2 = R2[K5('AcquireRewardsInView')]
  0005  GETTABLE  R3 = R0[K6('m_rewards')]
  0006  MOVE      R4 = R0
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  GETTABLE  R2 = R0[K7('m_curId')]
  0009  GETTABLE  R3 = R0[K8('m_model')]
  0010  SELF      R4 = R3[K9('GetId')] (self)
  0011  CALL      R3 = call(R3, 1 args, 1 rets)
  0012  EQ        if R0 eq R3   -> -130031
  0013  JMP       (jump)   -> 56
  0014  GETTABLE  R2 = R0[K8('m_model')]
  0015  SELF      R3 = R2[K10('GetState')] (self)
  0016  CALL      R2 = call(R2, 1 args, 1 rets)
  0017  GETTABUP  R3 = _ENV[K11('ActivityState')]
  0018  GETTABLE  R3 = R3[K12('Released')]
  0019  EQ        if R1 eq R3   -> -130024
  0020  JMP       (jump)   -> 56
  0021  GETTABUP  R2 = _ENV[K13('DashActivityDefinition')]
  0022  GETTABLE  R3 = R0[K14('m_activityType')]
  0023  GETTABLE  R2 = R2[R3]
  0024  GETTABLE  R3 = R0[K8('m_model')]
  0025  SELF      R4 = R3[K15('GetLevel')] (self)
  0026  CALL      R3 = call(R3, 1 args, 1 rets)
  0027  GETTABLE  R4 = R0[K8('m_model')]
  0028  SELF      R5 = R4[K16('GetLevelConfigs')] (self)
  0029  CALL      R4 = call(R4, 1 args, 1 rets)
  0030  GETTABLE  R4 = R4[R3]
  0031  EQ        if R1 eq K17(nil)   -> -128718
  0032  JMP       (jump)   -> 43
  0033  GETTABLE  R5 = R0[K8('m_model')]
  0034  SELF      R6 = R5[K18('IsPlayEntryFinal')] (self)
  0035  CALL      R5 = call(R5, 1 args, 1 rets)
  0036  TEST      if not R5 then   -> -131033
  0037  JMP       (jump)   -> 50
  0038  GETTABLE  R5 = R0[K8('m_model')]
  0039  SELF      R6 = R5[K19('GetMaxRewardLevel')] (self)
  0040  CALL      R5 = call(R5, 1 args, 1 rets)
  0041  LT        if R0 lt R3   -> -128466
  0042  JMP       (jump)   -> 50
  0043  GETTABUP  R5 = _ENV[K20('GM')]
  0044  GETTABLE  R5 = R5[K21('UIManager')]
  0045  SELF      R6 = R5[K22('OpenViewWhenIdle')] (self)
  0046  GETTABLE  R7 = R2[K23('SuccessWindowPrefabName')]
  0047  GETTABLE  R8 = R0[K14('m_activityType')]
  0048  CALL      R5 = call(R5, 0 args, 3 rets)
  0049  JMP       (jump)   -> 56
  0050  GETTABUP  R5 = _ENV[K20('GM')]
  0051  GETTABLE  R5 = R5[K21('UIManager')]
  0052  SELF      R6 = R5[K22('OpenViewWhenIdle')] (self)
  0053  GETTABLE  R7 = R2[K24('FailWindowPrefabName')]
  0054  GETTABLE  R8 = R0[K14('m_activityType')]
  0055  CALL      R5 = call(R5, 0 args, 3 rets)
  0056  GETTABUP  R2 = _ENV[K25('DashActivityBaseWindow')]
  0057  GETTABLE  R2 = R2[K26('Close')]
  0058  MOVE      R3 = R0
  0059  CALL      R2 = call(R2, 0 args, 1 rets)
  0060  RETURN    return R0..R-1
