# UI_SubView_DiscountView_346.luac
; fn @DiscountView.lua  line 0-0 np=0 va=1 ms=3 code=16 consts=6 upvals=1 protos=3
;   K[0]='DiscountView'
;   K[1]='__index'
;   K[2]='UpdateContent'
;   K[3]='UpdateOffDiscount'
;   K[4]=''
;   K[5]='UpdateText'
;   upvals: _ENV
;   locals: emptyText(12-16)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('DiscountView')] = R0
0002  GETTABUP  R0 = _ENV[K0('DiscountView')]
0003  GETTABUP  R1 = _ENV[K0('DiscountView')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('DiscountView')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('UpdateContent')] = R1
0008  GETTABUP  R0 = _ENV[K0('DiscountView')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdateOffDiscount')] = R1
0011  LOADK     R0 = K4 ''
0012  GETTABUP  R1 = _ENV[K0('DiscountView')]
0013  CLOSURE   R2 = closure proto2
0014  SETTABLE  R1[K5('UpdateText')] = R2
0015  RETURN    return R0..R-1
; ---------- proto0 [UpdateContent] ----------
  ; fn ?  line 4-16 np=2 va=0 ms=10 code=47 consts=17 upvals=1 protos=0
  ;   K[0]=nil
  ;   K[1]='string'
  ;   K[2]='find'
  ;   K[3]=','
  ;   K[4]='StringUtil'
  ;   K[5]='Split'
  ;   K[6]=1
  ;   K[7]='table'
  ;   K[8]='remove'
  ;   K[9]='m_text'
  ;   K[10]='text'
  ;   K[11]='GM'
  ;   K[12]='GameTextModel'
  ;   K[13]='GetText'
  ;   K[14]='unpack'
  ;   K[15]='gameObject'
  ;   K[16]='SetActive'
  ;   upvals: _ENV
  ;   locals: self(0-47), discountStr(0-47), arrStr(14-31), key(15-31)
  0000  EQ        if R1 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 39
  0002  GETTABUP  R2 = _ENV[K1('string')]
  0003  GETTABLE  R2 = R2[K2('find')]
  0004  MOVE      R3 = R0
  0005  LOADK     R4 = K3 ','
  0006  CALL      R2 = call(R2, 1 args, 2 rets)
  0007  TEST      if not R2 then   -> -131063
  0008  JMP       (jump)   -> 32
  0009  GETTABUP  R2 = _ENV[K4('StringUtil')]
  0010  GETTABLE  R2 = R2[K5('Split')]
  0011  MOVE      R3 = R0
  0012  LOADK     R4 = K3 ','
  0013  CALL      R2 = call(R2, 1 args, 2 rets)
  0014  GETTABLE  R3 = R2[K6(1)]
  0015  GETTABUP  R4 = _ENV[K7('table')]
  0016  GETTABLE  R4 = R4[K8('remove')]
  0017  MOVE      R5 = R0
  0018  LOADK     R6 = K6 1
  0019  CALL      R4 = call(R4, 0 args, 2 rets)
  0020  GETTABLE  R4 = R0[K9('m_text')]
  0021  GETTABUP  R5 = _ENV[K11('GM')]
  0022  GETTABLE  R5 = R5[K12('GameTextModel')]
  0023  SELF      R6 = R5[K13('GetText')] (self)
  0024  MOVE      R7 = R0
  0025  GETTABUP  R8 = _ENV[K7('table')]
  0026  GETTABLE  R8 = R8[K14('unpack')]
  0027  MOVE      R9 = R0
  0028  CALL      R8 = call(R8, -1 args, 1 rets)
  0029  CALL      R5 = call(R5, 1 args, -1 rets)
  0030  SETTABLE  R4[K10('text')] = R5
  0031  JMP       (jump)   -> 39
  0032  GETTABLE  R2 = R0[K9('m_text')]
  0033  GETTABUP  R3 = _ENV[K11('GM')]
  0034  GETTABLE  R3 = R3[K12('GameTextModel')]
  0035  SELF      R4 = R3[K13('GetText')] (self)
  0036  MOVE      R5 = R0
  0037  CALL      R3 = call(R3, 1 args, 2 rets)
  0038  SETTABLE  R2[K10('text')] = R3
  0039  GETTABLE  R2 = R0[K15('gameObject')]
  0040  SELF      R3 = R2[K16('SetActive')] (self)
  0041  EQ        if R0 eq K0(nil)   -> -130261
  0042  JMP       (jump)   -> 44
  0043  LOADBOOL  R4 = false
  0044  LOADBOOL  R4 = true
  0045  CALL      R2 = call(R2, 0 args, 2 rets)
  0046  RETURN    return R0..R-1
; ---------- proto1 [UpdateOffDiscount] ----------
  ; fn ?  line 18-21 np=2 va=0 ms=7 code=14 consts=9 upvals=1 protos=0
  ;   K[0]='m_text'
  ;   K[1]='text'
  ;   K[2]='GM'
  ;   K[3]='GameTextModel'
  ;   K[4]='GetText'
  ;   K[5]='off_tag'
  ;   K[6]='UIUtil'
  ;   K[7]='SetActive'
  ;   K[8]='gameObject'
  ;   upvals: _ENV
  ;   locals: self(0-14), discount(0-14)
  0000  GETTABLE  R2 = R0[K0('m_text')]
  0001  GETTABUP  R3 = _ENV[K2('GM')]
  0002  GETTABLE  R3 = R3[K3('GameTextModel')]
  0003  SELF      R4 = R3[K4('GetText')] (self)
  0004  LOADK     R5 = K5 'off_tag'
  0005  MOVE      R6 = R0
  0006  CALL      R3 = call(R3, 1 args, 3 rets)
  0007  SETTABLE  R2[K1('text')] = R3
  0008  GETTABUP  R2 = _ENV[K6('UIUtil')]
  0009  GETTABLE  R2 = R2[K7('SetActive')]
  0010  GETTABLE  R3 = R0[K8('gameObject')]
  0011  LOADBOOL  R4 = true
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
; ---------- proto2 [UpdateText] ----------
  ; fn ?  line 24-27 np=2 va=0 ms=5 code=14 consts=6 upvals=2 protos=0
  ;   K[0]='m_text'
  ;   K[1]='text'
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='gameObject'
  ;   K[5]=nil
  ;   upvals: emptyText, _ENV
  ;   locals: self(0-14), text(0-14)
  0000  GETTABLE  R2 = R0[K0('m_text')]
  0001  TESTSET   if R1 then R3   -> -130556
  0002  JMP       (jump)   -> 4
  0003  GETUPVAL  R3 = emptyText
  0004  SETTABLE  R2[K1('text')] = R3
  0005  GETTABUP  R2 = _ENV[K2('UIUtil')]
  0006  GETTABLE  R2 = R2[K3('SetActive')]
  0007  GETTABLE  R3 = R0[K4('gameObject')]
  0008  EQ        if R0 eq K5(nil)   -> -130289
  0009  JMP       (jump)   -> 11
  0010  LOADBOOL  R4 = false
  0011  LOADBOOL  R4 = true
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
