	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_process_cq
_nvme_process_cq:                       ## @nvme_process_cq
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	8(%rdi), %r13
	movq	56(%rdi), %rax
	leaq	(%rbx,%rbx,2), %rcx
	movq	(%rax,%rcx,4), %rdx
	movq	%rdx, -56(%rbp)
	movl	8(%rax,%rcx,4), %edi
	movl	%edi, -48(%rbp)
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	cmpq	%rax, %r13
	jne	LBB0_3
## %bb.1:
	leaq	-64(%rbp), %r15
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, 16(%r14)
	incq	%rbx
	xorl	%eax, %eax
	testq	%r13, %r13
	sete	%al
	cmpq	24(%r14), %rbx
	movl	$0, %ecx
	cmoveq	%rcx, %rbx
	cmoveq	%rax, %r13
	movl	-56(%rbp), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_free_cmdid
	movq	40(%r14), %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	*-64(%rbp)
	movq	56(%r14), %rax
	leaq	(%rbx,%rbx,2), %rcx
	movq	(%rax,%rcx,4), %rdx
	movq	%rdx, -56(%rbp)
	movl	8(%rax,%rcx,4), %edi
	movl	%edi, -48(%rbp)
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	cmpq	%rax, %r13
	je	LBB0_2
LBB0_3:
	cmpq	(%r14), %rbx
	jne	LBB0_5
## %bb.4:
	xorl	%r15d, %r15d
	cmpq	8(%r14), %r13
	je	LBB0_6
LBB0_5:
	movq	40(%r14), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	$1, %r15d
	movslq	%eax, %rsi
	addq	48(%r14), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movq	%rbx, (%r14)
	movq	%r13, 8(%r14)
	movl	$1, 32(%r14)
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvme_process_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_process_cq
_nvme_process_cq:                       ; @nvme_process_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldp	x20, x22, [x0]
	ldr	x8, [x0, #56]
	mov	w9, #12
	madd	x8, x20, x9, x8
	ldr	w0, [x8, #8]
	ldr	x8, [x8]
	str	x8, [sp, #8]
	str	w0, [sp, #16]
	bl	_le16_to_cpu
	and	w8, w0, #0x1
	cmp	x22, x8
	b.ne	LBB0_3
; %bb.1:
	mov	w21, #12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	str	w0, [x19, #16]
	add	x8, x20, #1
	ldr	x9, [x19, #24]
	cmp	x22, #0
	cset	w10, eq
	cmp	x8, x9
	csel	x22, x10, x22, eq
	csinc	x20, xzr, x20, eq
	ldr	w1, [sp, #8]
	add	x2, sp, #24
	mov	x0, x19
	bl	_free_cmdid
	mov	x1, x0
	ldr	x8, [sp, #24]
	ldr	x0, [x19, #40]
	add	x2, sp, #8
	blr	x8
	ldr	x8, [x19, #56]
	madd	x8, x20, x21, x8
	ldr	w0, [x8, #8]
	ldr	x8, [x8]
	str	x8, [sp, #8]
	str	w0, [sp, #16]
	bl	_le16_to_cpu
	and	w8, w0, #0x1
	cmp	x22, x8
	b.eq	LBB0_2
LBB0_3:
	ldr	x8, [x19]
	cmp	x20, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x19, #8]
	cmp	x22, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w21, #0
	b	LBB0_7
LBB0_6:
	ldp	x9, x8, [x19, #40]
	ldr	w9, [x9]
	mov	w21, #1
	lsl	w9, w21, w9
	add	x1, x8, w9, sxtw
	mov	x0, x20
	bl	_writel
	stp	x20, x22, [x19]
	str	w21, [x19, #32]
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvme_process_cq
.subsections_via_symbols
