	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_alloc_queue
_nvme_alloc_queue:                      ## @nvme_alloc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	16(%rdi), %r15
	movl	%edx, %edi
	callq	_nvme_queue_extra
                                        ## kill: def $eax killed $eax def $rax
	leal	104(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_CQ_SIZE
	leaq	16(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r13
	movl	%r14d, %edi
	callq	_CQ_SIZE
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movl	%r14d, %edi
	callq	_SQ_SIZE
	leaq	96(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 88(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, 80(%rbx)
	movq	%r12, 72(%rbx)
	leaq	64(%rbx), %rdi
	callq	_spin_lock_init
	movq	$0, 56(%rbx)
	movl	$1, (%rbx)
	leaq	48(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	44(%rbx), %rdi
	movq	_nvme_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_init_waitqueue_entry
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_bio_list_init
	movb	(%r12), %cl
	incb	%cl
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	shll	%cl, %eax
	cltq
	shlq	$2, %rax
	addq	8(%r12), %rax
	movq	%rax, 32(%rbx)
	movl	%r14d, 4(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movl	$1, 12(%rbx)
	incl	4(%r12)
	jmp	LBB0_7
LBB0_4:
	movl	%r14d, %edi
	callq	_CQ_SIZE
	movq	24(%rbx), %rdx
	movl	16(%rbx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_free_coherent
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_nvme_thread,4,2                ## @nvme_thread
	.no_dead_strip	_nvme_alloc_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_alloc_queue
_nvme_alloc_queue:                      ; @nvme_alloc_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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x24, [x0, #16]
	mov	x0, x2
	bl	_nvme_queue_extra
	add	w0, w0, #104
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_CQ_SIZE
	mov	x1, x0
	add	x2, x19, #16
	ldr	w3, [x26]
	mov	x0, x24
	bl	_dma_alloc_coherent
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x25, x0
	mov	x0, x21
	bl	_CQ_SIZE
	mov	x2, x0
	mov	x0, x25
	mov	w1, #0
	bl	_memset
	mov	x0, x21
	bl	_SQ_SIZE
	mov	x1, x0
	add	x2, x19, #96
	ldr	w3, [x26]
	mov	x0, x24
	bl	_dma_alloc_coherent
	str	x0, [x19, #88]
	cbz	x0, LBB0_4
; %bb.3:
	stp	x22, x24, [x19, #72]
	add	x0, x19, #64
	bl	_spin_lock_init
	str	xzr, [x19, #56]
	mov	w24, #1
	str	w24, [x19]
	add	x0, x19, #48
	bl	_init_waitqueue_head
	add	x0, x19, #44
Lloh2:
	adrp	x8, _nvme_thread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nvme_thread@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_init_waitqueue_entry
	add	x0, x19, #40
	bl	_bio_list_init
	ldr	x8, [x22, #8]
	ldp	w9, w10, [x22]
	add	w9, w9, #1
	lsl	w9, w23, w9
	add	x8, x8, w9, sxtw #2
	str	x8, [x19, #32]
	stp	w21, w20, [x19, #4]
	str	w24, [x19, #12]
	add	w8, w10, #1
	str	w8, [x22, #4]
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_CQ_SIZE
	mov	x1, x0
	ldr	x2, [x19, #24]
	ldr	w3, [x19, #16]
	mov	x0, x24
	bl	_dma_free_coherent
LBB0_5:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_nvme_thread,4,2                ; @nvme_thread
	.no_dead_strip	_nvme_alloc_queue
.subsections_via_symbols
