# UI_Button_PlainButton_274.luac
; fn @PlainButton.lua  line 0-0 np=0 va=1 ms=2 code=15 consts=5 upvals=1 protos=3
;   K[0]='PlainButton'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnBtnClicked'
;   K[4]='SetText'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('PlainButton')] = R0
0002  GETTABUP  R0 = _ENV[K0('PlainButton')]
0003  GETTABUP  R1 = _ENV[K0('PlainButton')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('PlainButton')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('PlainButton')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnBtnClicked')] = R1
0011  GETTABUP  R0 = _ENV[K0('PlainButton')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('SetText')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-10 np=3 va=0 ms=6 code=7 consts=3 upvals=0 protos=0
  ;   K[0]=nil
  ;   K[1]='SetText'
  ;   K[2]='m_callback'
  ;   locals: self(0-7), text(0-7), callback(0-7)
  0000  EQ        if R1 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 5
  0002  SELF      R4 = R0[K1('SetText')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 0 args, 2 rets)
  0005  SETTABLE  R0[K2('m_callback')] = R2
  0006  RETURN    return R0..R-1
; ---------- proto1 [OnBtnClicked] ----------
  ; fn ?  line 13-20 np=1 va=0 ms=4 code=17 consts=8 upvals=1 protos=0
  ;   K[0]='string'
  ;   K[1]='len'
  ;   K[2]='m_strSoundEffectName'
  ;   K[3]=0
  ;   K[4]='GM'
  ;   K[5]='AudioModel'
  ;   K[6]='PlayEffect'
  ;   K[7]='m_callback'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  GETTABUP  R1 = _ENV[K0('string')]
  0001  GETTABLE  R1 = R1[K1('len')]
  0002  GETTABLE  R2 = R0[K2('m_strSoundEffectName')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  LT        if R0 lt R1   -> 1543
  0005  JMP       (jump)   -> 11
  0006  GETTABUP  R1 = _ENV[K4('GM')]
  0007  GETTABLE  R1 = R1[K5('AudioModel')]
  0008  SELF      R2 = R1[K6('PlayEffect')] (self)
  0009  GETTABLE  R3 = R0[K2('m_strSoundEffectName')]
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  GETTABLE  R1 = R0[K7('m_callback')]
  0012  TEST      if not R1 then   -> -131058
  0013  JMP       (jump)   -> 16
  0014  GETTABLE  R1 = R0[K7('m_callback')]
  0015  CALL      R1 = call(R1, 0 args, 0 rets)
  0016  RETURN    return R0..R-1
; ---------- proto2 [SetText] ----------
  ; fn ?  line 22-24 np=2 va=0 ms=3 code=3 consts=2 upvals=0 protos=0
  ;   K[0]='m_text'
  ;   K[1]='text'
  ;   locals: self(0-3), strText(0-3)
  0000  GETTABLE  R2 = R0[K0('m_text')]
  0001  SETTABLE  R2[K1('text')] = R1
  0002  RETURN    return R0..R-1
