	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_pci_cqe_sdq_handle
_mlxsw_pci_cqe_sdq_handle:              ## @mlxsw_pci_cqe_sdq_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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_mlxsw_pci_queue_elem_info_consumer_get
	movq	%rax, %r14
	movq	8(%rax), %rdi
	callq	_mlxsw_skb_cb
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_MLXSW_PCI_WQE_SG_ENTRIES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	xorl	%r14d, %r14d
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_mlxsw_pci_wqe_frag_unmap
	incl	%r14d
	cmpl	(%r12), %r14d
	jl	LBB0_2
LBB0_3:
	xorl	%edi, %edi
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	_SKBTX_HW_TSTAMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	testl	%ecx, (%rax)
	setne	%dil
LBB0_5:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mlxsw_core_ptp_transmitted
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_7:
	testq	%r15, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
LBB0_9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
	movslq	4(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%rbx)
	cmpq	%r14, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_dbg_ratelimited
LBB0_11:
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_PCI_WQE_SG_ENTRIES,4,2   ## @MLXSW_PCI_WQE_SG_ENTRIES
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_SKBTX_HW_TSTAMP,4,2            ## @SKBTX_HW_TSTAMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Consumer counter does not match limit in SDQ\n"

	.no_dead_strip	_mlxsw_pci_cqe_sdq_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_sdq_handle
_mlxsw_pci_cqe_sdq_handle:              ; @mlxsw_pci_cqe_sdq_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x8, [x0, #8]
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	x0, x1
	bl	_spin_lock
	mov	x0, x19
	bl	_mlxsw_pci_queue_elem_info_consumer_get
	mov	x22, x0
	ldr	x0, [x0, #8]
	bl	_mlxsw_skb_cb
	ldp	w8, w28, [x0]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x24, [x22, #8]
Lloh0:
	adrp	x20, _MLXSW_PCI_WQE_SG_ENTRIES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MLXSW_PCI_WQE_SG_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w26, #0
	ldr	x27, [x22]
Lloh2:
	adrp	x21, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x21]
	mov	x0, x23
	mov	x1, x27
	mov	x2, x26
	bl	_mlxsw_pci_wqe_frag_unmap
	add	w26, w26, #1
	ldr	w8, [x20]
	cmp	w26, w8
	b.lt	LBB0_2
LBB0_3:
	cbz	w28, LBB0_6
; %bb.4:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_7
LBB0_5:
	ldr	w0, [x23]
	mov	x1, x24
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_mlxsw_core_ptp_transmitted
	b	LBB0_9
LBB0_6:
	mov	x0, x24
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh4:
	adrp	x9, _SKBTX_HW_TSTAMP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SKBTX_HW_TSTAMP@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_5
LBB0_7:
	cbz	x24, LBB0_9
; %bb.8:
	mov	x0, x24
	bl	_dev_kfree_skb_any
LBB0_9:
	str	xzr, [x22, #8]
	ldrsw	x8, [x19, #4]
	add	w9, w8, #1
	str	w9, [x19, #4]
	cmp	x8, x25
	b.eq	LBB0_11
; %bb.10:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_dev_dbg_ratelimited
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_PCI_WQE_SG_ENTRIES,4,2   ; @MLXSW_PCI_WQE_SG_ENTRIES
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_SKBTX_HW_TSTAMP,4,2            ; @SKBTX_HW_TSTAMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Consumer counter does not match limit in SDQ\n"

	.no_dead_strip	_mlxsw_pci_cqe_sdq_handle
.subsections_via_symbols
