	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcsetattr                      ## -- Begin function tcsetattr
	.p2align	4, 0x90
_tcsetattr:                             ## @tcsetattr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_TCSASOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %eax
	je	LBB0_2
## %bb.1:
	movq	_CIGNORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, -8(%rbp)
	leaq	-8(%rbp), %rdx
LBB0_2:
	notl	%eax
	andl	%esi, %eax
	cmpl	$130, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.5:
	movq	_TIOCSETA@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_TIOCSETAW@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	_TIOCSETAF@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	callq	__ioctl
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCSASOFT,4,2                   ## @TCSASOFT
	.comm	_CIGNORE,4,2                    ## @CIGNORE
	.comm	_TIOCSETA,4,2                   ## @TIOCSETA
	.comm	_TIOCSETAW,4,2                  ## @TIOCSETAW
	.comm	_TIOCSETAF,4,2                  ## @TIOCSETAF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcsetattr                      ; -- Begin function tcsetattr
	.p2align	2
_tcsetattr:                             ; @tcsetattr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TCSASOFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCSASOFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x2]
Lloh3:
	adrp	x10, _CIGNORE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CIGNORE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [sp, #8]
	add	x2, sp, #8
LBB0_2:
	bic	w8, w1, w8
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, _TIOCSETA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIOCSETA@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _TIOCSETAW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TIOCSETAW@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _TIOCSETAF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TIOCSETAF@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	bl	__ioctl
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _errno@GOTPAGE
Lloh16:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TCSASOFT,4,2                   ; @TCSASOFT
	.comm	_CIGNORE,4,2                    ; @CIGNORE
	.comm	_TIOCSETA,4,2                   ; @TIOCSETA
	.comm	_TIOCSETAW,4,2                  ; @TIOCSETAW
	.comm	_TIOCSETAF,4,2                  ; @TIOCSETAF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
