# WeeklyRank_View_WeeklyRankPlayerCell_1232.luac
; fn @WeeklyRankPlayerCell.lua  line 0-0 np=0 va=1 ms=2 code=33 consts=11 upvals=1 protos=9
;   K[0]='WeeklyRankPlayerCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='UpdateRank'
;   K[4]='GetRank'
;   K[5]='PlayFinalAnim'
;   K[6]='GetCellRectTran'
;   K[7]='GetTutorialRect'
;   K[8]='RankMinus1'
;   K[9]='RankAdd1'
;   K[10]='OpenRewardWindow'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('WeeklyRankPlayerCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0003  GETTABUP  R1 = _ENV[K0('WeeklyRankPlayerCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdateRank')] = R1
0011  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('GetRank')] = R1
0014  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('PlayFinalAnim')] = R1
0017  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('GetCellRectTran')] = R1
0020  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('GetTutorialRect')] = R1
0023  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('RankMinus1')] = R1
0026  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('RankAdd1')] = R1
0029  GETTABUP  R0 = _ENV[K0('WeeklyRankPlayerCell')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K10('OpenRewardWindow')] = R1
0032  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-37 np=5 va=0 ms=19 code=112 consts=38 upvals=1 protos=0
  ;   K[0]='m_window'
  ;   K[1]='Rank'
  ;   K[2]='m_rankRewards'
  ;   K[3]='UpdateRank'
  ;   K[4]='Name'
  ;   K[5]='GM'
  ;   K[6]='UserProfileModel'
  ;   K[7]='GetName'
  ;   K[8]='UserModel'
  ;   K[9]='GetUserId'
  ;   K[10]='UserId'
  ;   K[11]='m_userNameText'
  ;   K[12]='text'
  ;   K[13]='StringUtil'
  ;   K[14]='GetPlayerNameWithLimit'
  ;   K[15]=15
  ;   K[16]='GetAvatar'
  ;   K[17]='Icon'
  ;   K[18]='GetBadge'
  ;   K[19]='Badge'
  ;   K[20]='GetFrame'
  ;   K[21]='Frame'
  ;   K[22]='IsNilOrEmpty'
  ;   K[23]='m_userAvatar'
  ;   K[24]='SetAvatar'
  ;   K[25]='EAvatarFrame'
  ;   K[26]='Normal'
  ;   K[27]='UIUtil'
  ;   K[28]='SetActive'
  ;   K[29]='gameObject'
  ;   K[30]='m_tokenNumText'
  ;   K[31]='Score'
  ;   K[32]='Table'
  ;   K[33]='IsEmpty'
  ;   K[34]='m_rewardContent'
  ;   K[35]='Init'
  ;   K[36]='ERewardScene'
  ;   K[37]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-112), rankData(0-112), rankRewards(0-112), isMySelf(0-112), window(0-112), rank(2-112), validName(7-112), name(17-112), userId(26-112), icon(43-112), badge(52-112), frame(61-112), hasRewards(97-112)
  0000  SETTABLE  R0[K0('m_window')] = R4
  0001  GETTABLE  R5 = R1[K1('Rank')]
  0002  SETTABLE  R0[K2('m_rankRewards')] = R2
  0003  SELF      R7 = R0[K3('UpdateRank')] (self)
  0004  MOVE      R8 = R0
  0005  CALL      R6 = call(R6, 0 args, 2 rets)
  0006  GETTABLE  R6 = R1[K4('Name')]
  0007  TEST      if not R3 then   -> -131063
  0008  JMP       (jump)   -> 16
  0009  GETTABUP  R7 = _ENV[K5('GM')]
  0010  GETTABLE  R7 = R7[K6('UserProfileModel')]
  0011  SELF      R8 = R7[K7('GetName')] (self)
  0012  LOADBOOL  R9 = true
  0013  CALL      R7 = call(R7, 1 args, 2 rets)
  0014  TEST      if not R7 then   -> -131055
  0015  JMP       (jump)   -> 17
  0016  GETTABLE  R7 = R1[K4('Name')]
  0017  TEST      if not R3 then   -> -131053
  0018  JMP       (jump)   -> 25
  0019  GETTABUP  R8 = _ENV[K5('GM')]
  0020  GETTABLE  R8 = R8[K8('UserModel')]
  0021  SELF      R9 = R8[K9('GetUserId')] (self)
  0022  CALL      R8 = call(R8, 1 args, 1 rets)
  0023  TEST      if not R8 then   -> -131046
  0024  JMP       (jump)   -> 26
  0025  GETTABLE  R8 = R1[K10('UserId')]
  0026  GETTABLE  R9 = R0[K11('m_userNameText')]
  0027  GETTABUP  R10 = _ENV[K13('StringUtil')]
  0028  GETTABLE  R10 = R10[K14('GetPlayerNameWithLimit')]
  0029  MOVE      R11 = R0
  0030  MOVE      R12 = R0
  0031  LOADK     R13 = K15 15
  0032  CALL      R10 = call(R10, 1 args, 3 rets)
  0033  SETTABLE  R9[K12('text')] = R10
  0034  TEST      if not R3 then   -> -131036
  0035  JMP       (jump)   -> 42
  0036  GETTABUP  R9 = _ENV[K5('GM')]
  0037  GETTABLE  R9 = R9[K6('UserProfileModel')]
  0038  SELF      R10 = R9[K16('GetAvatar')] (self)
  0039  CALL      R9 = call(R9, 1 args, 1 rets)
  0040  TEST      if not R9 then   -> -131029
  0041  JMP       (jump)   -> 43
  0042  GETTABLE  R9 = R1[K17('Icon')]
  0043  TEST      if not R3 then   -> -131027
  0044  JMP       (jump)   -> 51
  0045  GETTABUP  R10 = _ENV[K5('GM')]
  0046  GETTABLE  R10 = R10[K6('UserProfileModel')]
  0047  SELF      R11 = R10[K18('GetBadge')] (self)
  0048  CALL      R10 = call(R10, 1 args, 1 rets)
  0049  TEST      if not R10 then   -> -131020
  0050  JMP       (jump)   -> 52
  0051  GETTABLE  R10 = R1[K19('Badge')]
  0052  TEST      if not R3 then   -> -131018
  0053  JMP       (jump)   -> 60
  0054  GETTABUP  R11 = _ENV[K5('GM')]
  0055  GETTABLE  R11 = R11[K6('UserProfileModel')]
  0056  SELF      R12 = R11[K20('GetFrame')] (self)
  0057  CALL      R11 = call(R11, 1 args, 1 rets)
  0058  TEST      if not R11 then   -> -131011
  0059  JMP       (jump)   -> 61
  0060  GETTABLE  R11 = R1[K21('Frame')]
  0061  GETTABUP  R12 = _ENV[K13('StringUtil')]
  0062  GETTABLE  R12 = R12[K22('IsNilOrEmpty')]
  0063  MOVE      R13 = R0
  0064  CALL      R12 = call(R12, 1 args, 1 rets)
  0065  TEST      if not R12 then   -> -131004
  0066  JMP       (jump)   -> 83
  0067  GETTABLE  R12 = R0[K23('m_userAvatar')]
  0068  SELF      R13 = R12[K24('SetAvatar')] (self)
  0069  GETTABUP  R14 = _ENV[K25('EAvatarFrame')]
  0070  GETTABLE  R14 = R14[K26('Normal')]
  0071  MOVE      R15 = R0
  0072  MOVE      R16 = R0
  0073  MOVE      R17 = R0
  0074  MOVE      R18 = R0
  0075  CALL      R12 = call(R12, 0 args, 6 rets)
  0076  GETTABUP  R12 = _ENV[K27('UIUtil')]
  0077  GETTABLE  R12 = R12[K28('SetActive')]
  0078  GETTABLE  R13 = R0[K23('m_userAvatar')]
  0079  GETTABLE  R13 = R13[K29('gameObject')]
  0080  LOADBOOL  R14 = true
  0081  CALL      R12 = call(R12, 0 args, 2 rets)
  0082  JMP       (jump)   -> 89
  0083  GETTABUP  R12 = _ENV[K27('UIUtil')]
  0084  GETTABLE  R12 = R12[K28('SetActive')]
  0085  GETTABLE  R13 = R0[K23('m_userAvatar')]
  0086  GETTABLE  R13 = R13[K29('gameObject')]
  0087  LOADBOOL  R14 = false
  0088  CALL      R12 = call(R12, 0 args, 2 rets)
  0089  GETTABLE  R12 = R0[K30('m_tokenNumText')]
  0090  GETTABLE  R13 = R1[K31('Score')]
  0091  SETTABLE  R12[K12('text')] = R13
  0092  GETTABUP  R12 = _ENV[K32('Table')]
  0093  GETTABLE  R12 = R12[K33('IsEmpty')]
  0094  GETTABLE  R13 = R0[K2('m_rankRewards')]
  0095  CALL      R12 = call(R12, 1 args, 1 rets)
  0096  NOT       R12 = not R0
  0097  GETTABUP  R13 = _ENV[K27('UIUtil')]
  0098  GETTABLE  R13 = R13[K28('SetActive')]
  0099  GETTABLE  R14 = R0[K34('m_rewardContent')]
  0100  GETTABLE  R14 = R14[K29('gameObject')]
  0101  MOVE      R15 = R0
  0102  CALL      R13 = call(R13, 0 args, 2 rets)
  0103  TEST      if not R12 then   -> -130967
  0104  JMP       (jump)   -> 111
  0105  GETTABLE  R13 = R0[K34('m_rewardContent')]
  0106  SELF      R14 = R13[K35('Init')] (self)
  0107  GETTABLE  R15 = R0[K2('m_rankRewards')]
  0108  GETTABUP  R16 = _ENV[K36('ERewardScene')]
  0109  GETTABLE  R16 = R16[K37('Other')]
  0110  CALL      R13 = call(R13, 0 args, 3 rets)
  0111  RETURN    return R0..R-1
