	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_nexthop_neigh_init
_mlxsw_sp_nexthop_neigh_init:           ## @mlxsw_sp_nexthop_neigh_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rsi), %rax
	xorl	%r14d, %r14d
	cmpl	$0, 4(%rax)
	je	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, 8(%rsi)
	jne	LBB0_11
## %bb.2:
	movq	%rdi, %r15
	movl	(%rax), %edi
	leaq	24(%rbx), %r13
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_neigh_lookup
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_neigh_entry_lookup
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	leaq	12(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	16(%r13), %rdi
	movq	(%r15), %rsi
	callq	_list_add_tail
LBB0_10:
	movq	%r13, 8(%rbx)
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_read_lock_bh
	movl	(%r12), %r13d
	cmpl	$0, 4(%r12)
	setne	%r12b
	movq	%r15, %rdi
	callq	_read_unlock_bh
	movq	_NUD_VALID@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	sete	%al
	orb	%r12b, %al
	movzbl	%al, %esi
	movq	%rbx, %rdi
	callq	___mlxsw_sp_nexthop_neigh_update
	jmp	LBB0_11
LBB0_3:
	movq	16(%rbx), %rax
	movq	32(%rbx), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_neigh_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_neigh_entry_create
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_neigh_release
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_neigh_event_send
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NUD_VALID,4,2                  ## @NUD_VALID
	.no_dead_strip	_mlxsw_sp_nexthop_neigh_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_nexthop_neigh_init
_mlxsw_sp_nexthop_neigh_init:           ; @mlxsw_sp_nexthop_neigh_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x1, #32]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_7
; %bb.1:
	mov	x19, x1
	ldr	x9, [x1, #8]
	cbnz	x9, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	w0, [x8]
	add	x22, x19, #24
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x1, x22
	bl	_neigh_lookup
	mov	x21, x0
	cbz	x0, LBB0_9
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_mlxsw_sp_neigh_entry_lookup
	mov	x22, x0
	cbz	x0, LBB0_11
LBB0_4:
	add	x23, x22, #12
	mov	x0, x23
	bl	_list_empty
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, x22, #16
	ldr	x1, [x20]
	bl	_list_add_tail
LBB0_6:
	str	x22, [x19, #8]
	mov	x0, x19
	mov	x1, x23
	bl	_list_add_tail
	add	x20, x21, #8
	mov	x0, x20
	bl	_read_lock_bh
	ldp	w22, w21, [x21]
	mov	x0, x20
	bl	_read_unlock_bh
Lloh0:
	adrp	x8, _NUD_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUD_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	ccmp	w21, #0, #0, ne
	cset	w1, ne
	mov	x0, x19
	bl	___mlxsw_sp_nexthop_neigh_update
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x1, x22
	bl	_neigh_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	bl	_mlxsw_sp_neigh_entry_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.12:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
	mov	x0, x21
	bl	_neigh_release
	b	LBB0_8
LBB0_13:
	mov	x0, x21
	mov	x1, #0
	bl	_neigh_event_send
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NUD_VALID,4,2                  ; @NUD_VALID
	.no_dead_strip	_mlxsw_sp_nexthop_neigh_init
.subsections_via_symbols
