	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_create_queue
_nvme_create_queue:                     ## @nvme_create_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	_NVMEQ_DELETE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	testl	%r15d, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	_NVMEQ_POLLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
	cmpl	$1, (%r12)
	cmovnel	%r13d, %r15d
LBB0_3:
	movl	%r13d, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_adapter_alloc_cq
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_adapter_alloc_sq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	je	LBB0_6
LBB0_10:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_adapter_delete_cq
	jmp	LBB0_11
LBB0_6:
	movl	%r15d, (%r14)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nvme_init_queue
	xorl	%r13d, %r13d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_queue_request_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:
	movq	_NVMEQ_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
LBB0_11:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	decl	4(%r12)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_adapter_delete_sq
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMEQ_DELETE_ERROR,4,2         ## @NVMEQ_DELETE_ERROR
	.comm	_NVMEQ_POLLED,4,2               ## @NVMEQ_POLLED
	.comm	_NVMEQ_ENABLED,4,2              ## @NVMEQ_ENABLED
	.no_dead_strip	_nvme_create_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_create_queue
_nvme_create_queue:                     ; @nvme_create_queue
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _NVMEQ_DELETE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVMEQ_DELETE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x22, #4
	mov	x1, x21
	bl	_clear_bit
	cbz	w23, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _NVMEQ_POLLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVMEQ_POLLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	mov	w25, #0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #1
	csel	w25, wzr, w19, eq
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x25
	bl	_adapter_alloc_cq
	mov	x24, x0
	cbnz	w0, LBB0_11
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_adapter_alloc_sq
	mov	x24, x0
	tbnz	w0, #31, LBB0_11
; %bb.5:
	cbz	w24, LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_adapter_delete_cq
	b	LBB0_11
LBB0_7:
	str	w25, [x22]
	mov	x0, x22
	mov	x1, x19
	bl	_nvme_init_queue
	cbz	w23, LBB0_9
; %bb.8:
	mov	w24, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_queue_request_irq
	mov	x24, x0
	tbnz	w0, #31, LBB0_12
LBB0_10:
Lloh6:
	adrp	x8, _NVMEQ_ENABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVMEQ_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
LBB0_11:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w8, [x20, #4]
	sub	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_adapter_delete_sq
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMEQ_DELETE_ERROR,4,2         ; @NVMEQ_DELETE_ERROR
	.comm	_NVMEQ_POLLED,4,2               ; @NVMEQ_POLLED
	.comm	_NVMEQ_ENABLED,4,2              ; @NVMEQ_ENABLED
	.no_dead_strip	_nvme_create_queue
.subsections_via_symbols
