	.file	"extr_spectrum_buffers.c_mlxsw_sp_pool_count.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No egress pools\n"
	.text
	.p2align 4
	.type	mlxsw_sp_pool_count, @function
mlxsw_sp_pool_count:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rcx, QWORD PTR [rdi]
	mov	eax, DWORD PTR [rcx]
	test	eax, eax
	jle	.L2
	mov	rcx, QWORD PTR 8[rcx]
	lea	edi, -1[rax]
	lea	rax, 8[rcx]
	lea	rdi, [rax+rdi*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	QWORD PTR [rdx], 1
	mov	rcx, rax
	cmp	rdi, rax
	je	.L2
.L8:
	add	rax, 8
.L5:
	mov	r8, QWORD PTR MLXSW_REG_SBXX_DIR_INGRESS[rip]
	cmp	QWORD PTR [rcx], r8
	jne	.L3
	add	QWORD PTR [rsi], 1
	mov	rcx, rax
	cmp	rdi, rax
	jne	.L8
.L2:
	xor	edi, edi
	cmp	QWORD PTR [rdx], 0
	lea	rsi, .LC0[rip]
	sete	dil
	jmp	WARN@PLT
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_pool_count, .-mlxsw_sp_pool_count
	.comm	MLXSW_REG_SBXX_DIR_INGRESS,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_spectrum_buffers.c_mlxsw_sp_pool_count.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No egress pools\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_pool_count, %function
mlxsw_sp_pool_count:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	ldr	lr, [r3]
	cmp	lr, #0
	ble	.L2
	ldr	r3, [r3, #4]
	ldr	r4, .L9
	sub	r3, r3, #4
	add	lr, r3, lr, lsl #2
.L5:
	ldr	r0, [r4]
	ldr	ip, [r3, #4]!
	cmp	ip, r0
	ldreq	r0, [r1]
	ldrne	r0, [r2]
	addeq	r0, r0, #1
	addne	r0, r0, #1
	streq	r0, [r1]
	strne	r0, [r2]
	cmp	lr, r3
	bne	.L5
.L2:
	pop	{r4, lr}
	ldr	r0, [r2]
	ldr	r1, .L9+4
	clz	r0, r0
	lsr	r0, r0, #5
	b	WARN
.L10:
	.align	2
.L9:
	.word	MLXSW_REG_SBXX_DIR_INGRESS
	.word	.LC0
	.size	mlxsw_sp_pool_count, .-mlxsw_sp_pool_count
	.comm	MLXSW_REG_SBXX_DIR_INGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
