# UI_Window_Board_ItemKeeperDescWindow_635.luac
; fn @ItemKeeperDescWindow.lua  line 0-0 np=0 va=1 ms=3 code=19 consts=9 upvals=1 protos=3
;   K[0]='ItemKeeperDescWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='BaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='_ShowItems'
;   K[8]='OnDestroy'
;   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('ItemKeeperDescWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('ItemKeeperDescWindow')]
0007  GETTABUP  R1 = _ENV[K0('ItemKeeperDescWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('ItemKeeperDescWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('ItemKeeperDescWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('_ShowItems')] = R1
0015  GETTABUP  R0 = _ENV[K0('ItemKeeperDescWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('OnDestroy')] = R1
0018  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-20 np=1 va=0 ms=13 code=40 consts=19 upvals=1 protos=0
  ;   K[0]='ExtraBoardActivityModel'
  ;   K[1]='GetNormalBoardActivityDefinition'
  ;   K[2]='pairs'
  ;   K[3]='GM'
  ;   K[4]='ActivityManager'
  ;   K[5]='GetModel'
  ;   K[6]=nil
  ;   K[7]='GetState'
  ;   K[8]='ActivityState'
  ;   K[9]='Started'
  ;   K[10]='_ShowItems'
  ;   K[11]='m_model'
  ;   K[12]='AddHandlerAndRecordMap'
  ;   K[13]='event'
  ;   K[14]='ExtraBoardActivityEventType'
  ;   K[15]='StateChanged'
  ;   K[16]='obj'
  ;   K[17]='method'
  ;   K[18]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-40), activityDefinitions(3-40), model(4-40), (for generator)(7-39), (for state)(7-39), (for control)(7-39), activityType(8-37), activityDefinition(8-37)
  0000  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityModel')]
  0001  GETTABLE  R1 = R1[K1('GetNormalBoardActivityDefinition')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  LOADNIL   R2..R2 = nil
  0004  GETTABUP  R3 = _ENV[K2('pairs')]
  0005  MOVE      R4 = R0
  0006  CALL      R3 = call(R3, 3 args, 1 rets)
  0007  JMP       (jump)   -> 37
  0008  GETTABUP  R8 = _ENV[K3('GM')]
  0009  GETTABLE  R8 = R8[K4('ActivityManager')]
  0010  SELF      R9 = R8[K5('GetModel')] (self)
  0011  MOVE      R10 = R0
  0012  CALL      R8 = call(R8, 1 args, 2 rets)
  0013  MOVE      R2 = R0
  0014  EQ        if R1 eq K6(nil)   -> -129770
  0015  JMP       (jump)   -> 37
  0016  SELF      R9 = R2[K7('GetState')] (self)
  0017  CALL      R8 = call(R8, 1 args, 1 rets)
  0018  GETTABUP  R9 = _ENV[K8('ActivityState')]
  0019  GETTABLE  R9 = R9[K9('Started')]
  0020  EQ        if R0 eq R9   -> -126945
  0021  JMP       (jump)   -> 37
  0022  SELF      R9 = R0[K10('_ShowItems')] (self)
  0023  MOVE      R10 = R0
  0024  CALL      R8 = call(R8, 0 args, 2 rets)
  0025  SETTABLE  R0[K11('m_model')] = R2
  0026  GETTABUP  R8 = _ENV[K12('AddHandlerAndRecordMap')]
  0027  GETTABLE  R9 = R0[K11('m_model')]
  0028  GETTABLE  R9 = R9[K13('event')]
  0029  GETTABUP  R10 = _ENV[K14('ExtraBoardActivityEventType')]
  0030  GETTABLE  R10 = R10[K15('StateChanged')]
  0031  NEWTABLE  R11 = {} (0 items)
  0032  SETTABLE  R11[K16('obj')] = R0
  0033  GETTABLE  R12 = R0[K18('Close')]
  0034  SETTABLE  R11[K17('method')] = R12
  0035  CALL      R8 = call(R8, 0 args, 3 rets)
  0036  RETURN    return R0..R-1
  0037  TFORCALL  tforcall R3
  0038  TFORLOOP  tforloop R5(sBx=-31)   -> 8
  0039  RETURN    return R0..R-1
; ---------- proto1 [_ShowItems] ----------
  ; fn ?  line 22-40 np=2 va=0 ms=13 code=93 consts=17 upvals=1 protos=0
  ;   K[0]=1
  ;   K[1]=2
  ;   K[2]='SpriteUtil'
  ;   K[3]='SetImage'
  ;   K[4]='m_lv6_'
  ;   K[5]='GM'
  ;   K[6]='ItemDataModel'
  ;   K[7]='GetSpriteName'
  ;   K[8]='GetItemTypeByIndex'
  ;   K[9]=6
  ;   K[10]='m_lv2_'
  ;   K[11]=3
  ;   K[12]='m_lv3_'
  ;   K[13]='m_lv4_'
  ;   K[14]=4
  ;   K[15]='m_lv5'
  ;   K[16]=5
  ;   upvals: _ENV
  ;   locals: self(0-93), model(0-93), (for index)(3-20), (for limit)(3-20), (for step)(3-20), i(4-19), (for index)(23-40), (for limit)(23-40), (for step)(23-40), i(24-39), (for index)(43-60), (for limit)(43-60), (for step)(43-60), i(44-59), (for index)(63-80), (for limit)(63-80), (for step)(63-80), i(64-79)
  0000  LOADK     R2 = K0 1
  0001  LOADK     R3 = K1 2
  0002  LOADK     R4 = K0 1
  0003  FORPREP   forprep R2(sBx=15)   -> 19
  0004  GETTABUP  R6 = _ENV[K2('SpriteUtil')]
  0005  GETTABLE  R6 = R6[K3('SetImage')]
  0006  LOADK     R7 = K4 'm_lv6_'
  0007  MOVE      R8 = R0
  0008  CONCAT    R7 = concat(R7..R7)
  0009  GETTABLE  R7 = R0[R7]
  0010  GETTABUP  R8 = _ENV[K5('GM')]
  0011  GETTABLE  R8 = R8[K6('ItemDataModel')]
  0012  SELF      R9 = R8[K7('GetSpriteName')] (self)
  0013  SELF      R11 = R1[K8('GetItemTypeByIndex')] (self)
  0014  LOADK     R12 = K9 6
  0015  CALL      R10 = call(R10, -1 args, 2 rets)
  0016  CALL      R8 = call(R8, 1 args, -1 rets)
  0017  LOADBOOL  R9 = true
  0018  CALL      R6 = call(R6, 0 args, 3 rets)
  0019  FORLOOP   forloop R2(sBx=-16)   -> 4
  0020  LOADK     R2 = K0 1
  0021  LOADK     R3 = K1 2
  0022  LOADK     R4 = K0 1
  0023  FORPREP   forprep R2(sBx=15)   -> 39
  0024  GETTABUP  R6 = _ENV[K2('SpriteUtil')]
  0025  GETTABLE  R6 = R6[K3('SetImage')]
  0026  LOADK     R7 = K10 'm_lv2_'
  0027  MOVE      R8 = R0
  0028  CONCAT    R7 = concat(R7..R7)
  0029  GETTABLE  R7 = R0[R7]
  0030  GETTABUP  R8 = _ENV[K5('GM')]
  0031  GETTABLE  R8 = R8[K6('ItemDataModel')]
  0032  SELF      R9 = R8[K7('GetSpriteName')] (self)
  0033  SELF      R11 = R1[K8('GetItemTypeByIndex')] (self)
  0034  LOADK     R12 = K1 2
  0035  CALL      R10 = call(R10, -1 args, 2 rets)
  0036  CALL      R8 = call(R8, 1 args, -1 rets)
  0037  LOADBOOL  R9 = true
  0038  CALL      R6 = call(R6, 0 args, 3 rets)
  0039  FORLOOP   forloop R2(sBx=-16)   -> 24
  0040  LOADK     R2 = K0 1
  0041  LOADK     R3 = K11 3
  0042  LOADK     R4 = K0 1
  0043  FORPREP   forprep R2(sBx=15)   -> 59
  0044  GETTABUP  R6 = _ENV[K2('SpriteUtil')]
  0045  GETTABLE  R6 = R6[K3('SetImage')]
  0046  LOADK     R7 = K12 'm_lv3_'
  0047  MOVE      R8 = R0
  0048  CONCAT    R7 = concat(R7..R7)
  0049  GETTABLE  R7 = R0[R7]
  0050  GETTABUP  R8 = _ENV[K5('GM')]
  0051  GETTABLE  R8 = R8[K6('ItemDataModel')]
  0052  SELF      R9 = R8[K7('GetSpriteName')] (self)
  0053  SELF      R11 = R1[K8('GetItemTypeByIndex')] (self)
  0054  LOADK     R12 = K11 3
  0055  CALL      R10 = call(R10, -1 args, 2 rets)
  0056  CALL      R8 = call(R8, 1 args, -1 rets)
  0057  LOADBOOL  R9 = true
  0058  CALL      R6 = call(R6, 0 args, 3 rets)
  0059  FORLOOP   forloop R2(sBx=-16)   -> 44
  0060  LOADK     R2 = K0 1
  0061  LOADK     R3 = K11 3
  0062  LOADK     R4 = K0 1
  0063  FORPREP   forprep R2(sBx=15)   -> 79
  0064  GETTABUP  R6 = _ENV[K2('SpriteUtil')]
  0065  GETTABLE  R6 = R6[K3('SetImage')]
  0066  LOADK     R7 = K13 'm_lv4_'
  0067  MOVE      R8 = R0
  0068  CONCAT    R7 = concat(R7..R7)
  0069  GETTABLE  R7 = R0[R7]
  0070  GETTABUP  R8 = _ENV[K5('GM')]
  0071  GETTABLE  R8 = R8[K6('ItemDataModel')]
  0072  SELF      R9 = R8[K7('GetSpriteName')] (self)
  0073  SELF      R11 = R1[K8('GetItemTypeByIndex')] (self)
  0074  LOADK     R12 = K14 4
  0075  CALL      R10 = call(R10, -1 args, 2 rets)
  0076  CALL      R8 = call(R8, 1 args, -1 rets)
  0077  LOADBOOL  R9 = true
  0078  CALL      R6 = call(R6, 0 args, 3 rets)
  0079  FORLOOP   forloop R2(sBx=-16)   -> 64
  0080  GETTABUP  R2 = _ENV[K2('SpriteUtil')]
  0081  GETTABLE  R2 = R2[K3('SetImage')]
  0082  GETTABLE  R3 = R0[K15('m_lv5')]
  0083  GETTABUP  R4 = _ENV[K5('GM')]
  0084  GETTABLE  R4 = R4[K6('ItemDataModel')]
  0085  SELF      R5 = R4[K7('GetSpriteName')] (self)
  0086  SELF      R7 = R1[K8('GetItemTypeByIndex')] (self)
  0087  LOADK     R8 = K16 5
  0088  CALL      R6 = call(R6, -1 args, 2 rets)
  0089  CALL      R4 = call(R4, 1 args, -1 rets)
  0090  LOADBOOL  R5 = true
  0091  CALL      R2 = call(R2, 0 args, 3 rets)
  0092  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 42-47 np=1 va=0 ms=4 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='RemoveAllHandlers'
  ;   K[5]='event'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_model')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R1 = _ENV[K4('RemoveAllHandlers')]
  0008  GETTABLE  R2 = R0[K2('m_model')]
  0009  GETTABLE  R2 = R2[K5('event')]
  0010  MOVE      R3 = R0
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
