# WeeklyRank_View_WeeklyRankTopPlayerCell_1239.luac
; fn @WeeklyRankTopPlayerCell.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=6 upvals=1 protos=4
;   K[0]='WeeklyRankTopPlayerCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnTopBoxBtnClicked'
;   K[4]='PlayAvatarAnimation'
;   K[5]='GetBoxPosition'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('WeeklyRankTopPlayerCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('WeeklyRankTopPlayerCell')]
0003  GETTABUP  R1 = _ENV[K0('WeeklyRankTopPlayerCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('WeeklyRankTopPlayerCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('WeeklyRankTopPlayerCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnTopBoxBtnClicked')] = R1
0011  GETTABUP  R0 = _ENV[K0('WeeklyRankTopPlayerCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('PlayAvatarAnimation')] = R1
0014  GETTABUP  R0 = _ENV[K0('WeeklyRankTopPlayerCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('GetBoxPosition')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-39 np=5 va=0 ms=16 code=148 consts=48 upvals=1 protos=0
  ;   K[0]='m_mainWindow'
  ;   K[1]='m_model'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='m_rankData'
  ;   K[6]='m_animator'
  ;   K[7]='enabled'
  ;   K[8]=false
  ;   K[9]='UIUtil'
  ;   K[10]='SetActive'
  ;   K[11]='m_userAvatarGo'
  ;   K[12]=nil
  ;   K[13]=true
  ;   K[14]='m_bgRoot'
  ;   K[15]='m_boxGo'
  ;   K[16]='m_frameGo'
  ;   K[17]='m_nameText'
  ;   K[18]='text'
  ;   K[19]=''
  ;   K[20]='m_scoreText'
  ;   K[21]='-'
  ;   K[22]='m_isMyself'
  ;   K[23]='UserId'
  ;   K[24]='UserModel'
  ;   K[25]='GetUserId'
  ;   K[26]='UserProfileModel'
  ;   K[27]='GetAvatar'
  ;   K[28]='Icon'
  ;   K[29]='GetBadge'
  ;   K[30]='Badge'
  ;   K[31]='GetFrame'
  ;   K[32]='Frame'
  ;   K[33]='StringUtil'
  ;   K[34]='IsNilOrEmpty'
  ;   K[35]='m_userAvatar'
  ;   K[36]='SetAvatar'
  ;   K[37]='EAvatarFrame'
  ;   K[38]='Normal'
  ;   K[39]='PlayTopEffect'
  ;   K[40]='Rank'
  ;   K[41]='GameTextModel'
  ;   K[42]='GetText'
  ;   K[43]='weeklyRank_name_you'
  ;   K[44]='Name'
  ;   K[45]='GetPlayerNameWithLimit'
  ;   K[46]=10
  ;   K[47]='Score'
  ;   upvals: _ENV
  ;   locals: self(0-148), activityType(0-148), bDefault(0-148), rankData(0-148), mainWindow(0-148), icon(62-147), badge(73-147), frame(84-147), youText(117-147), name(124-147), userId(135-147)
  0000  SETTABLE  R0[K0('m_mainWindow')] = R4
  0001  GETTABUP  R5 = _ENV[K2('GM')]
  0002  GETTABLE  R5 = R5[K3('ActivityManager')]
  0003  SELF      R6 = R5[K4('GetModel')] (self)
  0004  MOVE      R7 = R0
  0005  CALL      R5 = call(R5, 1 args, 2 rets)
  0006  SETTABLE  R0[K1('m_model')] = R5
  0007  SETTABLE  R0[K5('m_rankData')] = R3
  0008  GETTABLE  R5 = R0[K6('m_animator')]
  0009  SETTABLE  R5[K7('enabled')] = K8(false)
  0010  GETTABUP  R5 = _ENV[K9('UIUtil')]
  0011  GETTABLE  R5 = R5[K10('SetActive')]
  0012  GETTABLE  R6 = R0[K11('m_userAvatarGo')]
  0013  LOADBOOL  R7 = false
  0014  CALL      R5 = call(R5, 0 args, 2 rets)
  0015  GETTABLE  R5 = R0[K5('m_rankData')]
  0016  EQ        if R1 eq K12(nil)   -> -128226
  0017  JMP       (jump)   -> 20
  0018  EQ        if R0 eq K13(true)   -> -129759
  0019  JMP       (jump)   -> 40
  0020  GETTABUP  R5 = _ENV[K9('UIUtil')]
  0021  GETTABLE  R5 = R5[K10('SetActive')]
  0022  GETTABLE  R6 = R0[K14('m_bgRoot')]
  0023  LOADBOOL  R7 = true
  0024  CALL      R5 = call(R5, 0 args, 2 rets)
  0025  GETTABUP  R5 = _ENV[K9('UIUtil')]
  0026  GETTABLE  R5 = R5[K10('SetActive')]
  0027  GETTABLE  R6 = R0[K15('m_boxGo')]
  0028  LOADBOOL  R7 = true
  0029  CALL      R5 = call(R5, 0 args, 2 rets)
  0030  GETTABUP  R5 = _ENV[K9('UIUtil')]
  0031  GETTABLE  R5 = R5[K10('SetActive')]
  0032  GETTABLE  R6 = R0[K16('m_frameGo')]
  0033  LOADBOOL  R7 = false
  0034  CALL      R5 = call(R5, 0 args, 2 rets)
  0035  GETTABLE  R5 = R0[K17('m_nameText')]
  0036  SETTABLE  R5[K18('text')] = K19('')
  0037  GETTABLE  R5 = R0[K20('m_scoreText')]
  0038  SETTABLE  R5[K18('text')] = K21('-')
  0039  JMP       (jump)   -> 147
  0040  GETTABLE  R5 = R0[K5('m_rankData')]
  0041  GETTABLE  R5 = R5[K23('UserId')]
  0042  GETTABUP  R6 = _ENV[K2('GM')]
  0043  GETTABLE  R6 = R6[K24('UserModel')]
  0044  SELF      R7 = R6[K25('GetUserId')] (self)
  0045  CALL      R6 = call(R6, 1 args, 1 rets)
  0046  EQ        if R1 eq R6   -> -128458
  0047  JMP       (jump)   -> 49
  0048  LOADBOOL  R5 = false
  0049  LOADBOOL  R5 = true
  0050  SETTABLE  R0[K22('m_isMyself')] = R5
  0051  GETTABLE  R5 = R0[K22('m_isMyself')]
  0052  TEST      if not R5 then   -> -131018
  0053  JMP       (jump)   -> 60
  0054  GETTABUP  R5 = _ENV[K2('GM')]
  0055  GETTABLE  R5 = R5[K26('UserProfileModel')]
  0056  SELF      R6 = R5[K27('GetAvatar')] (self)
  0057  CALL      R5 = call(R5, 1 args, 1 rets)
  0058  TEST      if not R5 then   -> -131011
  0059  JMP       (jump)   -> 62
  0060  GETTABLE  R5 = R0[K5('m_rankData')]
  0061  GETTABLE  R5 = R5[K28('Icon')]
  0062  GETTABLE  R6 = R0[K22('m_isMyself')]
  0063  TEST      if not R6 then   -> -131007
  0064  JMP       (jump)   -> 71
  0065  GETTABUP  R6 = _ENV[K2('GM')]
  0066  GETTABLE  R6 = R6[K26('UserProfileModel')]
  0067  SELF      R7 = R6[K29('GetBadge')] (self)
  0068  CALL      R6 = call(R6, 1 args, 1 rets)
  0069  TEST      if not R6 then   -> -131000
  0070  JMP       (jump)   -> 73
  0071  GETTABLE  R6 = R0[K5('m_rankData')]
  0072  GETTABLE  R6 = R6[K30('Badge')]
  0073  GETTABLE  R7 = R0[K22('m_isMyself')]
  0074  TEST      if not R7 then   -> -130996
  0075  JMP       (jump)   -> 82
  0076  GETTABUP  R7 = _ENV[K2('GM')]
  0077  GETTABLE  R7 = R7[K26('UserProfileModel')]
  0078  SELF      R8 = R7[K31('GetFrame')] (self)
  0079  CALL      R7 = call(R7, 1 args, 1 rets)
  0080  TEST      if not R7 then   -> -130989
  0081  JMP       (jump)   -> 84
  0082  GETTABLE  R7 = R0[K5('m_rankData')]
  0083  GETTABLE  R7 = R7[K32('Frame')]
  0084  GETTABUP  R8 = _ENV[K33('StringUtil')]
  0085  GETTABLE  R8 = R8[K34('IsNilOrEmpty')]
  0086  MOVE      R9 = R0
  0087  CALL      R8 = call(R8, 1 args, 1 rets)
  0088  TEST      if not R8 then   -> -130981
  0089  JMP       (jump)   -> 99
  0090  GETTABLE  R8 = R0[K35('m_userAvatar')]
  0091  SELF      R9 = R8[K36('SetAvatar')] (self)
  0092  GETTABUP  R10 = _ENV[K37('EAvatarFrame')]
  0093  GETTABLE  R10 = R10[K38('Normal')]
  0094  MOVE      R11 = R0
  0095  MOVE      R12 = R0
  0096  MOVE      R13 = R0
  0097  GETTABLE  R14 = R0[K22('m_isMyself')]
  0098  CALL      R8 = call(R8, 0 args, 6 rets)
  0099  GETTABLE  R8 = R0[K22('m_isMyself')]
  0100  TEST      if not R8 then   -> -130970
  0101  JMP       (jump)   -> 112
  0102  GETTABLE  R8 = R0[K0('m_mainWindow')]
  0103  SELF      R9 = R8[K39('PlayTopEffect')] (self)
  0104  GETTABLE  R10 = R0[K5('m_rankData')]
  0105  GETTABLE  R10 = R10[K40('Rank')]
  0106  CALL      R8 = call(R8, 0 args, 2 rets)
  0107  GETTABUP  R8 = _ENV[K9('UIUtil')]
  0108  GETTABLE  R8 = R8[K10('SetActive')]
  0109  GETTABLE  R9 = R0[K16('m_frameGo')]
  0110  LOADBOOL  R10 = true
  0111  CALL      R8 = call(R8, 0 args, 2 rets)
  0112  GETTABUP  R8 = _ENV[K2('GM')]
  0113  GETTABLE  R8 = R8[K41('GameTextModel')]
  0114  SELF      R9 = R8[K42('GetText')] (self)
  0115  LOADK     R10 = K43 'weeklyRank_name_you'
  0116  CALL      R8 = call(R8, 1 args, 2 rets)
  0117  GETTABLE  R9 = R0[K22('m_isMyself')]
  0118  TEST      if not R9 then   -> -130952
  0119  JMP       (jump)   -> 122
  0120  TESTSET   if R1 then R9   -> -126853
  0121  JMP       (jump)   -> 124
  0122  GETTABLE  R9 = R0[K5('m_rankData')]
  0123  GETTABLE  R9 = R9[K44('Name')]
  0124  GETTABLE  R10 = R0[K22('m_isMyself')]
  0125  TEST      if not R10 then   -> -130945
  0126  JMP       (jump)   -> 133
  0127  GETTABUP  R10 = _ENV[K2('GM')]
  0128  GETTABLE  R10 = R10[K24('UserModel')]
  0129  SELF      R11 = R10[K25('GetUserId')] (self)
  0130  CALL      R10 = call(R10, 1 args, 1 rets)
  0131  TEST      if not R10 then   -> -130938
  0132  JMP       (jump)   -> 135
  0133  GETTABLE  R10 = R0[K5('m_rankData')]
  0134  GETTABLE  R10 = R10[K23('UserId')]
  0135  GETTABLE  R11 = R0[K17('m_nameText')]
  0136  GETTABUP  R12 = _ENV[K33('StringUtil')]
  0137  GETTABLE  R12 = R12[K45('GetPlayerNameWithLimit')]
  0138  MOVE      R13 = R0
  0139  MOVE      R14 = R0
  0140  LOADK     R15 = K46 10
  0141  CALL      R12 = call(R12, 1 args, 3 rets)
  0142  SETTABLE  R11[K18('text')] = R12
  0143  GETTABLE  R11 = R0[K20('m_scoreText')]
  0144  GETTABLE  R12 = R0[K5('m_rankData')]
  0145  GETTABLE  R12 = R12[K47('Score')]
  0146  SETTABLE  R11[K18('text')] = R12
  0147  RETURN    return R0..R-1
; ---------- proto1 [OnTopBoxBtnClicked] ----------
  ; fn ?  line 41-47 np=1 va=0 ms=8 code=18 consts=11 upvals=0 protos=0
  ;   K[0]='m_mainWindow'
  ;   K[1]=nil
  ;   K[2]='m_model'
  ;   K[3]='GetRewards'
  ;   K[4]='m_rankData'
  ;   K[5]='Rank'
  ;   K[6]='ShowRewardTip'
  ;   K[7]='m_boxImg'
  ;   K[8]='transform'
  ;   K[9]=0
  ;   K[10]=-50
  ;   locals: self(0-18), rewards(9-18)
  0000  GETTABLE  R1 = R0[K0('m_mainWindow')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K2('m_model')]
  0005  SELF      R2 = R1[K3('GetRewards')] (self)
  0006  GETTABLE  R3 = R0[K4('m_rankData')]
  0007  GETTABLE  R3 = R3[K5('Rank')]
  0008  CALL      R1 = call(R1, 1 args, 2 rets)
  0009  GETTABLE  R2 = R0[K0('m_mainWindow')]
  0010  SELF      R3 = R2[K6('ShowRewardTip')] (self)
  0011  MOVE      R4 = R0
  0012  GETTABLE  R5 = R0[K7('m_boxImg')]
  0013  GETTABLE  R5 = R5[K8('transform')]
  0014  LOADK     R6 = K9 0
  0015  LOADK     R7 = K10 -50
  0016  CALL      R2 = call(R2, 0 args, 5 rets)
  0017  RETURN    return R0..R-1
; ---------- proto2 [PlayAvatarAnimation] ----------
  ; fn ?  line 49-59 np=3 va=0 ms=6 code=21 consts=8 upvals=0 protos=0
  ;   K[0]='m_animator'
  ;   K[1]='enabled'
  ;   K[2]=true
  ;   K[3]='m_isMyself'
  ;   K[4]='SetTrigger'
  ;   K[5]='ShowOwn'
  ;   K[6]='box'
  ;   K[7]='ShowOther'
  ;   locals: self(0-21), bFinal(0-21), num(0-21)
  0000  GETTABLE  R3 = R0[K0('m_animator')]
  0001  SETTABLE  R3[K1('enabled')] = K2(true)
  0002  GETTABLE  R3 = R0[K3('m_isMyself')]
  0003  TEST      if not R3 then   -> -131067
  0004  JMP       (jump)   -> 16
  0005  GETTABLE  R3 = R0[K0('m_animator')]
  0006  SELF      R4 = R3[K4('SetTrigger')] (self)
  0007  LOADK     R5 = K5 'ShowOwn'
  0008  CALL      R3 = call(R3, 0 args, 2 rets)
  0009  TEST      if not R1 then   -> -131061
  0010  JMP       (jump)   -> 20
  0011  GETTABLE  R3 = R0[K0('m_animator')]
  0012  SELF      R4 = R3[K4('SetTrigger')] (self)
  0013  LOADK     R5 = K6 'box'
  0014  CALL      R3 = call(R3, 0 args, 2 rets)
  0015  JMP       (jump)   -> 20
  0016  GETTABLE  R3 = R0[K0('m_animator')]
  0017  SELF      R4 = R3[K4('SetTrigger')] (self)
  0018  LOADK     R5 = K7 'ShowOther'
  0019  CALL      R3 = call(R3, 0 args, 2 rets)
  0020  RETURN    return R0..R-1
; ---------- proto3 [GetBoxPosition] ----------
  ; fn ?  line 61-63 np=1 va=0 ms=2 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_boxImg'
  ;   K[1]='transform'
  ;   K[2]='position'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_boxImg')]
  0001  GETTABLE  R1 = R1[K1('transform')]
  0002  GETTABLE  R1 = R1[K2('position')]
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
