# UI_Window_ItemDetail_ItemDescDetailWindow_473.luac
; fn @ItemDescDetailWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='ItemDescDetailWindow'
;   K[1]='setmetatable'
;   K[2]='ItemDetailWindow'
;   K[3]='__index'
;   K[4]='UpdateView'
;   K[5]='_UpdateView'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('ItemDetailWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('ItemDescDetailWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('ItemDescDetailWindow')]
0006  GETTABUP  R1 = _ENV[K0('ItemDescDetailWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ItemDescDetailWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('UpdateView')] = R1
0011  GETTABUP  R0 = _ENV[K0('ItemDescDetailWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_UpdateView')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [UpdateView] ----------
  ; fn ?  line 4-9 np=2 va=0 ms=6 code=15 consts=10 upvals=1 protos=0
  ;   K[0]='m_groupRect'
  ;   K[1]='gameObject'
  ;   K[2]='RemoveChildren'
  ;   K[3]='_UpdateView'
  ;   K[4]='ItemDetailWindowMode'
  ;   K[5]='Normal'
  ;   K[6]='EventDispatcher'
  ;   K[7]='DispatchEvent'
  ;   K[8]='EEventType'
  ;   K[9]='ItemDetailWindowUpdated'
  ;   upvals: _ENV
  ;   locals: self(0-15), itemType(0-15)
  0000  GETTABLE  R2 = R0[K0('m_groupRect')]
  0001  GETTABLE  R2 = R2[K1('gameObject')]
  0002  SELF      R3 = R2[K2('RemoveChildren')] (self)
  0003  CALL      R2 = call(R2, 0 args, 1 rets)
  0004  SELF      R3 = R0[K3('_UpdateView')] (self)
  0005  MOVE      R4 = R0
  0006  GETTABUP  R5 = _ENV[K4('ItemDetailWindowMode')]
  0007  GETTABLE  R5 = R5[K5('Normal')]
  0008  CALL      R2 = call(R2, 0 args, 3 rets)
  0009  GETTABUP  R2 = _ENV[K6('EventDispatcher')]
  0010  GETTABLE  R2 = R2[K7('DispatchEvent')]
  0011  GETTABUP  R3 = _ENV[K8('EEventType')]
  0012  GETTABLE  R3 = R3[K9('ItemDetailWindowUpdated')]
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  RETURN    return R0..R-1
; ---------- proto1 [_UpdateView] ----------
  ; fn ?  line 11-64 np=3 va=0 ms=20 code=186 consts=52 upvals=1 protos=0
  ;   K[0]='m_tipGo'
  ;   K[1]='SetActive'
  ;   K[2]='GM'
  ;   K[3]='ItemDataModel'
  ;   K[4]='IsBox'
  ;   K[5]='m_arrCells'
  ;   K[6]='m_titleText'
  ;   K[7]='text'
  ;   K[8]='GameTextModel'
  ;   K[9]='GetText'
  ;   K[10]='ItemNameDefinition'
  ;   K[11]='GetName'
  ;   K[12]='item_'
  ;   K[13]='_desc'
  ;   K[14]='StringUtil'
  ;   K[15]='StartWith'
  ;   K[16]='freebox'
  ;   K[17]='GetModelConfig'
  ;   K[18]='MergedType'
  ;   K[19]=nil
  ;   K[20]='_merge_desc'
  ;   K[21]='m_desc'
  ;   K[22]='GetChainId'
  ;   K[23]='GetChain'
  ;   K[24]='ipairs'
  ;   K[25]='_AddCell'
  ;   K[26]='m_groupRect'
  ;   K[27]='ShowAsSelected'
  ;   K[28]='m_addItemGo'
  ;   K[29]='m_skipTimeGo'
  ;   K[30]='BoosterType'
  ;   K[31]='EBoosterType'
  ;   K[32]='AddItem'
  ;   K[33]='UIUtil'
  ;   K[34]='SetSizeDelta'
  ;   K[35]='m_contentRect'
  ;   K[36]=900
  ;   K[37]='SkipTime'
  ;   K[38]='NewDay'
  ;   K[39]='m_skipTimeDesc'
  ;   K[40]='item_cdspeed_desc'
  ;   K[41]=''
  ;   K[42]=820
  ;   K[43]='SpriteUtil'
  ;   K[44]='SetImage'
  ;   K[45]='m_skipTimeItemImg'
  ;   K[46]='GetSpriteName'
  ;   K[47]=650
  ;   K[48]='ItemChain'
  ;   K[49]='m_addItemImg'
  ;   K[50]='m_addItemText'
  ;   K[51]='Effect'
  ;   upvals: _ENV
  ;   locals: self(0-186), itemType(0-186), mode(0-186), descKey(24-186), chainId(55-186), chain(60-186), count(61-186), (for generator)(64-82), (for state)(64-82), (for control)(64-82), index(65-80), type(65-80), cell(76-80), config(95-186), itemConfig(182-185)
  0000  GETTABLE  R3 = R0[K0('m_tipGo')]
  0001  SELF      R4 = R3[K1('SetActive')] (self)
  0002  GETTABUP  R5 = _ENV[K2('GM')]
  0003  GETTABLE  R5 = R5[K3('ItemDataModel')]
  0004  SELF      R6 = R5[K4('IsBox')] (self)
  0005  MOVE      R7 = R0
  0006  CALL      R5 = call(R5, -1 args, 2 rets)
  0007  CALL      R3 = call(R3, 0 args, -1 rets)
  0008  NEWTABLE  R3 = {} (0 items)
  0009  SETTABLE  R0[K5('m_arrCells')] = R3
  0010  GETTABLE  R3 = R0[K6('m_titleText')]
  0011  GETTABUP  R4 = _ENV[K2('GM')]
  0012  GETTABLE  R4 = R4[K8('GameTextModel')]
  0013  SELF      R5 = R4[K9('GetText')] (self)
  0014  GETTABUP  R6 = _ENV[K10('ItemNameDefinition')]
  0015  GETTABLE  R6 = R6[K11('GetName')]
  0016  MOVE      R7 = R0
  0017  CALL      R6 = call(R6, -1 args, 1 rets)
  0018  CALL      R4 = call(R4, 1 args, -1 rets)
  0019  SETTABLE  R3[K7('text')] = R4
  0020  LOADK     R3 = K12 'item_'
  0021  MOVE      R4 = R0
  0022  LOADK     R5 = K13 '_desc'
  0023  CONCAT    R3 = concat(R3..R3)
  0024  GETTABUP  R4 = _ENV[K14('StringUtil')]
  0025  GETTABLE  R4 = R4[K15('StartWith')]
  0026  MOVE      R5 = R0
  0027  LOADK     R6 = K16 'freebox'
  0028  CALL      R4 = call(R4, 1 args, 2 rets)
  0029  TEST      if not R4 then   -> -131041
  0030  JMP       (jump)   -> 43
  0031  GETTABUP  R4 = _ENV[K2('GM')]
  0032  GETTABLE  R4 = R4[K3('ItemDataModel')]
  0033  SELF      R5 = R4[K17('GetModelConfig')] (self)
  0034  MOVE      R6 = R0
  0035  CALL      R4 = call(R4, 1 args, 2 rets)
  0036  GETTABLE  R4 = R4[K18('MergedType')]
  0037  EQ        if R1 eq K19(nil)   -> -128710
  0038  JMP       (jump)   -> 43
  0039  LOADK     R4 = K12 'item_'
  0040  MOVE      R5 = R0
  0041  LOADK     R6 = K20 '_merge_desc'
  0042  CONCAT    R3 = concat(R3..R4)
  0043  GETTABLE  R4 = R0[K21('m_desc')]
  0044  GETTABUP  R5 = _ENV[K2('GM')]
  0045  GETTABLE  R5 = R5[K8('GameTextModel')]
  0046  SELF      R6 = R5[K9('GetText')] (self)
  0047  MOVE      R7 = R0
  0048  CALL      R5 = call(R5, 1 args, 2 rets)
  0049  SETTABLE  R4[K7('text')] = R5
  0050  GETTABUP  R4 = _ENV[K2('GM')]
  0051  GETTABLE  R4 = R4[K3('ItemDataModel')]
  0052  SELF      R5 = R4[K22('GetChainId')] (self)
  0053  MOVE      R6 = R0
  0054  CALL      R4 = call(R4, 1 args, 2 rets)
  0055  GETTABUP  R5 = _ENV[K2('GM')]
  0056  GETTABLE  R5 = R5[K3('ItemDataModel')]
  0057  SELF      R6 = R5[K23('GetChain')] (self)
  0058  MOVE      R7 = R0
  0059  CALL      R5 = call(R5, 1 args, 2 rets)
  0060  LEN       R6 = len R0
  0061  GETTABUP  R7 = _ENV[K24('ipairs')]
  0062  MOVE      R8 = R0
  0063  CALL      R7 = call(R7, 3 args, 1 rets)
  0064  JMP       (jump)   -> 80
  0065  SELF      R13 = R0[K25('_AddCell')] (self)
  0066  MOVE      R14 = R0
  0067  LOADBOOL  R15 = false
  0068  LT        if R1 lt R6   -> -125876
  0069  JMP       (jump)   -> 71
  0070  LOADBOOL  R16 = false
  0071  LOADBOOL  R16 = true
  0072  LOADBOOL  R17 = true
  0073  LOADBOOL  R18 = false
  0074  GETTABLE  R19 = R0[K26('m_groupRect')]
  0075  CALL      R12 = call(R12, 1 args, 7 rets)
  0076  EQ        if R0 eq R1   -> -125361
  0077  JMP       (jump)   -> 80
  0078  SELF      R14 = R12[K27('ShowAsSelected')] (self)
  0079  CALL      R13 = call(R13, 0 args, 1 rets)
  0080  TFORCALL  tforcall R7
  0081  TFORLOOP  tforloop R9(sBx=-17)   -> 65
  0082  GETTABLE  R7 = R0[K28('m_addItemGo')]
  0083  SELF      R8 = R7[K1('SetActive')] (self)
  0084  LOADBOOL  R9 = false
  0085  CALL      R7 = call(R7, 0 args, 2 rets)
  0086  GETTABLE  R7 = R0[K29('m_skipTimeGo')]
  0087  SELF      R8 = R7[K1('SetActive')] (self)
  0088  LOADBOOL  R9 = false
  0089  CALL      R7 = call(R7, 0 args, 2 rets)
  0090  GETTABUP  R7 = _ENV[K2('GM')]
  0091  GETTABLE  R7 = R7[K3('ItemDataModel')]
  0092  SELF      R8 = R7[K17('GetModelConfig')] (self)
  0093  MOVE      R9 = R0
  0094  CALL      R7 = call(R7, 1 args, 2 rets)
  0095  GETTABLE  R8 = R7[K30('BoosterType')]
  0096  GETTABUP  R9 = _ENV[K31('EBoosterType')]
  0097  GETTABLE  R9 = R9[K32('AddItem')]
  0098  EQ        if R0 eq R9   -> -126867
  0099  JMP       (jump)   -> 111
  0100  GETTABLE  R8 = R0[K28('m_addItemGo')]
  0101  SELF      R9 = R8[K1('SetActive')] (self)
  0102  LOADBOOL  R10 = true
  0103  CALL      R8 = call(R8, 0 args, 2 rets)
  0104  GETTABUP  R8 = _ENV[K33('UIUtil')]
  0105  GETTABLE  R8 = R8[K34('SetSizeDelta')]
  0106  GETTABLE  R9 = R0[K35('m_contentRect')]
  0107  LOADNIL   R10..R10 = nil
  0108  LOADK     R11 = K36 900
  0109  CALL      R8 = call(R8, 0 args, 3 rets)
  0110  JMP       (jump)   -> 163
  0111  GETTABLE  R8 = R7[K30('BoosterType')]
  0112  EQ        if R1 eq K37('SkipTime')   -> -126569
  0113  JMP       (jump)   -> 117
  0114  GETTABLE  R8 = R7[K30('BoosterType')]
  0115  EQ        if R0 eq K38('NewDay')   -> -126565
  0116  JMP       (jump)   -> 157
  0117  GETTABLE  R8 = R7[K30('BoosterType')]
  0118  EQ        if R0 eq K37('SkipTime')   -> -126563
  0119  JMP       (jump)   -> 134
  0120  GETTABLE  R8 = R0[K39('m_skipTimeDesc')]
  0121  GETTABUP  R9 = _ENV[K2('GM')]
  0122  GETTABLE  R9 = R9[K8('GameTextModel')]
  0123  SELF      R10 = R9[K9('GetText')] (self)
  0124  LOADK     R11 = K40 'item_cdspeed_desc'
  0125  CALL      R9 = call(R9, 1 args, 2 rets)
  0126  SETTABLE  R8[K7('text')] = R9
  0127  GETTABUP  R8 = _ENV[K33('UIUtil')]
  0128  GETTABLE  R8 = R8[K34('SetSizeDelta')]
  0129  GETTABLE  R9 = R0[K35('m_contentRect')]
  0130  LOADNIL   R10..R10 = nil
  0131  LOADK     R11 = K36 900
  0132  CALL      R8 = call(R8, 0 args, 3 rets)
  0133  JMP       (jump)   -> 142
  0134  GETTABLE  R8 = R0[K39('m_skipTimeDesc')]
  0135  SETTABLE  R8[K7('text')] = K41('')
  0136  GETTABUP  R8 = _ENV[K33('UIUtil')]
  0137  GETTABLE  R8 = R8[K34('SetSizeDelta')]
  0138  GETTABLE  R9 = R0[K35('m_contentRect')]
  0139  LOADNIL   R10..R10 = nil
  0140  LOADK     R11 = K42 820
  0141  CALL      R8 = call(R8, 0 args, 3 rets)
  0142  GETTABUP  R8 = _ENV[K43('SpriteUtil')]
  0143  GETTABLE  R8 = R8[K44('SetImage')]
  0144  GETTABLE  R9 = R0[K45('m_skipTimeItemImg')]
  0145  GETTABUP  R10 = _ENV[K2('GM')]
  0146  GETTABLE  R10 = R10[K3('ItemDataModel')]
  0147  SELF      R11 = R10[K46('GetSpriteName')] (self)
  0148  MOVE      R12 = R0
  0149  CALL      R10 = call(R10, 1 args, 2 rets)
  0150  LOADBOOL  R11 = true
  0151  CALL      R8 = call(R8, 0 args, 3 rets)
  0152  GETTABLE  R8 = R0[K29('m_skipTimeGo')]
  0153  SELF      R9 = R8[K1('SetActive')] (self)
  0154  LOADBOOL  R10 = true
  0155  CALL      R8 = call(R8, 0 args, 2 rets)
  0156  JMP       (jump)   -> 163
  0157  GETTABUP  R8 = _ENV[K33('UIUtil')]
  0158  GETTABLE  R8 = R8[K34('SetSizeDelta')]
  0159  GETTABLE  R9 = R0[K35('m_contentRect')]
  0160  LOADNIL   R10..R10 = nil
  0161  LOADK     R11 = K47 650
  0162  CALL      R8 = call(R8, 0 args, 3 rets)
  0163  GETTABUP  R8 = _ENV[K48('ItemChain')]
  0164  GETTABLE  R8 = R8[K32('AddItem')]
  0165  EQ        if R0 eq R8   -> -128849
  0166  JMP       (jump)   -> 185
  0167  GETTABUP  R8 = _ENV[K43('SpriteUtil')]
  0168  GETTABLE  R8 = R8[K44('SetImage')]
  0169  GETTABLE  R9 = R0[K49('m_addItemImg')]
  0170  GETTABUP  R10 = _ENV[K2('GM')]
  0171  GETTABLE  R10 = R10[K3('ItemDataModel')]
  0172  SELF      R11 = R10[K46('GetSpriteName')] (self)
  0173  MOVE      R12 = R0
  0174  CALL      R10 = call(R10, 1 args, 2 rets)
  0175  LOADBOOL  R11 = true
  0176  CALL      R8 = call(R8, 0 args, 3 rets)
  0177  GETTABUP  R8 = _ENV[K2('GM')]
  0178  GETTABLE  R8 = R8[K3('ItemDataModel')]
  0179  SELF      R9 = R8[K17('GetModelConfig')] (self)
  0180  MOVE      R10 = R0
  0181  CALL      R8 = call(R8, 1 args, 2 rets)
  0182  GETTABLE  R9 = R0[K50('m_addItemText')]
  0183  GETTABLE  R10 = R8[K51('Effect')]
  0184  SETTABLE  R9[K7('text')] = R10
  0185  RETURN    return R0..R-1
