# UI_Window_Cook_RevertCookConfirmWindow_746.luac
; fn @RevertCookConfirmWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='RevertCookConfirmWindow'
;   K[1]='setmetatable'
;   K[2]='TwoButtonWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnRevertClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('TwoButtonWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('RevertCookConfirmWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('RevertCookConfirmWindow')]
0006  GETTABUP  R1 = _ENV[K0('RevertCookConfirmWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('RevertCookConfirmWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('RevertCookConfirmWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnRevertClicked')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-15 np=2 va=0 ms=11 code=54 consts=23 upvals=1 protos=1
  ;   K[0]='TwoButtonWindow'
  ;   K[1]='Init'
  ;   K[2]='window_revocation_title'
  ;   K[3]='window_revocation_desc'
  ;   K[4]=''
  ;   K[5]='common_button_cancel'
  ;   K[6]='m_itemCookCmp'
  ;   K[7]='GetRecipe'
  ;   K[8]='SpriteUtil'
  ;   K[9]='SetImage'
  ;   K[10]='m_recipeImg'
  ;   K[11]='GM'
  ;   K[12]='ItemDataModel'
  ;   K[13]='GetSpriteName'
  ;   K[14]='GetItemModel'
  ;   K[15]='GetCode'
  ;   K[16]='m_instruImg'
  ;   K[17]='GetModelConfig'
  ;   K[18]='RevocationPrice'
  ;   K[19]=1
  ;   K[20]='m_propertyBtn'
  ;   K[21]='EPropertyType'
  ;   K[22]='Gem'
  ;   upvals: _ENV
  ;   locals: self(0-54), itemCookCmp(0-54), recipe(13-54), instrument(27-54), cost(46-54)
  0000  GETTABUP  R2 = _ENV[K0('TwoButtonWindow')]
  0001  GETTABLE  R2 = R2[K1('Init')]
  0002  MOVE      R3 = R0
  0003  LOADK     R4 = K2 'window_revocation_title'
  0004  LOADK     R5 = K3 'window_revocation_desc'
  0005  LOADK     R6 = K4 ''
  0006  LOADK     R7 = K5 'common_button_cancel'
  0007  LOADNIL   R8..R8 = nil
  0008  LOADBOOL  R10 = true
  0009  CALL      R2 = call(R2, 0 args, 8 rets)
  0010  SETTABLE  R0[K6('m_itemCookCmp')] = R1
  0011  SELF      R3 = R1[K7('GetRecipe')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  GETTABUP  R3 = _ENV[K8('SpriteUtil')]
  0014  GETTABLE  R3 = R3[K9('SetImage')]
  0015  GETTABLE  R4 = R0[K10('m_recipeImg')]
  0016  GETTABUP  R5 = _ENV[K11('GM')]
  0017  GETTABLE  R5 = R5[K12('ItemDataModel')]
  0018  SELF      R6 = R5[K13('GetSpriteName')] (self)
  0019  MOVE      R7 = R0
  0020  CALL      R5 = call(R5, 1 args, 2 rets)
  0021  LOADBOOL  R6 = true
  0022  CALL      R3 = call(R3, 0 args, 3 rets)
  0023  SELF      R4 = R1[K14('GetItemModel')] (self)
  0024  CALL      R3 = call(R3, 1 args, 1 rets)
  0025  SELF      R4 = R3[K15('GetCode')] (self)
  0026  CALL      R3 = call(R3, 1 args, 1 rets)
  0027  GETTABUP  R4 = _ENV[K8('SpriteUtil')]
  0028  GETTABLE  R4 = R4[K9('SetImage')]
  0029  GETTABLE  R5 = R0[K16('m_instruImg')]
  0030  GETTABUP  R6 = _ENV[K11('GM')]
  0031  GETTABLE  R6 = R6[K12('ItemDataModel')]
  0032  SELF      R7 = R6[K13('GetSpriteName')] (self)
  0033  MOVE      R8 = R0
  0034  CALL      R6 = call(R6, 1 args, 2 rets)
  0035  LOADBOOL  R7 = true
  0036  CALL      R4 = call(R4, 0 args, 3 rets)
  0037  GETTABUP  R4 = _ENV[K11('GM')]
  0038  GETTABLE  R4 = R4[K12('ItemDataModel')]
  0039  SELF      R5 = R4[K17('GetModelConfig')] (self)
  0040  MOVE      R6 = R0
  0041  CALL      R4 = call(R4, 1 args, 2 rets)
  0042  GETTABLE  R4 = R4[K18('RevocationPrice')]
  0043  TEST      if not R4 then   -> -131026
  0044  JMP       (jump)   -> 46
  0045  LOADK     R4 = K19 1
  0046  GETTABLE  R5 = R0[K20('m_propertyBtn')]
  0047  SELF      R6 = R5[K1('Init')] (self)
  0048  GETTABUP  R7 = _ENV[K21('EPropertyType')]
  0049  GETTABLE  R7 = R7[K22('Gem')]
  0050  MOVE      R8 = R0
  0051  CLOSURE   R9 = closure proto0
  0052  CALL      R5 = call(R5, 0 args, 4 rets)
  0053  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 12-14 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='OnRevertClicked'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('OnRevertClicked')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto1 [OnRevertClicked] ----------
  ; fn ?  line 17-22 np=1 va=0 ms=4 code=8 consts=3 upvals=0 protos=0
  ;   K[0]='m_itemCookCmp'
  ;   K[1]='TryRevertCook'
  ;   K[2]='Close'
  ;   locals: self(0-8), closeWin(3-8)
  0000  GETTABLE  R1 = R0[K0('m_itemCookCmp')]
  0001  SELF      R2 = R1[K1('TryRevertCook')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 7
  0005  SELF      R3 = R0[K2('Close')] (self)
  0006  CALL      R2 = call(R2, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
