	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_fc_create_io_queues
_nvme_fc_create_io_queues:              ## @nvme_fc_create_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, %r12
	leaq	8(%rdi), %r14
	movq	48(%rdi), %rax
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movq	112(%r12), %rcx
	movq	(%rcx), %rcx
	movl	4(%rcx), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, -36(%rbp)
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nvme_set_queue_count
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	56(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_info
	movl	%ebx, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-36(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	movq	%r12, %rdi
	callq	_nvme_fc_init_io_queues
	leaq	64(%r12), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_nvme_fc_mq_ops@GOTPCREL(%rip), %rax
	movq	%rax, 104(%r12)
	movq	48(%r12), %rax
	movl	4(%rax), %eax
	movl	%eax, 100(%r12)
	movl	$1, 64(%r12)
	movl	40(%r12), %eax
	movl	%eax, 96(%r12)
	movq	_BLK_MQ_F_SHOULD_MERGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r12)
	movq	_priv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	112(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_struct_size
	movl	%eax, 88(%r12)
	movq	%r12, 80(%r12)
	movl	8(%r12), %eax
	decl	%eax
	movl	%eax, 68(%r12)
	movq	_NVME_IO_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movq	%r14, %rdi
	callq	_blk_mq_alloc_tag_set
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movq	%r14, 16(%r12)
	movq	%r14, %rdi
	callq	_blk_mq_init_queue
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	24(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_11
LBB0_6:
	movq	32(%r12), %rsi
	incq	%rsi
	movq	%r12, %rdi
	callq	_nvme_fc_create_hw_io_queues
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	32(%r12), %rsi
	incq	%rsi
	movq	%r12, %rdi
	callq	_nvme_fc_connect_io_queues
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_nvme_fc_delete_hw_io_queues
LBB0_10:
	movl	24(%r12), %edi
	callq	_blk_cleanup_queue
LBB0_11:
	movq	%r14, %rdi
	callq	_blk_mq_free_tag_set
	movq	%r12, %rdi
	callq	_nvme_fc_free_io_queues
	movq	$0, 16(%r12)
	jmp	LBB0_12
LBB0_8:
	movl	$1, (%r12)
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_queue_count failed: %d\n"

	.comm	_nvme_fc_mq_ops,4,2             ## @nvme_fc_mq_ops
	.comm	_BLK_MQ_F_SHOULD_MERGE,4,2      ## @BLK_MQ_F_SHOULD_MERGE
	.comm	_priv,4,2                       ## @priv
	.comm	_NVME_IO_TIMEOUT,4,2            ## @NVME_IO_TIMEOUT
	.no_dead_strip	_nvme_fc_create_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_fc_create_io_queues
_nvme_fc_create_io_queues:              ; @nvme_fc_create_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
	add	x20, x0, #8
	ldr	x8, [x0, #48]
	ldr	w21, [x8]
	bl	_num_online_cpus
	mov	x1, x0
	mov	x0, x21
	bl	_min
	ldr	x8, [x19, #112]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	bl	_min
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	x0, x20
	bl	_nvme_set_queue_count
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #56]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_info
LBB0_2:
	mov	x0, x21
	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
LBB0_3:
	ldr	w8, [sp, #12]
	add	w9, w8, #1
	str	w9, [x20]
	cbz	w8, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_nvme_fc_init_io_queues
	add	x20, x19, #64
	mov	x0, x20
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh2:
	adrp	x8, _nvme_fc_mq_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nvme_fc_mq_ops@GOTPAGEOFF]
	str	x8, [x19, #104]
	ldr	x8, [x19, #48]
	ldr	w8, [x8, #4]
	str	w8, [x19, #100]
	mov	w8, #1
	str	w8, [x19, #64]
	ldr	w8, [x19, #40]
Lloh4:
	adrp	x9, _BLK_MQ_F_SHOULD_MERGE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BLK_MQ_F_SHOULD_MERGE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #92]
Lloh7:
	adrp	x8, _priv@GOTPAGE
Lloh8:
	ldr	x8, [x8, _priv@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x8, [x19, #112]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	x0, #0
	bl	_struct_size
	str	w0, [x19, #88]
	str	x19, [x19, #80]
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
Lloh10:
	adrp	x9, _NVME_IO_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NVME_IO_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #68]
	mov	x0, x20
	bl	_blk_mq_alloc_tag_set
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.5:
	str	x20, [x19, #16]
	mov	x0, x20
	bl	_blk_mq_init_queue
	str	w0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x19, #24]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_12
LBB0_7:
	mov	w21, #0
	b	LBB0_2
LBB0_8:
	ldr	x8, [x19, #32]
	add	x1, x8, #1
	mov	x0, x19
	bl	_nvme_fc_create_hw_io_queues
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	x8, [x19, #32]
	add	x1, x8, #1
	mov	x0, x19
	bl	_nvme_fc_connect_io_queues
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_nvme_fc_delete_hw_io_queues
LBB0_11:
	ldr	w0, [x19, #24]
	bl	_blk_cleanup_queue
LBB0_12:
	mov	x0, x20
	bl	_blk_mq_free_tag_set
	mov	x0, x19
	bl	_nvme_fc_free_io_queues
	str	xzr, [x19, #16]
	b	LBB0_2
LBB0_13:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_queue_count failed: %d\n"

	.comm	_nvme_fc_mq_ops,4,2             ; @nvme_fc_mq_ops
	.comm	_BLK_MQ_F_SHOULD_MERGE,4,2      ; @BLK_MQ_F_SHOULD_MERGE
	.comm	_priv,4,2                       ; @priv
	.comm	_NVME_IO_TIMEOUT,4,2            ; @NVME_IO_TIMEOUT
	.no_dead_strip	_nvme_fc_create_io_queues
.subsections_via_symbols
