	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_nexthop_indexes       ## -- Begin function mlxsw_sp_nexthop_indexes
	.p2align	4, 0x90
_mlxsw_sp_nexthop_indexes:              ## @mlxsw_sp_nexthop_indexes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	16(%rdi), %r9
	cmpl	$0, 24(%r9)
	je	LBB0_2
## %bb.3:
	movl	20(%r9), %eax
	movl	%eax, (%rsi)
	movl	16(%r9), %eax
	movl	%eax, (%rdx)
	movl	(%r9), %edx
	xorl	%eax, %eax
	movl	$0, %r8d
	testl	%edx, %edx
	jle	LBB0_9
## %bb.4:
	movq	8(%r9), %rsi
	xorl	%r8d, %r8d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$24, %rsi
	decq	%rdx
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, %rsi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%rsi)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	(%rsi), %r8d
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_9:
	movl	%r8d, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_nexthop_indexes       ; -- Begin function mlxsw_sp_nexthop_indexes
	.p2align	2
_mlxsw_sp_nexthop_indexes:              ; @mlxsw_sp_nexthop_indexes
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	x10, [x0, #16]
	ldr	w8, [x10, #24]
	cbz	w8, LBB0_8
; %bb.2:
	ldr	w8, [x10, #20]
	str	w8, [x1]
	ldr	w8, [x10, #16]
	str	w8, [x2]
	ldr	w9, [x10]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w8, #0
	ldr	x10, [x10, #8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #24
	subs	x9, x9, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x0
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x10, #8]
	cbz	x11, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x10]
	add	w8, w8, w11
	b	LBB0_4
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_9:
	mov	w8, #0
LBB0_10:
	mov	w0, #0
	str	w8, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
