	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_tcp_configure_admin_queue
_nvme_tcp_configure_admin_queue:        ## @nvme_tcp_configure_admin_queue
	.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, %r14d
	movq	%rdi, %r15
	callq	_nvme_tcp_alloc_admin_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_nvme_tcp_alloc_tagset
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_4:
	callq	_blk_mq_init_queue
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_6:
	movq	(%r15), %rdi
	callq	_blk_mq_init_queue
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	16(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_nvme_tcp_start_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	callq	_nvme_enable_ctrl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	16(%r15), %rdi
	callq	_blk_mq_unquiesce_queue
	movq	%r15, %rdi
	callq	_nvme_init_identify
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_nvme_tcp_stop_queue
LBB0_13:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.14:
	movq	16(%r15), %rdi
	callq	_blk_cleanup_queue
LBB0_15:
	movq	8(%r15), %rdi
	callq	_blk_cleanup_queue
LBB0_16:
	movq	(%r15), %rdi
	callq	_blk_mq_free_tag_set
LBB0_17:
	movq	%r15, %rdi
	callq	_nvme_tcp_free_admin_queue
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvme_tcp_configure_admin_queue
.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_admin_queue
_nvme_tcp_configure_admin_queue:        ; @nvme_tcp_configure_admin_queue
	.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	x20, x1
	mov	x19, x0
	bl	_nvme_tcp_alloc_admin_queue
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.1:
	cbz	w20, LBB0_8
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_nvme_tcp_alloc_tagset
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_16
LBB0_4:
	bl	_blk_mq_init_queue
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_15
LBB0_6:
	ldr	x0, [x19]
	bl	_blk_mq_init_queue
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_14
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_nvme_tcp_start_queue
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_nvme_enable_ctrl
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	x0, [x19, #16]
	bl	_blk_mq_unquiesce_queue
	mov	x0, x19
	bl	_nvme_init_identify
	mov	x21, x0
	cbz	w0, LBB0_17
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	bl	_nvme_tcp_stop_queue
LBB0_12:
	cbz	w20, LBB0_16
; %bb.13:
	ldr	x0, [x19, #16]
	bl	_blk_cleanup_queue
LBB0_14:
	ldr	x0, [x19, #8]
	bl	_blk_cleanup_queue
LBB0_15:
	ldr	x0, [x19]
	bl	_blk_mq_free_tag_set
LBB0_16:
	mov	x0, x19
	bl	_nvme_tcp_free_admin_queue
LBB0_17:
	mov	x0, x21
	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_admin_queue
.subsections_via_symbols