; ---------- proto1 [UpdateRank] ----------
  ; fn ?  line 40-48 np=2 va=0 ms=4 code=17 consts=8 upvals=1 protos=0
  ;   K[0]=nil
  ;   K[1]='math'
  ;   K[2]='ceil'
  ;   K[3]='m_rankText'
  ;   K[4]='text'
  ;   K[5]=4
  ;   K[6]=''
  ;   K[7]='m_curRank'
  ;   upvals: _ENV
  ;   locals: self(0-17), rank(0-17)
  0000  EQ        if R0 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 3
  0002  RETURN    return R0..R-1
  0003  GETTABUP  R2 = _ENV[K1('math')]
  0004  GETTABLE  R2 = R2[K2('ceil')]
  0005  MOVE      R3 = R0
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  MOVE      R1 = R0
  0008  GETTABLE  R2 = R0[K3('m_rankText')]
  0009  LE        if R0 le R1   -> 2572
  0010  JMP       (jump)   -> 13
  0011  TESTSET   if R1 then R3   -> -130546
  0012  JMP       (jump)   -> 14
  0013  LOADK     R3 = K6 ''
  0014  SETTABLE  R2[K4('text')] = R3
  0015  SETTABLE  R0[K7('m_curRank')] = R1
  0016  RETURN    return R0..R-1
