	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_alloc_admin_tags
_nvme_alloc_admin_tags:                 ## @nvme_alloc_admin_tags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.8:
	callq	_blk_mq_unquiesce_queue
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	leaq	16(%rbx), %r14
	movq	_nvme_mq_admin_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movl	$1, 16(%rbx)
	movq	_NVME_AQ_MQ_TAG_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_ADMIN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	56(%rbx), %edi
	callq	_dev_to_node
	movl	%eax, 36(%rbx)
	movl	$4, 20(%rbx)
	movq	_BLK_MQ_F_NO_SCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%rbx, 24(%rbx)
	movq	%r14, %rdi
	callq	_blk_mq_alloc_tag_set
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	movq	%r14, 8(%rbx)
	movq	%r14, %rdi
	callq	_blk_mq_init_queue
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_blk_mq_free_tag_set
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	(%rbx), %rdi
	callq	_blk_get_queue
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_nvme_dev_remove_admin
	movq	$0, (%rbx)
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_nvme_mq_admin_ops,4,2          ## @nvme_mq_admin_ops
	.comm	_NVME_AQ_MQ_TAG_DEPTH,4,2       ## @NVME_AQ_MQ_TAG_DEPTH
	.comm	_ADMIN_TIMEOUT,4,2              ## @ADMIN_TIMEOUT
	.comm	_BLK_MQ_F_NO_SCHED,4,2          ## @BLK_MQ_F_NO_SCHED
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_nvme_alloc_admin_tags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_alloc_admin_tags
_nvme_alloc_admin_tags:                 ; @nvme_alloc_admin_tags
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_blk_mq_unquiesce_queue
LBB0_2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	mov	w8, #1
	mov	x20, x19
	str	w8, [x20, #16]!
Lloh0:
	adrp	x8, _nvme_mq_admin_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvme_mq_admin_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, _ADMIN_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADMIN_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
	ldr	w0, [x19, #56]
	bl	_dev_to_node
	mov	w8, #4
	str	w8, [x19, #20]
Lloh8:
	adrp	x8, _BLK_MQ_F_NO_SCHED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLK_MQ_F_NO_SCHED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #32]
	str	x19, [x19, #24]
	mov	x0, x20
	bl	_blk_mq_alloc_tag_set
	cbnz	x0, LBB0_6
; %bb.4:
	str	x20, [x19, #8]
	mov	x0, x20
	bl	_blk_mq_init_queue
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_blk_mq_free_tag_set
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x19]
	bl	_blk_get_queue
	cbnz	w0, LBB0_2
; %bb.10:
	mov	x0, x19
	bl	_nvme_dev_remove_admin
	str	xzr, [x19]
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_nvme_mq_admin_ops,4,2          ; @nvme_mq_admin_ops
	.comm	_NVME_AQ_MQ_TAG_DEPTH,4,2       ; @NVME_AQ_MQ_TAG_DEPTH
	.comm	_ADMIN_TIMEOUT,4,2              ; @ADMIN_TIMEOUT
	.comm	_BLK_MQ_F_NO_SCHED,4,2          ; @BLK_MQ_F_NO_SCHED
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_nvme_alloc_admin_tags
.subsections_via_symbols
