	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_loop_init_io_queues
_nvme_loop_init_io_queues:              ## @nvme_loop_init_io_queues
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, -36(%rbp)
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nvme_set_queue_count
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	-36(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.2:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	cmpl	$0, -36(%rbp)
	je	LBB0_7
## %bb.3:
	movl	$16, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdi
	movq	%r14, 8(%rdi,%rbx)
	addq	%rbx, %rdi
	callq	_nvmet_sq_init
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	(%r14)
	movl	-36(%rbp), %eax
	incq	%r12
	addq	$16, %rbx
	cmpq	%rax, %r12
	jb	LBB0_4
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_nvme_loop_destroy_io_queues
LBB0_9:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"creating %d I/O queues.\n"

	.no_dead_strip	_nvme_loop_init_io_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_loop_init_io_queues
_nvme_loop_init_io_queues:              ; @nvme_loop_init_io_queues
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
	bl	_num_online_cpus
	mov	x1, x0
	mov	x0, x20
	bl	_min
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	x0, x19
	bl	_nvme_set_queue_count
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_8
; %bb.2:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x21, #0
	mov	w22, #24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x22
	str	x19, [x0], #-8
	bl	_nvmet_sq_init
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [sp, #12]
	add	x21, x21, #1
	add	x22, x22, #16
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	mov	x20, x0
	mov	x0, x19
	bl	_nvme_loop_destroy_io_queues
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"creating %d I/O queues.\n"

	.no_dead_strip	_nvme_loop_init_io_queues
.subsections_via_symbols
