	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_tun_write_neigh
_nfp_tun_write_neigh:                   ## @nfp_tun_write_neigh
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	callq	_nfp_flower_get_port_id_from_netdev
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %r13d
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	4(%r14), %esi
	movl	%esi, -64(%rbp)
	movq	_NUD_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_nfp_tun_del_route_from_cache
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_neigh_event_send
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)
	movl	-52(%rbp), %edi
	movl	(%rbx), %esi
	callq	_ether_addr_copy
	movl	-56(%rbp), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_neigh_ha_snapshot
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movl	%eax, -60(%rbp)
	movl	-64(%rbp), %esi
	movq	%r15, %rdi
	callq	_nfp_tun_add_route_to_cache
LBB0_5:
	movq	_NFP_FLOWER_CMSG_TYPE_TUN_NEIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	movl	$20, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_nfp_flower_xmit_tun_conf
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUD_VALID,4,2                  ## @NUD_VALID
	.comm	_NFP_FLOWER_CMSG_TYPE_TUN_NEIGH,4,2 ## @NFP_FLOWER_CMSG_TYPE_TUN_NEIGH
	.no_dead_strip	_nfp_tun_write_neigh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_tun_write_neigh
_nfp_tun_write_neigh:                   ; @nfp_tun_write_neigh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x24, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	mov	x1, x22
	bl	_nfp_flower_get_port_id_from_netdev
	cbz	w0, LBB0_6
; %bb.1:
	mov	x23, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	w1, [x24, #4]
	str	w1, [sp, #8]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _NUD_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NUD_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_nfp_tun_del_route_from_cache
	mov	x0, x21
	mov	x1, #0
	bl	_neigh_event_send
	b	LBB0_5
LBB0_4:
	ldr	w8, [x24]
	str	w8, [sp, #24]
	ldr	w0, [sp, #20]
	ldr	w1, [x22]
	bl	_ether_addr_copy
	ldr	w0, [sp, #16]
	mov	x1, x21
	mov	x2, x22
	bl	_neigh_ha_snapshot
	mov	x0, x23
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	ldr	w1, [sp, #8]
	mov	x0, x20
	bl	_nfp_tun_add_route_to_cache
LBB0_5:
Lloh3:
	adrp	x8, _NFP_FLOWER_CMSG_TYPE_TUN_NEIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_TYPE_TUN_NEIGH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #20
	mov	x4, x19
	bl	_nfp_flower_xmit_tun_conf
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NUD_VALID,4,2                  ; @NUD_VALID
	.comm	_NFP_FLOWER_CMSG_TYPE_TUN_NEIGH,4,2 ; @NFP_FLOWER_CMSG_TYPE_TUN_NEIGH
	.no_dead_strip	_nfp_tun_write_neigh
.subsections_via_symbols
