	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_loop_configure_admin_queue
_nvme_loop_configure_admin_queue:       ## @nvme_loop_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_nvme_loop_admin_mq_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_NVME_AQ_MQ_TAG_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	$2, 8(%rbx)
	movq	_NUMA_NO_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_SG_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	4(,%rax,4), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, 32(%rbx)
	movl	$1, 16(%rbx)
	movq	_ADMIN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_BLK_MQ_F_NO_SCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	(%rbx), %rdi
	movq	%rbx, 8(%rdi)
	callq	_nvmet_sq_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movl	$1, 56(%rbx)
	movq	%r14, %rdi
	callq	_blk_mq_alloc_tag_set
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movq	%r14, 80(%rbx)
	movq	%r14, %rdi
	callq	_blk_mq_init_queue
	movq	%rax, 64(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	64(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_4:
	movq	%r14, %rdi
	callq	_blk_mq_init_queue
	movq	%rax, 72(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	72(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_11
LBB0_6:
	leaq	56(%rbx), %r12
	movq	%r12, %rdi
	callq	_nvmf_connect_admin_queue
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_NVME_LOOP_Q_LIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	$4, %rsi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_nvme_enable_ctrl
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	_NVME_LOOP_MAX_SEGMENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	addb	$-9, %cl
	shll	%cl, %eax
	movl	%eax, 60(%rbx)
	movq	72(%rbx), %rdi
	callq	_blk_mq_unquiesce_queue
	movq	%r12, %rdi
	callq	_nvme_init_identify
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movq	72(%rbx), %rdi
	callq	_blk_cleanup_queue
LBB0_11:
	movq	64(%rbx), %rdi
	callq	_blk_cleanup_queue
LBB0_12:
	movq	%r14, %rdi
	callq	_blk_mq_free_tag_set
LBB0_13:
	movq	(%rbx), %rdi
	callq	_nvmet_sq_destroy
LBB0_14:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_nvme_loop_admin_mq_ops,4,2     ## @nvme_loop_admin_mq_ops
	.comm	_NVME_AQ_MQ_TAG_DEPTH,4,2       ## @NVME_AQ_MQ_TAG_DEPTH
	.comm	_NUMA_NO_NODE,4,2               ## @NUMA_NO_NODE
	.comm	_SG_CHUNK_SIZE,4,2              ## @SG_CHUNK_SIZE
	.comm	_ADMIN_TIMEOUT,4,2              ## @ADMIN_TIMEOUT
	.comm	_BLK_MQ_F_NO_SCHED,4,2          ## @BLK_MQ_F_NO_SCHED
	.comm	_NVME_LOOP_Q_LIVE,4,2           ## @NVME_LOOP_Q_LIVE
	.comm	_NVME_LOOP_MAX_SEGMENTS,4,2     ## @NVME_LOOP_MAX_SEGMENTS
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_nvme_loop_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_loop_configure_admin_queue
_nvme_loop_configure_admin_queue:       ; @nvme_loop_configure_admin_queue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _nvme_loop_admin_mq_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvme_loop_admin_mq_ops@GOTPAGEOFF]
	str	x8, [x19, #48]
Lloh2:
	adrp	x8, _NVME_AQ_MQ_TAG_DEPTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NVME_AQ_MQ_TAG_DEPTH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _NUMA_NO_NODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NUMA_NO_NODE@GOTPAGEOFF]
	mov	w10, #2
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh8:
	adrp	x8, _SG_CHUNK_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SG_CHUNK_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	add	w8, w8, #4
	stp	w10, w8, [x19, #8]
	str	x19, [x19, #32]
Lloh11:
	adrp	x8, _ADMIN_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADMIN_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh14:
	adrp	x8, _BLK_MQ_F_NO_SCHED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BLK_MQ_F_NO_SCHED@GOTPAGEOFF]
	mov	w23, #1
Lloh16:
	ldr	w8, [x8]
	stp	w23, w8, [x19, #16]
	ldr	x0, [x19]
	str	x19, [x0, #8]
	bl	_nvmet_sq_init
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.1:
	mov	x21, x19
	str	w23, [x21, #56]!
	mov	x0, x20
	bl	_blk_mq_alloc_tag_set
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.2:
	str	x20, [x19, #80]
	mov	x0, x20
	bl	_blk_mq_init_queue
	str	x0, [x19, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #64]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_11
LBB0_4:
	mov	x0, x20
	bl	_blk_mq_init_queue
	str	x0, [x19, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #72]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_10
LBB0_6:
	mov	x0, x21
	bl	_nvmf_connect_admin_queue
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.7:
Lloh17:
	adrp	x8, _NVME_LOOP_Q_LIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NVME_LOOP_Q_LIVE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_set_bit
	mov	x0, x21
	bl	_nvme_enable_ctrl
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _NVME_LOOP_MAX_SEGMENTS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NVME_LOOP_MAX_SEGMENTS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
	sub	w8, w8, #1
Lloh25:
	ldr	w9, [x9]
	sub	w9, w9, #9
	lsl	w8, w8, w9
	str	w8, [x19, #60]
	ldr	x0, [x19, #72]
	bl	_blk_mq_unquiesce_queue
	mov	x0, x21
	bl	_nvme_init_identify
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_9:
	ldr	x0, [x19, #72]
	bl	_blk_cleanup_queue
LBB0_10:
	ldr	x0, [x19, #64]
	bl	_blk_cleanup_queue
LBB0_11:
	mov	x0, x20
	bl	_blk_mq_free_tag_set
LBB0_12:
	ldr	x0, [x19]
	bl	_nvmet_sq_destroy
LBB0_13:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_nvme_loop_admin_mq_ops,4,2     ; @nvme_loop_admin_mq_ops
	.comm	_NVME_AQ_MQ_TAG_DEPTH,4,2       ; @NVME_AQ_MQ_TAG_DEPTH
	.comm	_NUMA_NO_NODE,4,2               ; @NUMA_NO_NODE
	.comm	_SG_CHUNK_SIZE,4,2              ; @SG_CHUNK_SIZE
	.comm	_ADMIN_TIMEOUT,4,2              ; @ADMIN_TIMEOUT
	.comm	_BLK_MQ_F_NO_SCHED,4,2          ; @BLK_MQ_F_NO_SCHED
	.comm	_NVME_LOOP_Q_LIVE,4,2           ; @NVME_LOOP_Q_LIVE
	.comm	_NVME_LOOP_MAX_SEGMENTS,4,2     ; @NVME_LOOP_MAX_SEGMENTS
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_nvme_loop_configure_admin_queue
.subsections_via_symbols
