	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qm_poll_qp
_qm_poll_qp:                            ## @qm_poll_qp
	.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
	cmpq	$0, 48(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movslq	(%rdi), %rbx
	shlq	$2, %rbx
	addq	32(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_QM_CQE_PHASE
	cmpq	8(%r12), %rax
	jne	LBB0_4
## %bb.2:
	leaq	16(%r12), %r15
	movq	_QM_DOORBELL_CMD_CQ@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movslq	(%r14), %rax
	movslq	(%rbx), %rsi
	imulq	%rax, %rsi
	addq	40(%r12), %rsi
	movq	%r12, %rdi
	callq	*48(%r12)
	movq	%r12, %rdi
	callq	_qm_cq_head_update
	movslq	(%r12), %rcx
	movq	%rcx, %rbx
	shlq	$2, %rbx
	addq	32(%r12), %rbx
	movl	24(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	callq	_qm_db
	movq	%r15, %rdi
	callq	_atomic_dec
	movq	%rbx, %rdi
	callq	_QM_CQE_PHASE
	cmpq	8(%r12), %rax
	je	LBB0_3
LBB0_4:
	movl	(%r12), %ecx
	movl	24(%r12), %esi
	movq	_QM_DOORBELL_CMD_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qm_db                          ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_DOORBELL_CMD_CQ,4,2         ## @QM_DOORBELL_CMD_CQ
	.no_dead_strip	_qm_poll_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qm_poll_qp
_qm_poll_qp:                            ; @qm_poll_qp
	.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
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldrsw	x9, [x0]
	add	x22, x8, x9, lsl #2
	mov	x0, x22
	bl	_QM_CQE_PHASE
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x23, _QM_DOORBELL_CMD_CQ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QM_DOORBELL_CMD_CQ@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	add	x21, x20, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dma_rmb
	ldp	x9, x8, [x20, #40]
	ldrsw	x10, [x19]
	ldrsw	x11, [x22]
	madd	x1, x11, x10, x9
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_qm_cq_head_update
	ldr	x8, [x20, #32]
	ldrsw	x3, [x20]
	add	x22, x8, x3, lsl #2
	ldr	w1, [x20, #24]
	ldr	w2, [x23]
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #0
	bl	_qm_db
	mov	x0, x21
	bl	_atomic_dec
	mov	x0, x22
	bl	_QM_CQE_PHASE
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_4:
	ldr	w1, [x20, #24]
	ldr	w2, [x23]
	ldr	w3, [x20]
	mov	x0, x19
	mov	w4, #1
	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
	b	_qm_db
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_DOORBELL_CMD_CQ,4,2         ; @QM_DOORBELL_CMD_CQ
	.no_dead_strip	_qm_poll_qp
.subsections_via_symbols
