	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stli_tiocmget
_stli_tiocmget:                         ## @stli_tiocmget
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	(%rsi), %rcx
	movq	_stli_nrbrds@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jae	LBB0_8
## %bb.4:
	movq	_stli_brds@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.5:
	movl	(%rdi), %eax
	movq	_TTY_IO_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	btl	%edx, %eax
	jae	LBB0_7
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	_A_GETSIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%rsi), %rbx
	movq	%rcx, %rdi
	movq	%rbx, %rcx
	movl	$4, %r8d
	movl	$1, %r9d
	callq	_stli_cmdwait
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_stli_mktiocm                   ## 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	_A_GETSIGNALS,4,2               ## @A_GETSIGNALS
	.no_dead_strip	_stli_tiocmget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stli_tiocmget
_stli_tiocmget:                         ; @stli_tiocmget
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_5
; %bb.1:
	ldr	x9, [x1]
Lloh0:
	adrp	x10, _stli_nrbrds@GOTPAGE
Lloh1:
	ldr	x10, [x10, _stli_nrbrds@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.hs	LBB0_7
; %bb.2:
	mov	x8, x0
Lloh3:
	adrp	x10, _stli_brds@GOTPAGE
Lloh4:
	ldr	x10, [x10, _stli_brds@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x0, [x10, x9, lsl #3]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x8]
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_6
LBB0_5:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh13:
	adrp	x8, _A_GETSIGNALS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _A_GETSIGNALS@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x19, x1, #8
	mov	x3, x19
	mov	w4, #4
	mov	w5, #1
	bl	_stli_cmdwait
	tbnz	w0, #31, LBB0_8
; %bb.10:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stli_mktiocm
	.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	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	_A_GETSIGNALS,4,2               ; @A_GETSIGNALS
	.no_dead_strip	_stli_tiocmget
.subsections_via_symbols
