	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_poll_cq                   ## -- Begin function qedr_poll_cq
	.p2align	4, 0x90
_qedr_poll_cq:                          ## @qedr_poll_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_get_qedr_dev
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_get_qedr_cq
	movq	%rax, %r15
	movl	$0, -48(%rbp)
	cmpq	$0, 48(%rax)
	je	LBB0_2
## %bb.1:
	movl	40(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_DP_ERR
	jmp	LBB0_22
LBB0_2:
	movq	(%r15), %rdx
	movq	_QEDR_CQ_TYPE_GSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qedr_gsi_poll_cq               ## TAILCALL
LBB0_4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	leaq	8(%rax), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	32(%r15), %rbx
	addq	$24, %r12
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_qed_chain_get_cons_idx_u32
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.5:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_9 Depth=1
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	callq	_qedr_poll_cq_resp
	movl	%r13d, %r12d
	movl	%eax, %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	addl	%r13d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_get_cqe
	movq	%rax, %rbx
	movslq	%r13d, %rax
	leaq	(%r14,%rax,8), %r14
	subl	%r13d, %r12d
	movl	%r12d, %r13d
	je	LBB0_19
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_is_valid_cqe
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	callq	_rmb
	movq	%rbx, %rdi
	callq	_cqe_get_qp
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r15
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_cqe_get_type
	cmpl	$128, %eax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$129, %eax
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$130, %eax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	callq	_qedr_poll_cq_req
	movl	%r13d, %r12d
	movl	%eax, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rdi, %r15
	movq	%rbx, %rdx
	leaq	-48(%rbp), %rcx
	callq	_try_consume_req_cqe
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	callq	_qedr_poll_cq_resp_srq
	movl	%r13d, %r12d
	movl	%eax, %r13d
	movl	$1, -48(%rbp)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_cqe_get_type
	movl	%r13d, %r12d
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DP_ERR
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_17:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_WARN
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_19:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_qed_chain_get_cons_idx_u32
	subq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	addq	16(%r15), %rax
	movq	%rax, 16(%r15)
	cmpl	$0, -48(%rbp)
	je	LBB0_21
## %bb.20:
	decq	%rax
	movl	12(%r15), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_doorbell_cq
LBB0_21:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_22:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: poll was invoked after destroy for cq %p (icid=%d)\n"

	.comm	_QEDR_CQ_TYPE_GSI,8,3           ## @QEDR_CQ_TYPE_GSI
L_.str.1:                               ## @.str.1
	.asciz	"Error: CQE QP pointer is NULL. CQE=%p\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error: invalid CQE type = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_poll_cq                   ; -- Begin function qedr_poll_cq
	.p2align	2
_qedr_poll_cq:                          ; @qedr_poll_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_get_qedr_dev
	mov	x24, x0
	mov	x0, x20
	bl	_get_qedr_cq
	mov	x19, x0
	str	wzr, [sp, #28]
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #40]
	stp	x19, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_DP_ERR
	mov	w21, #0
	b	LBB0_19
LBB0_2:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _QEDR_CQ_TYPE_GSI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QEDR_CQ_TYPE_GSI@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_qedr_gsi_poll_cq
LBB0_4:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x28, [x19, #32]
	add	x25, x19, #24
	mov	x0, x25
	bl	_qed_chain_get_cons_idx_u32
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	w21, #0
	cbnz	w23, LBB0_7
	b	LBB0_16
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x6, sp, #28
	mov	x0, x24
	mov	x1, x27
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	mov	x5, x28
	bl	_qedr_poll_cq_resp
	mov	x26, x0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w23, w23, w26
	add	x22, x22, w26, sxtw #3
	add	w21, w26, w21
	mov	x0, x19
	bl	_get_cqe
	mov	x28, x0
	cbz	w23, LBB0_16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x28
	bl	_is_valid_cqe
	cbz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_rmb
	mov	x0, x28
	bl	_cqe_get_qp
	cbz	x0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x27, x0
	str	x0, [x22]
	mov	x0, x28
	bl	_cqe_get_type
	cmp	w0, #128
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #130
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	x1, x27
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	mov	x5, x28
	bl	_qedr_poll_cq_req
	mov	x26, x0
	add	x3, sp, #28
	mov	x0, x19
	mov	x1, x27
	mov	x2, x28
	bl	_try_consume_req_cqe
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	x1, x27
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	mov	x5, x28
	bl	_qedr_poll_cq_resp_srq
	mov	x26, x0
	mov	w8, #1
	str	w8, [sp, #28]
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x28
	bl	_cqe_get_type
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x24
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP_ERR
	mov	w26, #0
	b	LBB0_6
LBB0_15:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x28
	bl	_WARN
LBB0_16:
	mov	x0, x25
	bl	_qed_chain_get_cons_idx_u32
	ldr	x8, [x19, #16]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	sub	x9, x0, x9
	add	x8, x8, x9
	str	x8, [x19, #16]
	ldr	w9, [sp, #28]
	cbz	w9, LBB0_18
; %bb.17:
	sub	x1, x8, #1
	ldr	w2, [x19, #12]
	mov	x0, x19
	bl	_doorbell_cq
LBB0_18:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: poll was invoked after destroy for cq %p (icid=%d)\n"

	.comm	_QEDR_CQ_TYPE_GSI,8,3           ; @QEDR_CQ_TYPE_GSI
l_.str.1:                               ; @.str.1
	.asciz	"Error: CQE QP pointer is NULL. CQE=%p\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error: invalid CQE type = %d\n"

.subsections_via_symbols
