	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_pool_count
_mlxsw_sp_pool_count:                   ## @mlxsw_sp_pool_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.1:
	movq	8(%rax), %r11
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
LBB0_9:
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movq	(%r11,%rdi,8), %rax
	movq	_MLXSW_REG_SBXX_DIR_INGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmovneq	%rdx, %rsi
	incq	(%rsi)
LBB0_11:
	xorl	%edi, %edi
	cmpq	$0, (%rdx)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	movq	_MLXSW_REG_SBXX_DIR_INGRESS@GOTPCREL(%rip), %r10
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	(%rax)
	addq	$2, %rdi
	cmpq	%rdi, %r9
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r11,%rdi,8), %rcx
	movq	%rsi, %rax
	cmpq	(%r10), %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	(%rax)
	movq	8(%r11,%rdi,8), %rcx
	movq	%rsi, %rax
	cmpq	(%r10), %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,8,3 ## @MLXSW_REG_SBXX_DIR_INGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No egress pools\n"

	.no_dead_strip	_mlxsw_sp_pool_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_pool_count
_mlxsw_sp_pool_count:                   ; @mlxsw_sp_pool_count
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x9, #8]
Lloh0:
	adrp	x10, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	ldr	x12, [x10]
	cmp	x11, x12
	csel	x11, x1, x2, eq
	ldr	x12, [x11]
	add	x12, x12, #1
	str	x12, [x11]
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	x8, [x2]
	cmp	x8, #0
	cset	w0, eq
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	_WARN
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,8,3 ; @MLXSW_REG_SBXX_DIR_INGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No egress pools\n"

	.no_dead_strip	_mlxsw_sp_pool_count
.subsections_via_symbols
