# UI_Window_Board_ItemTypeDeleteWindow_630.luac
; fn @ItemTypeDeleteWindow.lua  line 0-0 np=0 va=1 ms=3 code=26 consts=9 upvals=1 protos=4
;   K[0]='ItemTypeDeleteWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnCloseView'
;   K[6]='ItemTypeDeletedItem'
;   K[7]='Awake'
;   K[8]='OnDestroy'
;   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('ItemTypeDeleteWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('ItemTypeDeleteWindow')]
0006  GETTABUP  R1 = _ENV[K0('ItemTypeDeleteWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ItemTypeDeleteWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('ItemTypeDeleteWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnCloseView')] = R1
0014  NEWTABLE  R0 = {} (0 items)
0015  SETTABUP  _ENV[K6('ItemTypeDeletedItem')] = R0
0016  GETTABUP  R0 = _ENV[K6('ItemTypeDeletedItem')]
0017  GETTABUP  R1 = _ENV[K6('ItemTypeDeletedItem')]
0018  SETTABLE  R0[K3('__index')] = R1
0019  GETTABUP  R0 = _ENV[K6('ItemTypeDeletedItem')]
0020  CLOSURE   R1 = closure proto2
0021  SETTABLE  R0[K7('Awake')] = R1
0022  GETTABUP  R0 = _ENV[K6('ItemTypeDeletedItem')]
0023  CLOSURE   R1 = closure proto3
0024  SETTABLE  R0[K8('OnDestroy')] = R1
0025  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-30 np=3 va=0 ms=16 code=65 consts=27 upvals=1 protos=0
  ;   K[0]='rewardCount'
  ;   K[1]=0
  ;   K[2]='Table'
  ;   K[3]='GetKeys'
  ;   K[4]='table'
  ;   K[5]='sort'
  ;   K[6]='ipairs'
  ;   K[7]='Object'
  ;   K[8]='Instantiate'
  ;   K[9]='m_itemCellPrefab'
  ;   K[10]='m_itemCellRootTrans'
  ;   K[11]='SetActive'
  ;   K[12]='GetLuaTable'
  ;   K[13]='Init'
  ;   K[14]='m_rewardCountTxt'
  ;   K[15]='text'
  ;   K[16]='x'
  ;   K[17]=4
  ;   K[18]='UIUtil'
  ;   K[19]='AddSizeDelta'
  ;   K[20]='m_scrollViewTrans'
  ;   K[21]=-100
  ;   K[22]='m_topContentTrans'
  ;   K[23]='m_contentTrans'
  ;   K[24]='m_scrollRect'
  ;   K[25]='enabled'
  ;   K[26]=false
  ;   upvals: _ENV
  ;   locals: self(0-65), rewardCount(0-65), mapItems(0-65), keys(8-65), obj(13-65), cell(13-65), count(13-65), (for generator)(16-36), (for state)(16-36), (for control)(16-36), _(17-34), item(17-34)
  0000  SETTABLE  R0[K0('rewardCount')] = R1
  0001  EQ        if R0 eq K1(0)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABUP  R3 = _ENV[K2('Table')]
  0005  GETTABLE  R3 = R3[K3('GetKeys')]
  0006  MOVE      R4 = R0
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  GETTABUP  R4 = _ENV[K4('table')]
  0009  GETTABLE  R4 = R4[K5('sort')]
  0010  MOVE      R5 = R0
  0011  CALL      R4 = call(R4, 0 args, 1 rets)
  0012  LOADNIL   R4..R4 = nil
  0013  GETTABUP  R7 = _ENV[K6('ipairs')]
  0014  MOVE      R8 = R0
  0015  CALL      R7 = call(R7, 3 args, 1 rets)
  0016  JMP       (jump)   -> 34
  0017  GETTABLE  R6 = R2[R11]
  0018  GETTABUP  R12 = _ENV[K7('Object')]
  0019  GETTABLE  R12 = R12[K8('Instantiate')]
  0020  GETTABLE  R13 = R0[K9('m_itemCellPrefab')]
  0021  GETTABLE  R14 = R0[K10('m_itemCellRootTrans')]
  0022  CALL      R12 = call(R12, 1 args, 2 rets)
  0023  MOVE      R4 = R0
  0024  SELF      R13 = R4[K11('SetActive')] (self)
  0025  LOADBOOL  R14 = true
  0026  CALL      R12 = call(R12, 0 args, 2 rets)
  0027  SELF      R13 = R4[K12('GetLuaTable')] (self)
  0028  CALL      R12 = call(R12, 1 args, 1 rets)
  0029  MOVE      R5 = R0
  0030  SELF      R13 = R5[K13('Init')] (self)
  0031  MOVE      R14 = R0
  0032  MOVE      R15 = R0
  0033  CALL      R12 = call(R12, 0 args, 3 rets)
  0034  TFORCALL  tforcall R7
  0035  TFORLOOP  tforloop R9(sBx=-19)   -> 17
  0036  GETTABLE  R7 = R0[K14('m_rewardCountTxt')]
  0037  LOADK     R8 = K16 'x'
  0038  MOVE      R9 = R0
  0039  CONCAT    R8 = concat(R8..R8)
  0040  SETTABLE  R7[K15('text')] = R8
  0041  LEN       R7 = len R0
  0042  LE        if R0 le K17(4)   -> -127171
  0043  JMP       (jump)   -> 64
  0044  GETTABUP  R7 = _ENV[K18('UIUtil')]
  0045  GETTABLE  R7 = R7[K19('AddSizeDelta')]
  0046  GETTABLE  R8 = R0[K20('m_scrollViewTrans')]
  0047  LOADNIL   R9..R9 = nil
  0048  LOADK     R10 = K21 -100
  0049  CALL      R7 = call(R7, 0 args, 3 rets)
  0050  GETTABUP  R7 = _ENV[K18('UIUtil')]
  0051  GETTABLE  R7 = R7[K19('AddSizeDelta')]
  0052  GETTABLE  R8 = R0[K22('m_topContentTrans')]
  0053  LOADNIL   R9..R9 = nil
  0054  LOADK     R10 = K21 -100
  0055  CALL      R7 = call(R7, 0 args, 3 rets)
  0056  GETTABUP  R7 = _ENV[K18('UIUtil')]
  0057  GETTABLE  R7 = R7[K19('AddSizeDelta')]
  0058  GETTABLE  R8 = R0[K23('m_contentTrans')]
  0059  LOADNIL   R9..R9 = nil
  0060  LOADK     R10 = K21 -100
  0061  CALL      R7 = call(R7, 0 args, 3 rets)
  0062  GETTABLE  R7 = R0[K24('m_scrollRect')]
  0063  SETTABLE  R7[K25('enabled')] = K26(false)
  0064  RETURN    return R0..R-1
; ---------- proto1 [OnCloseView] ----------
  ; fn ?  line 32-41 np=1 va=0 ms=6 code=25 consts=12 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseView'
  ;   K[2]='rewardCount'
  ;   K[3]=0
  ;   K[4]='PROPERTY_TYPE'
  ;   K[5]='EPropertyType'
  ;   K[6]='Energy'
  ;   K[7]='PROPERTY_COUNT'
  ;   K[8]='RewardApi'
  ;   K[9]='AcquireRewardsInView'
  ;   K[10]='ERewardScene'
  ;   K[11]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-25), rewards(15-24)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseView')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('rewardCount')]
  0005  LT        if R0 lt R1   -> 1544
  0006  JMP       (jump)   -> 24
  0007  NEWTABLE  R1 = {} (0 items)
  0008  GETTABUP  R2 = _ENV[K4('PROPERTY_TYPE')]
  0009  GETTABUP  R3 = _ENV[K5('EPropertyType')]
  0010  GETTABLE  R3 = R3[K6('Energy')]
  0011  SETTABLE  R1[R2] = R3
  0012  GETTABUP  R2 = _ENV[K7('PROPERTY_COUNT')]
  0013  GETTABLE  R3 = R0[K2('rewardCount')]
  0014  SETTABLE  R1[R2] = R3
  0015  GETTABUP  R2 = _ENV[K8('RewardApi')]
  0016  GETTABLE  R2 = R2[K9('AcquireRewardsInView')]
  0017  NEWTABLE  R3 = {} (1 items)
  0018  MOVE      R4 = R0
  0019  SETLIST   setlist R3[B=1,C=1]
  0020  LOADNIL   R4..R4 = nil
  0021  GETTABUP  R5 = _ENV[K10('ERewardScene')]
  0022  GETTABLE  R5 = R5[K11('Other')]
  0023  CALL      R2 = call(R2, 0 args, 3 rets)
  0024  RETURN    return R0..R-1
; ---------- proto2 [Awake] ----------
  ; fn ?  line 46-65 np=1 va=0 ms=9 code=40 consts=18 upvals=1 protos=2
  ;   K[0]='m_go1'
  ;   K[1]='SetActive'
  ;   K[2]='m_go2'
  ;   K[3]='DOTween'
  ;   K[4]='Sequence'
  ;   K[5]='seq'
  ;   K[6]='InsertCallback'
  ;   K[7]=1
  ;   K[8]='Insert'
  ;   K[9]=1
  ;   K[10]='m_go1ArrowImg'
  ;   K[11]='DOFade'
  ;   K[12]=0
  ;   K[13]=1.15
  ;   K[14]='m_go1ItemImg'
  ;   K[15]=2
  ;   K[16]='SetLoops'
  ;   K[17]=-1
  ;   upvals: _ENV
  ;   locals: self(0-40), seq(11-40)
  0000  GETTABLE  R1 = R0[K0('m_go1')]
  0001  SELF      R2 = R1[K1('SetActive')] (self)
  0002  LOADBOOL  R3 = true
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  GETTABLE  R1 = R0[K2('m_go2')]
  0005  SELF      R2 = R1[K1('SetActive')] (self)
  0006  LOADBOOL  R3 = false
  0007  CALL      R1 = call(R1, 0 args, 2 rets)
  0008  GETTABUP  R1 = _ENV[K3('DOTween')]
  0009  GETTABLE  R1 = R1[K4('Sequence')]
  0010  CALL      R1 = call(R1, 1 args, 0 rets)
  0011  SETTABLE  R0[K5('seq')] = R1
  0012  SELF      R3 = R1[K6('InsertCallback')] (self)
  0013  LOADK     R4 = K7 1
  0014  CLOSURE   R5 = closure proto0
  0015  CALL      R2 = call(R2, 0 args, 3 rets)
  0016  SELF      R3 = R1[K8('Insert')] (self)
  0017  LOADK     R4 = K9 1
  0018  GETTABLE  R5 = R0[K10('m_go1ArrowImg')]
  0019  SELF      R6 = R5[K11('DOFade')] (self)
  0020  LOADK     R7 = K12 0
  0021  LOADK     R8 = K13 1.15
  0022  CALL      R5 = call(R5, -1 args, 3 rets)
  0023  CALL      R2 = call(R2, 0 args, -1 rets)
  0024  SELF      R3 = R1[K8('Insert')] (self)
  0025  LOADK     R4 = K9 1
  0026  GETTABLE  R5 = R0[K14('m_go1ItemImg')]
  0027  SELF      R6 = R5[K11('DOFade')] (self)
  0028  LOADK     R7 = K12 0
  0029  LOADK     R8 = K13 1.15
  0030  CALL      R5 = call(R5, -1 args, 3 rets)
  0031  CALL      R2 = call(R2, 0 args, -1 rets)
  0032  SELF      R3 = R1[K6('InsertCallback')] (self)
  0033  LOADK     R4 = K15 2
  0034  CLOSURE   R5 = closure proto1
  0035  CALL      R2 = call(R2, 0 args, 3 rets)
  0036  SELF      R3 = R1[K16('SetLoops')] (self)
  0037  LOADK     R4 = K17 -1
  0038  CALL      R2 = call(R2, 0 args, 2 rets)
  0039  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 52-57 np=0 va=0 ms=3 code=19 consts=8 upvals=2 protos=0
    ;   K[0]='m_go1'
    ;   K[1]='SetActive'
    ;   K[2]='m_go2'
    ;   K[3]='UIUtil'
    ;   K[4]='SetAlpha'
    ;   K[5]='m_go1ArrowImg'
    ;   K[6]=1
    ;   K[7]='m_go1ItemImg'
    ;   upvals: self, _ENV
    0000  GETTABUP  R0 = self[K0('m_go1')]
    0001  SELF      R1 = R0[K1('SetActive')] (self)
    0002  LOADBOOL  R2 = true
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  GETTABUP  R0 = self[K2('m_go2')]
    0005  SELF      R1 = R0[K1('SetActive')] (self)
    0006  LOADBOOL  R2 = false
    0007  CALL      R0 = call(R0, 0 args, 2 rets)
    0008  GETTABUP  R0 = _ENV[K3('UIUtil')]
    0009  GETTABLE  R0 = R0[K4('SetAlpha')]
    0010  GETTABUP  R1 = self[K5('m_go1ArrowImg')]
    0011  LOADK     R2 = K6 1
    0012  CALL      R0 = call(R0, 0 args, 2 rets)
    0013  GETTABUP  R0 = _ENV[K3('UIUtil')]
    0014  GETTABLE  R0 = R0[K4('SetAlpha')]
    0015  GETTABUP  R1 = self[K7('m_go1ItemImg')]
    0016  LOADK     R2 = K6 1
    0017  CALL      R0 = call(R0, 0 args, 2 rets)
    0018  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 60-63 np=0 va=0 ms=3 code=9 consts=3 upvals=1 protos=0
    ;   K[0]='m_go1'
    ;   K[1]='SetActive'
    ;   K[2]='m_go2'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_go1')]
    0001  SELF      R1 = R0[K1('SetActive')] (self)
    0002  LOADBOOL  R2 = false
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  GETTABUP  R0 = self[K2('m_go2')]
    0005  SELF      R1 = R0[K1('SetActive')] (self)
    0006  LOADBOOL  R2 = true
    0007  CALL      R0 = call(R0, 0 args, 2 rets)
    0008  RETURN    return R0..R-1
; ---------- proto3 [OnDestroy] ----------
  ; fn ?  line 67-72 np=1 va=0 ms=3 code=8 consts=3 upvals=0 protos=0
  ;   K[0]='seq'
  ;   K[1]='Kill'
  ;   K[2]=nil
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('seq')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('seq')]
  0004  SELF      R2 = R1[K1('Kill')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SETTABLE  R0[K0('seq')] = K2(nil)
  0007  RETURN    return R0..R-1
