# PairRaceActivity_View_PairRaceActivityUserView_1859.luac
; fn @PairRaceActivityUserView.lua  line 0-0 np=0 va=1 ms=2 code=20 consts=5 upvals=1 protos=3
;   K[0]='PairRaceActivityUserView'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='AddScore'
;   K[4]='PairRaceActivityFinishUserView'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('PairRaceActivityUserView')] = R0
0002  GETTABUP  R0 = _ENV[K0('PairRaceActivityUserView')]
0003  GETTABUP  R1 = _ENV[K0('PairRaceActivityUserView')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('PairRaceActivityUserView')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('PairRaceActivityUserView')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('AddScore')] = R1
0011  NEWTABLE  R0 = {} (0 items)
0012  SETTABUP  _ENV[K4('PairRaceActivityFinishUserView')] = R0
0013  GETTABUP  R0 = _ENV[K4('PairRaceActivityFinishUserView')]
0014  GETTABUP  R1 = _ENV[K4('PairRaceActivityFinishUserView')]
0015  SETTABLE  R0[K1('__index')] = R1
0016  GETTABUP  R0 = _ENV[K4('PairRaceActivityFinishUserView')]
0017  CLOSURE   R1 = closure proto2
0018  SETTABLE  R0[K2('Init')] = R1
0019  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 12-28 np=4 va=0 ms=11 code=56 consts=28 upvals=1 protos=0
  ;   K[0]='frame'
  ;   K[1]='EAvatarFrame'
  ;   K[2]='Normal'
  ;   K[3]='icon'
  ;   K[4]='GM'
  ;   K[5]='UserProfileModel'
  ;   K[6]='GetAvatar'
  ;   K[7]='badgeId'
  ;   K[8]='GetBadge'
  ;   K[9]='frameId'
  ;   K[10]='GetFrame'
  ;   K[11]='name'
  ;   K[12]='GameTextModel'
  ;   K[13]='GetText'
  ;   K[14]='coin_race_main_you'
  ;   K[15]='userid'
  ;   K[16]='UserModel'
  ;   K[17]='GetUserId'
  ;   K[18]='m_userName'
  ;   K[19]='text'
  ;   K[20]='StringUtil'
  ;   K[21]='GetPlayerNameWithLimit'
  ;   K[22]=8
  ;   K[23]='m_userAvatar'
  ;   K[24]='SetAvatar'
  ;   K[25]='m_scoreText'
  ;   K[26]='tostring'
  ;   K[27]='m_scoreValue'
  ;   upvals: _ENV
  ;   locals: self(0-56), userData(0-56), score(0-56), bIsMyself(0-56)
  0000  TEST      if not R3 then   -> -131070
  0001  JMP       (jump)   -> 33
  0002  NEWTABLE  R4 = {} (0 items)
  0003  GETTABUP  R5 = _ENV[K1('EAvatarFrame')]
  0004  GETTABLE  R5 = R5[K2('Normal')]
  0005  SETTABLE  R4[K0('frame')] = R5
  0006  GETTABUP  R5 = _ENV[K4('GM')]
  0007  GETTABLE  R5 = R5[K5('UserProfileModel')]
  0008  SELF      R6 = R5[K6('GetAvatar')] (self)
  0009  CALL      R5 = call(R5, 1 args, 1 rets)
  0010  SETTABLE  R4[K3('icon')] = R5
  0011  GETTABUP  R5 = _ENV[K4('GM')]
  0012  GETTABLE  R5 = R5[K5('UserProfileModel')]
  0013  SELF      R6 = R5[K8('GetBadge')] (self)
  0014  CALL      R5 = call(R5, 1 args, 1 rets)
  0015  SETTABLE  R4[K7('badgeId')] = R5
  0016  GETTABUP  R5 = _ENV[K4('GM')]
  0017  GETTABLE  R5 = R5[K5('UserProfileModel')]
  0018  SELF      R6 = R5[K10('GetFrame')] (self)
  0019  CALL      R5 = call(R5, 1 args, 1 rets)
  0020  SETTABLE  R4[K9('frameId')] = R5
  0021  GETTABUP  R5 = _ENV[K4('GM')]
  0022  GETTABLE  R5 = R5[K12('GameTextModel')]
  0023  SELF      R6 = R5[K13('GetText')] (self)
  0024  LOADK     R7 = K14 'coin_race_main_you'
  0025  CALL      R5 = call(R5, 1 args, 2 rets)
  0026  SETTABLE  R4[K11('name')] = R5
  0027  GETTABUP  R5 = _ENV[K4('GM')]
  0028  GETTABLE  R5 = R5[K16('UserModel')]
  0029  SELF      R6 = R5[K17('GetUserId')] (self)
  0030  CALL      R5 = call(R5, 1 args, 1 rets)
  0031  SETTABLE  R4[K15('userid')] = R5
  0032  MOVE      R1 = R0
  0033  GETTABLE  R4 = R0[K18('m_userName')]
  0034  GETTABUP  R5 = _ENV[K20('StringUtil')]
  0035  GETTABLE  R5 = R5[K21('GetPlayerNameWithLimit')]
  0036  GETTABLE  R6 = R1[K11('name')]
  0037  GETTABLE  R7 = R1[K15('userid')]
  0038  LOADK     R8 = K22 8
  0039  CALL      R5 = call(R5, 1 args, 3 rets)
  0040  SETTABLE  R4[K19('text')] = R5
  0041  GETTABLE  R4 = R0[K23('m_userAvatar')]
  0042  SELF      R5 = R4[K24('SetAvatar')] (self)
  0043  GETTABLE  R6 = R1[K0('frame')]
  0044  GETTABLE  R7 = R1[K3('icon')]
  0045  GETTABLE  R8 = R1[K7('badgeId')]
  0046  GETTABLE  R9 = R1[K9('frameId')]
  0047  MOVE      R10 = R0
  0048  CALL      R4 = call(R4, 0 args, 6 rets)
  0049  GETTABLE  R4 = R0[K25('m_scoreText')]
  0050  GETTABUP  R5 = _ENV[K26('tostring')]
  0051  MOVE      R6 = R0
  0052  CALL      R5 = call(R5, 1 args, 1 rets)
  0053  SETTABLE  R4[K19('text')] = R5
  0054  SETTABLE  R0[K27('m_scoreValue')] = R2
  0055  RETURN    return R0..R-1
