	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_qdisc_get_prio_stats
_mlxsw_sp_qdisc_get_prio_stats:         ## @mlxsw_sp_qdisc_get_prio_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movdqu	8(%rdi), %xmm0
	movdqu	(%rsi), %xmm8
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	movq	40(%r13), %rcx
	movq	24(%r13), %rdx
	movq	32(%r13), %rsi
	cmpl	$4, %r9d
	jae	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_4:
	movl	%r9d, %edi
	andl	$-4, %edi
	leaq	-4(%rdi), %rax
	movq	%rax, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %rax
	andq	$-2, %rax
	pxor	%xmm1, %xmm1
	xorl	%ebx, %ebx
	pxor	%xmm4, %xmm4
	pxor	%xmm2, %xmm2
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rbx,8), %xmm5
	paddq	%xmm1, %xmm5
	movdqu	16(%rcx,%rbx,8), %xmm1
	paddq	%xmm4, %xmm1
	movdqu	32(%rcx,%rbx,8), %xmm4
	movdqu	48(%rcx,%rbx,8), %xmm6
	movdqu	(%rsi,%rbx,8), %xmm7
	paddq	%xmm4, %xmm7
	paddq	%xmm5, %xmm7
	movdqu	16(%rsi,%rbx,8), %xmm5
	paddq	%xmm6, %xmm5
	paddq	%xmm1, %xmm5
	movdqu	32(%rsi,%rbx,8), %xmm1
	paddq	%xmm7, %xmm1
	movdqu	48(%rsi,%rbx,8), %xmm4
	paddq	%xmm5, %xmm4
	movdqu	(%rdx,%rbx,8), %xmm5
	paddq	%xmm2, %xmm5
	movdqu	16(%rdx,%rbx,8), %xmm6
	paddq	%xmm3, %xmm6
	movdqu	32(%rdx,%rbx,8), %xmm2
	paddq	%xmm5, %xmm2
	movdqu	48(%rdx,%rbx,8), %xmm3
	paddq	%xmm6, %xmm3
	addq	$8, %rbx
	addq	$-2, %rax
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqu	(%rcx,%rbx,8), %xmm5
	paddq	%xmm1, %xmm5
	movdqu	16(%rcx,%rbx,8), %xmm6
	paddq	%xmm4, %xmm6
	movdqu	(%rsi,%rbx,8), %xmm1
	paddq	%xmm5, %xmm1
	movdqu	16(%rsi,%rbx,8), %xmm4
	paddq	%xmm6, %xmm4
	movdqu	(%rdx,%rbx,8), %xmm5
	paddq	%xmm5, %xmm2
	movdqu	16(%rdx,%rbx,8), %xmm5
	paddq	%xmm5, %xmm3
