# UpgradeRace_View_UpgradeRaceActivityRewardWindow_1575.luac
; fn @UpgradeRaceActivityRewardWindow.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=12 upvals=1 protos=3
;   K[0]='UpgradeRaceActivityRewardWindow'
;   K[1]='setmetatable'
;   K[2]='m_bCloseWhenFinish'
;   K[3]=false
;   K[4]='canCloseByAndroidBack'
;   K[5]='windowMaskAlpha'
;   K[6]=0
;   K[7]='UpgradeRaceActivityBaseWindow'
;   K[8]='__index'
;   K[9]='Init'
;   K[10]='OnBtnClicked'
;   K[11]='Close'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('m_bCloseWhenFinish')] = K3(false)
0003  SETTABLE  R1[K4('canCloseByAndroidBack')] = K3(false)
0004  SETTABLE  R1[K5('windowMaskAlpha')] = K6(0)
0005  GETTABUP  R2 = _ENV[K7('UpgradeRaceActivityBaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('UpgradeRaceActivityRewardWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('UpgradeRaceActivityRewardWindow')]
0009  GETTABUP  R1 = _ENV[K0('UpgradeRaceActivityRewardWindow')]
0010  SETTABLE  R0[K8('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('UpgradeRaceActivityRewardWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K9('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('UpgradeRaceActivityRewardWindow')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K10('OnBtnClicked')] = R1
0017  GETTABUP  R0 = _ENV[K0('UpgradeRaceActivityRewardWindow')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K11('Close')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 18-68 np=9 va=0 ms=21 code=136 consts=54 upvals=1 protos=2
  ;   K[0]='UpgradeRaceActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]=nil
  ;   K[3]='Log'
  ;   K[4]='Assert'
  ;   K[5]='Table'
  ;   K[6]='IsEmpty'
  ;   K[7]='param rewards is error'
  ;   K[8]='m_activityType'
  ;   K[9]='m_rank'
  ;   K[10]='m_rewards'
  ;   K[11]='SpriteUtil'
  ;   K[12]='SetImage'
  ;   K[13]='m_boxImg'
  ;   K[14]='rank_box_'
  ;   K[15]='math'
  ;   K[16]='min'
  ;   K[17]=4
  ;   K[18]=1
  ;   K[19]=2
  ;   K[20]=3
  ;   K[21]='Error'
  ;   K[22]='逻辑错误'
  ;   K[23]='m_titleGo'
  ;   K[24]='SetActive'
  ;   K[25]='m_stageGo'
  ;   K[26]='m_userAvatar'
  ;   K[27]='SetMySelf'
  ;   K[28]='EAvatarFrame'
  ;   K[29]='Highlight'
  ;   K[30]='IsNull'
  ;   K[31]='Close'
  ;   K[32]='DelayExecuteFuncInView'
  ;   K[33]=0.2
  ;   K[34]='m_boxRect'
  ;   K[35]='localScale'
  ;   K[36]='localPosition'
  ;   K[37]='position'
  ;   K[38]='GM'
  ;   K[39]='UIManager'
  ;   K[40]='SetEventLock'
  ;   K[41]='DOTween'
  ;   K[42]='Sequence'
  ;   K[43]='Append'
  ;   K[44]='DOLocalJump'
  ;   K[45]=100
  ;   K[46]=0.5
  ;   K[47]='SetEase'
  ;   K[48]='Ease'
  ;   K[49]='InOutSine'
  ;   K[50]='Join'
  ;   K[51]='DOScale'
  ;   K[52]='AppendCallback'
  ;   K[53]='m_jumpSeq'
  ;   upvals: _ENV
  ;   locals: self(0-136), activityType(0-136), id(0-136), bAutoPop(0-136), rank(0-136), rewards(0-136), boxRect(0-136), roundDefinitionIndex(0-136), initCallback(0-136), (for index)(49-71), (for limit)(49-71), (for step)(49-71), i(50-70), rect(94-136), originScale(95-136), originLocalPos(98-136), seq(109-136)
  0000  GETTABUP  R9 = _ENV[K0('UpgradeRaceActivityBaseWindow')]
  0001  GETTABLE  R9 = R9[K1('Init')]
  0002  MOVE      R10 = R0
  0003  MOVE      R11 = R0
  0004  MOVE      R12 = R0
  0005  MOVE      R13 = R0
  0006  CALL      R9 = call(R9, 0 args, 4 rets)
  0007  EQ        if R1 eq K2(nil)   -> -126709
  0008  JMP       (jump)   -> 11
  0009  MOVE      R9 = R0
  0010  CALL      R9 = call(R9, 0 args, 0 rets)
  0011  GETTABUP  R9 = _ENV[K3('Log')]
  0012  GETTABLE  R9 = R9[K4('Assert')]
  0013  GETTABUP  R10 = _ENV[K5('Table')]
  0014  GETTABLE  R10 = R10[K6('IsEmpty')]
  0015  MOVE      R11 = R0
  0016  CALL      R10 = call(R10, 1 args, 1 rets)
  0017  NOT       R10 = not R0
  0018  LOADK     R11 = K7 'param rewards is error'
  0019  CALL      R9 = call(R9, 0 args, 2 rets)
  0020  SETTABLE  R0[K8('m_activityType')] = R1
  0021  SETTABLE  R0[K9('m_rank')] = R4
  0022  SETTABLE  R0[K10('m_rewards')] = R5
  0023  GETTABUP  R9 = _ENV[K11('SpriteUtil')]
  0024  GETTABLE  R9 = R9[K12('SetImage')]
  0025  GETTABLE  R10 = R0[K13('m_boxImg')]
  0026  LOADK     R11 = K14 'rank_box_'
  0027  GETTABUP  R12 = _ENV[K15('math')]
  0028  GETTABLE  R12 = R12[K16('min')]
  0029  MOVE      R13 = R0
  0030  LOADK     R14 = K17 4
  0031  CALL      R12 = call(R12, 1 args, 2 rets)
  0032  CONCAT    R11 = concat(R11..R11)
  0033  LOADBOOL  R12 = true
  0034  CALL      R9 = call(R9, 0 args, 3 rets)
  0035  EQ        if R1 eq K18(1)   -> -127177
  0036  JMP       (jump)   -> 46
  0037  EQ        if R1 eq K19(2)   -> -127174
  0038  JMP       (jump)   -> 46
  0039  EQ        if R1 eq K20(3)   -> -127171
  0040  JMP       (jump)   -> 46
  0041  GETTABUP  R9 = _ENV[K3('Log')]
  0042  GETTABLE  R9 = R9[K21('Error')]
  0043  LOADK     R10 = K22 '逻辑错误'
  0044  CALL      R9 = call(R9, 0 args, 1 rets)
  0045  LOADK     R7 = K18 1
  0046  LOADK     R9 = K18 1
  0047  LOADK     R10 = K20 3
  0048  LOADK     R11 = K18 1
  0049  FORPREP   forprep R9(sBx=20)   -> 70
  0050  LOADK     R13 = K23 'm_titleGo'
  0051  MOVE      R14 = R0
  0052  CONCAT    R13 = concat(R13..R13)
  0053  GETTABLE  R13 = R0[R13]
  0054  SELF      R14 = R13[K24('SetActive')] (self)
  0055  EQ        if R1 eq R12   -> -127419
  0056  JMP       (jump)   -> 58
  0057  LOADBOOL  R15 = false
  0058  LOADBOOL  R15 = true
  0059  CALL      R13 = call(R13, 0 args, 2 rets)
  0060  LOADK     R13 = K25 'm_stageGo'
  0061  MOVE      R14 = R0
  0062  CONCAT    R13 = concat(R13..R13)
  0063  GETTABLE  R13 = R0[R13]
  0064  SELF      R14 = R13[K24('SetActive')] (self)
  0065  EQ        if R1 eq R12   -> -127409
  0066  JMP       (jump)   -> 68
  0067  LOADBOOL  R15 = false
  0068  LOADBOOL  R15 = true
  0069  CALL      R13 = call(R13, 0 args, 2 rets)
  0070  FORLOOP   forloop R9(sBx=-21)   -> 50
  0071  LOADK     R9 = K26 'm_userAvatar'
  0072  MOVE      R10 = R0
  0073  CONCAT    R9 = concat(R9..R9)
  0074  GETTABLE  R9 = R0[R9]
  0075  SELF      R10 = R9[K27('SetMySelf')] (self)
  0076  GETTABUP  R11 = _ENV[K28('EAvatarFrame')]
  0077  GETTABLE  R11 = R11[K29('Highlight')]
  0078  CALL      R9 = call(R9, 0 args, 2 rets)
  0079  EQ        if R1 eq K2(nil)   -> -127661
  0080  JMP       (jump)   -> 85
  0081  SELF      R10 = R6[K30('IsNull')] (self)
  0082  CALL      R9 = call(R9, 1 args, 1 rets)
  0083  TEST      if not R9 then   -> -130987
  0084  JMP       (jump)   -> 88
  0085  SELF      R10 = R0[K31('Close')] (self)
  0086  CALL      R9 = call(R9, 0 args, 1 rets)
  0087  RETURN    return R0..R-1
  0088  GETTABUP  R9 = _ENV[K32('DelayExecuteFuncInView')]
  0089  CLOSURE   R10 = closure proto0
  0090  LOADK     R11 = K33 0.2
  0091  MOVE      R12 = R0
  0092  CALL      R9 = call(R9, 0 args, 3 rets)
  0093  GETTABLE  R9 = R0[K34('m_boxRect')]
  0094  GETTABLE  R10 = R9[K35('localScale')]
  0095  GETTABLE  R11 = R6[K35('localScale')]
  0096  SETTABLE  R9[K35('localScale')] = R11
  0097  GETTABLE  R11 = R9[K36('localPosition')]
  0098  GETTABLE  R12 = R6[K37('position')]
  0099  SETTABLE  R9[K37('position')] = R12
  0100  GETTABUP  R12 = _ENV[K38('GM')]
  0101  GETTABLE  R12 = R12[K39('UIManager')]
  0102  SELF      R13 = R12[K40('SetEventLock')] (self)
  0103  LOADBOOL  R14 = true
  0104  MOVE      R15 = R0
  0105  CALL      R12 = call(R12, 0 args, 3 rets)
  0106  GETTABUP  R12 = _ENV[K41('DOTween')]
  0107  GETTABLE  R12 = R12[K42('Sequence')]
  0108  CALL      R12 = call(R12, 1 args, 0 rets)
  0109  SELF      R14 = R12[K43('Append')] (self)
  0110  SELF      R16 = R9[K44('DOLocalJump')] (self)
  0111  MOVE      R17 = R0
  0112  LOADK     R18 = K45 100
  0113  LOADK     R19 = K18 1
  0114  LOADK     R20 = K46 0.5
  0115  CALL      R15 = call(R15, 1 args, 5 rets)
  0116  SELF      R16 = R15[K47('SetEase')] (self)
  0117  GETTABUP  R17 = _ENV[K48('Ease')]
  0118  GETTABLE  R17 = R17[K49('InOutSine')]
  0119  CALL      R15 = call(R15, -1 args, 2 rets)
  0120  CALL      R13 = call(R13, 0 args, -1 rets)
  0121  SELF      R14 = R12[K50('Join')] (self)
  0122  SELF      R16 = R9[K51('DOScale')] (self)
  0123  MOVE      R17 = R0
  0124  LOADK     R18 = K46 0.5
  0125  CALL      R15 = call(R15, 1 args, 3 rets)
  0126  SELF      R16 = R15[K47('SetEase')] (self)
  0127  GETTABUP  R17 = _ENV[K48('Ease')]
  0128  GETTABLE  R17 = R17[K49('InOutSine')]
  0129  CALL      R15 = call(R15, -1 args, 2 rets)
  0130  CALL      R13 = call(R13, 0 args, -1 rets)
  0131  SELF      R14 = R12[K52('AppendCallback')] (self)
  0132  CLOSURE   R15 = closure proto1
  0133  CALL      R13 = call(R13, 0 args, 2 rets)
  0134  SETTABLE  R0[K53('m_jumpSeq')] = R12
  0135  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 45-47 np=0 va=0 ms=3 code=7 consts=5 upvals=1 protos=0
    ;   K[0]='GM'
    ;   K[1]='AudioModel'
    ;   K[2]='PlayEffect'
    ;   K[3]='AudioFileConfigName'
    ;   K[4]='SfxPkRaceActivityFinish2'
    ;   upvals: _ENV
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('AudioModel')]
    0002  SELF      R1 = R0[K2('PlayEffect')] (self)
    0003  GETTABUP  R2 = _ENV[K3('AudioFileConfigName')]
    0004  GETTABLE  R2 = R2[K4('SfxPkRaceActivityFinish2')]
    0005  CALL      R0 = call(R0, 0 args, 2 rets)
    0006  RETURN    return R0..R-1
  ; ---------- proto1 [m_jumpSeq] ----------
    ; fn ?  line 61-65 np=0 va=0 ms=4 code=13 consts=8 upvals=2 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   K[3]='m_jumpSeq'
    ;   K[4]=nil
    ;   K[5]='UIUtil'
    ;   K[6]='SetActive'
    ;   K[7]='m_caidaiGo'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('SetEventLock')] (self)
    0003  LOADBOOL  R2 = false
    0004  GETUPVAL  R3 = _ENV
    0005  CALL      R0 = call(R0, 0 args, 3 rets)
    0006  SETTABUP  self[K3('m_jumpSeq')] = K4(nil)
    0007  GETTABUP  R0 = _ENV[K5('UIUtil')]
    0008  GETTABLE  R0 = R0[K6('SetActive')]
    0009  GETTABUP  R1 = self[K7('m_caidaiGo')]
    0010  LOADBOOL  R2 = true
    0011  CALL      R0 = call(R0, 0 args, 2 rets)
    0012  RETURN    return R0..R-1
; ---------- proto1 [OnBtnClicked] ----------
  ; fn ?  line 70-74 np=1 va=0 ms=4 code=11 consts=9 upvals=1 protos=0
  ;   K[0]='m_boxCanvasGroup'
  ;   K[1]='ignoreParentGroups'
  ;   K[2]=false
  ;   K[3]='Close'
  ;   K[4]='GM'
  ;   K[5]='UIManager'
  ;   K[6]='CloseView'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='MainWindowPrefabName'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_boxCanvasGroup')]
  0001  SETTABLE  R1[K1('ignoreParentGroups')] = K2(false)
  0002  SELF      R2 = R0[K3('Close')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K4('GM')]
  0005  GETTABLE  R1 = R1[K5('UIManager')]
  0006  SELF      R2 = R1[K6('CloseView')] (self)
  0007  GETTABLE  R3 = R0[K7('m_activityDefinition')]
  0008  GETTABLE  R3 = R3[K8('MainWindowPrefabName')]
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  RETURN    return R0..R-1
; ---------- proto2 [Close] ----------
  ; fn ?  line 76-95 np=1 va=0 ms=11 code=19 consts=11 upvals=1 protos=1
  ;   K[0]='UpgradeRaceActivityBaseWindow'
  ;   K[1]='Close'
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='OpenView'
  ;   K[5]='UIPrefabConfigName'
  ;   K[6]='AnimatedRewardWindow'
  ;   K[7]='m_rewards'
  ;   K[8]='rewards_window_title_normal'
  ;   K[9]='ERewardScene'
  ;   K[10]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  GETTABUP  R1 = _ENV[K0('UpgradeRaceActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Close')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('UIManager')]
  0006  SELF      R2 = R1[K4('OpenView')] (self)
  0007  GETTABUP  R3 = _ENV[K5('UIPrefabConfigName')]
  0008  GETTABLE  R3 = R3[K6('AnimatedRewardWindow')]
  0009  GETTABLE  R4 = R0[K7('m_rewards')]
  0010  LOADK     R5 = K8 'rewards_window_title_normal'
  0011  LOADBOOL  R6 = true
  0012  GETTABUP  R7 = _ENV[K9('ERewardScene')]
  0013  GETTABLE  R7 = R7[K10('Other')]
  0014  LOADNIL   R8..R8 = nil
  0015  CLOSURE   R9 = closure proto0
  0016  LOADBOOL  R10 = true
  0017  CALL      R1 = call(R1, 0 args, 9 rets)
  0018  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 79-94 np=0 va=0 ms=4 code=15 consts=8 upvals=2 protos=1
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   K[3]='DOTween'
    ;   K[4]='Sequence'
    ;   K[5]='AppendInterval'
    ;   K[6]=1.5
    ;   K[7]='AppendCallback'
    ;   upvals: _ENV, self
    ;   locals: sequence(8-15)
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('SetEventLock')] (self)
    0003  LOADBOOL  R2 = true
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  GETTABUP  R0 = _ENV[K3('DOTween')]
    0006  GETTABLE  R0 = R0[K4('Sequence')]
    0007  CALL      R0 = call(R0, 1 args, 0 rets)
    0008  SELF      R2 = R0[K5('AppendInterval')] (self)
    0009  LOADK     R3 = K6 1.5
    0010  CALL      R1 = call(R1, 0 args, 2 rets)
    0011  SELF      R2 = R0[K7('AppendCallback')] (self)
    0012  CLOSURE   R3 = closure proto0
    0013  CALL      R1 = call(R1, 0 args, 2 rets)
    0014  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 84-93 np=0 va=0 ms=3 code=31 consts=11 upvals=2 protos=0
      ;   K[0]='GM'
      ;   K[1]='UIManager'
      ;   K[2]='SetEventLock'
      ;   K[3]='IsActivityValid'
      ;   K[4]='GetModel'
      ;   K[5]='GetState'
      ;   K[6]='ActivityState'
      ;   K[7]='Started'
      ;   K[8]='HasFinishedAllRounds'
      ;   K[9]='IsDeadline'
      ;   K[10]='OpenCurrentRoundEntryWindow'
      ;   upvals: _ENV, self
      ;   locals: model(14-31)
      0000  GETTABUP  R0 = _ENV[K0('GM')]
      0001  GETTABLE  R0 = R0[K1('UIManager')]
      0002  SELF      R1 = R0[K2('SetEventLock')] (self)
      0003  LOADBOOL  R2 = false
      0004  CALL      R0 = call(R0, 0 args, 2 rets)
      0005  GETUPVAL  R0 = _ENV
      0006  SELF      R1 = R0[K3('IsActivityValid')] (self)
      0007  CALL      R0 = call(R0, 1 args, 1 rets)
      0008  TEST      if not R0 then   -> -131061
      0009  JMP       (jump)   -> 11
      0010  RETURN    return R0..R-1
      0011  GETUPVAL  R0 = _ENV
      0012  SELF      R1 = R0[K4('GetModel')] (self)
      0013  CALL      R0 = call(R0, 1 args, 1 rets)
      0014  SELF      R2 = R0[K5('GetState')] (self)
      0015  CALL      R1 = call(R1, 1 args, 1 rets)
      0016  GETTABUP  R2 = _ENV[K6('ActivityState')]
      0017  GETTABLE  R2 = R2[K7('Started')]
      0018  EQ        if R0 eq R2   -> -130538
      0019  JMP       (jump)   -> 30
      0020  SELF      R2 = R0[K8('HasFinishedAllRounds')] (self)
      0021  CALL      R1 = call(R1, 1 args, 1 rets)
      0022  TEST      if not R1 then   -> -131047
      0023  JMP       (jump)   -> 30
      0024  SELF      R2 = R0[K9('IsDeadline')] (self)
      0025  CALL      R1 = call(R1, 1 args, 1 rets)
      0026  TEST      if not R1 then   -> -131043
      0027  JMP       (jump)   -> 30
      0028  SELF      R2 = R0[K10('OpenCurrentRoundEntryWindow')] (self)
      0029  CALL      R1 = call(R1, 0 args, 1 rets)
      0030  RETURN    return R0..R-1
