	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_queue_count
_set_queue_count:                       ## @set_queue_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
                                        ## kill: def $esi killed $esi def $rsi
	leal	-1(%rsi), %eax
	movl	%eax, %edx
	shll	$16, %edx
	orl	%eax, %edx
	movq	_NVME_FEAT_NUM_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_nvme_set_features
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	jns	LBB0_2
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movl	-4(%rbp), %esi
	movzwl	%si, %edi
	sarl	$16, %esi
	callq	_min
	incl	%eax
	jmp	LBB0_6
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_FEAT_NUM_QUEUES,4,2       ## @NVME_FEAT_NUM_QUEUES
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_set_queue_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_queue_count
_set_queue_count:                       ; @set_queue_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	sub	w8, w1, #1
	orr	w2, w8, w8, lsl #16
Lloh0:
	adrp	x8, _NVME_FEAT_NUM_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_FEAT_NUM_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x4, x29, #4
	mov	w3, #0
	bl	_nvme_set_features
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	adrp	x9, _EBUSY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, lt
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldur	w8, [x29, #-4]
	and	w0, w8, #0xffff
	asr	w1, w8, #16
	bl	_min
	add	w0, w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_FEAT_NUM_QUEUES,4,2       ; @NVME_FEAT_NUM_QUEUES
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_set_queue_count
.subsections_via_symbols