; ---------- proto1 [AddScore] ----------
  ; fn ?  line 30-38 np=2 va=0 ms=11 code=31 consts=13 upvals=1 protos=1
  ;   K[0]='m_scoreValue'
  ;   K[1]='DOTween'
  ;   K[2]='Sequence'
  ;   K[3]='Append'
  ;   K[4]='m_scoreText'
  ;   K[5]='transform'
  ;   K[6]='DOScale'
  ;   K[7]='Vector3'
  ;   K[8]=0.2
  ;   K[9]=0.1
  ;   K[10]='AppendCallback'
  ;   K[11]='m_scoreText'
  ;   K[12]='one'
  ;   upvals: _ENV
  ;   locals: self(0-31), Score(0-31), seq(6-31)
  0000  GETTABLE  R2 = R0[K0('m_scoreValue')]
  0001  ADD       R2 = R1 add R2
  0002  SETTABLE  R0[K0('m_scoreValue')] = R2
  0003  GETTABUP  R2 = _ENV[K1('DOTween')]
  0004  GETTABLE  R2 = R2[K2('Sequence')]
  0005  CALL      R2 = call(R2, 1 args, 0 rets)
  0006  SELF      R4 = R2[K3('Append')] (self)
  0007  GETTABLE  R5 = R0[K4('m_scoreText')]
  0008  GETTABLE  R5 = R5[K5('transform')]
  0009  SELF      R6 = R5[K6('DOScale')] (self)
  0010  GETTABUP  R7 = _ENV[K7('Vector3')]
  0011  LOADK     R8 = K8 0.2
  0012  LOADK     R9 = K8 0.2
  0013  LOADK     R10 = K8 0.2
  0014  CALL      R7 = call(R7, 1 args, 3 rets)
  0015  LOADK     R8 = K9 0.1
  0016  CALL      R5 = call(R5, -1 args, 3 rets)
  0017  CALL      R3 = call(R3, 0 args, -1 rets)
  0018  SELF      R4 = R2[K10('AppendCallback')] (self)
  0019  CLOSURE   R5 = closure proto0
  0020  CALL      R3 = call(R3, 0 args, 2 rets)
  0021  SELF      R4 = R2[K3('Append')] (self)
  0022  GETTABLE  R5 = R0[K11('m_scoreText')]
  0023  GETTABLE  R5 = R5[K5('transform')]
  0024  SELF      R6 = R5[K6('DOScale')] (self)
  0025  GETTABUP  R7 = _ENV[K7('Vector3')]
  0026  GETTABLE  R7 = R7[K12('one')]
  0027  LOADK     R8 = K9 0.1
  0028  CALL      R5 = call(R5, -1 args, 3 rets)
  0029  CALL      R3 = call(R3, 0 args, -1 rets)
  0030  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 34-36 np=0 va=0 ms=3 code=6 consts=4 upvals=2 protos=0
    ;   K[0]='m_scoreText'
    ;   K[1]='text'
    ;   K[2]='tostring'
    ;   K[3]='m_scoreValue'
    ;   upvals: self, _ENV
    0000  GETTABUP  R0 = self[K0('m_scoreText')]
    0001  GETTABUP  R1 = _ENV[K2('tostring')]
    0002  GETTABUP  R2 = self[K3('m_scoreValue')]
    0003  CALL      R1 = call(R1, 1 args, 1 rets)
    0004  SETTABLE  R0[K1('text')] = R1
    0005  RETURN    return R0..R-1
