# UI_Window_Setting_BadgeSelectCell_576.luac
; fn @BadgeSelectCell.lua  line 0-0 np=0 va=1 ms=2 code=21 consts=7 upvals=1 protos=5
;   K[0]='BadgeSelectCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnDestroy'
;   K[4]='OnClicked'
;   K[5]='UpdateContent'
;   K[6]='SetLoading'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('BadgeSelectCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('BadgeSelectCell')]
0003  GETTABUP  R1 = _ENV[K0('BadgeSelectCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('BadgeSelectCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('BadgeSelectCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('BadgeSelectCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnClicked')] = R1
0014  GETTABUP  R0 = _ENV[K0('BadgeSelectCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('UpdateContent')] = R1
0017  GETTABUP  R0 = _ENV[K0('BadgeSelectCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('SetLoading')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-24 np=2 va=0 ms=11 code=32 consts=18 upvals=1 protos=1
  ;   K[0]='badgeId'
  ;   K[1]='UpdateContent'
  ;   K[2]='SetLoading'
  ;   K[3]='GM'
  ;   K[4]='DataResource'
  ;   K[5]='UIPrefabConfig'
  ;   K[6]='GetConfig'
  ;   K[7]='UIPrefabConfigName'
  ;   K[8]='ResourceLoader'
  ;   K[9]='LoadPrefab'
  ;   K[10]='m_badgeRootCanvasGroup'
  ;   K[11]='transform'
  ;   K[12]='V3Zero'
  ;   K[13]='EventDispatcher'
  ;   K[14]='AddListener'
  ;   K[15]='EEventType'
  ;   K[16]='UpdateProfile'
  ;   K[17]='UpdateContent'
  ;   upvals: _ENV
  ;   locals: self(0-32), badgeId(0-32), res(13-32)
  0000  SETTABLE  R0[K0('badgeId')] = R1
  0001  SELF      R3 = R0[K1('UpdateContent')] (self)
  0002  CALL      R2 = call(R2, 0 args, 1 rets)
  0003  SELF      R3 = R0[K2('SetLoading')] (self)
  0004  LOADBOOL  R4 = true
  0005  CALL      R2 = call(R2, 0 args, 2 rets)
  0006  GETTABUP  R2 = _ENV[K3('GM')]
  0007  GETTABLE  R2 = R2[K4('DataResource')]
  0008  GETTABLE  R2 = R2[K5('UIPrefabConfig')]
  0009  SELF      R3 = R2[K6('GetConfig')] (self)
  0010  GETTABUP  R4 = _ENV[K7('UIPrefabConfigName')]
  0011  GETTABLE  R4 = R4[R1]
  0012  CALL      R2 = call(R2, 1 args, 2 rets)
  0013  GETTABUP  R3 = _ENV[K3('GM')]
  0014  GETTABLE  R3 = R3[K8('ResourceLoader')]
  0015  SELF      R4 = R3[K9('LoadPrefab')] (self)
  0016  MOVE      R5 = R0
  0017  GETTABLE  R6 = R0[K10('m_badgeRootCanvasGroup')]
  0018  GETTABLE  R6 = R6[K11('transform')]
  0019  GETTABUP  R7 = _ENV[K12('V3Zero')]
  0020  CLOSURE   R8 = closure proto0
  0021  LOADNIL   R9..R9 = nil
  0022  LOADBOOL  R10 = true
  0023  CALL      R3 = call(R3, 0 args, 7 rets)
  0024  GETTABUP  R3 = _ENV[K13('EventDispatcher')]
  0025  GETTABLE  R3 = R3[K14('AddListener')]
  0026  GETTABUP  R4 = _ENV[K15('EEventType')]
  0027  GETTABLE  R4 = R4[K16('UpdateProfile')]
  0028  MOVE      R5 = R0
  0029  GETTABLE  R6 = R0[K17('UpdateContent')]
  0030  CALL      R3 = call(R3, 0 args, 3 rets)
  0031  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 10-21 np=1 va=0 ms=6 code=31 consts=15 upvals=2 protos=0
    ;   K[0]='SetLoading'
    ;   K[1]='GetLuaTable'
    ;   K[2]='m_badgeView'
    ;   K[3]='Init'
    ;   K[4]='GM'
    ;   K[5]='UserProfileModel'
    ;   K[6]='IsPropertyAcquired'
    ;   K[7]='EProfilePropertyType'
    ;   K[8]='Badge'
    ;   K[9]='badgeId'
    ;   K[10]='SetColor'
    ;   K[11]='UIUtil'
    ;   K[12]='ConvertHexColor2CSColor'
    ;   K[13]='C59E7B'
    ;   K[14]='UpdateContent'
    ;   upvals: self, _ENV
    ;   locals: go(0-31), badgeView(6-31)
    0000  GETUPVAL  R1 = self
    0001  SELF      R2 = R1[K0('SetLoading')] (self)
    0002  LOADBOOL  R3 = false
    0003  CALL      R1 = call(R1, 0 args, 2 rets)
    0004  SELF      R2 = R0[K1('GetLuaTable')] (self)
    0005  CALL      R1 = call(R1, 1 args, 1 rets)
    0006  SETTABUP  self[K2('m_badgeView')] = R1
    0007  TEST      if not R1 then   -> -131063
    0008  JMP       (jump)   -> 27
    0009  SELF      R3 = R1[K3('Init')] (self)
    0010  LOADBOOL  R4 = false
    0011  CALL      R2 = call(R2, 0 args, 2 rets)
    0012  GETTABUP  R2 = _ENV[K4('GM')]
    0013  GETTABLE  R2 = R2[K5('UserProfileModel')]
    0014  SELF      R3 = R2[K6('IsPropertyAcquired')] (self)
    0015  GETTABUP  R4 = _ENV[K7('EProfilePropertyType')]
    0016  GETTABLE  R4 = R4[K8('Badge')]
    0017  GETTABUP  R5 = self[K9('badgeId')]
    0018  CALL      R2 = call(R2, 1 args, 3 rets)
    0019  TEST      if not R2 then   -> -131050
    0020  JMP       (jump)   -> 27
    0021  SELF      R3 = R1[K10('SetColor')] (self)
    0022  GETTABUP  R4 = _ENV[K11('UIUtil')]
    0023  GETTABLE  R4 = R4[K12('ConvertHexColor2CSColor')]
    0024  LOADK     R5 = K13 'C59E7B'
    0025  CALL      R4 = call(R4, -1 args, 1 rets)
    0026  CALL      R2 = call(R2, 0 args, -1 rets)
    0027  GETUPVAL  R2 = self
    0028  SELF      R3 = R2[K14('UpdateContent')] (self)
    0029  CALL      R2 = call(R2, 0 args, 1 rets)
    0030  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 26-28 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 [OnClicked] ----------
  ; fn ?  line 30-36 np=1 va=0 ms=5 code=17 consts=9 upvals=1 protos=0
  ;   K[0]='m_bLoading'
  ;   K[1]='GM'
  ;   K[2]='UIManager'
  ;   K[3]='OpenView'
  ;   K[4]='UIPrefabConfigName'
  ;   K[5]='BadgeWearWindow'
  ;   K[6]='badgeId'
  ;   K[7]='ShowPromptWithKey'
  ;   K[8]='pop_hint_res_download'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  GETTABLE  R1 = R0[K0('m_bLoading')]
  0001  TEST      if not R1 then   -> -131068
  0002  JMP       (jump)   -> 11
  0003  GETTABUP  R1 = _ENV[K1('GM')]
  0004  GETTABLE  R1 = R1[K2('UIManager')]
  0005  SELF      R2 = R1[K3('OpenView')] (self)
  0006  GETTABUP  R3 = _ENV[K4('UIPrefabConfigName')]
  0007  GETTABLE  R3 = R3[K5('BadgeWearWindow')]
  0008  GETTABLE  R4 = R0[K6('badgeId')]
  0009  CALL      R1 = call(R1, 0 args, 3 rets)
  0010  JMP       (jump)   -> 16
  0011  GETTABUP  R1 = _ENV[K1('GM')]
  0012  GETTABLE  R1 = R1[K2('UIManager')]
  0013  SELF      R2 = R1[K7('ShowPromptWithKey')] (self)
  0014  LOADK     R3 = K8 'pop_hint_res_download'
  0015  CALL      R1 = call(R1, 0 args, 2 rets)
  0016  RETURN    return R0..R-1
; ---------- proto3 [UpdateContent] ----------
  ; fn ?  line 38-48 np=1 va=0 ms=6 code=42 consts=17 upvals=1 protos=0
  ;   K[0]='badgeId'
  ;   K[1]='GM'
  ;   K[2]='UserProfileModel'
  ;   K[3]='GetBadge'
  ;   K[4]='UIUtil'
  ;   K[5]='SetActive'
  ;   K[6]='m_checkedGo'
  ;   K[7]='m_badgeView'
  ;   K[8]='SetSelected'
  ;   K[9]='IsPropertyAcquired'
  ;   K[10]='EProfilePropertyType'
  ;   K[11]='Badge'
  ;   K[12]='m_badgeRootCanvasGroup'
  ;   K[13]='alpha'
  ;   K[14]=1
  ;   K[15]=0.35
  ;   K[16]='m_lockGo'
  ;   upvals: _ENV
  ;   locals: self(0-42), selected(9-42), acquired(28-42)
  0000  GETTABLE  R1 = R0[K0('badgeId')]
  0001  GETTABUP  R2 = _ENV[K1('GM')]
  0002  GETTABLE  R2 = R2[K2('UserProfileModel')]
  0003  SELF      R3 = R2[K3('GetBadge')] (self)
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  EQ        if R1 eq R2   -> -130551
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R1 = false
  0008  LOADBOOL  R1 = true
  0009  GETTABUP  R2 = _ENV[K4('UIUtil')]
  0010  GETTABLE  R2 = R2[K5('SetActive')]
  0011  GETTABLE  R3 = R0[K6('m_checkedGo')]
  0012  MOVE      R4 = R0
  0013  CALL      R2 = call(R2, 0 args, 2 rets)
  0014  GETTABLE  R2 = R0[K7('m_badgeView')]
  0015  TEST      if not R2 then   -> -131055
  0016  JMP       (jump)   -> 21
  0017  GETTABLE  R2 = R0[K7('m_badgeView')]
  0018  SELF      R3 = R2[K8('SetSelected')] (self)
  0019  MOVE      R4 = R0
  0020  CALL      R2 = call(R2, 0 args, 2 rets)
  0021  GETTABUP  R2 = _ENV[K1('GM')]
  0022  GETTABLE  R2 = R2[K2('UserProfileModel')]
  0023  SELF      R3 = R2[K9('IsPropertyAcquired')] (self)
  0024  GETTABUP  R4 = _ENV[K10('EProfilePropertyType')]
  0025  GETTABLE  R4 = R4[K11('Badge')]
  0026  GETTABLE  R5 = R0[K0('badgeId')]
  0027  CALL      R2 = call(R2, 1 args, 3 rets)
  0028  GETTABLE  R3 = R0[K12('m_badgeRootCanvasGroup')]
  0029  TEST      if not R2 then   -> -131041
  0030  JMP       (jump)   -> 34
  0031  LOADK     R4 = K14 1
  0032  TEST      if not R4 then   -> -131037
  0033  JMP       (jump)   -> 35
  0034  LOADK     R4 = K15 0.35
  0035  SETTABLE  R3[K13('alpha')] = R4
  0036  GETTABUP  R3 = _ENV[K4('UIUtil')]
  0037  GETTABLE  R3 = R3[K5('SetActive')]
  0038  GETTABLE  R4 = R0[K16('m_lockGo')]
  0039  NOT       R5 = not R0
  0040  CALL      R3 = call(R3, 0 args, 2 rets)
  0041  RETURN    return R0..R-1
; ---------- proto4 [SetLoading] ----------
  ; fn ?  line 50-56 np=2 va=0 ms=5 code=11 consts=4 upvals=1 protos=0
  ;   K[0]='m_bLoading'
  ;   K[1]='UIUtil'
  ;   K[2]='SetActive'
  ;   K[3]='m_loadingGo'
  ;   upvals: _ENV
  ;   locals: self(0-11), bLoading(0-11)
  0000  GETTABLE  R2 = R0[K0('m_bLoading')]
  0001  EQ        if R0 eq R1   -> -130044
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SETTABLE  R0[K0('m_bLoading')] = R1
  0005  GETTABUP  R2 = _ENV[K1('UIUtil')]
  0006  GETTABLE  R2 = R2[K2('SetActive')]
  0007  GETTABLE  R3 = R0[K3('m_loadingGo')]
  0008  MOVE      R4 = R0
  0009  CALL      R2 = call(R2, 0 args, 2 rets)
  0010  RETURN    return R0..R-1
