	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_tcp_configure_io_queues
_nvme_tcp_configure_io_queues:          ## @nvme_tcp_configure_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_nvme_tcp_alloc_io_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nvme_tcp_alloc_tagset
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_4:
	movl	(%r14), %edi
	movq	8(%r14), %rsi
	decq	%rsi
	callq	_blk_mq_update_nr_hw_queues
	movq	%r14, %rdi
	callq	_nvme_tcp_start_io_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	callq	_blk_mq_init_queue
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	4(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_nvme_tcp_start_io_queues
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_blk_cleanup_queue
LBB0_10:
	movl	(%r14), %edi
	callq	_blk_mq_free_tag_set
LBB0_11:
	movq	%r14, %rdi
	callq	_nvme_tcp_free_io_queues
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvme_tcp_configure_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_tcp_configure_io_queues
_nvme_tcp_configure_io_queues:          ; @nvme_tcp_configure_io_queues
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	bl	_nvme_tcp_alloc_io_queues
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_nvme_tcp_alloc_tagset
	str	w0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19]
	cbz	x8, LBB0_5
; %bb.3:
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_10
LBB0_4:
	ldr	w0, [x19]
	ldr	x8, [x19, #8]
	sub	x1, x8, #1
	bl	_blk_mq_update_nr_hw_queues
	mov	x0, x19
	bl	_nvme_tcp_start_io_queues
	mov	x20, x0
	cbnz	w0, LBB0_10
	b	LBB0_11
LBB0_5:
	bl	_blk_mq_init_queue
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_nvme_tcp_start_io_queues
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.8:
	ldr	w0, [x19, #4]
	bl	_blk_cleanup_queue
LBB0_9:
	ldr	w0, [x19]
	bl	_blk_mq_free_tag_set
LBB0_10:
	mov	x0, x19
	bl	_nvme_tcp_free_io_queues
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvme_tcp_configure_io_queues
.subsections_via_symbols
