# BlockActivity_View_BlockFlyScoreItem_1531.luac
; fn @BlockFlyScoreItem.lua  line 0-0 np=0 va=1 ms=2 code=15 consts=5 upvals=1 protos=3
;   K[0]='BlockFlyScoreItem'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='GetNumTextCompByRatio'
;   K[4]='GetBgEffectGoByRatio'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('BlockFlyScoreItem')] = R0
0002  GETTABUP  R0 = _ENV[K0('BlockFlyScoreItem')]
0003  GETTABUP  R1 = _ENV[K0('BlockFlyScoreItem')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('BlockFlyScoreItem')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('BlockFlyScoreItem')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('GetNumTextCompByRatio')] = R1
0011  GETTABUP  R0 = _ENV[K0('BlockFlyScoreItem')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('GetBgEffectGoByRatio')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-23 np=3 va=0 ms=11 code=48 consts=11 upvals=1 protos=0
  ;   K[0]=1
  ;   K[1]=5
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='GetNumTextCompByRatio'
  ;   K[5]='gameObject'
  ;   K[6]=2
  ;   K[7]='GetBgEffectGoByRatio'
  ;   K[8]='text'
  ;   K[9]='+'
  ;   K[10]=nil
  ;   upvals: _ENV
  ;   locals: self(0-48), num(0-48), ratio(0-48), (for index)(3-13), (for limit)(3-13), (for step)(3-13), i(4-12), (for index)(16-25), (for limit)(16-25), (for step)(16-25), i(17-24), textComp(28-48), effectGo(40-48)
  0000  LOADK     R3 = K0 1
  0001  LOADK     R4 = K1 5
  0002  LOADK     R5 = K0 1
  0003  FORPREP   forprep R3(sBx=8)   -> 12
  0004  GETTABUP  R7 = _ENV[K2('UIUtil')]
  0005  GETTABLE  R7 = R7[K3('SetActive')]
  0006  SELF      R9 = R0[K4('GetNumTextCompByRatio')] (self)
  0007  MOVE      R10 = R0
  0008  CALL      R8 = call(R8, 1 args, 2 rets)
  0009  GETTABLE  R8 = R8[K5('gameObject')]
  0010  LOADBOOL  R9 = false
  0011  CALL      R7 = call(R7, 0 args, 2 rets)
  0012  FORLOOP   forloop R3(sBx=-9)   -> 4
  0013  LOADK     R3 = K6 2
  0014  LOADK     R4 = K1 5
  0015  LOADK     R5 = K0 1
  0016  FORPREP   forprep R3(sBx=7)   -> 24
  0017  GETTABUP  R7 = _ENV[K2('UIUtil')]
  0018  GETTABLE  R7 = R7[K3('SetActive')]
  0019  SELF      R9 = R0[K7('GetBgEffectGoByRatio')] (self)
  0020  MOVE      R10 = R0
  0021  CALL      R8 = call(R8, 1 args, 2 rets)
  0022  LOADBOOL  R9 = false
  0023  CALL      R7 = call(R7, 0 args, 2 rets)
  0024  FORLOOP   forloop R3(sBx=-8)   -> 17
  0025  SELF      R4 = R0[K4('GetNumTextCompByRatio')] (self)
  0026  MOVE      R5 = R0
  0027  CALL      R3 = call(R3, 1 args, 2 rets)
  0028  LOADK     R4 = K9 '+'
  0029  MOVE      R5 = R0
  0030  CONCAT    R4 = concat(R4..R4)
  0031  SETTABLE  R3[K8('text')] = R4
  0032  GETTABUP  R4 = _ENV[K2('UIUtil')]
  0033  GETTABLE  R4 = R4[K3('SetActive')]
  0034  GETTABLE  R5 = R3[K5('gameObject')]
  0035  LOADBOOL  R6 = true
  0036  CALL      R4 = call(R4, 0 args, 2 rets)
  0037  SELF      R5 = R0[K7('GetBgEffectGoByRatio')] (self)
  0038  MOVE      R6 = R0
  0039  CALL      R4 = call(R4, 1 args, 2 rets)
  0040  EQ        if R1 eq K10(nil)   -> -128716
  0041  JMP       (jump)   -> 47
  0042  GETTABUP  R5 = _ENV[K2('UIUtil')]
  0043  GETTABLE  R5 = R5[K3('SetActive')]
  0044  MOVE      R6 = R0
  0045  LOADBOOL  R7 = true
  0046  CALL      R5 = call(R5, 0 args, 2 rets)
  0047  RETURN    return R0..R-1
; ---------- proto1 [GetNumTextCompByRatio] ----------
  ; fn ?  line 25-28 np=2 va=0 ms=5 code=11 consts=4 upvals=1 protos=0
  ;   K[0]='math'
  ;   K[1]='min'
  ;   K[2]=5
  ;   K[3]='m_numText'
  ;   upvals: _ENV
  ;   locals: self(0-11), ratio(0-11), index(5-11)
  0000  GETTABUP  R2 = _ENV[K0('math')]
  0001  GETTABLE  R2 = R2[K1('min')]
  0002  MOVE      R3 = R0
  0003  LOADK     R4 = K2 5
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  LOADK     R3 = K3 'm_numText'
  0006  MOVE      R4 = R0
  0007  CONCAT    R3 = concat(R3..R3)
  0008  GETTABLE  R3 = R0[R3]
  0009  RETURN    return R3..R2
  0010  RETURN    return R0..R-1
; ---------- proto2 [GetBgEffectGoByRatio] ----------
  ; fn ?  line 30-33 np=2 va=0 ms=5 code=11 consts=4 upvals=1 protos=0
  ;   K[0]='math'
  ;   K[1]='min'
  ;   K[2]=5
  ;   K[3]='m_effectGo'
  ;   upvals: _ENV
  ;   locals: self(0-11), ratio(0-11), index(5-11)
  0000  GETTABUP  R2 = _ENV[K0('math')]
  0001  GETTABLE  R2 = R2[K1('min')]
  0002  MOVE      R3 = R0
  0003  LOADK     R4 = K2 5
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  LOADK     R3 = K3 'm_effectGo'
  0006  MOVE      R4 = R0
  0007  CONCAT    R3 = concat(R3..R3)
  0008  GETTABLE  R3 = R0[R3]
  0009  RETURN    return R3..R2
  0010  RETURN    return R0..R-1
