	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stli_settermios
_stli_settermios:                       ## @stli_settermios
	.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	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	(%rbx), %rax
	movq	_stli_nrbrds@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_9
## %bb.2:
	movq	_stli_brds@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r13
	testq	%r13, %r13
	je	LBB0_9
## %bb.3:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_stli_mkasyport
	movq	_A_SETPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_stli_cmdwait
	leaq	12(%rbx), %rdi
	movq	_CBAUD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	andl	(%r12), %eax
	setne	%sil
	movq	%rdi, %r12
	movl	$-1, %edx
	callq	_stli_mkasysigs
	movq	_A_SETSIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_stli_cmdwait
	movl	(%r15), %eax
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%ecx, (%rdx)
	jne	LBB0_6
## %bb.5:
	movq	$0, (%r14)
LBB0_6:
	movq	_CLOCAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stli_nrbrds,8,3                ## @stli_nrbrds
	.comm	_stli_brds,8,3                  ## @stli_brds
	.comm	_A_SETPORT,4,2                  ## @A_SETPORT
	.comm	_CBAUD,4,2                      ## @CBAUD
	.comm	_A_SETSIGNALS,4,2               ## @A_SETSIGNALS
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.no_dead_strip	_stli_settermios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stli_settermios
_stli_settermios:                       ; @stli_settermios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x19, [x0, #16]
	cbz	x19, LBB0_9
; %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_9
; %bb.2:
Lloh3:
	adrp	x9, _stli_brds@GOTPAGE
Lloh4:
	ldr	x9, [x9, _stli_brds@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x23, [x9, x8, lsl #3]
	cbz	x23, LBB0_9
; %bb.3:
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	add	x2, sp, #12
	mov	x1, x19
	mov	x3, x22
	bl	_stli_mkasyport
Lloh6:
	adrp	x8, _A_SETPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A_SETPORT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x23
	mov	x1, x19
	mov	w4, #4
	mov	w5, #0
	bl	_stli_cmdwait
	add	x24, x19, #12
	ldr	w8, [x22]
Lloh9:
	adrp	x9, _CBAUD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CBAUD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x24
	mov	w2, #-1
	bl	_stli_mkasysigs
Lloh12:
	adrp	x8, _A_SETSIGNALS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _A_SETSIGNALS@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	x3, x24
	mov	w4, #4
	mov	w5, #0
	bl	_stli_cmdwait
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _CRTSCTS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CRTSCTS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w10, [x22]
	tst	w10, w9
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x20]
LBB0_6:
Lloh18:
	adrp	x9, _CLOCAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CLOCAL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x22]
	tst	w8, w9
	b.eq	LBB0_9
; %bb.8:
	add	x0, x19, #8
	bl	_wake_up_interruptible
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_stli_nrbrds,8,3                ; @stli_nrbrds
	.comm	_stli_brds,8,3                  ; @stli_brds
	.comm	_A_SETPORT,4,2                  ; @A_SETPORT
	.comm	_CBAUD,4,2                      ; @CBAUD
	.comm	_A_SETSIGNALS,4,2               ; @A_SETSIGNALS
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.no_dead_strip	_stli_settermios
.subsections_via_symbols
