	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_gsi_poll_cq               ## -- Begin function qedr_gsi_poll_cq
	.p2align	4, 0x90
_qedr_gsi_poll_cq:                      ## @qedr_gsi_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_get_qedr_dev
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_get_qedr_cq
	movq	(%r13), %r15
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movl	%r14d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	leaq	24(%r15), %r14
	xorl	%ebx, %ebx
	movq	%r12, %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_qedr_inc_sw_cons
	incq	%rbx
	addq	$56, %r13
	cmpq	%rbx, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	cmpq	32(%r15), %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r15, 32(%r13)
	movq	24(%r15), %rax
	movq	48(%r15), %rcx
	shlq	$5, %rax
	movl	24(%rcx,%rax), %edx
	movl	%edx, 28(%r13)
	movq	_IB_WC_RECV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%r13)
	movq	$0, 48(%r13)
	cmpq	$0, 16(%rcx,%rax)
	movq	_IB_WC_GENERAL_ERR@GOTPCREL(%rip), %rdx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdx), %rdx
	movq	%rdx, 16(%r13)
	movq	8(%rcx,%rax), %rdx
	movl	(%rdx), %edx
	movl	%edx, 44(%r13)
	movq	_IB_WC_IP_CSUM_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_IB_WC_GRH@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	orl	%edx, (%r13)
	movl	40(%r13), %edi
	movl	4(%rcx,%rax), %esi
	callq	_ether_addr_copy
	movl	(%r13), %eax
	movq	_IB_WC_WITH_SMAC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13)
	movq	24(%r15), %rcx
	movq	48(%r15), %rdx
	shlq	$5, %rcx
	movl	(%rdx,%rcx), %edx
	movq	_VLAN_VID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edx, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_IB_WC_WITH_VLAN@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
	movl	%ecx, 4(%r13)
	movq	_VLAN_PRIO_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %edx
	movl	%edx, 8(%r13)
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_11
	jmp	LBB0_16
LBB0_9:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_16
LBB0_11:
	leaq	8(%r15), %r14
	movl	%ebx, %eax
	imulq	$56, %rax, %rax
	addq	%rax, %r12
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r15, 32(%r12)
	movq	8(%r15), %rax
	movq	40(%r15), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 28(%r12)
	movq	_IB_WC_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	(%r13), %rax
	movq	%rax, 16(%r12)
	movq	%r14, %rdi
	callq	_qedr_inc_sw_cons
	incl	%ebx
	addq	$56, %r12
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_12
LBB0_14:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
LBB0_15:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_16:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_QEDR_MSG_GSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r15), %r9
	movl	(%r15), %eax
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	pushq	%rax
	pushq	16(%r15)
	pushq	8(%r15)
	pushq	32(%r15)
	callq	_DP_DEBUG
	addq	$32, %rsp
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_WC_RECV,4,2                 ## @IB_WC_RECV
	.comm	_IB_WC_GENERAL_ERR,8,3          ## @IB_WC_GENERAL_ERR
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.comm	_IB_WC_GRH,4,2                  ## @IB_WC_GRH
	.comm	_IB_WC_IP_CSUM_OK,4,2           ## @IB_WC_IP_CSUM_OK
	.comm	_IB_WC_WITH_SMAC,4,2            ## @IB_WC_WITH_SMAC
	.comm	_VLAN_VID_MASK,4,2              ## @VLAN_VID_MASK
	.comm	_IB_WC_WITH_VLAN,4,2            ## @IB_WC_WITH_VLAN
	.comm	_VLAN_PRIO_MASK,4,2             ## @VLAN_PRIO_MASK
	.comm	_VLAN_PRIO_SHIFT,4,2            ## @VLAN_PRIO_SHIFT
	.comm	_IB_WC_SEND,4,2                 ## @IB_WC_SEND
	.comm	_QEDR_MSG_GSI,4,2               ## @QEDR_MSG_GSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gsi poll_cq: requested entries=%d, actual=%d, qp->rq.cons=%d, qp->rq.gsi_cons=%x, qp->sq.cons=%d, qp->sq.gsi_cons=%d, qp_num=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_gsi_poll_cq               ; -- Begin function qedr_gsi_poll_cq
	.p2align	2
