# BakeOut_View_BakeOutPodiumCell_859.luac
; fn @BakeOutPodiumCell.lua  line 0-0 np=0 va=1 ms=3 code=37 consts=16 upvals=1 protos=7
;   K[0]='BakeOutPodiumCell'
;   K[1]='__index'
;   K[2]='Awake'
;   K[3]='OnDestroy'
;   K[4]='_OnChangeProfile'
;   K[5]='UpdateContent'
;   K[6]='GetUserAvatar'
;   K[7]='_Reset'
;   K[8]=1
;   K[9]='ImageFileConfigName'
;   K[10]='medal_bg1'
;   K[11]=2
;   K[12]='medal_bg2'
;   K[13]=3
;   K[14]='medal_bg3'
;   K[15]='_UpdateRankIcon'
;   upvals: _ENV
;   locals: mapMedalImageName(33-37)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('BakeOutPodiumCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('BakeOutPodiumCell')]
0003  GETTABUP  R1 = _ENV[K0('BakeOutPodiumCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('BakeOutPodiumCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Awake')] = R1
0008  GETTABUP  R0 = _ENV[K0('BakeOutPodiumCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('BakeOutPodiumCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('_OnChangeProfile')] = R1
0014  GETTABUP  R0 = _ENV[K0('BakeOutPodiumCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('UpdateContent')] = R1
0017  GETTABUP  R0 = _ENV[K0('BakeOutPodiumCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('GetUserAvatar')] = R1
0020  GETTABUP  R0 = _ENV[K0('BakeOutPodiumCell')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('_Reset')] = R1
0023  NEWTABLE  R0 = {} (0 items)
0024  GETTABUP  R1 = _ENV[K9('ImageFileConfigName')]
0025  GETTABLE  R1 = R1[K10('medal_bg1')]
0026  SETTABLE  R0[K8(1)] = R1
0027  GETTABUP  R1 = _ENV[K9('ImageFileConfigName')]
0028  GETTABLE  R1 = R1[K12('medal_bg2')]
0029  SETTABLE  R0[K11(2)] = R1
0030  GETTABUP  R1 = _ENV[K9('ImageFileConfigName')]
0031  GETTABLE  R1 = R1[K14('medal_bg3')]
0032  SETTABLE  R0[K13(3)] = R1
0033  GETTABUP  R1 = _ENV[K0('BakeOutPodiumCell')]
0034  CLOSURE   R2 = closure proto6
0035  SETTABLE  R1[K15('_UpdateRankIcon')] = R2
0036  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 8-10 np=1 va=0 ms=5 code=8 consts=5 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='AddListener'
  ;   K[2]='EEventType'
  ;   K[3]='UpdateProfile'
  ;   K[4]='_OnChangeProfile'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('AddListener')]
  0002  GETTABUP  R2 = _ENV[K2('EEventType')]
  0003  GETTABLE  R2 = R2[K3('UpdateProfile')]
  0004  MOVE      R3 = R0
  0005  GETTABLE  R4 = R0[K4('_OnChangeProfile')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 12-14 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 [_OnChangeProfile] ----------
  ; fn ?  line 16-23 np=1 va=0 ms=5 code=23 consts=14 upvals=1 protos=0
  ;   K[0]='m_userId'
  ;   K[1]='GM'
  ;   K[2]='UserModel'
  ;   K[3]='GetUserId'
  ;   K[4]='ActivityManager'
  ;   K[5]='GetModel'
  ;   K[6]='ActivityType'
  ;   K[7]='BakeOut'
  ;   K[8]='m_nameText'
  ;   K[9]='text'
  ;   K[10]='UserProfileModel'
  ;   K[11]='GetName'
  ;   K[12]='m_userAvatar'
  ;   K[13]='SetMySelf'
  ;   upvals: _ENV
  ;   locals: self(0-23), bakeOutModel(13-22)
  0000  GETTABLE  R1 = R0[K0('m_userId')]
  0001  GETTABUP  R2 = _ENV[K1('GM')]
  0002  GETTABLE  R2 = R2[K2('UserModel')]
  0003  SELF      R3 = R2[K3('GetUserId')] (self)
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 22
  0007  GETTABUP  R1 = _ENV[K1('GM')]
  0008  GETTABLE  R1 = R1[K4('ActivityManager')]
  0009  SELF      R2 = R1[K5('GetModel')] (self)
  0010  GETTABUP  R3 = _ENV[K6('ActivityType')]
  0011  GETTABLE  R3 = R3[K7('BakeOut')]
  0012  CALL      R1 = call(R1, 1 args, 2 rets)
  0013  GETTABLE  R2 = R0[K8('m_nameText')]
  0014  GETTABUP  R3 = _ENV[K1('GM')]
  0015  GETTABLE  R3 = R3[K10('UserProfileModel')]
  0016  SELF      R4 = R3[K11('GetName')] (self)
  0017  CALL      R3 = call(R3, 1 args, 1 rets)
  0018  SETTABLE  R2[K9('text')] = R3
  0019  GETTABLE  R2 = R0[K12('m_userAvatar')]
  0020  SELF      R3 = R2[K13('SetMySelf')] (self)
  0021  CALL      R2 = call(R2, 0 args, 1 rets)
  0022  RETURN    return R0..R-1
; ---------- proto3 [UpdateContent] ----------
  ; fn ?  line 25-42 np=2 va=0 ms=12 code=59 consts=27 upvals=1 protos=0
  ;   K[0]='m_userId'
  ;   K[1]='userid'
  ;   K[2]=-1
  ;   K[3]=nil
  ;   K[4]='_Reset'
  ;   K[5]='m_tokenGo'
  ;   K[6]='SetActive'
  ;   K[7]='m_userAvatar'
  ;   K[8]='gameObject'
  ;   K[9]='rank'
  ;   K[10]=1
  ;   K[11]='EAvatarFrame'
  ;   K[12]='Highlight'
  ;   K[13]='Normal'
  ;   K[14]='SetAvatar'
  ;   K[15]='icon'
  ;   K[16]='badge'
  ;   K[17]='icon_frame'
  ;   K[18]='GM'
  ;   K[19]='UserModel'
  ;   K[20]='GetUserId'
  ;   K[21]='m_nameText'
  ;   K[22]='text'
  ;   K[23]='name'
  ;   K[24]='m_tokenText'
  ;   K[25]='score'
  ;   K[26]='_UpdateRankIcon'
  ;   upvals: _ENV
  ;   locals: self(0-59), rankData(0-59), frame(30-59)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 5
  0002  GETTABLE  R2 = R1[K1('userid')]
  0003  TEST      if not R2 then   -> -131066
  0004  JMP       (jump)   -> 6
  0005  LOADK     R2 = K2 -1
  0006  SETTABLE  R0[K0('m_userId')] = R2
  0007  EQ        if R0 eq K3(nil)   -> -130292
  0008  JMP       (jump)   -> 12
  0009  SELF      R3 = R0[K4('_Reset')] (self)
  0010  CALL      R2 = call(R2, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
  0012  GETTABLE  R2 = R0[K5('m_tokenGo')]
  0013  SELF      R3 = R2[K6('SetActive')] (self)
  0014  LOADBOOL  R4 = true
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  GETTABLE  R2 = R0[K7('m_userAvatar')]
  0017  GETTABLE  R2 = R2[K8('gameObject')]
  0018  SELF      R3 = R2[K6('SetActive')] (self)
  0019  LOADBOOL  R4 = true
  0020  CALL      R2 = call(R2, 0 args, 2 rets)
  0021  GETTABLE  R2 = R1[K9('rank')]
  0022  EQ        if R0 eq K10(1)   -> -129758
  0023  JMP       (jump)   -> 28
  0024  GETTABUP  R2 = _ENV[K11('EAvatarFrame')]
  0025  GETTABLE  R2 = R2[K12('Highlight')]
  0026  TEST      if not R2 then   -> -131043
  0027  JMP       (jump)   -> 30
  0028  GETTABUP  R2 = _ENV[K11('EAvatarFrame')]
  0029  GETTABLE  R2 = R2[K13('Normal')]
  0030  GETTABLE  R3 = R0[K7('m_userAvatar')]
  0031  SELF      R4 = R3[K14('SetAvatar')] (self)
  0032  MOVE      R5 = R0
  0033  GETTABLE  R6 = R1[K15('icon')]
  0034  GETTABLE  R7 = R1[K16('badge')]
  0035  GETTABLE  R8 = R1[K17('icon_frame')]
  0036  GETTABLE  R9 = R0[K0('m_userId')]
  0037  GETTABUP  R10 = _ENV[K18('GM')]
  0038  GETTABLE  R10 = R10[K19('UserModel')]
  0039  SELF      R11 = R10[K20('GetUserId')] (self)
  0040  CALL      R10 = call(R10, 1 args, 1 rets)
  0041  EQ        if R1 eq R10   -> -126411
  0042  JMP       (jump)   -> 44
  0043  LOADBOOL  R9 = false
  0044  LOADBOOL  R9 = true
  0045  CALL      R3 = call(R3, 0 args, 6 rets)
  0046  GETTABLE  R3 = R0[K21('m_nameText')]
  0047  EQ        if R1 eq K3(nil)   -> -129228
  0048  JMP       (jump)   -> 52
  0049  GETTABLE  R3 = R0[K21('m_nameText')]
  0050  GETTABLE  R4 = R1[K23('name')]
  0051  SETTABLE  R3[K22('text')] = R4
  0052  GETTABLE  R3 = R0[K24('m_tokenText')]
  0053  GETTABLE  R4 = R1[K25('score')]
  0054  SETTABLE  R3[K22('text')] = R4
  0055  SELF      R4 = R0[K26('_UpdateRankIcon')] (self)
  0056  GETTABLE  R5 = R1[K9('rank')]
  0057  CALL      R3 = call(R3, 0 args, 2 rets)
  0058  RETURN    return R0..R-1
; ---------- proto4 [GetUserAvatar] ----------
  ; fn ?  line 44-46 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_userAvatar'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_userAvatar')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto5 [_Reset] ----------
  ; fn ?  line 48-57 np=1 va=0 ms=4 code=17 consts=9 upvals=0 protos=0
  ;   K[0]='m_userAvatar'
  ;   K[1]='gameObject'
  ;   K[2]='SetActive'
  ;   K[3]='m_nameText'
  ;   K[4]=nil
  ;   K[5]='text'
  ;   K[6]=''
  ;   K[7]='m_tokenText'
  ;   K[8]='m_tokenGo'
  ;   locals: self(0-17)
  0000  GETTABLE  R1 = R0[K0('m_userAvatar')]
  0001  GETTABLE  R1 = R1[K1('gameObject')]
  0002  SELF      R2 = R1[K2('SetActive')] (self)
  0003  LOADBOOL  R3 = false
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  GETTABLE  R1 = R0[K3('m_nameText')]
  0006  EQ        if R1 eq K4(nil)   -> -130292
  0007  JMP       (jump)   -> 10
  0008  GETTABLE  R1 = R0[K3('m_nameText')]
  0009  SETTABLE  R1[K5('text')] = K6('')
  0010  GETTABLE  R1 = R0[K7('m_tokenText')]
  0011  SETTABLE  R1[K5('text')] = K6('')
  0012  GETTABLE  R1 = R0[K8('m_tokenGo')]
  0013  SELF      R2 = R1[K2('SetActive')] (self)
  0014  LOADBOOL  R3 = false
  0015  CALL      R1 = call(R1, 0 args, 2 rets)
  0016  RETURN    return R0..R-1
; ---------- proto6 [_UpdateRankIcon] ----------
  ; fn ?  line 65-71 np=2 va=0 ms=6 code=16 consts=6 upvals=2 protos=0
  ;   K[0]='m_rankText'
  ;   K[1]=nil
  ;   K[2]='text'
  ;   K[3]='SpriteUtil'
  ;   K[4]='SetImage'
  ;   K[5]='m_medalImg'
  ;   upvals: mapMedalImageName, _ENV
  ;   locals: self(0-16), rank(0-16)
  0000  GETTABLE  R2 = R0[K0('m_rankText')]
  0001  EQ        if R1 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R2 = R0[K0('m_rankText')]
  0004  SETTABLE  R2[K2('text')] = R1
  0005  JMP       (jump)   -> 15
  0006  GETTABUP  R2 = mapMedalImageName[R1]
  0007  EQ        if R1 eq K1(nil)   -> -129782
  0008  JMP       (jump)   -> 15
  0009  GETTABUP  R2 = _ENV[K3('SpriteUtil')]
  0010  GETTABLE  R2 = R2[K4('SetImage')]
  0011  GETTABLE  R3 = R0[K5('m_medalImg')]
  0012  GETTABUP  R4 = mapMedalImageName[R1]
  0013  LOADBOOL  R5 = true
  0014  CALL      R2 = call(R2, 0 args, 3 rets)
  0015  RETURN    return R0..R-1
