# UI_Window_Setting_ProfileView_564.luac
; fn @ProfileView.lua  line 0-0 np=0 va=1 ms=2 code=30 consts=10 upvals=1 protos=8
;   K[0]='ProfileView'
;   K[1]='__index'
;   K[2]='Awake'
;   K[3]='OnDestroy'
;   K[4]='SetUpdateBadgeOnly'
;   K[5]='_ShowProfile'
;   K[6]='_UpdateProfile'
;   K[7]='OnRenameButtonClicked'
;   K[8]='OnCopyButtonClicked'
;   K[9]='GetProfileTrans'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ProfileView')] = R0
0002  GETTABUP  R0 = _ENV[K0('ProfileView')]
0003  GETTABUP  R1 = _ENV[K0('ProfileView')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('ProfileView')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Awake')] = R1
0008  GETTABUP  R0 = _ENV[K0('ProfileView')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('ProfileView')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('SetUpdateBadgeOnly')] = R1
0014  GETTABUP  R0 = _ENV[K0('ProfileView')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('_ShowProfile')] = R1
0017  GETTABUP  R0 = _ENV[K0('ProfileView')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('_UpdateProfile')] = R1
0020  GETTABUP  R0 = _ENV[K0('ProfileView')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('OnRenameButtonClicked')] = R1
0023  GETTABUP  R0 = _ENV[K0('ProfileView')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('OnCopyButtonClicked')] = R1
0026  GETTABUP  R0 = _ENV[K0('ProfileView')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('GetProfileTrans')] = R1
0029  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-7 np=1 va=0 ms=5 code=10 consts=6 upvals=1 protos=0
  ;   K[0]='_ShowProfile'
  ;   K[1]='EventDispatcher'
  ;   K[2]='AddListener'
  ;   K[3]='EEventType'
  ;   K[4]='UpdateProfile'
  ;   K[5]='_UpdateProfile'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('_ShowProfile')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('EventDispatcher')]
  0003  GETTABLE  R1 = R1[K2('AddListener')]
  0004  GETTABUP  R2 = _ENV[K3('EEventType')]
  0005  GETTABLE  R2 = R2[K4('UpdateProfile')]
  0006  MOVE      R3 = R0
  0007  GETTABLE  R4 = R0[K5('_UpdateProfile')]
  0008  CALL      R1 = call(R1, 0 args, 3 rets)
  0009  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 9-11 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [SetUpdateBadgeOnly] ----------
  ; fn ?  line 13-15 np=1 va=0 ms=2 code=2 consts=2 upvals=0 protos=0
  ;   K[0]='m_bUpdateBadgeOnly'
  ;   K[1]=true
  ;   locals: self(0-2)
  0000  SETTABLE  R0[K0('m_bUpdateBadgeOnly')] = K1(true)
  0001  RETURN    return R0..R-1
