	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_fc_recreate_io_queues
_nvme_fc_recreate_io_queues:            ## @nvme_fc_recreate_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	8(%rdi), %r12
	movq	24(%rdi), %rax
	movl	8(%rdi), %r14d
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movq	32(%r13), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_nvme_set_queue_count
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movl	12(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_13
LBB0_2:
	decl	%r14d
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movl	12(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_5:
	leal	1(%rax), %ecx
	xorl	%r15d, %r15d
	movl	%ecx, (%r12)
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	movq	16(%r13), %rsi
	incq	%rsi
	movq	%r13, %rdi
	callq	_nvme_fc_create_hw_io_queues
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	16(%r13), %rsi
	incq	%rsi
	movq	%r13, %rdi
	callq	_nvme_fc_connect_io_queues
	testl	%eax, %eax
	je	LBB0_8
## %bb.11:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_nvme_fc_delete_hw_io_queues
LBB0_12:
	movq	%r13, %rdi
	callq	_nvme_fc_free_io_queues
	movl	%r12d, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-44(%rbp), %ecx
	cmpl	%ecx, %r14d
	je	LBB0_10
## %bb.9:
	movl	12(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movl	-44(%rbp), %r14d
LBB0_10:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_blk_mq_update_nr_hw_queues
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_queue_count failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Fail Reconnect: At least 1 io queue required (was %d)\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
L_.str.2:                               ## @.str.2
	.asciz	"reconnect: revising io queue count from %d to %d\n"

	.no_dead_strip	_nvme_fc_recreate_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_recreate_io_queues
_nvme_fc_recreate_io_queues:            ; @nvme_fc_recreate_io_queues
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	mov	x22, x0
	ldr	w23, [x22, #8]!
	ldr	x8, [x22, #16]
	ldr	w20, [x8]
	bl	_num_online_cpus
	mov	x1, x0
	mov	x0, x20
	bl	_min
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_min
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	x0, x22
	bl	_nvme_set_queue_count
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_info
	b	LBB0_14
LBB0_2:
	sub	w20, w23, #1
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_5
; %bb.3:
	cbz	w20, LBB0_5
; %bb.4:
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_info
Lloh4:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_5:
	add	w9, w8, #1
	str	w9, [x22]
	cbz	w8, LBB0_13
; %bb.6:
	ldr	x8, [x19, #16]
	add	x1, x8, #1
	mov	x0, x19
	bl	_nvme_fc_create_hw_io_queues
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	x8, [x19, #16]
	add	x1, x8, #1
	mov	x0, x19
	bl	_nvme_fc_connect_io_queues
	cbz	w0, LBB0_10
; %bb.8:
	mov	x21, x0
	mov	x0, x19
	bl	_nvme_fc_delete_hw_io_queues
LBB0_9:
	mov	x0, x19
	bl	_nvme_fc_free_io_queues
	b	LBB0_14
LBB0_10:
	ldr	w8, [sp, #12]
	cmp	w20, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x19, #12]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_info
	ldr	w20, [sp, #12]
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_blk_mq_update_nr_hw_queues
LBB0_13:
	mov	w21, #0
LBB0_14:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_queue_count failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Fail Reconnect: At least 1 io queue required (was %d)\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
l_.str.2:                               ; @.str.2
	.asciz	"reconnect: revising io queue count from %d to %d\n"

	.no_dead_strip	_nvme_fc_recreate_io_queues
.subsections_via_symbols
