	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_pci_cqe_rdq_handle
_mlxsw_pci_cqe_rdq_handle:              ## @mlxsw_pci_cqe_rdq_handle
	.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	%r8, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_mlxsw_pci_queue_elem_info_consumer_get
	movq	8(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.1:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rsi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_mlxsw_pci_wqe_frag_unmap
	movslq	8(%r12), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 8(%r12)
	cmpq	%r15, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg_ratelimited
LBB0_3:
	movq	%rbx, %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_mlxsw_pci_cqe_lag_get
	testq	%rax, %rax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_mlxsw_pci_cqe_lag_id_get
	movl	%eax, -52(%rbp)
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_mlxsw_pci_cqe_lag_subport_get
	movl	%eax, -48(%rbp)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_5:
	movq	%r13, %rdi
	callq	_mlxsw_pci_cqe_system_port_get
	movl	%eax, -56(%rbp)
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, -64(%rbp)
	movq	%r13, %rdi
	callq	_mlxsw_pci_cqe_trap_id_get
	movl	%eax, -60(%rbp)
	movq	%r13, %rdi
	callq	_mlxsw_pci_cqe_byte_count_get
	movq	%rax, %r15
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_mlxsw_pci_cqe_crc_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	subq	%rax, %r15
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_skb_put
	movl	(%r14), %edi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_mlxsw_core_skb_receive
	movl	4(%r12), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlxsw_pci_rdq_skb_alloc
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_dbg_ratelimited
LBB0_10:
	incl	(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_pci_queue_doorbell_producer_ring
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Consumer counter does not match limit in RDQ\n"

	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
L_.str.1:                               ## @.str.1
	.asciz	"Failed to alloc skb for RDQ\n"

	.no_dead_strip	_mlxsw_pci_cqe_rdq_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_pci_cqe_rdq_handle
_mlxsw_pci_cqe_rdq_handle:              ; @mlxsw_pci_cqe_rdq_handle
	.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	x25, x4
	mov	x26, x3
	mov	x27, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_mlxsw_pci_queue_elem_info_consumer_get
	ldr	x23, [x0, #8]
	cbz	x23, LBB0_9
; %bb.1:
	mov	x22, x0
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_mlxsw_pci_wqe_frag_unmap
	ldrsw	x8, [x19, #8]
	add	w9, w8, #1
	str	w9, [x19, #8]
	cmp	x8, x27
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg_ratelimited
LBB0_3:
	mov	x0, x26
	mov	x1, x25
	bl	_mlxsw_pci_cqe_lag_get
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x26
	mov	x1, x25
	bl	_mlxsw_pci_cqe_lag_id_get
	str	w0, [sp, #20]
	mov	x0, x26
	mov	x1, x25
	bl	_mlxsw_pci_cqe_lag_subport_get
	str	w0, [sp, #24]
	mov	w8, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x25
	bl	_mlxsw_pci_cqe_system_port_get
	mov	w8, #0
	str	w0, [sp, #16]
LBB0_6:
	str	w8, [sp, #8]
	mov	x0, x25
	bl	_mlxsw_pci_cqe_trap_id_get
	str	w0, [sp, #12]
	mov	x0, x25
	bl	_mlxsw_pci_cqe_byte_count_get
	mov	x27, x0
	mov	x0, x26
	mov	x1, x25
	bl	_mlxsw_pci_cqe_crc_get
Lloh5:
	adrp	x8, _ETH_FCS_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	sub	x1, x27, x8
	mov	x0, x23
	bl	_skb_put
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	x1, x23
	bl	_mlxsw_core_skb_receive
	ldr	w2, [x19, #4]
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	mov	x1, x22
	bl	_mlxsw_pci_rdq_skb_alloc
	cbz	w0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg_ratelimited
LBB0_8:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_pci_queue_doorbell_producer_ring
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Consumer counter does not match limit in RDQ\n"

	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
l_.str.1:                               ; @.str.1
	.asciz	"Failed to alloc skb for RDQ\n"

	.no_dead_strip	_mlxsw_pci_cqe_rdq_handle
.subsections_via_symbols
