	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_togglevar                      ## -- Begin function togglevar
	.p2align	4, 0x90
_togglevar:                             ## @togglevar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	cmpl	$2, %edi
	je	LBB0_3
## %bb.1:
	cmpl	$1, %edi
	jne	LBB0_10
## %bb.2:
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	sete	%al
	jmp	LBB0_7
LBB0_3:
	movq	8(%rbx), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_10:
	movq	(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_UPRINTF
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_4:
	movl	$1, %eax
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movl	%eax, (%r15)
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	_ttyout@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_onoff
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	movl	(%r15), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"on"

L_.str.1:                               ## @.str.1
	.asciz	"off"

L_.str.2:                               ## @.str.2
	.asciz	"usage: %s [ on | off ]\n"

	.comm	_ttyout,4,2                     ## @ttyout
L_.str.3:                               ## @.str.3
	.asciz	"%s %s.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_togglevar                      ; -- Begin function togglevar
	.p2align	2
_togglevar:                             ; @togglevar
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	cmp	w0, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_7
LBB0_3:
	ldr	x22, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbz	x0, LBB0_6
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbz	x0, LBB0_7
LBB0_5:
	ldr	x1, [x21]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_UPRINTF
	mov	w0, #-1
	b	LBB0_9
LBB0_6:
	mov	w0, #1
LBB0_7:
	str	w0, [x19]
	cbz	x20, LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _ttyout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ttyout@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	bl	_onoff
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_fprintf
	ldr	w0, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"on"

l_.str.1:                               ; @.str.1
	.asciz	"off"

l_.str.2:                               ; @.str.2
	.asciz	"usage: %s [ on | off ]\n"

	.comm	_ttyout,4,2                     ; @ttyout
l_.str.3:                               ; @.str.3
	.asciz	"%s %s.\n"

.subsections_via_symbols