_qedr_gsi_poll_cq:                      ; @qedr_gsi_poll_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_get_qedr_dev
	mov	x25, x0
	mov	x0, x21
	bl	_get_qedr_cq
	mov	x27, x0
	ldr	x26, [x25]
	bl	_spin_lock_irqsave
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.1:
	stp	x27, x25, [sp, #24]             ; 16-byte Folded Spill
	mov	x27, #0
	mov	w21, #0
	add	x24, x26, #24
	mov	w8, #56
	str	w22, [sp, #44]                  ; 4-byte Folded Spill
	umull	x28, w22, w8
Lloh0:
	adrp	x22, _IB_WC_IP_CSUM_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IB_WC_IP_CSUM_OK@GOTPAGEOFF]
Lloh2:
	adrp	x19, _IB_WC_WITH_SMAC@GOTPAGE
Lloh3:
	ldr	x19, [x19, _IB_WC_WITH_SMAC@GOTPAGEOFF]
Lloh4:
	adrp	x20, _VLAN_VID_MASK@GOTPAGE
Lloh5:
	ldr	x20, [x20, _VLAN_VID_MASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_qedr_inc_sw_cons
	add	w21, w21, #1
	add	x27, x27, #56
	cmp	x28, x27
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x26, #24]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x23, x27
	mov	x0, x25
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	str	x26, [x25, #32]
	ldr	x8, [x26, #48]
	ldr	x9, [x26, #24]
	add	x8, x8, x9, lsl #5
	ldr	w9, [x8, #24]
	str	w9, [x25, #28]
Lloh6:
	adrp	x9, _IB_WC_RECV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_WC_RECV@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x25, #24]
	str	xzr, [x25, #48]
	ldp	x10, x9, [x8, #8]
	cmp	x9, #0
Lloh9:
	adrp	x9, _IB_WC_GENERAL_ERR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_WC_GENERAL_ERR@GOTPAGEOFF]
Lloh11:
	adrp	x11, _IB_WC_SUCCESS@GOTPAGE
Lloh12:
	ldr	x11, [x11, _IB_WC_SUCCESS@GOTPAGEOFF]
	csel	x9, x11, x9, eq
	ldr	x9, [x9]
	str	x9, [x25, #16]
	ldr	w9, [x10]
	str	w9, [x25, #44]
Lloh13:
	adrp	x9, _IB_WC_GRH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IB_WC_GRH@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [x22]
	orr	w9, w10, w9
	ldr	w10, [x25]
	orr	w9, w9, w10
	str	w9, [x25]
	ldr	w0, [x25, #40]
	ldr	w1, [x8, #4]
	bl	_ether_addr_copy
	ldr	w8, [x19]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
	ldr	x9, [x26, #48]
	ldr	x10, [x26, #24]
	lsl	x10, x10, #5
	ldr	w9, [x9, x10]
	ldr	w10, [x20]
	ands	w10, w10, w9
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x11, _IB_WC_WITH_VLAN@GOTPAGE
Lloh17:
	ldr	x11, [x11, _IB_WC_WITH_VLAN@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	orr	w8, w11, w8
	stp	w8, w10, [x25]
Lloh19:
	adrp	x8, _VLAN_PRIO_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VLAN_PRIO_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh22:
	adrp	x9, _VLAN_PRIO_SHIFT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x25, #8]
	b	LBB0_2
LBB0_6:
	mov	w21, #0
	cmp	w21, w22
	b.lt	LBB0_9
	b	LBB0_13
LBB0_7:
	ldr	w22, [sp, #44]                  ; 4-byte Folded Reload
	mov	x21, x22
	ldp	x27, x25, [sp, #24]             ; 16-byte Folded Reload
	b	LBB0_13
LBB0_8:
	ldr	w22, [sp, #44]                  ; 4-byte Folded Reload
	ldp	x27, x25, [sp, #24]             ; 16-byte Folded Reload
	cmp	w21, w22
	b.ge	LBB0_13
LBB0_9:
	add	x24, x26, #8
	mov	w8, #56
	umaddl	x23, w21, w8, x23
Lloh25:
	adrp	x19, _IB_WC_SEND@GOTPAGE
Lloh26:
	ldr	x19, [x19, _IB_WC_SEND@GOTPAGEOFF]
Lloh27:
	adrp	x20, _IB_WC_SUCCESS@GOTPAGE
Lloh28:
	ldr	x20, [x20, _IB_WC_SUCCESS@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x26, #8]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	x8, [x26, #40]
	ldr	x9, [x26, #8]
	ldr	w8, [x8, x9, lsl #2]
	str	x26, [x23, #32]
	str	w8, [x23, #28]
	ldr	w8, [x19]
	str	w8, [x23, #24]
	ldr	x8, [x20]
	str	x8, [x23, #16]
	mov	x0, x24
	bl	_qedr_inc_sw_cons
	add	w21, w21, #1
	add	x23, x23, #56
	cmp	w21, w22
	b.lt	LBB0_10
; %bb.12:
	mov	x21, x22
LBB0_13:
	mov	x0, x27
	bl	_spin_unlock_irqrestore
Lloh29:
	adrp	x8, _QEDR_MSG_GSI@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QEDR_MSG_GSI@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldp	x5, x6, [x26, #24]
	ldp	x7, x8, [x26, #8]
	ldr	w9, [x26]
	str	w9, [sp, #8]
	str	x8, [sp]
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x25
	mov	x3, x22
	mov	x4, x21
	bl	_DP_DEBUG
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_WC_RECV,4,2                 ; @IB_WC_RECV
	.comm	_IB_WC_GENERAL_ERR,8,3          ; @IB_WC_GENERAL_ERR
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.comm	_IB_WC_GRH,4,2                  ; @IB_WC_GRH
	.comm	_IB_WC_IP_CSUM_OK,4,2           ; @IB_WC_IP_CSUM_OK
	.comm	_IB_WC_WITH_SMAC,4,2            ; @IB_WC_WITH_SMAC
	.comm	_VLAN_VID_MASK,4,2              ; @VLAN_VID_MASK
	.comm	_IB_WC_WITH_VLAN,4,2            ; @IB_WC_WITH_VLAN
	.comm	_VLAN_PRIO_MASK,4,2             ; @VLAN_PRIO_MASK
	.comm	_VLAN_PRIO_SHIFT,4,2            ; @VLAN_PRIO_SHIFT
	.comm	_IB_WC_SEND,4,2                 ; @IB_WC_SEND
	.comm	_QEDR_MSG_GSI,4,2               ; @QEDR_MSG_GSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gsi poll_cq: requested entries=%d, actual=%d, qp->rq.cons=%d, qp->rq.gsi_cons=%x, qp->sq.cons=%d, qp->sq.gsi_cons=%d, qp_num=%d\n"

.subsections_via_symbols
