	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setty
_setty:                                 ## @setty
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_pfd@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_TIOCEXCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movl	(%r13), %edi
	leaq	-48(%rbp), %rsi
	callq	_tcgetattr
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	12(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_7
## %bb.6:
	leaq	-48(%rbp), %rdi
	callq	_cfsetspeed
LBB0_7:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:
	callq	_strdup
	movq	%rax, -56(%rbp)
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	-48(%rbp), %r15
	leaq	L_.str.2(%rip), %r12
	leaq	-56(%rbp), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_msearch
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strsep
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:
	cmpq	$0, (%r14)
	jne	LBB0_13
LBB0_12:
	cmpl	$0, 12(%r14)
	jle	LBB0_15
LBB0_13:
	movl	(%r13), %edi
	movq	_TCSAFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_tcsetattr
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.14:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_syslog
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_pfd,4,2                        ## @pfd
	.comm	_TIOCEXCL,4,2                   ## @TIOCEXCL
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ioctl(TIOCEXCL): %m"

L_.str.1:                               ## @.str.1
	.asciz	"%s: tcgetattr: %m"

L_.str.2:                               ## @.str.2
	.asciz	","

	.comm	_TCSAFLUSH,4,2                  ## @TCSAFLUSH
L_.str.3:                               ## @.str.3
	.asciz	"%s: tcsetattr: %m"

	.no_dead_strip	_setty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setty
_setty:                                 ; @setty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x21, _pfd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pfd@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _TIOCEXCL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TIOCEXCL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.1:
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_tcgetattr
	tbnz	x0, #63, LBB0_14
; %bb.2:
	ldr	w1, [x19, #12]
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.3:
	add	x0, sp, #8
	bl	_cfsetspeed
LBB0_4:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.5:
	bl	_strdup
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, sp
	bl	_strsep
	cbz	x0, LBB0_8
; %bb.6:
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	bl	_msearch
	mov	x0, sp
	mov	x1, x20
	bl	_strsep
	cbnz	x0, LBB0_7
LBB0_8:
	ldr	x8, [x19]
	cbnz	x8, LBB0_10
LBB0_9:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_12
LBB0_10:
	ldr	w0, [x21]
Lloh9:
	adrp	x8, _TCSAFLUSH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCSAFLUSH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_tcsetattr
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_syslog
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
Lloh17:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh22:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	bl	_syslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_pfd,4,2                        ; @pfd
	.comm	_TIOCEXCL,4,2                   ; @TIOCEXCL
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ioctl(TIOCEXCL): %m"

l_.str.1:                               ; @.str.1
	.asciz	"%s: tcgetattr: %m"

l_.str.2:                               ; @.str.2
	.asciz	","

	.comm	_TCSAFLUSH,4,2                  ; @TCSAFLUSH
l_.str.3:                               ; @.str.3
	.asciz	"%s: tcsetattr: %m"

	.no_dead_strip	_setty
.subsections_via_symbols
