# UI_Window_Board_ItemChooseWindow_610.luac
; fn @ItemChooseWindow.lua  line 0-0 np=0 va=1 ms=3 code=25 consts=11 upvals=1 protos=5
;   K[0]='ItemChooseWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='BaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='OnDestroy'
;   K[8]='SpeedUp'
;   K[9]='OnCellClicked'
;   K[10]='OnSelectButtonClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('BaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('ItemChooseWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('ItemChooseWindow')]
0007  GETTABUP  R1 = _ENV[K0('ItemChooseWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('ItemChooseWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('ItemChooseWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnDestroy')] = R1
0015  GETTABUP  R0 = _ENV[K0('ItemChooseWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('SpeedUp')] = R1
0018  GETTABUP  R0 = _ENV[K0('ItemChooseWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('OnCellClicked')] = R1
0021  GETTABUP  R0 = _ENV[K0('ItemChooseWindow')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K10('OnSelectButtonClicked')] = R1
0024  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-36 np=2 va=0 ms=18 code=78 consts=35 upvals=1 protos=1
  ;   K[0]='m_item'
  ;   K[1]='GM'
  ;   K[2]='ItemDataModel'
  ;   K[3]='GetSpriteName'
  ;   K[4]='GetType'
  ;   K[5]='SpriteUtil'
  ;   K[6]='SetImage'
  ;   K[7]='m_iconImage'
  ;   K[8]='MainBoardModel'
  ;   K[9]='GetMapGreenBgCellCode'
  ;   K[10]='m_cells'
  ;   K[11]='GetComponent'
  ;   K[12]='ItemChoose'
  ;   K[13]='GetChoices'
  ;   K[14]=1
  ;   K[15]='Object'
  ;   K[16]='Instantiate'
  ;   K[17]='m_cellPrefab'
  ;   K[18]='m_chooseArea'
  ;   K[19]='GetLuaTable'
  ;   K[20]='Init'
  ;   K[21]=nil
  ;   K[22]='table'
  ;   K[23]='insert'
  ;   K[24]='TurnAround'
  ;   K[25]=0.18
  ;   K[26]=0.2
  ;   K[27]='UIManager'
  ;   K[28]='SetEventLock'
  ;   K[29]='SpeedUp'
  ;   K[30]='DelayExecuteFuncInView'
  ;   K[31]=0.8
  ;   K[32]='m_iconGo'
  ;   K[33]='SetActive'
  ;   K[34]='m_selectGo'
  ;   upvals: _ENV
  ;   locals: self(0-78), item(0-78), spriteName(7-78), mapGreenBgCellCode(17-78), itemChoose(22-78), choices(24-78), (for index)(27-56), (for limit)(27-56), (for step)(27-56), index(28-55), cellObject(33-55), cell(35-55)
  0000  SETTABLE  R0[K0('m_item')] = R1
  0001  GETTABUP  R2 = _ENV[K1('GM')]
  0002  GETTABLE  R2 = R2[K2('ItemDataModel')]
  0003  SELF      R3 = R2[K3('GetSpriteName')] (self)
  0004  SELF      R5 = R1[K4('GetType')] (self)
  0005  CALL      R4 = call(R4, -1 args, 1 rets)
  0006  CALL      R2 = call(R2, 1 args, -1 rets)
  0007  GETTABUP  R3 = _ENV[K5('SpriteUtil')]
  0008  GETTABLE  R3 = R3[K6('SetImage')]
  0009  GETTABLE  R4 = R0[K7('m_iconImage')]
  0010  MOVE      R5 = R0
  0011  LOADBOOL  R6 = true
  0012  CALL      R3 = call(R3, 0 args, 3 rets)
  0013  GETTABUP  R3 = _ENV[K1('GM')]
  0014  GETTABLE  R3 = R3[K8('MainBoardModel')]
  0015  SELF      R4 = R3[K9('GetMapGreenBgCellCode')] (self)
  0016  CALL      R3 = call(R3, 1 args, 1 rets)
  0017  NEWTABLE  R4 = {} (0 items)
  0018  SETTABLE  R0[K10('m_cells')] = R4
  0019  SELF      R5 = R1[K11('GetComponent')] (self)
  0020  GETTABUP  R6 = _ENV[K12('ItemChoose')]
  0021  CALL      R4 = call(R4, 1 args, 2 rets)
  0022  SELF      R6 = R4[K13('GetChoices')] (self)
  0023  CALL      R5 = call(R5, 1 args, 1 rets)
  0024  LOADK     R6 = K14 1
  0025  LEN       R7 = len R0
  0026  LOADK     R8 = K14 1
  0027  FORPREP   forprep R6(sBx=27)   -> 55
  0028  GETTABUP  R10 = _ENV[K15('Object')]
  0029  GETTABLE  R10 = R10[K16('Instantiate')]
  0030  GETTABLE  R11 = R0[K17('m_cellPrefab')]
  0031  GETTABLE  R12 = R0[K18('m_chooseArea')]
  0032  CALL      R10 = call(R10, 1 args, 2 rets)
  0033  SELF      R12 = R10[K19('GetLuaTable')] (self)
  0034  CALL      R11 = call(R11, 1 args, 1 rets)
  0035  SELF      R13 = R11[K20('Init')] (self)
  0036  MOVE      R14 = R0
  0037  MOVE      R15 = R0
  0038  GETTABLE  R16 = R5[R9]
  0039  GETTABLE  R17 = R5[R9]
  0040  GETTABLE  R17 = R3[R17]
  0041  EQ        if R0 eq K21(nil)   -> -122048
  0042  JMP       (jump)   -> 44
  0043  LOADBOOL  R17 = false
  0044  LOADBOOL  R17 = true
  0045  CALL      R12 = call(R12, 0 args, 5 rets)
  0046  GETTABUP  R12 = _ENV[K22('table')]
  0047  GETTABLE  R12 = R12[K23('insert')]
  0048  GETTABLE  R13 = R0[K10('m_cells')]
  0049  MOVE      R14 = R0
  0050  CALL      R12 = call(R12, 0 args, 2 rets)
  0051  SELF      R13 = R11[K24('TurnAround')] (self)
  0052  MUL       R14 = K25(0.18) mul R9
  0053  ADD       R14 = R14 add K26(0.2)
  0054  CALL      R12 = call(R12, 0 args, 2 rets)
  0055  FORLOOP   forloop R6(sBx=-28)   -> 28
  0056  GETTABUP  R6 = _ENV[K1('GM')]
  0057  GETTABLE  R6 = R6[K27('UIManager')]
  0058  SELF      R7 = R6[K28('SetEventLock')] (self)
  0059  LOADBOOL  R8 = true
  0060  MOVE      R9 = R0
  0061  GETTABLE  R10 = R0[K29('SpeedUp')]
  0062  CALL      R6 = call(R6, 0 args, 4 rets)
  0063  GETTABUP  R6 = _ENV[K30('DelayExecuteFuncInView')]
  0064  CLOSURE   R7 = closure proto0
  0065  LOADK     R8 = K31 0.8
  0066  MOVE      R9 = R0
  0067  LOADBOOL  R10 = false
  0068  CALL      R6 = call(R6, 0 args, 4 rets)
  0069  GETTABLE  R6 = R0[K32('m_iconGo')]
  0070  SELF      R7 = R6[K33('SetActive')] (self)
  0071  LOADBOOL  R8 = true
  0072  CALL      R6 = call(R6, 0 args, 2 rets)
  0073  GETTABLE  R6 = R0[K34('m_selectGo')]
  0074  SELF      R7 = R6[K33('SetActive')] (self)
  0075  LOADBOOL  R8 = false
  0076  CALL      R6 = call(R6, 0 args, 2 rets)
  0077  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 30-32 np=0 va=0 ms=5 code=8 consts=4 upvals=2 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   K[3]='SpeedUp'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('SetEventLock')] (self)
    0003  LOADBOOL  R2 = false
    0004  GETUPVAL  R3 = _ENV
    0005  GETTABUP  R4 = self[K3('SpeedUp')]
    0006  CALL      R0 = call(R0, 0 args, 4 rets)
    0007  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 38-41 np=1 va=0 ms=4 code=10 consts=5 upvals=1 protos=0
  ;   K[0]='Scheduler'
  ;   K[1]='UnscheduleTarget'
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='RemoveAllEventLocks'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABUP  R1 = _ENV[K0('Scheduler')]
  0001  GETTABLE  R1 = R1[K1('UnscheduleTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('UIManager')]
  0006  SELF      R2 = R1[K4('RemoveAllEventLocks')] (self)
  0007  MOVE      R3 = R0
  0008  CALL      R1 = call(R1, 0 args, 2 rets)
  0009  RETURN    return R0..R-1
; ---------- proto2 [SpeedUp] ----------
  ; fn ?  line 43-48 np=1 va=0 ms=8 code=16 consts=5 upvals=1 protos=0
  ;   K[0]='ipairs'
  ;   K[1]='m_cells'
  ;   K[2]='SpeedUp'
  ;   K[3]='Scheduler'
  ;   K[4]='FireAndUnscheduleTarget'
  ;   upvals: _ENV
  ;   locals: self(0-16), (for generator)(6-11), (for state)(6-11), (for control)(6-11), _(7-9), cell(7-9)
  0000  GETTABUP  R1 = _ENV[K0('ipairs')]
  0001  GETTABLE  R2 = R0[K1('m_cells')]
  0002  TEST      if not R2 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  NEWTABLE  R2 = {} (0 items)
  0005  CALL      R1 = call(R1, 3 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R7 = R5[K2('SpeedUp')] (self)
  0008  CALL      R6 = call(R6, 0 args, 1 rets)
  0009  TFORCALL  tforcall R1
  0010  TFORLOOP  tforloop R3(sBx=-4)   -> 7
  0011  GETTABUP  R1 = _ENV[K3('Scheduler')]
  0012  GETTABLE  R1 = R1[K4('FireAndUnscheduleTarget')]
  0013  MOVE      R2 = R0
  0014  CALL      R1 = call(R1, 0 args, 1 rets)
  0015  RETURN    return R0..R-1
; ---------- proto3 [OnCellClicked] ----------
  ; fn ?  line 50-58 np=2 va=0 ms=10 code=22 consts=7 upvals=1 protos=0
  ;   K[0]='m_selectedIndex'
  ;   K[1]='ipairs'
  ;   K[2]='m_cells'
  ;   K[3]='SetSelected'
  ;   K[4]='m_iconGo'
  ;   K[5]='SetActive'
  ;   K[6]='m_selectGo'
  ;   upvals: _ENV
  ;   locals: self(0-22), index(0-22), (for generator)(4-13), (for state)(4-13), (for control)(4-13), i(5-11), cell(5-11)
  0000  SETTABLE  R0[K0('m_selectedIndex')] = R1
  0001  GETTABUP  R2 = _ENV[K1('ipairs')]
  0002  GETTABLE  R3 = R0[K2('m_cells')]
  0003  CALL      R2 = call(R2, 3 args, 1 rets)
  0004  JMP       (jump)   -> 11
  0005  SELF      R8 = R6[K3('SetSelected')] (self)
  0006  EQ        if R1 eq R1   -> -128503
  0007  JMP       (jump)   -> 9
  0008  LOADBOOL  R9 = false
  0009  LOADBOOL  R9 = true
  0010  CALL      R7 = call(R7, 0 args, 2 rets)
  0011  TFORCALL  tforcall R2
  0012  TFORLOOP  tforloop R4(sBx=-8)   -> 5
  0013  GETTABLE  R2 = R0[K4('m_iconGo')]
  0014  SELF      R3 = R2[K5('SetActive')] (self)
  0015  LOADBOOL  R4 = false
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  GETTABLE  R2 = R0[K6('m_selectGo')]
  0018  SELF      R3 = R2[K5('SetActive')] (self)
  0019  LOADBOOL  R4 = true
  0020  CALL      R2 = call(R2, 0 args, 2 rets)
  0021  RETURN    return R0..R-1
; ---------- proto4 [OnSelectButtonClicked] ----------
  ; fn ?  line 60-64 np=1 va=0 ms=5 code=14 consts=7 upvals=0 protos=0
  ;   K[0]='m_selectGo'
  ;   K[1]='SetActive'
  ;   K[2]='Close'
  ;   K[3]='m_item'
  ;   K[4]='GetBoardModel'
  ;   K[5]='ChooseItem'
  ;   K[6]='m_selectedIndex'
  ;   locals: self(0-14)
  0000  GETTABLE  R1 = R0[K0('m_selectGo')]
  0001  SELF      R2 = R1[K1('SetActive')] (self)
  0002  LOADBOOL  R3 = false
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  SELF      R2 = R0[K2('Close')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  GETTABLE  R1 = R0[K3('m_item')]
  0007  SELF      R2 = R1[K4('GetBoardModel')] (self)
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  SELF      R2 = R1[K5('ChooseItem')] (self)
  0010  GETTABLE  R3 = R0[K3('m_item')]
  0011  GETTABLE  R4 = R0[K6('m_selectedIndex')]
  0012  CALL      R1 = call(R1, 0 args, 3 rets)
  0013  RETURN    return R0..R-1
