# MultiRank_View_MultiRankHelpWindow_1216.luac
; fn @MultiRankHelpWindow.lua  line 0-0 np=0 va=1 ms=3 code=19 consts=11 upvals=1 protos=2
;   K[0]='MultiRankHelpWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='canClickWindowMask'
;   K[6]=true
;   K[7]='MultiRankBaseWindow'
;   K[8]='__index'
;   K[9]='Init'
;   K[10]='UpdateMultipleContent'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  SETTABLE  R1[K5('canClickWindowMask')] = K6(true)
0006  GETTABUP  R2 = _ENV[K7('MultiRankBaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('MultiRankHelpWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('MultiRankHelpWindow')]
0010  GETTABUP  R1 = _ENV[K0('MultiRankHelpWindow')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('MultiRankHelpWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K9('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('MultiRankHelpWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K10('UpdateMultipleContent')] = R1
0018  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-11 np=3 va=0 ms=7 code=16 consts=7 upvals=1 protos=0
  ;   K[0]='MultiRankBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='UpdateMultipleContent'
  ;   K[3]='EventDispatcher'
  ;   K[4]='AddListener'
  ;   K[5]='EEventType'
  ;   K[6]='MultiRankMultipleChanged'
  ;   upvals: _ENV
  ;   locals: self(0-16), activityType(0-16), bUserClick(0-16)
  0000  GETTABUP  R3 = _ENV[K0('MultiRankBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  MOVE      R6 = R0
  0005  CALL      R3 = call(R3, 0 args, 3 rets)
  0006  SELF      R4 = R0[K2('UpdateMultipleContent')] (self)
  0007  CALL      R3 = call(R3, 0 args, 1 rets)
  0008  GETTABUP  R3 = _ENV[K3('EventDispatcher')]
  0009  GETTABLE  R3 = R3[K4('AddListener')]
  0010  GETTABUP  R4 = _ENV[K5('EEventType')]
  0011  GETTABLE  R4 = R4[K6('MultiRankMultipleChanged')]
  0012  MOVE      R5 = R0
  0013  GETTABLE  R6 = R0[K2('UpdateMultipleContent')]
  0014  CALL      R3 = call(R3, 0 args, 3 rets)
  0015  RETURN    return R0..R-1
; ---------- proto1 [UpdateMultipleContent] ----------
  ; fn ?  line 13-44 np=1 va=0 ms=14 code=81 consts=26 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetAllMultiples'
  ;   K[2]='Table'
  ;   K[3]='IsEmpty'
  ;   K[4]='m_multiContentRect'
  ;   K[5]='m_arrCell'
  ;   K[6]='GetCurrentMultipleIndex'
  ;   K[7]=0
  ;   K[8]='childCount'
  ;   K[9]=1
  ;   K[10]='GetChild'
  ;   K[11]='gameObject'
  ;   K[12]='GetLuaTable'
  ;   K[13]='math'
  ;   K[14]='min'
  ;   K[15]='Init'
  ;   K[16]='UIUtil'
  ;   K[17]='SetActive'
  ;   K[18]='table'
  ;   K[19]='insert'
  ;   K[20]='LayoutRebuilder'
  ;   K[21]='ForceRebuildLayoutImmediate'
  ;   K[22]='m_bInitHighlight'
  ;   K[23]='m_multipleHighlightContent'
  ;   K[24]=true
  ;   K[25]='UpdateMultiple'
  ;   upvals: _ENV
  ;   locals: self(0-81), arrMultiples(3-81), parentRect(11-81), curIndex(16-81), tbCell(17-81), index(17-81), (for index)(21-64), (for limit)(21-64), (for step)(21-64), i(22-63)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetAllMultiples')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('Table')]
  0004  GETTABLE  R2 = R2[K3('IsEmpty')]
  0005  MOVE      R3 = R0
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  TEST      if not R2 then   -> -131063
  0008  JMP       (jump)   -> 10
  0009  RETURN    return R0..R-1
  0010  GETTABLE  R2 = R0[K4('m_multiContentRect')]
  0011  NEWTABLE  R3 = {} (0 items)
  0012  SETTABLE  R0[K5('m_arrCell')] = R3
  0013  GETTABLE  R3 = R0[K0('m_model')]
  0014  SELF      R4 = R3[K6('GetCurrentMultipleIndex')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  LOADNIL   R4..R4 = nil
  0017  LOADK     R6 = K7 0
  0018  GETTABLE  R7 = R2[K8('childCount')]
  0019  SUB       R7 = K9(1) sub R7
  0020  LOADK     R8 = K9 1
  0021  FORPREP   forprep R6(sBx=41)   -> 63
  0022  SELF      R11 = R2[K10('GetChild')] (self)
  0023  MOVE      R12 = R0
  0024  CALL      R10 = call(R10, 1 args, 2 rets)
  0025  GETTABLE  R10 = R10[K11('gameObject')]
  0026  SELF      R11 = R10[K12('GetLuaTable')] (self)
  0027  CALL      R10 = call(R10, 1 args, 1 rets)
  0028  MOVE      R4 = R0
  0029  LEN       R10 = len R0
  0030  SUB       R10 = K9(1) sub R10
  0031  LT        if R1 lt R10   -> -126421
  0032  JMP       (jump)   -> 37
  0033  GETTABLE  R10 = R2[K8('childCount')]
  0034  SUB       R10 = K9(1) sub R10
  0035  EQ        if R0 eq R10   -> -126417
  0036  JMP       (jump)   -> 58
  0037  GETTABUP  R10 = _ENV[K13('math')]
  0038  GETTABLE  R10 = R10[K14('min')]
  0039  ADD       R11 = K9(1) add R9
  0040  LEN       R12 = len R0
  0041  CALL      R10 = call(R10, 1 args, 2 rets)
  0042  MOVE      R5 = R0
  0043  SELF      R11 = R4[K15('Init')] (self)
  0044  GETTABLE  R12 = R1[R5]
  0045  MOVE      R13 = R0
  0046  CALL      R10 = call(R10, 0 args, 3 rets)
  0047  GETTABUP  R10 = _ENV[K16('UIUtil')]
  0048  GETTABLE  R10 = R10[K17('SetActive')]
  0049  GETTABLE  R11 = R4[K11('gameObject')]
  0050  LOADBOOL  R12 = true
  0051  CALL      R10 = call(R10, 0 args, 2 rets)
  0052  GETTABUP  R10 = _ENV[K18('table')]
  0053  GETTABLE  R10 = R10[K19('insert')]
  0054  GETTABLE  R11 = R0[K5('m_arrCell')]
  0055  MOVE      R12 = R0
  0056  CALL      R10 = call(R10, 0 args, 2 rets)
  0057  JMP       (jump)   -> 63
  0058  GETTABUP  R10 = _ENV[K16('UIUtil')]
  0059  GETTABLE  R10 = R10[K17('SetActive')]
  0060  GETTABLE  R11 = R4[K11('gameObject')]
  0061  LOADBOOL  R12 = false
  0062  CALL      R10 = call(R10, 0 args, 2 rets)
  0063  FORLOOP   forloop R6(sBx=-42)   -> 22
  0064  GETTABUP  R6 = _ENV[K20('LayoutRebuilder')]
  0065  GETTABLE  R6 = R6[K21('ForceRebuildLayoutImmediate')]
  0066  MOVE      R7 = R0
  0067  CALL      R6 = call(R6, 0 args, 1 rets)
  0068  GETTABLE  R6 = R0[K22('m_bInitHighlight')]
  0069  TEST      if not R6 then   -> -131000
  0070  JMP       (jump)   -> 76
  0071  GETTABLE  R6 = R0[K23('m_multipleHighlightContent')]
  0072  SELF      R7 = R6[K15('Init')] (self)
  0073  GETTABLE  R8 = R0[K5('m_arrCell')]
  0074  CALL      R6 = call(R6, 0 args, 2 rets)
  0075  SETTABLE  R0[K22('m_bInitHighlight')] = K24(true)
  0076  GETTABLE  R6 = R0[K23('m_multipleHighlightContent')]
  0077  SELF      R7 = R6[K25('UpdateMultiple')] (self)
  0078  MOVE      R8 = R0
  0079  CALL      R6 = call(R6, 0 args, 2 rets)
  0080  RETURN    return R0..R-1