; ---------- proto2 [Init] ----------
  ; fn ?  line 45-59 np=3 va=0 ms=10 code=50 consts=25 upvals=1 protos=0
  ;   K[0]='frame'
  ;   K[1]='EAvatarFrame'
  ;   K[2]='Normal'
  ;   K[3]='icon'
  ;   K[4]='GM'
  ;   K[5]='UserProfileModel'
  ;   K[6]='GetAvatar'
  ;   K[7]='badgeId'
  ;   K[8]='GetBadge'
  ;   K[9]='frameId'
  ;   K[10]='GetFrame'
  ;   K[11]='name'
  ;   K[12]='GameTextModel'
  ;   K[13]='GetText'
  ;   K[14]='coin_race_main_you'
  ;   K[15]='userid'
  ;   K[16]='UserModel'
  ;   K[17]='GetUserId'
  ;   K[18]='m_userName'
  ;   K[19]='text'
  ;   K[20]='StringUtil'
  ;   K[21]='GetPlayerNameWithLimit'
  ;   K[22]=8
  ;   K[23]='m_userAvatar'
  ;   K[24]='SetAvatar'
  ;   upvals: _ENV
  ;   locals: self(0-50), userData(0-50), bIsMyself(0-50)
  0000  TEST      if not R2 then   -> -131070
  0001  JMP       (jump)   -> 33
  0002  NEWTABLE  R3 = {} (0 items)
  0003  GETTABUP  R4 = _ENV[K1('EAvatarFrame')]
  0004  GETTABLE  R4 = R4[K2('Normal')]
  0005  SETTABLE  R3[K0('frame')] = R4
  0006  GETTABUP  R4 = _ENV[K4('GM')]
  0007  GETTABLE  R4 = R4[K5('UserProfileModel')]
  0008  SELF      R5 = R4[K6('GetAvatar')] (self)
  0009  CALL      R4 = call(R4, 1 args, 1 rets)
  0010  SETTABLE  R3[K3('icon')] = R4
  0011  GETTABUP  R4 = _ENV[K4('GM')]
  0012  GETTABLE  R4 = R4[K5('UserProfileModel')]
  0013  SELF      R5 = R4[K8('GetBadge')] (self)
  0014  CALL      R4 = call(R4, 1 args, 1 rets)
  0015  SETTABLE  R3[K7('badgeId')] = R4
  0016  GETTABUP  R4 = _ENV[K4('GM')]
  0017  GETTABLE  R4 = R4[K5('UserProfileModel')]
  0018  SELF      R5 = R4[K10('GetFrame')] (self)
  0019  CALL      R4 = call(R4, 1 args, 1 rets)
  0020  SETTABLE  R3[K9('frameId')] = R4
  0021  GETTABUP  R4 = _ENV[K4('GM')]
  0022  GETTABLE  R4 = R4[K12('GameTextModel')]
  0023  SELF      R5 = R4[K13('GetText')] (self)
  0024  LOADK     R6 = K14 'coin_race_main_you'
  0025  CALL      R4 = call(R4, 1 args, 2 rets)
  0026  SETTABLE  R3[K11('name')] = R4
  0027  GETTABUP  R4 = _ENV[K4('GM')]
  0028  GETTABLE  R4 = R4[K16('UserModel')]
  0029  SELF      R5 = R4[K17('GetUserId')] (self)
  0030  CALL      R4 = call(R4, 1 args, 1 rets)
  0031  SETTABLE  R3[K15('userid')] = R4
  0032  MOVE      R1 = R0
  0033  GETTABLE  R3 = R0[K18('m_userName')]
  0034  GETTABUP  R4 = _ENV[K20('StringUtil')]
  0035  GETTABLE  R4 = R4[K21('GetPlayerNameWithLimit')]
  0036  GETTABLE  R5 = R1[K11('name')]
  0037  GETTABLE  R6 = R1[K15('userid')]
  0038  LOADK     R7 = K22 8
  0039  CALL      R4 = call(R4, 1 args, 3 rets)
  0040  SETTABLE  R3[K19('text')] = R4
  0041  GETTABLE  R3 = R0[K23('m_userAvatar')]
  0042  SELF      R4 = R3[K24('SetAvatar')] (self)
  0043  GETTABLE  R5 = R1[K0('frame')]
  0044  GETTABLE  R6 = R1[K3('icon')]
  0045  GETTABLE  R7 = R1[K7('badgeId')]
  0046  GETTABLE  R8 = R1[K9('frameId')]
  0047  MOVE      R9 = R0
  0048  CALL      R3 = call(R3, 0 args, 6 rets)
  0049  RETURN    return R0..R-1
