	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_mouse
_set_mouse:                             ## @set_mouse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_revert
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	jmp	LBB0_6
LBB0_1:
	movq	_MOUSE_SHOW@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_MOUSE_HIDE@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
LBB0_6:
	movq	_CONS_MOUSECTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	xorl	%edi, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_revert
	movq	-16(%rbp), %rax
	movq	_MOUSE_SHOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"on"

	.comm	_MOUSE_SHOW,8,3                 ## @MOUSE_SHOW
L_.str.1:                               ## @.str.1
	.asciz	"off"

	.comm	_MOUSE_HIDE,8,3                 ## @MOUSE_HIDE
L_.str.2:                               ## @.str.2
	.asciz	"argument to -m must be either on or off"

	.comm	_CONS_MOUSECTL,4,2              ## @CONS_MOUSECTL
L_.str.3:                               ## @.str.3
	.asciz	"%sing the mouse"

L_.str.4:                               ## @.str.4
	.asciz	"show"

L_.str.5:                               ## @.str.5
	.asciz	"hid"

	.no_dead_strip	_set_mouse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_mouse
_set_mouse:                             ; @set_mouse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.2:
	bl	_revert
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _MOUSE_SHOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MOUSE_SHOW@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _MOUSE_HIDE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MOUSE_HIDE@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [sp, #8]
LBB0_6:
Lloh10:
	adrp	x8, _CONS_MOUSECTL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CONS_MOUSECTL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w0, #0
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
	bl	_revert
	ldr	x8, [sp, #8]
Lloh13:
	adrp	x9, _MOUSE_SHOW@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MOUSE_SHOW@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, l_.str.5@PAGE
Lloh17:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh18:
	adrp	x11, l_.str.4@PAGE
Lloh19:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	x8, x9
	csel	x2, x11, x10, eq
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"on"

	.comm	_MOUSE_SHOW,8,3                 ; @MOUSE_SHOW
l_.str.1:                               ; @.str.1
	.asciz	"off"

	.comm	_MOUSE_HIDE,8,3                 ; @MOUSE_HIDE
l_.str.2:                               ; @.str.2
	.asciz	"argument to -m must be either on or off"

	.comm	_CONS_MOUSECTL,4,2              ; @CONS_MOUSECTL
l_.str.3:                               ; @.str.3
	.asciz	"%sing the mouse"

l_.str.4:                               ; @.str.4
	.asciz	"show"

l_.str.5:                               ; @.str.5
	.asciz	"hid"

	.no_dead_strip	_set_mouse
.subsections_via_symbols
