# Test_TestSimpleButton_2023.luac
; fn @TestSimpleButton.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='TestSimpleButton'
;   K[1]='setmetatable'
;   K[2]='SimpleButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='OnDestroy'
;   K[6]='_UpdateStateChanged'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('SimpleButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('TestSimpleButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('TestSimpleButton')]
0006  GETTABUP  R1 = _ENV[K0('TestSimpleButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('TestSimpleButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('TestSimpleButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('TestSimpleButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_UpdateStateChanged')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 5-14 np=1 va=0 ms=5 code=24 consts=11 upvals=1 protos=0
  ;   K[0]='GameConfig'
  ;   K[1]='IsTestMode'
  ;   K[2]='gameObject'
  ;   K[3]='SetActive'
  ;   K[4]='SimpleButton'
  ;   K[5]='Awake'
  ;   K[6]='_UpdateStateChanged'
  ;   K[7]='EventDispatcher'
  ;   K[8]='AddListener'
  ;   K[9]='EEventType'
  ;   K[10]='ShowItemTestInfoChanged'
  ;   upvals: _ENV
  ;   locals: self(0-24)
  0000  GETTABUP  R1 = _ENV[K0('GameConfig')]
  0001  GETTABLE  R1 = R1[K1('IsTestMode')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  TEST      if not R1 then   -> -131066
  0004  JMP       (jump)   -> 10
  0005  GETTABLE  R1 = R0[K2('gameObject')]
  0006  SELF      R2 = R1[K3('SetActive')] (self)
  0007  LOADBOOL  R3 = false
  0008  CALL      R1 = call(R1, 0 args, 2 rets)
  0009  RETURN    return R0..R-1
  0010  GETTABUP  R1 = _ENV[K4('SimpleButton')]
  0011  GETTABLE  R1 = R1[K5('Awake')]
  0012  MOVE      R2 = R0
  0013  CALL      R1 = call(R1, 0 args, 1 rets)
  0014  SELF      R2 = R0[K6('_UpdateStateChanged')] (self)
  0015  CALL      R1 = call(R1, 0 args, 1 rets)
  0016  GETTABUP  R1 = _ENV[K7('EventDispatcher')]
  0017  GETTABLE  R1 = R1[K8('AddListener')]
  0018  GETTABUP  R2 = _ENV[K9('EEventType')]
  0019  GETTABLE  R2 = R2[K10('ShowItemTestInfoChanged')]
  0020  MOVE      R3 = R0
  0021  GETTABLE  R4 = R0[K6('_UpdateStateChanged')]
  0022  CALL      R1 = call(R1, 0 args, 3 rets)
  0023  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 16-18 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [_UpdateStateChanged] ----------
  ; fn ?  line 20-22 np=1 va=0 ms=5 code=8 consts=5 upvals=1 protos=0
  ;   K[0]='gameObject'
  ;   K[1]='SetActive'
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='CanShowTestUI'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('gameObject')]
  0001  SELF      R2 = R1[K1('SetActive')] (self)
  0002  GETTABUP  R3 = _ENV[K2('GM')]
  0003  GETTABLE  R3 = R3[K3('UIManager')]
  0004  SELF      R4 = R3[K4('CanShowTestUI')] (self)
  0005  CALL      R3 = call(R3, -1 args, 1 rets)
  0006  CALL      R1 = call(R1, 0 args, -1 rets)
  0007  RETURN    return R0..R-1
