# UI_Window_Setting_AvatarSelectCell_549.luac
; fn @AvatarSelectCell.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=6 upvals=1 protos=4
;   K[0]='AvatarSelectCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnSelected'
;   K[4]='UpdateContent'
;   K[5]='UpdateSelectedFrameBg'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('AvatarSelectCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('AvatarSelectCell')]
0003  GETTABUP  R1 = _ENV[K0('AvatarSelectCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('AvatarSelectCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('AvatarSelectCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnSelected')] = R1
0011  GETTABUP  R0 = _ENV[K0('AvatarSelectCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('UpdateContent')] = R1
0014  GETTABUP  R0 = _ENV[K0('AvatarSelectCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('UpdateSelectedFrameBg')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-8 np=3 va=0 ms=7 code=9 consts=6 upvals=1 protos=0
  ;   K[0]='icon'
  ;   K[1]='m_selectCallback'
  ;   K[2]='m_avatar'
  ;   K[3]='SetAvatar'
  ;   K[4]='EAvatarFrame'
  ;   K[5]='Normal'
  ;   upvals: _ENV
  ;   locals: self(0-9), icon(0-9), selectCallback(0-9)
  0000  SETTABLE  R0[K0('icon')] = R1
  0001  SETTABLE  R0[K1('m_selectCallback')] = R2
  0002  GETTABLE  R3 = R0[K2('m_avatar')]
  0003  SELF      R4 = R3[K3('SetAvatar')] (self)
  0004  GETTABUP  R5 = _ENV[K4('EAvatarFrame')]
  0005  GETTABLE  R5 = R5[K5('Normal')]
  0006  GETTABLE  R6 = R0[K0('icon')]
  0007  CALL      R3 = call(R3, 0 args, 3 rets)
  0008  RETURN    return R0..R-1
; ---------- proto1 [OnSelected] ----------
  ; fn ?  line 10-12 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_selectCallback'
  ;   K[1]='icon'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_selectCallback')]
  0001  GETTABLE  R2 = R0[K1('icon')]
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto2 [UpdateContent] ----------
  ; fn ?  line 14-17 np=2 va=0 ms=5 code=13 consts=3 upvals=0 protos=0
  ;   K[0]='m_checkedGo'
  ;   K[1]='SetActive'
  ;   K[2]='UpdateSelectedFrameBg'
  ;   locals: self(0-13), selected(0-13)
  0000  GETTABLE  R2 = R0[K0('m_checkedGo')]
  0001  SELF      R3 = R2[K1('SetActive')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  SELF      R3 = R0[K2('UpdateSelectedFrameBg')] (self)
  0005  TEST      if not R1 then   -> -131065
  0006  JMP       (jump)   -> 10
  0007  LOADBOOL  R4 = true
  0008  TEST      if not R4 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  LOADBOOL  R4 = false
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
; ---------- proto3 [UpdateSelectedFrameBg] ----------
  ; fn ?  line 19-21 np=2 va=0 ms=5 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_selectedFrameBgGo'
  ;   K[1]='SetActive'
  ;   locals: self(0-5), selected(0-5)
  0000  GETTABLE  R2 = R0[K0('m_selectedFrameBgGo')]
  0001  SELF      R3 = R2[K1('SetActive')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
