# UI_Window_Board_GeneralGemConfirmWindow_615.luac
; fn @GeneralGemConfirmWindow.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='GeneralGemConfirmWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='UpdateContent'
;   K[6]='_OnConfirmClicked'
;   K[7]='Close'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('GeneralGemConfirmWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('GeneralGemConfirmWindow')]
0006  GETTABUP  R1 = _ENV[K0('GeneralGemConfirmWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('GeneralGemConfirmWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('GeneralGemConfirmWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdateContent')] = R1
0014  GETTABUP  R0 = _ENV[K0('GeneralGemConfirmWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_OnConfirmClicked')] = R1
0017  GETTABUP  R0 = _ENV[K0('GeneralGemConfirmWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('Close')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-30 np=8 va=0 ms=14 code=80 consts=35 upvals=1 protos=0
  ;   K[0]='m_titleText'
  ;   K[1]='text'
  ;   K[2]='GM'
  ;   K[3]='GameTextModel'
  ;   K[4]='GetText'
  ;   K[5]='m_descKey'
  ;   K[6]='m_itemModel'
  ;   K[7]='m_cost'
  ;   K[8]='m_bubbleGo'
  ;   K[9]='SetActive'
  ;   K[10]=nil
  ;   K[11]='GetComponent'
  ;   K[12]='ItemBubble'
  ;   K[13]='m_itemImg'
  ;   K[14]='gameObject'
  ;   K[15]='Vector3'
  ;   K[16]=0.75
  ;   K[17]=1
  ;   K[18]='V3One'
  ;   K[19]='transform'
  ;   K[20]='localScale'
  ;   K[21]='GetSpriteName'
  ;   K[22]='SpriteUtil'
  ;   K[23]='SetImage'
  ;   K[24]='UIUtil'
  ;   K[25]='AddSizeDelta'
  ;   K[26]='m_contentRect'
  ;   K[27]=0
  ;   K[28]=-190
  ;   K[29]='UpdateContent'
  ;   K[30]='m_confirmCallback'
  ;   K[31]='m_closeFunc'
  ;   K[32]='LayoutRebuilder'
  ;   K[33]='ForceRebuildLayoutImmediate'
  ;   K[34]='m_buttonGo'
  ;   upvals: _ENV
  ;   locals: self(0-80), itemModel(0-80), titleKey(0-80), descKey(0-80), cost(0-80), confirmCallback(0-80), initFunc(0-80), closeFunc(0-80), scale(45-57), spriteName(51-57)
  0000  GETTABLE  R8 = R0[K0('m_titleText')]
  0001  GETTABUP  R9 = _ENV[K2('GM')]
  0002  GETTABLE  R9 = R9[K3('GameTextModel')]
  0003  SELF      R10 = R9[K4('GetText')] (self)
  0004  MOVE      R11 = R0
  0005  CALL      R9 = call(R9, 1 args, 2 rets)
  0006  SETTABLE  R8[K1('text')] = R9
  0007  SETTABLE  R0[K5('m_descKey')] = R3
  0008  SETTABLE  R0[K6('m_itemModel')] = R1
  0009  SETTABLE  R0[K7('m_cost')] = R4
  0010  GETTABLE  R8 = R0[K8('m_bubbleGo')]
  0011  SELF      R9 = R8[K9('SetActive')] (self)
  0012  EQ        if R1 eq K10(nil)   -> -130280
  0013  JMP       (jump)   -> 19
  0014  SELF      R11 = R1[K11('GetComponent')] (self)
  0015  GETTABUP  R12 = _ENV[K12('ItemBubble')]
  0016  CALL      R10 = call(R10, 1 args, 2 rets)
  0017  EQ        if R0 eq K10(nil)   -> -125667
  0018  JMP       (jump)   -> 20
  0019  LOADBOOL  R10 = false
  0020  LOADBOOL  R10 = true
  0021  CALL      R8 = call(R8, 0 args, 2 rets)
  0022  GETTABLE  R8 = R0[K13('m_itemImg')]
  0023  GETTABLE  R8 = R8[K14('gameObject')]
  0024  SELF      R9 = R8[K9('SetActive')] (self)
  0025  EQ        if R0 eq K10(nil)   -> -130267
  0026  JMP       (jump)   -> 28
  0027  LOADBOOL  R10 = false
  0028  LOADBOOL  R10 = true
  0029  CALL      R8 = call(R8, 0 args, 2 rets)
  0030  TEST      if not R1 then   -> -131040
  0031  JMP       (jump)   -> 58
  0032  SELF      R9 = R1[K11('GetComponent')] (self)
  0033  GETTABUP  R10 = _ENV[K12('ItemBubble')]
  0034  CALL      R8 = call(R8, 1 args, 2 rets)
  0035  EQ        if R1 eq K10(nil)   -> -126673
  0036  JMP       (jump)   -> 44
  0037  GETTABUP  R8 = _ENV[K15('Vector3')]
  0038  LOADK     R9 = K16 0.75
  0039  LOADK     R10 = K16 0.75
  0040  LOADK     R11 = K17 1
  0041  CALL      R8 = call(R8, 1 args, 3 rets)
  0042  TEST      if not R8 then   -> -131027
  0043  JMP       (jump)   -> 45
  0044  GETTABUP  R8 = _ENV[K18('V3One')]
  0045  GETTABLE  R9 = R0[K13('m_itemImg')]
  0046  GETTABLE  R9 = R9[K14('gameObject')]
  0047  GETTABLE  R9 = R9[K19('transform')]
  0048  SETTABLE  R9[K20('localScale')] = R8
  0049  SELF      R10 = R1[K21('GetSpriteName')] (self)
  0050  CALL      R9 = call(R9, 1 args, 1 rets)
  0051  GETTABUP  R10 = _ENV[K22('SpriteUtil')]
  0052  GETTABLE  R10 = R10[K23('SetImage')]
  0053  GETTABLE  R11 = R0[K13('m_itemImg')]
  0054  MOVE      R12 = R0
  0055  LOADBOOL  R13 = true
  0056  CALL      R10 = call(R10, 0 args, 3 rets)
  0057  JMP       (jump)   -> 64
  0058  GETTABUP  R8 = _ENV[K24('UIUtil')]
  0059  GETTABLE  R8 = R8[K25('AddSizeDelta')]
  0060  GETTABLE  R9 = R0[K26('m_contentRect')]
  0061  LOADK     R10 = K27 0
  0062  LOADK     R11 = K28 -190
  0063  CALL      R8 = call(R8, 0 args, 3 rets)
  0064  SELF      R9 = R0[K29('UpdateContent')] (self)
  0065  MOVE      R10 = R0
  0066  CALL      R8 = call(R8, 0 args, 2 rets)
  0067  SETTABLE  R0[K30('m_confirmCallback')] = R5
  0068  SETTABLE  R0[K31('m_closeFunc')] = R7
  0069  TEST      if not R6 then   -> -131001
  0070  JMP       (jump)   -> 74
  0071  MOVE      R8 = R0
  0072  MOVE      R9 = R0
  0073  CALL      R8 = call(R8, 0 args, 1 rets)
  0074  GETTABUP  R8 = _ENV[K32('LayoutRebuilder')]
  0075  GETTABLE  R8 = R8[K33('ForceRebuildLayoutImmediate')]
  0076  GETTABLE  R9 = R0[K34('m_buttonGo')]
  0077  GETTABLE  R9 = R9[K19('transform')]
  0078  CALL      R8 = call(R8, 0 args, 1 rets)
  0079  RETURN    return R0..R-1
; ---------- proto1 [UpdateContent] ----------
  ; fn ?  line 32-39 np=2 va=0 ms=7 code=16 consts=9 upvals=1 protos=0
  ;   K[0]='m_cost'
  ;   K[1]=0
  ;   K[2]='m_greenText'
  ;   K[3]='text'
  ;   K[4]='m_descText'
  ;   K[5]='GM'
  ;   K[6]='GameTextModel'
  ;   K[7]='GetText'
  ;   K[8]='m_descKey'
  ;   upvals: _ENV
  ;   locals: self(0-16), cost(0-16)
  0000  GETTABLE  R2 = R0[K0('m_cost')]
  0001  EQ        if R0 eq K1(0)   -> -129788
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SETTABLE  R0[K0('m_cost')] = R1
  0005  GETTABLE  R2 = R0[K2('m_greenText')]
  0006  SETTABLE  R2[K3('text')] = R1
  0007  GETTABLE  R2 = R0[K4('m_descText')]
  0008  GETTABUP  R3 = _ENV[K5('GM')]
  0009  GETTABLE  R3 = R3[K6('GameTextModel')]
  0010  SELF      R4 = R3[K7('GetText')] (self)
  0011  GETTABLE  R5 = R0[K8('m_descKey')]
  0012  MOVE      R6 = R0
  0013  CALL      R3 = call(R3, 1 args, 3 rets)
  0014  SETTABLE  R2[K3('text')] = R3
  0015  RETURN    return R0..R-1
; ---------- proto2 [_OnConfirmClicked] ----------
  ; fn ?  line 41-46 np=1 va=0 ms=3 code=12 consts=4 upvals=0 protos=0
  ;   K[0]='m_cost'
  ;   K[1]=0
  ;   K[2]='m_confirmCallback'
  ;   K[3]='OnCloseBtnClick'
  ;   locals: self(0-12)
  0000  GETTABLE  R1 = R0[K0('m_cost')]
  0001  LT        if R0 lt R1   -> 516
  0002  JMP       (jump)   -> 9
  0003  GETTABLE  R1 = R0[K2('m_confirmCallback')]
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 9
  0006  GETTABLE  R1 = R0[K2('m_confirmCallback')]
  0007  MOVE      R2 = R0
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  SELF      R2 = R0[K3('OnCloseBtnClick')] (self)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto3 [Close] ----------
  ; fn ?  line 48-53 np=1 va=0 ms=3 code=11 consts=3 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='Close'
  ;   K[2]='m_closeFunc'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Close')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_closeFunc')]
  0005  TEST      if not R1 then   -> -131065
  0006  JMP       (jump)   -> 10
  0007  GETTABLE  R1 = R0[K2('m_closeFunc')]
  0008  MOVE      R2 = R0
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
