	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_qdisc_get_red_stats
_mlxsw_sp_qdisc_get_red_stats:          ## @mlxsw_sp_qdisc_get_red_stats
	.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, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %r13
	addq	$8, %rdi
	movl	8(%rsi), %esi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_mlxsw_sp_qdisc_bstats_per_priority_get
	movq	-56(%rbp), %rsi
	subq	24(%rbx), %rsi
	movq	%rsi, -56(%rbp)
	movq	-48(%rbp), %rdx
	subq	16(%rbx), %rdx
	movq	%rdx, -48(%rbp)
	movq	24(%r15), %r8
	movq	8(%r15), %rcx
	movq	16(%r15), %rax
	movq	(%rcx,%r13,8), %r12
	movl	8(%r14), %edi
	movq	(%rax,%r13,8), %xmm0            ## xmm0 = mem[0],zero
	movq	32(%r15), %xmm1                 ## xmm1 = mem[0],zero
	punpcklqdq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0]
	movq	(%r8,%r13,8), %xmm0             ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm2               ## xmm2 = xmm0[0,1,0,1]
	paddq	%xmm1, %xmm2
	movdqu	32(%rbx), %xmm0
	psubq	%xmm0, %xmm2
	movdqa	%xmm2, -80(%rbp)                ## 16-byte Spill
	callq	__bstats_update
	movq	(%r14), %rax
	movdqa	-80(%rbp), %xmm0                ## 16-byte Reload
	movd	%xmm0, %ecx
	addl	%ecx, 8(%rax)
	pextrd	$2, %xmm0, %ecx
	addl	%ecx, 4(%rax)
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_mlxsw_sp_cells_bytes
	movq	%rax, %r13
	movl	(%r15), %edi
	movq	48(%rbx), %rsi
	callq	_mlxsw_sp_cells_bytes
	subl	%eax, %r13d
	movq	(%r14), %rax
	addl	%r13d, (%rax)
	movq	%r12, 48(%rbx)
	movdqu	16(%rbx), %xmm0
	movdqu	32(%rbx), %xmm1
	paddq	-80(%rbp), %xmm1                ## 16-byte Folded Reload
	movdqu	%xmm1, 32(%rbx)
	movq	-56(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movq	-48(%rbp), %xmm2                ## xmm2 = mem[0],zero
	punpcklqdq	%xmm1, %xmm2            ## xmm2 = xmm2[0],xmm1[0]
	paddq	%xmm0, %xmm2
	movdqu	%xmm2, 16(%rbx)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxsw_sp_qdisc_get_red_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_qdisc_get_red_stats
_mlxsw_sp_qdisc_get_red_stats:          ; @mlxsw_sp_qdisc_get_red_stats
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x1]
	add	x0, x0, #8
	ldr	w1, [x1, #8]
	mov	x2, sp
	add	x3, sp, #8
	bl	_mlxsw_sp_qdisc_bstats_per_priority_get
	ldr	x8, [sp, #8]
	ldp	x10, x9, [x19, #16]
	sub	x1, x8, x9
	ldr	x8, [sp]
	sub	x2, x8, x10
	stp	x2, x1, [sp]
	lsl	x8, x22, #3
	ldp	x9, x10, [x21, #24]
	ldr	x9, [x9, x8]
	ldp	x12, x11, [x21, #8]
	ldr	x11, [x11, x8]
	ldp	x13, x14, [x19, #32]
	add	x10, x10, x9
	sub	x24, x10, x13
	add	x9, x11, x9
	sub	x25, x9, x14
	ldr	x22, [x12, x8]
	ldr	w0, [x20, #8]
	bl	__bstats_update
	ldr	x8, [x20]
	ldp	w10, w9, [x8, #4]
	add	w9, w9, w24
	add	w10, w10, w25
	stp	w10, w9, [x8, #4]
	ldr	w0, [x21]
	mov	x1, x22
	bl	_mlxsw_sp_cells_bytes
	mov	x23, x0
	ldr	w0, [x21]
	ldr	x1, [x19, #48]
	bl	_mlxsw_sp_cells_bytes
	ldr	x8, [x20]
	ldr	w9, [x8]
	sub	w10, w23, w0
	add	w9, w9, w10
	str	w9, [x8]
	ldp	x9, x8, [x19, #32]
	add	x8, x8, x25
	add	x9, x9, x24
	stp	x8, x22, [x19, #40]
	str	x9, [x19, #32]
	ldr	x8, [sp, #8]
	ldp	x10, x9, [x19, #16]
	add	x8, x9, x8
	ldr	x9, [sp]
	add	x9, x10, x9
	stp	x9, x8, [x19, #16]
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxsw_sp_qdisc_get_red_stats
.subsections_via_symbols