; ---------- proto2 [GetRank] ----------
  ; fn ?  line 50-52 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_curRank'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_curRank')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto3 [PlayFinalAnim] ----------
  ; fn ?  line 54-58 np=1 va=0 ms=3 code=10 consts=4 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='IsEmptyComponent'
  ;   K[2]='m_boomEffect'
  ;   K[3]='Play'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('IsEmptyComponent')]
  0002  GETTABLE  R2 = R0[K2('m_boomEffect')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 9
  0006  GETTABLE  R1 = R0[K2('m_boomEffect')]
  0007  SELF      R2 = R1[K3('Play')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto4 [GetCellRectTran] ----------
  ; fn ?  line 60-62 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_cellRectTran'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_cellRectTran')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto5 [GetTutorialRect] ----------
  ; fn ?  line 64-66 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_tutorialRect'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_tutorialRect')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto6 [RankMinus1] ----------
  ; fn ?  line 68-71 np=1 va=0 ms=3 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='tonumber'
  ;   K[1]='m_rankText'
  ;   K[2]='text'
  ;   K[3]=1
  ;   upvals: _ENV
  ;   locals: self(0-8), rank(5-8)
  0000  GETTABUP  R1 = _ENV[K0('tonumber')]
  0001  GETTABLE  R2 = R0[K1('m_rankText')]
  0002  GETTABLE  R2 = R2[K2('text')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  SUB       R1 = K3(1) sub R1
  0005  GETTABLE  R2 = R0[K1('m_rankText')]
  0006  SETTABLE  R2[K2('text')] = R1
  0007  RETURN    return R0..R-1
; ---------- proto7 [RankAdd1] ----------
  ; fn ?  line 73-76 np=1 va=0 ms=3 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='tonumber'
  ;   K[1]='m_rankText'
  ;   K[2]='text'
  ;   K[3]=1
  ;   upvals: _ENV
  ;   locals: self(0-8), rank(5-8)
  0000  GETTABUP  R1 = _ENV[K0('tonumber')]
  0001  GETTABLE  R2 = R0[K1('m_rankText')]
  0002  GETTABLE  R2 = R2[K2('text')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  ADD       R1 = K3(1) add R1
  0005  GETTABLE  R2 = R0[K1('m_rankText')]
  0006  SETTABLE  R2[K2('text')] = R1
  0007  RETURN    return R0..R-1
; ---------- proto8 [OpenRewardWindow] ----------
  ; fn ?  line 78-82 np=2 va=0 ms=11 code=15 consts=9 upvals=1 protos=0
  ;   K[0]='m_rewardContent'
  ;   K[1]='transform'
  ;   K[2]='position'
  ;   K[3]=1
  ;   K[4]='GM'
  ;   K[5]='UIManager'
  ;   K[6]='OpenView'
  ;   K[7]='UIPrefabConfigName'
  ;   K[8]='OneRewardAnimWindow'
  ;   upvals: _ENV
  ;   locals: self(0-15), arrRewards(0-15), rewardStartPos(3-15), startScale(4-15)
  0000  GETTABLE  R2 = R0[K0('m_rewardContent')]
  0001  GETTABLE  R2 = R2[K1('transform')]
  0002  GETTABLE  R2 = R2[K2('position')]
  0003  LOADK     R3 = K3 1
  0004  GETTABUP  R4 = _ENV[K4('GM')]
  0005  GETTABLE  R4 = R4[K5('UIManager')]
  0006  SELF      R5 = R4[K6('OpenView')] (self)
  0007  GETTABUP  R6 = _ENV[K7('UIPrefabConfigName')]
  0008  GETTABLE  R6 = R6[K8('OneRewardAnimWindow')]
  0009  MOVE      R7 = R0
  0010  LOADNIL   R8..R8 = nil
  0011  MOVE      R9 = R0
  0012  MOVE      R10 = R0
  0013  CALL      R4 = call(R4, 0 args, 6 rets)
  0014  RETURN    return R0..R-1
