	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stli_tiocmset
_stli_tiocmset:                         ## @stli_tiocmset
	.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	8(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.4:
	movq	(%r12), %rsi
	movq	_stli_nrbrds@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpq	(%r8), %rsi
	jae	LBB0_3
## %bb.5:
	movq	_stli_brds@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movq	(%rbx,%rsi,8), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.6:
	movl	(%rdi), %eax
	movq	_TTY_IO_ERROR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	btl	%esi, %eax
	jae	LBB0_8
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %eax
	andl	%edx, %eax
	xorl	%r8d, %r8d
	cmpl	$1, %eax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	$1, %eax
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	andl	%ebx, %edx
	cmpl	$1, %edx
	movl	$0, %esi
	sbbl	%esi, %esi
	orl	$1, %esi
	testl	%ecx, %edi
	cmovnel	%r8d, %eax
	testl	%ecx, %ebx
	cmovnel	%r8d, %esi
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_stli_mkasysigs
	movq	_A_SETSIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stli_cmdwait                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_stli_nrbrds,8,3                ## @stli_nrbrds
	.comm	_stli_brds,8,3                  ## @stli_brds
	.comm	_TTY_IO_ERROR,4,2               ## @TTY_IO_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_A_SETSIGNALS,4,2               ## @A_SETSIGNALS
	.no_dead_strip	_stli_tiocmset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stli_tiocmset
_stli_tiocmset:                         ; @stli_tiocmset
	.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
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_6
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _stli_nrbrds@GOTPAGE
Lloh1:
	ldr	x9, [x9, _stli_nrbrds@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _stli_brds@GOTPAGE
Lloh4:
	ldr	x9, [x9, _stli_brds@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x20, [x9, x8, lsl #3]
	cbz	x20, LBB0_5
; %bb.3:
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _TTY_IO_ERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TTY_IO_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
Lloh13:
	adrp	x8, _TIOCM_RTS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TIOCM_RTS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w2
	mov	w9, #-1
	cneg	w10, w9, ne
Lloh16:
	adrp	x11, _TIOCM_DTR@GOTPAGE
Lloh17:
	ldr	x11, [x11, _TIOCM_DTR@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	tst	w11, w2
	cneg	w9, w9, ne
	tst	w8, w3
	csel	w2, w10, wzr, eq
	tst	w11, w3
	csel	w1, w9, wzr, eq
	add	x21, x19, #8
	mov	x0, x21
	bl	_stli_mkasysigs
Lloh19:
	adrp	x8, _A_SETSIGNALS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _A_SETSIGNALS@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	mov	w4, #4
	mov	w5, #0
	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
	b	_stli_cmdwait
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_stli_nrbrds,8,3                ; @stli_nrbrds
	.comm	_stli_brds,8,3                  ; @stli_brds
	.comm	_TTY_IO_ERROR,4,2               ; @TTY_IO_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_A_SETSIGNALS,4,2               ; @A_SETSIGNALS
	.no_dead_strip	_stli_tiocmset
.subsections_via_symbols