; ---------- proto3 [_ShowProfile] ----------
  ; fn ?  line 17-20 np=1 va=0 ms=5 code=11 consts=7 upvals=1 protos=0
  ;   K[0]='_UpdateProfile'
  ;   K[1]='m_idText'
  ;   K[2]='text'
  ;   K[3]='ID:'
  ;   K[4]='GM'
  ;   K[5]='UserModel'
  ;   K[6]='GetDisplayUserId'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  SELF      R2 = R0[K0('_UpdateProfile')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_idText')]
  0003  LOADK     R2 = K3 'ID:'
  0004  GETTABUP  R3 = _ENV[K4('GM')]
  0005  GETTABLE  R3 = R3[K5('UserModel')]
  0006  SELF      R4 = R3[K6('GetDisplayUserId')] (self)
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  CONCAT    R2 = concat(R2..R2)
  0009  SETTABLE  R1[K2('text')] = R2
  0010  RETURN    return R0..R-1
; ---------- proto4 [_UpdateProfile] ----------
  ; fn ?  line 22-29 np=1 va=0 ms=5 code=21 consts=10 upvals=1 protos=0
  ;   K[0]='m_bUpdateBadgeOnly'
  ;   K[1]='m_userAvatar'
  ;   K[2]='UpdateBadge'
  ;   K[3]='GM'
  ;   K[4]='UserProfileModel'
  ;   K[5]='GetBadge'
  ;   K[6]='SetMySelf'
  ;   K[7]='m_nameInput'
  ;   K[8]='text'
  ;   K[9]='GetName'
  ;   upvals: _ENV
  ;   locals: self(0-21)
  0000  GETTABLE  R1 = R0[K0('m_bUpdateBadgeOnly')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 11
  0003  GETTABLE  R1 = R0[K1('m_userAvatar')]
  0004  SELF      R2 = R1[K2('UpdateBadge')] (self)
  0005  GETTABUP  R3 = _ENV[K3('GM')]
  0006  GETTABLE  R3 = R3[K4('UserProfileModel')]
  0007  SELF      R4 = R3[K5('GetBadge')] (self)
  0008  CALL      R3 = call(R3, -1 args, 1 rets)
  0009  CALL      R1 = call(R1, 0 args, -1 rets)
  0010  JMP       (jump)   -> 14
  0011  GETTABLE  R1 = R0[K1('m_userAvatar')]
  0012  SELF      R2 = R1[K6('SetMySelf')] (self)
  0013  CALL      R1 = call(R1, 0 args, 1 rets)
  0014  GETTABLE  R1 = R0[K7('m_nameInput')]
  0015  GETTABUP  R2 = _ENV[K3('GM')]
  0016  GETTABLE  R2 = R2[K4('UserProfileModel')]
  0017  SELF      R3 = R2[K9('GetName')] (self)
  0018  CALL      R2 = call(R2, 1 args, 1 rets)
  0019  SETTABLE  R1[K8('text')] = R2
  0020  RETURN    return R0..R-1
; ---------- proto5 [OnRenameButtonClicked] ----------
  ; fn ?  line 31-35 np=1 va=0 ms=5 code=23 consts=10 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UserProfileModel'
  ;   K[2]='ChangeName'
  ;   K[3]='m_nameInput'
  ;   K[4]='text'
  ;   K[5]='UIManager'
  ;   K[6]='ShowPromptWithKey'
  ;   K[7]='setting_window_change_success'
  ;   K[8]='setting_window_change_fail'
  ;   K[9]='GetName'
  ;   upvals: _ENV
  ;   locals: self(0-23), success(6-23)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UserProfileModel')]
  0002  SELF      R2 = R1[K2('ChangeName')] (self)
  0003  GETTABLE  R3 = R0[K3('m_nameInput')]
  0004  GETTABLE  R3 = R3[K4('text')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  GETTABUP  R2 = _ENV[K0('GM')]
  0007  GETTABLE  R2 = R2[K5('UIManager')]
  0008  SELF      R3 = R2[K6('ShowPromptWithKey')] (self)
  0009  TEST      if not R1 then   -> -131061
  0010  JMP       (jump)   -> 14
  0011  LOADK     R4 = K7 'setting_window_change_success'
  0012  TEST      if not R4 then   -> -131057
  0013  JMP       (jump)   -> 15
  0014  LOADK     R4 = K8 'setting_window_change_fail'
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  GETTABLE  R2 = R0[K3('m_nameInput')]
  0017  GETTABUP  R3 = _ENV[K0('GM')]
  0018  GETTABLE  R3 = R3[K1('UserProfileModel')]
  0019  SELF      R4 = R3[K9('GetName')] (self)
  0020  CALL      R3 = call(R3, 1 args, 1 rets)
  0021  SETTABLE  R2[K4('text')] = R3
  0022  RETURN    return R0..R-1
; ---------- proto6 [OnCopyButtonClicked] ----------
  ; fn ?  line 37-40 np=1 va=0 ms=4 code=13 consts=8 upvals=1 protos=0
  ;   K[0]='PlatformInterface'
  ;   K[1]='SetString2Clipboard'
  ;   K[2]='GM'
  ;   K[3]='UserModel'
  ;   K[4]='GetDisplayUserId'
  ;   K[5]='UIManager'
  ;   K[6]='ShowPromptWithKey'
  ;   K[7]='setting_window_copy_success'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABUP  R1 = _ENV[K0('PlatformInterface')]
  0001  GETTABLE  R1 = R1[K1('SetString2Clipboard')]
  0002  GETTABUP  R2 = _ENV[K2('GM')]
  0003  GETTABLE  R2 = R2[K3('UserModel')]
  0004  SELF      R3 = R2[K4('GetDisplayUserId')] (self)
  0005  CALL      R2 = call(R2, -1 args, 1 rets)
  0006  CALL      R1 = call(R1, 0 args, -1 rets)
  0007  GETTABUP  R1 = _ENV[K2('GM')]
  0008  GETTABLE  R1 = R1[K5('UIManager')]
  0009  SELF      R2 = R1[K6('ShowPromptWithKey')] (self)
  0010  LOADK     R3 = K7 'setting_window_copy_success'
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
; ---------- proto7 [GetProfileTrans] ----------
  ; fn ?  line 42-44 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_profileTrans'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_profileTrans')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
