# MultiRank_View_MultiRankPlayerCell_1210.luac
; fn @MultiRankPlayerCell.lua  line 0-0 np=0 va=1 ms=2 code=21 consts=7 upvals=1 protos=5
;   K[0]='MultiRankPlayerCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='UpdateRank'
;   K[4]='GetRank'
;   K[5]='OnRewardBoxClicked'
;   K[6]='PlayRankUpFinishAnim'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('MultiRankPlayerCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('MultiRankPlayerCell')]
0003  GETTABUP  R1 = _ENV[K0('MultiRankPlayerCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('MultiRankPlayerCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('MultiRankPlayerCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdateRank')] = R1
0011  GETTABUP  R0 = _ENV[K0('MultiRankPlayerCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('GetRank')] = R1
0014  GETTABUP  R0 = _ENV[K0('MultiRankPlayerCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('OnRewardBoxClicked')] = R1
0017  GETTABUP  R0 = _ENV[K0('MultiRankPlayerCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('PlayRankUpFinishAnim')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-32 np=6 va=0 ms=20 code=98 consts=35 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]=10
  ;   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]='SpriteUtil'
  ;   K[31]='SetImage'
  ;   K[32]='m_tokenImg'
  ;   K[33]='m_tokenNumText'
  ;   K[34]='Score'
  ;   upvals: _ENV
  ;   locals: self(0-98), rankData(0-98), rankRewards(0-98), tokenImgName(0-98), isMySelf(0-98), window(0-98), rank(2-98), validName(7-98), name(17-98), userId(26-98), icon(43-98), badge(52-98), frame(61-98)
  0000  SETTABLE  R0[K0('m_window')] = R5
  0001  GETTABLE  R6 = R1[K1('Rank')]
  0002  SETTABLE  R0[K2('m_rankRewards')] = R2
  0003  SELF      R8 = R0[K3('UpdateRank')] (self)
  0004  MOVE      R9 = R0
  0005  CALL      R7 = call(R7, 0 args, 2 rets)
  0006  GETTABLE  R7 = R1[K4('Name')]
  0007  TEST      if not R4 then   -> -131063
  0008  JMP       (jump)   -> 16
  0009  GETTABUP  R8 = _ENV[K5('GM')]
  0010  GETTABLE  R8 = R8[K6('UserProfileModel')]
  0011  SELF      R9 = R8[K7('GetName')] (self)
  0012  LOADBOOL  R10 = true
  0013  CALL      R8 = call(R8, 1 args, 2 rets)
  0014  TEST      if not R8 then   -> -131055
  0015  JMP       (jump)   -> 17
  0016  GETTABLE  R8 = R1[K4('Name')]
  0017  TEST      if not R4 then   -> -131053
  0018  JMP       (jump)   -> 25
  0019  GETTABUP  R9 = _ENV[K5('GM')]
  0020  GETTABLE  R9 = R9[K8('UserModel')]
  0021  SELF      R10 = R9[K9('GetUserId')] (self)
  0022  CALL      R9 = call(R9, 1 args, 1 rets)
  0023  TEST      if not R9 then   -> -131046
  0024  JMP       (jump)   -> 26
  0025  GETTABLE  R9 = R1[K10('UserId')]
  0026  GETTABLE  R10 = R0[K11('m_userNameText')]
  0027  GETTABUP  R11 = _ENV[K13('StringUtil')]
  0028  GETTABLE  R11 = R11[K14('GetPlayerNameWithLimit')]
  0029  MOVE      R12 = R0
  0030  MOVE      R13 = R0
  0031  LOADK     R14 = K15 10
  0032  CALL      R11 = call(R11, 1 args, 3 rets)
  0033  SETTABLE  R10[K12('text')] = R11
  0034  TEST      if not R4 then   -> -131036
  0035  JMP       (jump)   -> 42
  0036  GETTABUP  R10 = _ENV[K5('GM')]
  0037  GETTABLE  R10 = R10[K6('UserProfileModel')]
  0038  SELF      R11 = R10[K16('GetAvatar')] (self)
  0039  CALL      R10 = call(R10, 1 args, 1 rets)
  0040  TEST      if not R10 then   -> -131029
  0041  JMP       (jump)   -> 43
  0042  GETTABLE  R10 = R1[K17('Icon')]
  0043  TEST      if not R4 then   -> -131027
  0044  JMP       (jump)   -> 51
  0045  GETTABUP  R11 = _ENV[K5('GM')]
  0046  GETTABLE  R11 = R11[K6('UserProfileModel')]
  0047  SELF      R12 = R11[K18('GetBadge')] (self)
  0048  CALL      R11 = call(R11, 1 args, 1 rets)
  0049  TEST      if not R11 then   -> -131020
  0050  JMP       (jump)   -> 52
  0051  GETTABLE  R11 = R1[K19('Badge')]
  0052  TEST      if not R4 then   -> -131018
  0053  JMP       (jump)   -> 60
  0054  GETTABUP  R12 = _ENV[K5('GM')]
  0055  GETTABLE  R12 = R12[K6('UserProfileModel')]
  0056  SELF      R13 = R12[K20('GetFrame')] (self)
  0057  CALL      R12 = call(R12, 1 args, 1 rets)
  0058  TEST      if not R12 then   -> -131011
  0059  JMP       (jump)   -> 61
  0060  GETTABLE  R12 = R1[K21('Frame')]
  0061  GETTABUP  R13 = _ENV[K13('StringUtil')]
  0062  GETTABLE  R13 = R13[K22('IsNilOrEmpty')]
  0063  MOVE      R14 = R0
  0064  CALL      R13 = call(R13, 1 args, 1 rets)
  0065  TEST      if not R13 then   -> -131004
  0066  JMP       (jump)   -> 83
  0067  GETTABLE  R13 = R0[K23('m_userAvatar')]
  0068  SELF      R14 = R13[K24('SetAvatar')] (self)
  0069  GETTABUP  R15 = _ENV[K25('EAvatarFrame')]
  0070  GETTABLE  R15 = R15[K26('Normal')]
  0071  MOVE      R16 = R0
  0072  MOVE      R17 = R0
  0073  MOVE      R18 = R0
  0074  MOVE      R19 = R0
  0075  CALL      R13 = call(R13, 0 args, 6 rets)
  0076  GETTABUP  R13 = _ENV[K27('UIUtil')]
  0077  GETTABLE  R13 = R13[K28('SetActive')]
  0078  GETTABLE  R14 = R0[K23('m_userAvatar')]
  0079  GETTABLE  R14 = R14[K29('gameObject')]
  0080  LOADBOOL  R15 = true
  0081  CALL      R13 = call(R13, 0 args, 2 rets)
  0082  JMP       (jump)   -> 89
  0083  GETTABUP  R13 = _ENV[K27('UIUtil')]
  0084  GETTABLE  R13 = R13[K28('SetActive')]
  0085  GETTABLE  R14 = R0[K23('m_userAvatar')]
  0086  GETTABLE  R14 = R14[K29('gameObject')]
  0087  LOADBOOL  R15 = false
  0088  CALL      R13 = call(R13, 0 args, 2 rets)
  0089  GETTABUP  R13 = _ENV[K30('SpriteUtil')]
  0090  GETTABLE  R13 = R13[K31('SetImage')]
  0091  GETTABLE  R14 = R0[K32('m_tokenImg')]
  0092  MOVE      R15 = R0
  0093  CALL      R13 = call(R13, 0 args, 2 rets)
  0094  GETTABLE  R13 = R0[K33('m_tokenNumText')]
  0095  GETTABLE  R14 = R1[K34('Score')]
  0096  SETTABLE  R13[K12('text')] = R14
  0097  RETURN    return R0..R-1
; ---------- proto1 [UpdateRank] ----------
  ; fn ?  line 35-60 np=2 va=0 ms=7 code=80 consts=27 upvals=1 protos=0
  ;   K[0]=nil
  ;   K[1]='math'
  ;   K[2]='ceil'
  ;   K[3]='UIUtil'
  ;   K[4]='SetActive'
  ;   K[5]='m_rewardBoxImg'
  ;   K[6]='gameObject'
  ;   K[7]=10
  ;   K[8]='m_rankImg'
  ;   K[9]=3
  ;   K[10]='sprite'
  ;   K[11]='m_box_sprite'
  ;   K[12]='m_rank_sprite'
  ;   K[13]='SpriteUtil'
  ;   K[14]='SetNativeSize'
  ;   K[15]=1
  ;   K[16]=0.01
  ;   K[17]=0.3
  ;   K[18]='SetLocalScale'
  ;   K[19]='transform'
  ;   K[20]='m_box_sprite4'
  ;   K[21]=0.27
  ;   K[22]='m_rankText'
  ;   K[23]='text'
  ;   K[24]=4
  ;   K[25]=''
  ;   K[26]='m_curRank'
  ;   upvals: _ENV
  ;   locals: self(0-80), rank(0-80), scale(47-54)
  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  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0009  GETTABLE  R2 = R2[K4('SetActive')]
  0010  GETTABLE  R3 = R0[K5('m_rewardBoxImg')]
  0011  GETTABLE  R3 = R3[K6('gameObject')]
  0012  LE        if R1 le K7(10)   -> -130283
  0013  JMP       (jump)   -> 15
  0014  LOADBOOL  R4 = false
  0015  LOADBOOL  R4 = true
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0018  GETTABLE  R2 = R2[K4('SetActive')]
  0019  GETTABLE  R3 = R0[K8('m_rankImg')]
  0020  GETTABLE  R3 = R3[K6('gameObject')]
  0021  LE        if R1 le K9(3)   -> -130272
  0022  JMP       (jump)   -> 24
  0023  LOADBOOL  R4 = false
  0024  LOADBOOL  R4 = true
  0025  CALL      R2 = call(R2, 0 args, 2 rets)
  0026  LE        if R0 le K9(3)   -> -130267
  0027  JMP       (jump)   -> 55
  0028  GETTABLE  R2 = R0[K5('m_rewardBoxImg')]
  0029  LOADK     R3 = K11 'm_box_sprite'
  0030  MOVE      R4 = R0
  0031  CONCAT    R3 = concat(R3..R3)
  0032  GETTABLE  R3 = R0[R3]
  0033  SETTABLE  R2[K10('sprite')] = R3
  0034  GETTABLE  R2 = R0[K8('m_rankImg')]
  0035  LOADK     R3 = K12 'm_rank_sprite'
  0036  MOVE      R4 = R0
  0037  CONCAT    R3 = concat(R3..R3)
  0038  GETTABLE  R3 = R0[R3]
  0039  SETTABLE  R2[K10('sprite')] = R3
  0040  GETTABUP  R2 = _ENV[K13('SpriteUtil')]
  0041  GETTABLE  R2 = R2[K14('SetNativeSize')]
  0042  GETTABLE  R3 = R0[K5('m_rewardBoxImg')]
  0043  CALL      R2 = call(R2, 0 args, 1 rets)
  0044  SUB       R2 = K15(1) sub R1
  0045  MUL       R2 = K16(0.01) mul R2
  0046  SUB       R2 = R2 sub K17(0.3)
  0047  GETTABUP  R3 = _ENV[K3('UIUtil')]
  0048  GETTABLE  R3 = R3[K18('SetLocalScale')]
  0049  GETTABLE  R4 = R0[K5('m_rewardBoxImg')]
  0050  GETTABLE  R4 = R4[K19('transform')]
  0051  MOVE      R5 = R0
  0052  MOVE      R6 = R0
  0053  CALL      R3 = call(R3, 0 args, 3 rets)
  0054  JMP       (jump)   -> 71
  0055  LE        if R0 le K7(10)   -> -130240
  0056  JMP       (jump)   -> 71
  0057  GETTABLE  R2 = R0[K5('m_rewardBoxImg')]
  0058  GETTABLE  R3 = R0[K20('m_box_sprite4')]
  0059  SETTABLE  R2[K10('sprite')] = R3
  0060  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0061  GETTABLE  R2 = R2[K18('SetLocalScale')]
  0062  GETTABLE  R3 = R0[K5('m_rewardBoxImg')]
  0063  GETTABLE  R3 = R3[K19('transform')]
  0064  LOADK     R4 = K21 0.27
  0065  LOADK     R5 = K21 0.27
  0066  CALL      R2 = call(R2, 0 args, 3 rets)
  0067  GETTABUP  R2 = _ENV[K13('SpriteUtil')]
  0068  GETTABLE  R2 = R2[K14('SetNativeSize')]
  0069  GETTABLE  R3 = R0[K5('m_rewardBoxImg')]
  0070  CALL      R2 = call(R2, 0 args, 1 rets)
  0071  GETTABLE  R2 = R0[K22('m_rankText')]
  0072  LE        if R0 le R1   -> 12363
  0073  JMP       (jump)   -> 76
  0074  TESTSET   if R1 then R3   -> -130483
  0075  JMP       (jump)   -> 77
  0076  LOADK     R3 = K25 ''
  0077  SETTABLE  R2[K23('text')] = R3
  0078  SETTABLE  R0[K26('m_curRank')] = R1
  0079  RETURN    return R0..R-1
; ---------- proto2 [GetRank] ----------
  ; fn ?  line 62-64 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 [OnRewardBoxClicked] ----------
  ; fn ?  line 66-69 np=1 va=0 ms=6 code=8 consts=5 upvals=0 protos=0
  ;   K[0]='m_window'
  ;   K[1]='ShowRewardTip'
  ;   K[2]='m_rankRewards'
  ;   K[3]='m_rewardBoxImg'
  ;   K[4]='transform'
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_window')]
  0001  SELF      R2 = R1[K1('ShowRewardTip')] (self)
  0002  GETTABLE  R3 = R0[K2('m_rankRewards')]
  0003  GETTABLE  R4 = R0[K3('m_rewardBoxImg')]
  0004  GETTABLE  R4 = R4[K4('transform')]
  0005  LOADBOOL  R5 = true
  0006  CALL      R1 = call(R1, 0 args, 4 rets)
  0007  RETURN    return R0..R-1
; ---------- proto4 [PlayRankUpFinishAnim] ----------
  ; fn ?  line 71-83 np=1 va=0 ms=10 code=41 consts=16 upvals=1 protos=1
  ;   K[0]='UIUtil'
  ;   K[1]='IsEmptyComponent'
  ;   K[2]='m_boomEffect'
  ;   K[3]='m_rootRect'
  ;   K[4]='SetLocalScale'
  ;   K[5]=1.02
  ;   K[6]='DOTween'
  ;   K[7]='Sequence'
  ;   K[8]='Append'
  ;   K[9]='DOScale'
  ;   K[10]='Vector3'
  ;   K[11]=1.1
  ;   K[12]=1
  ;   K[13]=0.4
  ;   K[14]=0.1
  ;   K[15]='AppendCallback'
  ;   upvals: _ENV
  ;   locals: self(0-41), rect(8-41)
  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   -> -131066
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R1 = R0[K3('m_rootRect')]
  0008  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0009  GETTABLE  R2 = R2[K4('SetLocalScale')]
  0010  MOVE      R3 = R0
  0011  LOADK     R4 = K5 1.02
  0012  LOADK     R5 = K5 1.02
  0013  CALL      R2 = call(R2, 0 args, 3 rets)
  0014  GETTABUP  R2 = _ENV[K6('DOTween')]
  0015  GETTABLE  R2 = R2[K7('Sequence')]
  0016  CALL      R2 = call(R2, 1 args, 0 rets)
  0017  SELF      R3 = R2[K8('Append')] (self)
  0018  SELF      R5 = R1[K9('DOScale')] (self)
  0019  GETTABUP  R6 = _ENV[K10('Vector3')]
  0020  LOADK     R7 = K11 1.1
  0021  LOADK     R8 = K11 1.1
  0022  LOADK     R9 = K12 1
  0023  CALL      R6 = call(R6, 1 args, 3 rets)
  0024  LOADK     R7 = K13 0.4
  0025  CALL      R4 = call(R4, -1 args, 3 rets)
  0026  CALL      R2 = call(R2, 1 args, -1 rets)
  0027  SELF      R3 = R2[K8('Append')] (self)
  0028  SELF      R5 = R1[K9('DOScale')] (self)
  0029  GETTABUP  R6 = _ENV[K10('Vector3')]
  0030  LOADK     R7 = K12 1
  0031  LOADK     R8 = K12 1
  0032  LOADK     R9 = K12 1
  0033  CALL      R6 = call(R6, 1 args, 3 rets)
  0034  LOADK     R7 = K14 0.1
  0035  CALL      R4 = call(R4, -1 args, 3 rets)
  0036  CALL      R2 = call(R2, 1 args, -1 rets)
  0037  SELF      R3 = R2[K15('AppendCallback')] (self)
  0038  CLOSURE   R4 = closure proto0
  0039  CALL      R2 = call(R2, 0 args, 2 rets)
  0040  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 80-82 np=0 va=0 ms=2 code=4 consts=2 upvals=1 protos=0
    ;   K[0]='m_boomEffect'
    ;   K[1]='Play'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_boomEffect')]
    0001  SELF      R1 = R0[K1('Play')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
