	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_rx_process_cqe
_qede_rx_process_cqe:                   ## @qede_rx_process_cqe
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	44(%rdx), %edi
	callq	_READ_ONCE
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	40(%r12), %rdi
	callq	_qed_chain_consume
	movq	%rax, %r15
	movl	(%rax), %ebx
	movq	_ETH_RX_CQE_TYPE_SLOW_PATH@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%r14), %rax
	movl	4(%r14), %edi
	movl	(%r13), %esi
	movq	%r15, %rdx
	callq	*(%rax)
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_ETH_RX_CQE_TYPE_REGULAR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.5:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	_NUM_RX_BDS_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rdx, %r15
	andq	(%rdx), %r13
	shlq	$2, %r13
	addq	32(%rdx), %r13
	movq	%rcx, %rbx
	movl	40(%rcx), %edi
	callq	_le16_to_cpu
	movq	%rax, -64(%rbp)
	movq	8(%r15), %rax
	addq	8(%rbx), %rax
	movq	%rax, -80(%rbp)
	movq	%r12, %rcx
	movq	%rbx, %r12
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	leaq	-64(%rbp), %rax
	leaq	-80(%rbp), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r13, %r8
	movq	%r12, %r9
	pushq	%rax
	pushq	%rbx
	callq	_qede_rx_xdp
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	movl	36(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_qede_check_csum
	movq	_QEDE_CSUM_ERROR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_13
## %bb.8:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_qede_pkt_is_ip_fragmented
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	incl	28(%r15)
	jmp	LBB0_13
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %r8d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qede_rx_process_tpa_cqe        ## TAILCALL
LBB0_12:
	incl	24(%r15)
LBB0_13:
	movq	-64(%rbp), %rcx
	movq	-80(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_qede_rx_build_skb
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%rax, %r13
	cmpq	$2, 16(%r12)
	jb	LBB0_17
## %bb.15:
	movq	-64(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_qede_rx_build_jumbo
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_qede_recycle_rx_bd_ring
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_2
LBB0_17:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_eth_type_trans
	movl	%eax, (%r13)
	movl	28(%r12), %edx
	movl	32(%r12), %esi
	movq	%r13, %rdi
	callq	_qede_get_rxhash
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_qede_set_skb_csum
	movl	16(%r15), %esi
	movq	%r13, %rdi
	callq	_skb_record_rx_queue
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_qede_ptp_record_rx_ts
	movl	24(%r12), %edi
	callq	_le16_to_cpu
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%rax, %r8
	callq	_qede_skb_receive
	movl	$1, %eax
	jmp	LBB0_3
LBB0_18:
	incl	20(%r15)
	movq	16(%r12), %rsi
	movq	%r15, %rdi
	callq	_qede_recycle_rx_bd_ring
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_RX_CQE_TYPE_SLOW_PATH,4,2  ## @ETH_RX_CQE_TYPE_SLOW_PATH
	.comm	_ETH_RX_CQE_TYPE_REGULAR,4,2    ## @ETH_RX_CQE_TYPE_REGULAR
	.comm	_NUM_RX_BDS_MAX,8,3             ## @NUM_RX_BDS_MAX
	.comm	_QEDE_CSUM_ERROR,8,3            ## @QEDE_CSUM_ERROR
	.no_dead_strip	_qede_rx_process_cqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_rx_process_cqe
_qede_rx_process_cqe:                   ; @qede_rx_process_cqe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x2, #44]
	bl	_READ_ONCE
	mov	x23, x0
	add	x0, x19, #40
	bl	_qed_chain_consume
	mov	x22, x0
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _ETH_RX_CQE_TYPE_SLOW_PATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_RX_CQE_TYPE_SLOW_PATH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x21, #4]
	ldr	w1, [x20]
	mov	x2, x22
	blr	x8
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
Lloh3:
	adrp	x8, _ETH_RX_CQE_TYPE_REGULAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_RX_CQE_TYPE_REGULAR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_10
; %bb.5:
Lloh6:
	adrp	x8, _NUM_RX_BDS_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUM_RX_BDS_MAX@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh8:
	ldr	x8, [x8]
	and	x8, x8, x9
	ldr	x9, [x19, #32]
	add	x24, x9, x8, lsl #2
	ldr	w0, [x22, #40]
	bl	_le16_to_cpu
	ldr	x8, [x22, #8]
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	stp	x8, x0, [sp]
	cbz	x23, LBB0_7
; %bb.6:
	mov	x6, sp
	add	x7, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	mov	x4, x24
	mov	x5, x22
	bl	_qede_rx_xdp
	cbz	w0, LBB0_3
LBB0_7:
	ldr	w0, [x22, #36]
	bl	_le16_to_cpu
	mov	x25, x0
	bl	_qede_check_csum
	mov	x23, x0
Lloh9:
	adrp	x8, _QEDE_CSUM_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QEDE_CSUM_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.8:
	mov	x0, x22
	mov	x1, x25
	bl	_qede_pkt_is_ip_fragmented
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_qede_rx_process_tpa_cqe
LBB0_11:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_12:
	ldp	x4, x3, [sp]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_qede_rx_build_skb
	cbz	x0, LBB0_17
; %bb.13:
	mov	x24, x0
	ldr	x8, [x22, #16]
	cmp	x8, #2
	b.lo	LBB0_16
; %bb.14:
	ldr	x4, [sp, #8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	mov	x3, x22
	bl	_qede_rx_build_jumbo
	mov	x25, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x25
	bl	_qede_recycle_rx_bd_ring
	mov	x0, x24
	bl	_dev_kfree_skb_any
	b	LBB0_2
LBB0_16:
	ldr	w1, [x21]
	mov	x0, x24
	bl	_eth_type_trans
	str	w0, [x24]
	ldp	w2, w1, [x22, #28]
	mov	x0, x24
	bl	_qede_get_rxhash
	mov	x0, x24
	mov	x1, x23
	bl	_qede_set_skb_csum
	ldr	w1, [x19, #16]
	mov	x0, x24
	bl	_skb_record_rx_queue
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	bl	_qede_ptp_record_rx_ts
	ldr	w0, [x22, #24]
	bl	_le16_to_cpu
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x24
	bl	_qede_skb_receive
	mov	w0, #1
	b	LBB0_3
LBB0_17:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	ldr	x1, [x22, #16]
	mov	x0, x19
	bl	_qede_recycle_rx_bd_ring
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_RX_CQE_TYPE_SLOW_PATH,4,2  ; @ETH_RX_CQE_TYPE_SLOW_PATH
	.comm	_ETH_RX_CQE_TYPE_REGULAR,4,2    ; @ETH_RX_CQE_TYPE_REGULAR
	.comm	_NUM_RX_BDS_MAX,8,3             ; @NUM_RX_BDS_MAX
	.comm	_QEDE_CSUM_ERROR,8,3            ; @QEDE_CSUM_ERROR
	.no_dead_strip	_qede_rx_process_cqe
.subsections_via_symbols
