# UI_Window_Setting_SettingToggle_555.luac
; fn @SettingToggle.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=6 upvals=1 protos=4
;   K[0]='SettingToggle'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='IsOn'
;   K[4]='OnClicked'
;   K[5]='UpdateContent'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('SettingToggle')] = R0
0002  GETTABUP  R0 = _ENV[K0('SettingToggle')]
0003  GETTABUP  R1 = _ENV[K0('SettingToggle')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('SettingToggle')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('SettingToggle')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('IsOn')] = R1
0011  GETTABUP  R0 = _ENV[K0('SettingToggle')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnClicked')] = R1
0014  GETTABUP  R0 = _ENV[K0('SettingToggle')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('UpdateContent')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-10 np=3 va=0 ms=5 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_clickCallback'
  ;   K[1]='m_toggleChecker'
  ;   K[2]='UpdateContent'
  ;   locals: self(0-5), clickCallback(0-5), toggleChecker(0-5)
  0000  SETTABLE  R0[K0('m_clickCallback')] = R1
  0001  SETTABLE  R0[K1('m_toggleChecker')] = R2
  0002  SELF      R4 = R0[K2('UpdateContent')] (self)
  0003  CALL      R3 = call(R3, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto1 [IsOn] ----------
  ; fn ?  line 12-14 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_on'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_on')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto2 [OnClicked] ----------
  ; fn ?  line 16-21 np=1 va=0 ms=3 code=9 consts=3 upvals=0 protos=0
  ;   K[0]='m_clickCallback'
  ;   K[1]=nil
  ;   K[2]='UpdateContent'
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_clickCallback')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 8
  0003  GETTABLE  R1 = R0[K0('m_clickCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SELF      R2 = R0[K2('UpdateContent')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto3 [UpdateContent] ----------
  ; fn ?  line 23-31 np=1 va=0 ms=5 code=27 consts=6 upvals=0 protos=0
  ;   K[0]='m_toggleChecker'
  ;   K[1]='m_on'
  ;   K[2]='m_closeGo'
  ;   K[3]='SetActive'
  ;   K[4]='m_iconGo'
  ;   K[5]='m_disabledIconGo'
  ;   locals: self(0-27), isOn(8-27)
  0000  GETTABLE  R1 = R0[K0('m_toggleChecker')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_toggleChecker')]
  0004  CALL      R1 = call(R1, 1 args, 0 rets)
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R1 = false
  0008  GETTABLE  R2 = R0[K1('m_on')]
  0009  EQ        if R1 eq R1   -> -130036
  0010  JMP       (jump)   -> 26
  0011  SETTABLE  R0[K1('m_on')] = R1
  0012  GETTABLE  R2 = R0[K2('m_closeGo')]
  0013  SELF      R3 = R2[K3('SetActive')] (self)
  0014  GETTABLE  R4 = R0[K1('m_on')]
  0015  NOT       R4 = not R0
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  GETTABLE  R2 = R0[K4('m_iconGo')]
  0018  SELF      R3 = R2[K3('SetActive')] (self)
  0019  GETTABLE  R4 = R0[K1('m_on')]
  0020  CALL      R2 = call(R2, 0 args, 2 rets)
  0021  GETTABLE  R2 = R0[K5('m_disabledIconGo')]
  0022  SELF      R3 = R2[K3('SetActive')] (self)
  0023  GETTABLE  R4 = R0[K1('m_on')]
  0024  NOT       R4 = not R0
  0025  CALL      R2 = call(R2, 0 args, 2 rets)
  0026  RETURN    return R0..R-1
