	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stli_initopen
_stli_initopen:                         ## @stli_initopen
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_stli_rawopen
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_DT_TXLOW@GOTPCREL(%rip), %rax
	movq	_DT_TXEMPTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DT_RXBUSY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DT_RXBREAK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movq	_SG_DCD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_A_SETNOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	movl	$12, %r8d
	xorl	%r9d, %r9d
	callq	_stli_cmdwait
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	(%r15), %ecx
	leaq	-64(%rbp), %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_stli_mkasyport
	movq	_A_SETPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	movl	$12, %r8d
	xorl	%r9d, %r9d
	callq	_stli_cmdwait
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	_ST_GETSIGS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	16(%rbx), %r15
	movq	%r15, %rsi
	callq	_set_bit
	movq	_A_GETSIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rcx
	movl	$4, %r8d
	movl	$1, %r9d
	callq	_stli_cmdwait
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	callq	_stli_mktiocm
	movl	%eax, 12(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_stli_mkasysigs
	movq	_A_SETSIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rcx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_stli_cmdwait
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DT_TXLOW,4,2                   ## @DT_TXLOW
	.comm	_DT_TXEMPTY,4,2                 ## @DT_TXEMPTY
	.comm	_DT_RXBUSY,4,2                  ## @DT_RXBUSY
	.comm	_DT_RXBREAK,4,2                 ## @DT_RXBREAK
	.comm	_SG_DCD,4,2                     ## @SG_DCD
	.comm	_A_SETNOTIFY,4,2                ## @A_SETNOTIFY
	.comm	_A_SETPORT,4,2                  ## @A_SETPORT
	.comm	_ST_GETSIGS,4,2                 ## @ST_GETSIGS
	.comm	_A_GETSIGNALS,4,2               ## @A_GETSIGNALS
	.comm	_A_SETSIGNALS,4,2               ## @A_SETSIGNALS
	.no_dead_strip	_stli_initopen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stli_initopen
_stli_initopen:                         ; @stli_initopen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x2
	mov	w2, #0
	mov	w3, #1
	bl	_stli_rawopen
	tbnz	w0, #31, LBB0_7
; %bb.1:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _DT_TXLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DT_TXLOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DT_TXEMPTY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DT_TXEMPTY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DT_RXBUSY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DT_RXBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _DT_RXBREAK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DT_RXBREAK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _SG_DCD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SG_DCD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w8, [sp, #16]
	str	w9, [sp, #24]
Lloh15:
	adrp	x8, _A_SETNOTIFY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _A_SETNOTIFY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	w4, #12
	mov	w5, #0
	bl	_stli_cmdwait
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w3, [x21]
	mov	x2, sp
	mov	x0, x21
	mov	x1, x19
	bl	_stli_mkasyport
Lloh18:
	adrp	x8, _A_SETPORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _A_SETPORT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	w4, #12
	mov	w5, #0
	bl	_stli_cmdwait
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh21:
	adrp	x22, _ST_GETSIGS@GOTPAGE
Lloh22:
	ldr	x22, [x22, _ST_GETSIGS@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x19, #16
	mov	x1, x21
	bl	_set_bit
Lloh23:
	adrp	x8, _A_GETSIGNALS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _A_GETSIGNALS@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x19
	mov	w4, #4
	mov	w5, #1
	bl	_stli_cmdwait
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_stli_mktiocm
	str	w0, [x19, #12]
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_stli_mkasysigs
Lloh26:
	adrp	x8, _A_SETSIGNALS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _A_SETSIGNALS@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x19
	mov	w4, #4
	mov	w5, #0
	bl	_stli_cmdwait
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DT_TXLOW,4,2                   ; @DT_TXLOW
	.comm	_DT_TXEMPTY,4,2                 ; @DT_TXEMPTY
	.comm	_DT_RXBUSY,4,2                  ; @DT_RXBUSY
	.comm	_DT_RXBREAK,4,2                 ; @DT_RXBREAK
	.comm	_SG_DCD,4,2                     ; @SG_DCD
	.comm	_A_SETNOTIFY,4,2                ; @A_SETNOTIFY
	.comm	_A_SETPORT,4,2                  ; @A_SETPORT
	.comm	_ST_GETSIGS,4,2                 ; @ST_GETSIGS
	.comm	_A_GETSIGNALS,4,2               ; @A_GETSIGNALS
	.comm	_A_SETSIGNALS,4,2               ; @A_SETSIGNALS
	.no_dead_strip	_stli_initopen
.subsections_via_symbols
