# UI_Button_SimpleButton_275.luac
; fn @SimpleButton.lua  line 0-0 np=0 va=1 ms=4 code=28 consts=11 upvals=1 protos=5
;   K[0]='SimpleButton'
;   K[1]='setmetatable'
;   K[2]='PlainButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='OnBtnClicked'
;   K[7]='CSColor'
;   K[8]='white'
;   K[9]='SetEnabled'
;   K[10]='SetUIEnabled'
;   upvals: _ENV
;   locals: enableTextColor(19-28), disableTextColor(21-28)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('PlainButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('SimpleButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('SimpleButton')]
0006  GETTABUP  R1 = _ENV[K0('SimpleButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('SimpleButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('SimpleButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('SimpleButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnBtnClicked')] = R1
0017  GETTABUP  R0 = _ENV[K7('CSColor')]
0018  GETTABLE  R0 = R0[K8('white')]
0019  GETTABUP  R1 = _ENV[K7('CSColor')]
0020  GETTABLE  R1 = R1[K8('white')]
0021  GETTABUP  R2 = _ENV[K0('SimpleButton')]
0022  CLOSURE   R3 = closure proto3
0023  SETTABLE  R2[K9('SetEnabled')] = R3
0024  GETTABUP  R2 = _ENV[K0('SimpleButton')]
0025  CLOSURE   R3 = closure proto4
0026  SETTABLE  R2[K10('SetUIEnabled')] = R3
0027  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 5-7 np=1 va=0 ms=4 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='SetEnabled'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('SetEnabled')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 9-12 np=1 va=1 ms=4 code=9 consts=3 upvals=1 protos=0
  ;   K[0]='PlainButton'
  ;   K[1]='Init'
  ;   K[2]='SetEnabled'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('PlainButton')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  SELF      R2 = R0[K2('SetEnabled')] (self)
  0006  LOADBOOL  R3 = true
  0007  CALL      R1 = call(R1, 0 args, 2 rets)
  0008  RETURN    return R0..R-1
; ---------- proto2 [OnBtnClicked] ----------
  ; fn ?  line 15-21 np=1 va=0 ms=3 code=9 consts=3 upvals=1 protos=0
  ;   K[0]='m_bEnabled'
  ;   K[1]='PlainButton'
  ;   K[2]='OnBtnClicked'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_bEnabled')]
  0001  TEST      if not R1 then   -> -131068
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABUP  R1 = _ENV[K1('PlainButton')]
  0005  GETTABLE  R1 = R1[K2('OnBtnClicked')]
  0006  MOVE      R2 = R0
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto3 [SetEnabled] ----------
  ; fn ?  line 25-33 np=2 va=0 ms=5 code=11 consts=4 upvals=0 protos=0
  ;   K[0]='SetUIEnabled'
  ;   K[1]='m_bEnabled'
  ;   K[2]='m_btn'
  ;   K[3]='enabled'
  ;   locals: self(0-11), enable(0-11)
  0000  SELF      R3 = R0[K0('SetUIEnabled')] (self)
  0001  MOVE      R4 = R0
  0002  CALL      R2 = call(R2, 0 args, 2 rets)
  0003  GETTABLE  R2 = R0[K1('m_bEnabled')]
  0004  EQ        if R1 eq R1   -> -130041
  0005  JMP       (jump)   -> 10
  0006  SETTABLE  R0[K1('m_bEnabled')] = R1
  0007  GETTABLE  R2 = R0[K2('m_btn')]
  0008  GETTABLE  R3 = R0[K1('m_bEnabled')]
  0009  SETTABLE  R2[K3('enabled')] = R3
  0010  RETURN    return R0..R-1
; ---------- proto4 [SetUIEnabled] ----------
  ; fn ?  line 35-42 np=2 va=0 ms=4 code=24 consts=7 upvals=2 protos=0
  ;   K[0]='m_bUIEnabled'
  ;   K[1]='m_image'
  ;   K[2]='sprite'
  ;   K[3]='m_enableSprite'
  ;   K[4]='m_disableSprite'
  ;   K[5]='m_text'
  ;   K[6]='color'
  ;   upvals: enableTextColor, disableTextColor
  ;   locals: self(0-24), enable(0-24)
  0000  GETTABLE  R2 = R0[K0('m_bUIEnabled')]
  0001  EQ        if R1 eq R1   -> -130044
  0002  JMP       (jump)   -> 23
  0003  GETTABLE  R2 = R0[K1('m_image')]
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 23
  0006  SETTABLE  R0[K0('m_bUIEnabled')] = R1
  0007  GETTABLE  R2 = R0[K1('m_image')]
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 13
  0010  GETTABLE  R3 = R0[K3('m_enableSprite')]
  0011  TEST      if not R3 then   -> -131058
  0012  JMP       (jump)   -> 14
  0013  GETTABLE  R3 = R0[K4('m_disableSprite')]
  0014  SETTABLE  R2[K2('sprite')] = R3
  0015  GETTABLE  R2 = R0[K5('m_text')]
  0016  TEST      if not R1 then   -> -131054
  0017  JMP       (jump)   -> 21
  0018  GETUPVAL  R3 = enableTextColor
  0019  TEST      if not R3 then   -> -131050
  0020  JMP       (jump)   -> 22
  0021  GETUPVAL  R3 = enableTextColor
  0022  SETTABLE  R2[K6('color')] = R3
  0023  RETURN    return R0..R-1
