	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_one_line
_setup_one_line:                        ## @setup_one_line
	.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	%r8, %r12
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movslq	%esi, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	shlq	$5, %r13
	leaq	(%rdi,%r13), %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_spin_lock
	cmpq	$0, 24(%rbx,%r13)
	je	LBB0_2
## %bb.1:
	negl	%r15d
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	jmp	LBB0_6
LBB0_2:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	xorl	%r15d, %r15d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rbx,%r13)
	jg	LBB0_6
## %bb.3:
	leaq	(%rbx,%r13), %rax
	movl	%ecx, (%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r12, 8(%rbx,%r13)
	movl	$1, 4(%rbx,%r13)
	jmp	LBB0_6
LBB0_4:
	movl	$0, 4(%rbx,%r13)
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device is already open"

L_.str.1:                               ## @.str.1
	.asciz	"none"

	.no_dead_strip	_setup_one_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_one_line
_setup_one_line:                        ; @setup_one_line
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x22, x3
	mov	x20, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x21, x0
	sxtw	x24, w1
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	add	x25, x0, x24, lsl #5
	add	x19, x25, #16
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_2
; %bb.1:
	neg	w22, w26
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x23]
	b	LBB0_7
LBB0_2:
	ldr	w8, [x25]
	cmp	w8, w22
	b.le	LBB0_4
; %bb.3:
	mov	w22, #0
	b	LBB0_7
LBB0_4:
	str	w22, [x25]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	mov	w22, #0
	add	x8, x21, x24, lsl #5
	cbz	w0, LBB0_6
; %bb.5:
	str	x20, [x8, #8]
	mov	w9, #1
	str	w9, [x8, #4]
	b	LBB0_7
LBB0_6:
	str	wzr, [x8, #4]
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device is already open"

l_.str.1:                               ; @.str.1
	.asciz	"none"

	.no_dead_strip	_setup_one_line
.subsections_via_symbols
