# UI_Window_DataBalance_DataBalanceWindow_747.luac
; fn @DataBalanceWindow.lua  line 0-0 np=0 va=1 ms=3 code=23 consts=11 upvals=1 protos=2
;   K[0]='DataBalanceWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='canClickWindowMask'
;   K[5]='canCloseByChangeGameMode'
;   K[6]='BaseWindow'
;   K[7]='__index'
;   K[8]='Init'
;   K[9]='DataBalanceCell'
;   K[10]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canCloseByAndroidBack')] = K3(false)
0003  SETTABLE  R1[K4('canClickWindowMask')] = K3(false)
0004  SETTABLE  R1[K5('canCloseByChangeGameMode')] = K3(false)
0005  GETTABUP  R2 = _ENV[K6('BaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('DataBalanceWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('DataBalanceWindow')]
0009  GETTABUP  R1 = _ENV[K0('DataBalanceWindow')]
0010  SETTABLE  R0[K7('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('DataBalanceWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K8('Init')] = R1
0014  NEWTABLE  R0 = {} (0 items)
0015  SETTABUP  _ENV[K9('DataBalanceCell')] = R0
0016  GETTABUP  R0 = _ENV[K9('DataBalanceCell')]
0017  GETTABUP  R1 = _ENV[K9('DataBalanceCell')]
0018  SETTABLE  R0[K7('__index')] = R1
0019  GETTABUP  R0 = _ENV[K9('DataBalanceCell')]
0020  CLOSURE   R1 = closure proto1
0021  SETTABLE  R0[K10('Init')] = R1
0022  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-34 np=1 va=0 ms=13 code=74 consts=32 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='DataBalanceModel'
  ;   K[2]='Balance'
  ;   K[3]='next'
  ;   K[4]=nil
  ;   K[5]='UIUtil'
  ;   K[6]='SetSizeDelta'
  ;   K[7]='m_contentTrans'
  ;   K[8]=650
  ;   K[9]='AddAnchoredPosition'
  ;   K[10]='m_descTrans'
  ;   K[11]=0
  ;   K[12]=-30
  ;   K[13]='m_itemsGo'
  ;   K[14]='SetActive'
  ;   K[15]='pairs'
  ;   K[16]='Object'
  ;   K[17]='Instantiate'
  ;   K[18]='m_itemCellPrefab'
  ;   K[19]='m_itemCellRootTrans'
  ;   K[20]='GetLuaTable'
  ;   K[21]='Init'
  ;   K[22]='LayoutRebuilder'
  ;   K[23]='ForceRebuildLayoutImmediate'
  ;   K[24]='sizeDelta'
  ;   K[25]='y'
  ;   K[26]=520
  ;   K[27]='AddSizeDelta'
  ;   K[28]='m_itemsTrans'
  ;   K[29]='m_scrollRect'
  ;   K[30]='enabled'
  ;   K[31]=false
  ;   upvals: _ENV
  ;   locals: self(0-74), addCodeCount(4-74), obj(27-74), cell(27-74), (for generator)(30-49), (for state)(30-49), (for control)(30-49), item(31-47), count(31-47), height(56-74), delta(59-73)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('DataBalanceModel')]
  0002  SELF      R2 = R1[K2('Balance')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABUP  R2 = _ENV[K3('next')]
  0005  MOVE      R3 = R0
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  EQ        if R0 eq K4(nil)   -> -129779
  0008  JMP       (jump)   -> 26
  0009  GETTABUP  R2 = _ENV[K5('UIUtil')]
  0010  GETTABLE  R2 = R2[K6('SetSizeDelta')]
  0011  GETTABLE  R3 = R0[K7('m_contentTrans')]
  0012  LOADNIL   R4..R4 = nil
  0013  LOADK     R5 = K8 650
  0014  CALL      R2 = call(R2, 0 args, 3 rets)
  0015  GETTABUP  R2 = _ENV[K5('UIUtil')]
  0016  GETTABLE  R2 = R2[K9('AddAnchoredPosition')]
  0017  GETTABLE  R3 = R0[K10('m_descTrans')]
  0018  LOADK     R4 = K11 0
  0019  LOADK     R5 = K12 -30
  0020  CALL      R2 = call(R2, 0 args, 3 rets)
  0021  GETTABLE  R2 = R0[K13('m_itemsGo')]
  0022  SELF      R3 = R2[K14('SetActive')] (self)
  0023  LOADBOOL  R4 = false
  0024  CALL      R2 = call(R2, 0 args, 2 rets)
  0025  RETURN    return R0..R-1
  0026  LOADNIL   R2..R2 = nil
  0027  GETTABUP  R4 = _ENV[K15('pairs')]
  0028  MOVE      R5 = R0
  0029  CALL      R4 = call(R4, 3 args, 1 rets)
  0030  JMP       (jump)   -> 47
  0031  GETTABUP  R9 = _ENV[K16('Object')]
  0032  GETTABLE  R9 = R9[K17('Instantiate')]
  0033  GETTABLE  R10 = R0[K18('m_itemCellPrefab')]
  0034  GETTABLE  R11 = R0[K19('m_itemCellRootTrans')]
  0035  CALL      R9 = call(R9, 1 args, 2 rets)
  0036  MOVE      R2 = R0
  0037  SELF      R10 = R2[K14('SetActive')] (self)
  0038  LOADBOOL  R11 = true
  0039  CALL      R9 = call(R9, 0 args, 2 rets)
  0040  SELF      R10 = R2[K20('GetLuaTable')] (self)
  0041  CALL      R9 = call(R9, 1 args, 1 rets)
  0042  MOVE      R3 = R0
  0043  SELF      R10 = R3[K21('Init')] (self)
  0044  MOVE      R11 = R0
  0045  MOVE      R12 = R0
  0046  CALL      R9 = call(R9, 0 args, 3 rets)
  0047  TFORCALL  tforcall R4
  0048  TFORLOOP  tforloop R6(sBx=-18)   -> 31
  0049  GETTABUP  R4 = _ENV[K22('LayoutRebuilder')]
  0050  GETTABLE  R4 = R4[K23('ForceRebuildLayoutImmediate')]
  0051  GETTABLE  R5 = R0[K19('m_itemCellRootTrans')]
  0052  CALL      R4 = call(R4, 0 args, 1 rets)
  0053  GETTABLE  R4 = R0[K19('m_itemCellRootTrans')]
  0054  GETTABLE  R4 = R4[K24('sizeDelta')]
  0055  GETTABLE  R4 = R4[K25('y')]
  0056  LT        if R0 lt K26(520)   -> -128684
  0057  JMP       (jump)   -> 73
  0058  SUB       R5 = R4 sub K26(520)
  0059  GETTABUP  R6 = _ENV[K5('UIUtil')]
  0060  GETTABLE  R6 = R6[K27('AddSizeDelta')]
  0061  GETTABLE  R7 = R0[K28('m_itemsTrans')]
  0062  LOADNIL   R8..R8 = nil
  0063  UNM       R9 = unm R0
  0064  CALL      R6 = call(R6, 0 args, 3 rets)
  0065  GETTABUP  R6 = _ENV[K5('UIUtil')]
  0066  GETTABLE  R6 = R6[K27('AddSizeDelta')]
  0067  GETTABLE  R7 = R0[K7('m_contentTrans')]
  0068  LOADNIL   R8..R8 = nil
  0069  UNM       R9 = unm R0
  0070  CALL      R6 = call(R6, 0 args, 3 rets)
  0071  GETTABLE  R6 = R0[K29('m_scrollRect')]
  0072  SETTABLE  R6[K30('enabled')] = K31(false)
  0073  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 39-43 np=3 va=0 ms=8 code=17 consts=9 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ItemDataModel'
  ;   K[2]='GetSpriteName'
  ;   K[3]='SpriteUtil'
  ;   K[4]='SetImage'
  ;   K[5]='m_iconImg'
  ;   K[6]='m_countText'
  ;   K[7]='text'
  ;   K[8]='x'
  ;   upvals: _ENV
  ;   locals: self(0-17), item(0-17), count(0-17), image(5-17)
  0000  GETTABUP  R3 = _ENV[K0('GM')]
  0001  GETTABLE  R3 = R3[K1('ItemDataModel')]
  0002  SELF      R4 = R3[K2('GetSpriteName')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  GETTABUP  R4 = _ENV[K3('SpriteUtil')]
  0006  GETTABLE  R4 = R4[K4('SetImage')]
  0007  GETTABLE  R5 = R0[K5('m_iconImg')]
  0008  MOVE      R6 = R0
  0009  LOADBOOL  R7 = true
  0010  CALL      R4 = call(R4, 0 args, 3 rets)
  0011  GETTABLE  R4 = R0[K6('m_countText')]
  0012  LOADK     R5 = K8 'x'
  0013  MOVE      R6 = R0
  0014  CONCAT    R5 = concat(R5..R5)
  0015  SETTABLE  R4[K7('text')] = R5
  0016  RETURN    return R0..R-1
