	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_tunnel_offload_mac
_nfp_tunnel_offload_mac:                ## @nfp_tunnel_offload_mac
	.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	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_nfp_netdev_is_nfp_repr
	movq	%rax, %r14
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	callq	_netdev_priv
	xorl	%r15d, %r15d
	cmpq	%r12, 8(%rax)
	jne	LBB0_32
## %bb.2:
	movq	(%rax), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_32
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_nfp_repr_get_port_id
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_nfp_tunnel_port_is_phy_repr
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_32
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_5:
	callq	_nfp_fl_is_netdev_to_offload
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_nfp_flower_non_repr_priv_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	(%rbx), %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	cmpl	$130, %r13d
	je	LBB0_16
## %bb.13:
	cmpl	$129, %r13d
	je	LBB0_20
## %bb.14:
	cmpl	$128, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_11
## %bb.15:
	cmpl	$0, (%rax)
	je	LBB0_16
## %bb.24:
	movq	%r15, %r13
	movq	(%rbx), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ether_addr_equal
	testl	%eax, %eax
	jne	LBB0_29
## %bb.25:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_nfp_tunnel_add_shared_mac
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_30
## %bb.26:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_nfp_tunnel_del_shared_mac
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	callq	_netdev_name
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_nfp_flower_cmsg_warn
	jmp	LBB0_28
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_32
LBB0_11:
	movq	%r15, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_30
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_32
LBB0_16:
	movq	%r15, %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_nfp_tunnel_add_shared_mac
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_30
## %bb.17:
	testq	%r14, %r14
	jne	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	callq	___nfp_flower_non_repr_priv_get
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_19:
	movl	$1, (%rax)
LBB0_28:
	movq	(%rbx), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ether_addr_copy
	jmp	LBB0_29
LBB0_20:
	movq	%r15, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_29
## %bb.21:
	testq	%r14, %r14
	jne	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	callq	___nfp_flower_non_repr_priv_put
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_23:
	movl	$0, (%rax)
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_nfp_tunnel_del_shared_mac
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_30
LBB0_29:
	xorl	%r15d, %r15d
LBB0_30:
	testq	%r14, %r14
	jne	LBB0_32
## %bb.31:
	movq	%r13, %rdi
	callq	___nfp_flower_non_repr_priv_put
LBB0_32:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to remove offload of replaced MAC addr on %s.\n"

	.no_dead_strip	_nfp_tunnel_offload_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_tunnel_offload_mac
_nfp_tunnel_offload_mac:                ; @nfp_tunnel_offload_mac
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_nfp_netdev_is_nfp_repr
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	cmp	x8, x22
	b.ne	LBB0_32
; %bb.2:
	ldr	x26, [x0]
	ldr	x8, [x26, #16]
	cbnz	x8, LBB0_32
; %bb.3:
	ldr	x23, [x26, #8]
	mov	x0, x20
	bl	_nfp_repr_get_port_id
	mov	x25, x0
	bl	_nfp_tunnel_port_is_phy_repr
	cbz	w0, LBB0_32
; %bb.4:
	mov	x21, #0
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_nfp_fl_is_netdev_to_offload
	cbz	x0, LBB0_32
; %bb.6:
	mov	x0, x22
	mov	x1, x20
	bl	_nfp_flower_non_repr_priv_get
	cbz	x0, LBB0_18
; %bb.7:
	mov	x21, x0
	mov	w25, #0
	ldr	x23, [x0, #8]
	mov	x26, x0
LBB0_8:
	ldr	x0, [x20]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_17
; %bb.9:
	cmp	w24, #130
	b.eq	LBB0_19
; %bb.10:
	cmp	w24, #129
	b.eq	LBB0_24
; %bb.11:
	cmp	w24, #128
	b.ne	LBB0_17
; %bb.12:
	ldr	w8, [x26]
	cbz	w8, LBB0_19
; %bb.13:
	ldr	x0, [x20]
	mov	x1, x23
	bl	_ether_addr_equal
	cbnz	w0, LBB0_30
; %bb.14:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x25
	mov	w3, #1
	bl	_nfp_tunnel_add_shared_mac
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.15:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	mov	w3, #1
	bl	_nfp_tunnel_del_shared_mac
	cbz	w0, LBB0_23
; %bb.16:
	mov	x0, x20
	bl	_netdev_name
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_nfp_flower_cmsg_warn
	b	LBB0_23
LBB0_17:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_28
LBB0_18:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_33
LBB0_19:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x25
	mov	w3, #0
	bl	_nfp_tunnel_add_shared_mac
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.20:
	cbnz	x19, LBB0_22
; %bb.21:
	mov	x0, x21
	bl	___nfp_flower_non_repr_priv_get
LBB0_22:
	mov	w8, #1
	str	w8, [x26]
LBB0_23:
	ldr	x1, [x20]
	mov	x0, x23
	bl	_ether_addr_copy
	b	LBB0_30
LBB0_24:
	ldr	w8, [x26]
	cbz	w8, LBB0_30
; %bb.25:
	cbnz	x19, LBB0_27
; %bb.26:
	mov	x0, x21
	bl	___nfp_flower_non_repr_priv_put
LBB0_27:
	str	wzr, [x26]
	ldr	x2, [x20]
	mov	x0, x22
	mov	x1, x20
	mov	w3, #0
	bl	_nfp_tunnel_del_shared_mac
	mov	x24, x0
	cbz	w0, LBB0_30
LBB0_28:
	cbnz	x19, LBB0_33
; %bb.29:
	mov	x0, x21
	bl	___nfp_flower_non_repr_priv_put
	b	LBB0_33
LBB0_30:
	cbnz	x19, LBB0_32
; %bb.31:
	mov	x0, x21
	bl	___nfp_flower_non_repr_priv_put
LBB0_32:
	mov	w24, #0
LBB0_33:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to remove offload of replaced MAC addr on %s.\n"

	.no_dead_strip	_nfp_tunnel_offload_mac
.subsections_via_symbols
