	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_set_queue_count           ## -- Begin function nvme_set_queue_count
	.p2align	4, 0x90
_nvme_set_queue_count:                  ## @nvme_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
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	decl	%eax
	movl	%eax, %edx
	shll	$16, %edx
	orl	%eax, %edx
	movq	_NVME_FEAT_NUM_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %r9
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nvme_set_features
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movl	-20(%rbp), %esi
	movzwl	%si, %edi
	sarl	$16, %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movl	(%r14), %edi
	callq	_min
LBB0_4:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_FEAT_NUM_QUEUES,4,2       ## @NVME_FEAT_NUM_QUEUES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not set queue count (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_set_queue_count           ; -- Begin function nvme_set_queue_count
	.p2align	2
_nvme_set_queue_count:                  ; @nvme_set_queue_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	sub	w8, w8, #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]
	add	x5, sp, #12
	mov	x3, #0
	mov	w4, #0
	bl	_nvme_set_features
	mov	x2, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cbz	w2, LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w8, [sp, #12]
	and	w0, w8, #0xffff
	asr	w1, w8, #16
	bl	_min
	add	w1, w0, #1
	ldr	w0, [x19]
	bl	_min
LBB0_4:
	mov	w2, #0
	str	w0, [x19]
LBB0_5:
	mov	x0, x2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_FEAT_NUM_QUEUES,4,2       ; @NVME_FEAT_NUM_QUEUES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not set queue count (%d)\n"

.subsections_via_symbols