LBB0_10:
	paddq	%xmm4, %xmm1
	paddq	%xmm3, %xmm2
	pshufd	$238, %xmm2, %xmm3              ## xmm3 = xmm2[2,3,2,3]
	paddq	%xmm2, %xmm3
	movq	%xmm3, %rbx
	pshufd	$238, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,2,3]
	paddq	%xmm1, %xmm2
	movq	%xmm2, %r14
	cmpq	%r9, %rdi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rcx,%rdi,8), %r14
	addq	(%rsi,%rdi,8), %r14
	addq	(%rdx,%rdi,8), %rbx
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_11
LBB0_12:
	psubq	%xmm8, %xmm0
	movdqa	%xmm0, -64(%rbp)                ## 16-byte Spill
	subq	16(%r12), %r14
	movl	8(%r15), %edi
	movq	%xmm0, %rdx
	pextrq	$1, %xmm0, %rsi
	callq	__bstats_update
	movq	(%r15), %rax
	addl	%r14d, 4(%rax)
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_cells_bytes
	movq	%r13, %rcx
	movq	%rax, %r13
	movl	(%rcx), %edi
	movq	24(%r12), %rsi
	callq	_mlxsw_sp_cells_bytes
	subl	%eax, %r13d
	movq	(%r15), %rax
	addl	%r13d, (%rax)
	movq	%rbx, 24(%r12)
	addq	%r14, 16(%r12)
	movdqu	(%r12), %xmm0
	paddq	-64(%rbp), %xmm0                ## 16-byte Folded Reload
	movdqu	%xmm0, (%r12)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm1, %xmm1
	xorl	%ebx, %ebx
	pxor	%xmm4, %xmm4
	pxor	%xmm2, %xmm2
	pxor	%xmm3, %xmm3
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_mlxsw_sp_qdisc_get_prio_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_prio_stats
_mlxsw_sp_qdisc_get_prio_stats:         ; @mlxsw_sp_qdisc_get_prio_stats
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldp	x10, x8, [x0, #8]
	ldp	x11, x9, [x1]
Lloh0:
	adrp	x12, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh1:
	ldr	x12, [x12, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	cmp	w12, #1
	b.lt	LBB0_3
; %bb.1:
	ldp	x14, x13, [x21, #32]
	ldr	x15, [x21, #24]
	cmp	w12, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x16, #0
	mov	x17, #0
	mov	x22, #0
	b	LBB0_7
LBB0_3:
	mov	x22, #0
	mov	x17, #0
	b	LBB0_9
LBB0_4:
	movi.2d	v0, #0000000000000000
	and	x16, x12, #0xfffffff8
	movi.2d	v1, #0000000000000000
	add	x17, x15, #32
	add	x0, x13, #32
	add	x1, x14, #32
	mov	x2, x16
	movi.2d	v3, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q16, q17, [x0, #-32]
	ldp	q18, q19, [x0], #64
	add.2d	v0, v16, v0
	add.2d	v1, v17, v1
	add.2d	v3, v18, v3
	add.2d	v2, v19, v2
	ldp	q16, q17, [x1, #-32]
	ldp	q18, q19, [x1], #64
	add.2d	v0, v0, v16
	add.2d	v1, v1, v17
	add.2d	v3, v3, v18
	add.2d	v2, v2, v19
	ldp	q16, q17, [x17, #-32]
	ldp	q18, q19, [x17], #64
	add.2d	v4, v16, v4
	add.2d	v5, v17, v5
	add.2d	v6, v18, v6
	add.2d	v7, v19, v7
	subs	x2, x2, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v4, v5, v4
	add.2d	v4, v6, v4
	add.2d	v4, v7, v4
	addp.2d	d4, v4
	fmov	x22, d4
	add.2d	v0, v1, v0
	add.2d	v0, v3, v0
	add.2d	v0, v2, v0
	addp.2d	d0, v0
	fmov	x17, d0
	cmp	x16, x12
	b.eq	LBB0_9
LBB0_7:
	lsl	x0, x16, #3
	add	x15, x15, x0
	add	x14, x14, x0
	add	x13, x13, x0
	sub	x12, x12, x16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x16, [x13], #8
	ldr	x0, [x14], #8
	add	x16, x16, x17
	add	x17, x16, x0
	ldr	x16, [x15], #8
	add	x22, x16, x22
	subs	x12, x12, #1
	b.ne	LBB0_8
LBB0_9:
	sub	x23, x10, x11
	sub	x24, x8, x9
	ldr	x8, [x19, #16]
	sub	x26, x17, x8
	ldr	w0, [x20, #8]
	mov	x1, x24
	mov	x2, x23
	bl	__bstats_update
	ldr	x8, [x20]
	ldr	w9, [x8, #4]
	add	w9, w9, w26
	str	w9, [x8, #4]
	ldr	w0, [x21]
	mov	x1, x22
	bl	_mlxsw_sp_cells_bytes
	mov	x25, x0
	ldr	w0, [x21]
	ldr	x1, [x19, #24]
	bl	_mlxsw_sp_cells_bytes
	ldr	x8, [x20]
	ldr	w9, [x8]
	sub	w10, w25, w0
	add	w9, w9, w10
	str	w9, [x8]
	ldr	x8, [x19, #16]
	add	x8, x8, x26
	stp	x8, x22, [x19, #16]
	ldp	x9, x8, [x19]
	add	x8, x8, x24
	add	x9, x9, x23
	stp	x9, x8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_mlxsw_sp_qdisc_get_prio_stats
.subsections_via_symbols
