# UI_Window_ItemDetail_AddItemChangeInfoWindow_476.luac
; fn @AddItemChangeInfoWindow.lua  line 0-0 np=0 va=1 ms=4 code=16 consts=7 upvals=1 protos=2
;   K[0]='additem_1'
;   K[1]='AddItemChangeInfoWindow'
;   K[2]='setmetatable'
;   K[3]='BaseWindow'
;   K[4]='__index'
;   K[5]='Init'
;   K[6]='_AddCell'
;   upvals: _ENV
;   locals: itemId(1-16)
0000  LOADK     R0 = K0 'additem_1'
0001  GETTABUP  R1 = _ENV[K2('setmetatable')]
0002  NEWTABLE  R2 = {} (0 items)
0003  GETTABUP  R3 = _ENV[K3('BaseWindow')]
0004  CALL      R1 = call(R1, 1 args, 2 rets)
0005  SETTABUP  _ENV[K1('AddItemChangeInfoWindow')] = R1
0006  GETTABUP  R1 = _ENV[K1('AddItemChangeInfoWindow')]
0007  GETTABUP  R2 = _ENV[K1('AddItemChangeInfoWindow')]
0008  SETTABLE  R1[K4('__index')] = R2
0009  GETTABUP  R1 = _ENV[K1('AddItemChangeInfoWindow')]
0010  CLOSURE   R2 = closure proto0
0011  SETTABLE  R1[K5('Init')] = R2
0012  GETTABUP  R1 = _ENV[K1('AddItemChangeInfoWindow')]
0013  CLOSURE   R2 = closure proto1
0014  SETTABLE  R1[K6('_AddCell')] = R2
0015  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-13 np=1 va=0 ms=17 code=29 consts=7 upvals=2 protos=0
  ;   K[0]='GM'
  ;   K[1]='ItemDataModel'
  ;   K[2]='GetChainId'
  ;   K[3]='GetChain'
  ;   K[4]='ipairs'
  ;   K[5]='_AddCell'
  ;   K[6]='m_groupRect'
  ;   upvals: _ENV, itemId
  ;   locals: self(0-29), chainId(5-29), chain(10-29), count(11-29), (for generator)(14-28), (for state)(14-28), (for control)(14-28), index(15-26), type(15-26)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ItemDataModel')]
  0002  SELF      R2 = R1[K2('GetChainId')] (self)
  0003  GETUPVAL  R3 = _ENV
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K0('GM')]
  0006  GETTABLE  R2 = R2[K1('ItemDataModel')]
  0007  SELF      R3 = R2[K3('GetChain')] (self)
  0008  MOVE      R4 = R0
  0009  CALL      R2 = call(R2, 1 args, 2 rets)
  0010  LEN       R3 = len R0
  0011  GETTABUP  R4 = _ENV[K4('ipairs')]
  0012  MOVE      R5 = R0
  0013  CALL      R4 = call(R4, 3 args, 1 rets)
  0014  JMP       (jump)   -> 26
  0015  SELF      R10 = R0[K5('_AddCell')] (self)
  0016  MOVE      R11 = R0
  0017  LOADBOOL  R12 = false
  0018  LT        if R1 lt R3   -> -127465
  0019  JMP       (jump)   -> 21
  0020  LOADBOOL  R13 = false
  0021  LOADBOOL  R13 = true
  0022  LOADBOOL  R14 = true
  0023  LOADBOOL  R15 = false
  0024  GETTABLE  R16 = R0[K6('m_groupRect')]
  0025  CALL      R9 = call(R9, 0 args, 7 rets)
  0026  TFORCALL  tforcall R4
  0027  TFORLOOP  tforloop R6(sBx=-13)   -> 15
  0028  RETURN    return R0..R-1
; ---------- proto1 [_AddCell] ----------
  ; fn ?  line 16-21 np=7 va=0 ms=17 code=19 consts=6 upvals=1 protos=0
  ;   K[0]='Object'
  ;   K[1]='Instantiate'
  ;   K[2]='m_itemOriginGo'
  ;   K[3]='SetActive'
  ;   K[4]='GetLuaTable'
  ;   K[5]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-19), itemType(0-19), isProduceCell(0-19), hasArrow(0-19), forceShow(0-19), hasTipButton(0-19), parent(0-19), cellObj(5-19), cell(10-19)
  0000  GETTABUP  R7 = _ENV[K0('Object')]
  0001  GETTABLE  R7 = R7[K1('Instantiate')]
  0002  GETTABLE  R8 = R0[K2('m_itemOriginGo')]
  0003  MOVE      R9 = R0
  0004  CALL      R7 = call(R7, 1 args, 2 rets)
  0005  SELF      R9 = R7[K3('SetActive')] (self)
  0006  LOADBOOL  R10 = true
  0007  CALL      R8 = call(R8, 0 args, 2 rets)
  0008  SELF      R9 = R7[K4('GetLuaTable')] (self)
  0009  CALL      R8 = call(R8, 1 args, 1 rets)
  0010  SELF      R10 = R8[K5('Init')] (self)
  0011  MOVE      R11 = R0
  0012  MOVE      R12 = R0
  0013  MOVE      R13 = R0
  0014  MOVE      R14 = R0
  0015  MOVE      R15 = R0
  0016  MOVE      R16 = R0
  0017  CALL      R9 = call(R9, 0 args, 7 rets)
  0018  RETURN    return R0..R-1
