# UI_Window_Setting_FrameWearWindow_584.luac
; fn @FrameWearWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='FrameWearWindow'
;   K[1]='setmetatable'
;   K[2]='FramePreviewWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnPreviewBtnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('FramePreviewWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('FrameWearWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('FrameWearWindow')]
0006  GETTABUP  R1 = _ENV[K0('FrameWearWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('FrameWearWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('FrameWearWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnPreviewBtnClicked')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 9-18 np=2 va=0 ms=8 code=49 consts=15 upvals=1 protos=0
  ;   K[0]='FramePreviewWindow'
  ;   K[1]='Init'
  ;   K[2]='GM'
  ;   K[3]='UserProfileModel'
  ;   K[4]='IsPropertyAcquired'
  ;   K[5]='EProfilePropertyType'
  ;   K[6]='Frame'
  ;   K[7]='GetFrame'
  ;   K[8]='m_btn'
  ;   K[9]='SetText'
  ;   K[10]='GameTextModel'
  ;   K[11]='GetText'
  ;   K[12]='bt_unequip'
  ;   K[13]='bt_equit'
  ;   K[14]='SetEnabled'
  ;   upvals: _ENV
  ;   locals: self(0-49), frameId(0-49), bAlreadyWearing(22-35)
  0000  GETTABUP  R2 = _ENV[K0('FramePreviewWindow')]
  0001  GETTABLE  R2 = R2[K1('Init')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K2('GM')]
  0006  GETTABLE  R2 = R2[K3('UserProfileModel')]
  0007  SELF      R3 = R2[K4('IsPropertyAcquired')] (self)
  0008  GETTABUP  R4 = _ENV[K5('EProfilePropertyType')]
  0009  GETTABLE  R4 = R4[K6('Frame')]
  0010  MOVE      R5 = R0
  0011  CALL      R2 = call(R2, 1 args, 3 rets)
  0012  TEST      if not R2 then   -> -131058
  0013  JMP       (jump)   -> 36
  0014  GETTABUP  R2 = _ENV[K2('GM')]
  0015  GETTABLE  R2 = R2[K3('UserProfileModel')]
  0016  SELF      R3 = R2[K7('GetFrame')] (self)
  0017  CALL      R2 = call(R2, 1 args, 1 rets)
  0018  EQ        if R1 eq R1   -> -130027
  0019  JMP       (jump)   -> 21
  0020  LOADBOOL  R2 = false
  0021  LOADBOOL  R2 = true
  0022  GETTABLE  R3 = R0[K8('m_btn')]
  0023  SELF      R4 = R3[K9('SetText')] (self)
  0024  GETTABUP  R5 = _ENV[K2('GM')]
  0025  GETTABLE  R5 = R5[K10('GameTextModel')]
  0026  SELF      R6 = R5[K11('GetText')] (self)
  0027  TEST      if not R2 then   -> -131043
  0028  JMP       (jump)   -> 32
  0029  LOADK     R7 = K12 'bt_unequip'
  0030  TEST      if not R7 then   -> -131039
  0031  JMP       (jump)   -> 33
  0032  LOADK     R7 = K13 'bt_equit'
  0033  CALL      R5 = call(R5, -1 args, 2 rets)
  0034  CALL      R3 = call(R3, 0 args, -1 rets)
  0035  JMP       (jump)   -> 48
  0036  GETTABLE  R2 = R0[K8('m_btn')]
  0037  SELF      R3 = R2[K14('SetEnabled')] (self)
  0038  LOADBOOL  R4 = false
  0039  CALL      R2 = call(R2, 0 args, 2 rets)
  0040  GETTABLE  R2 = R0[K8('m_btn')]
  0041  SELF      R3 = R2[K9('SetText')] (self)
  0042  GETTABUP  R4 = _ENV[K2('GM')]
  0043  GETTABLE  R4 = R4[K10('GameTextModel')]
  0044  SELF      R5 = R4[K11('GetText')] (self)
  0045  LOADK     R6 = K13 'bt_equit'
  0046  CALL      R4 = call(R4, -1 args, 2 rets)
  0047  CALL      R2 = call(R2, 0 args, -1 rets)
  0048  RETURN    return R0..R-1
; ---------- proto1 [OnPreviewBtnClicked] ----------
  ; fn ?  line 20-25 np=1 va=0 ms=5 code=8 consts=3 upvals=1 protos=1
  ;   K[0]='Close'
  ;   K[1]='DelayExecuteFuncInView'
  ;   K[2]=0.2
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('DelayExecuteFuncInView')]
  0003  CLOSURE   R2 = closure proto0
  0004  LOADK     R3 = K2 0.2
  0005  MOVE      R4 = R0
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 22-24 np=0 va=0 ms=5 code=9 consts=6 upvals=2 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='OpenView'
    ;   K[3]='UIPrefabConfigName'
    ;   K[4]='FrameDetailWindow'
    ;   K[5]='m_frameId'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('OpenView')] (self)
    0003  GETTABUP  R2 = _ENV[K3('UIPrefabConfigName')]
    0004  GETTABLE  R2 = R2[K4('FrameDetailWindow')]
    0005  GETTABUP  R3 = self[K5('m_frameId')]
    0006  LOADBOOL  R4 = true
    0007  CALL      R0 = call(R0, 0 args, 4 rets)
    0008  RETURN    return R0..R-1
