	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_tunnel_mac_event_handler   ## -- Begin function nfp_tunnel_mac_event_handler
	.p2align	4, 0x90
_nfp_tunnel_mac_event_handler:          ## @nfp_tunnel_mac_event_handler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_NETDEV_DOWN@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_NFP_TUNNEL_MAC_OFFLOAD_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nfp_tunnel_offload_mac
	testl	%eax, %eax
	je	LBB0_20
## %bb.2:
	movq	%rbx, %rdi
	callq	_netdev_name
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_19
LBB0_3:
	movq	_NETDEV_UP@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_4
LBB0_17:
	movq	_NFP_TUNNEL_MAC_OFFLOAD_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nfp_tunnel_offload_mac
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movq	%rbx, %rdi
	callq	_netdev_name
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_19
LBB0_4:
	movq	_NETDEV_CHANGEADDR@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_8
## %bb.5:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_20
## %bb.6:
	movq	_NFP_TUNNEL_MAC_OFFLOAD_MOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nfp_tunnel_offload_mac
	testl	%eax, %eax
	je	LBB0_20
## %bb.7:
	movq	%rbx, %rdi
	callq	_netdev_name
	leaq	L_.str.2(%rip), %rsi
LBB0_19:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_nfp_flower_cmsg_warn
LBB0_20:
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_NETDEV_CHANGEUPPER@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_20
## %bb.9:
	movq	%rcx, %r15
	movq	8(%rcx), %r12
	movq	%rbx, %rdi
	callq	_nfp_netdev_is_nfp_repr
	testl	%eax, %eax
	je	LBB0_20
## %bb.10:
	movq	%r12, %rdi
	callq	_nfp_flower_is_supported_bridge
	testl	%eax, %eax
	je	LBB0_20
## %bb.11:
	movq	%rbx, %rdi
	callq	_netdev_priv
	cmpq	%r14, 8(%rax)
	jne	LBB0_20
## %bb.12:
	movq	(%rax), %r12
	cmpq	$0, (%r15)
	je	LBB0_16
## %bb.13:
	movq	_NFP_TUNNEL_MAC_OFFLOAD_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nfp_tunnel_offload_mac
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_netdev_name
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_nfp_flower_cmsg_warn
LBB0_15:
	movl	$1, (%r12)
	jmp	LBB0_20
LBB0_16:
	movl	$0, (%r12)
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_17
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_DOWN,8,3                ## @NETDEV_DOWN
	.comm	_NFP_TUNNEL_MAC_OFFLOAD_DEL,4,2 ## @NFP_TUNNEL_MAC_OFFLOAD_DEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to delete offload MAC on %s.\n"

	.comm	_NETDEV_UP,8,3                  ## @NETDEV_UP
	.comm	_NFP_TUNNEL_MAC_OFFLOAD_ADD,4,2 ## @NFP_TUNNEL_MAC_OFFLOAD_ADD
L_.str.1:                               ## @.str.1
	.asciz	"Failed to offload MAC on %s.\n"

	.comm	_NETDEV_CHANGEADDR,8,3          ## @NETDEV_CHANGEADDR
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.comm	_NFP_TUNNEL_MAC_OFFLOAD_MOD,4,2 ## @NFP_TUNNEL_MAC_OFFLOAD_MOD
L_.str.2:                               ## @.str.2
	.asciz	"Failed to offload MAC change on %s.\n"

	.comm	_NETDEV_CHANGEUPPER,8,3         ## @NETDEV_CHANGEUPPER
L_.str.3:                               ## @.str.3
	.asciz	"Failed to delete offloaded MAC on %s.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_tunnel_mac_event_handler   ; -- Begin function nfp_tunnel_mac_event_handler
	.p2align	2
_nfp_tunnel_mac_event_handler:          ; @nfp_tunnel_mac_event_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NETDEV_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _NFP_TUNNEL_MAC_OFFLOAD_DEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_TUNNEL_MAC_OFFLOAD_DEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_nfp_tunnel_offload_mac
	cbz	w0, LBB0_11
; %bb.2:
	mov	x0, x20
	bl	_netdev_name
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_3:
Lloh8:
	adrp	x8, _NETDEV_UP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETDEV_UP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _NFP_TUNNEL_MAC_OFFLOAD_ADD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFP_TUNNEL_MAC_OFFLOAD_ADD@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_nfp_tunnel_offload_mac
	cbz	w0, LBB0_11
; %bb.5:
	mov	x0, x20
	bl	_netdev_name
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh16:
	adrp	x8, _NETDEV_CHANGEADDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NETDEV_CHANGEADDR@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_12
; %bb.7:
	ldr	w8, [x20]
Lloh19:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
Lloh22:
	adrp	x8, _NFP_TUNNEL_MAC_OFFLOAD_MOD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NFP_TUNNEL_MAC_OFFLOAD_MOD@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_nfp_tunnel_offload_mac
	cbz	w0, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_netdev_name
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_nfp_flower_cmsg_warn
LBB0_11:
Lloh27:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh30:
	adrp	x8, _NETDEV_CHANGEUPPER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NETDEV_CHANGEUPPER@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_11
; %bb.13:
	mov	x21, x3
	ldr	x22, [x3, #8]
	mov	x0, x20
	bl	_nfp_netdev_is_nfp_repr
	cbz	w0, LBB0_11
; %bb.14:
	mov	x0, x22
	bl	_nfp_flower_is_supported_bridge
	cbz	w0, LBB0_11
; %bb.15:
	mov	x0, x20
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	cmp	x8, x19
	b.ne	LBB0_11
; %bb.16:
	ldr	x22, [x0]
	ldr	x8, [x21]
	cbz	x8, LBB0_20
; %bb.17:
Lloh33:
	adrp	x8, _NFP_TUNNEL_MAC_OFFLOAD_DEL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NFP_TUNNEL_MAC_OFFLOAD_DEL@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_nfp_tunnel_offload_mac
	cbz	w0, LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_netdev_name
	mov	x2, x0
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_nfp_flower_cmsg_warn
LBB0_19:
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_11
LBB0_20:
	str	wzr, [x22]
	ldr	w8, [x20]
Lloh38:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_DOWN,8,3                ; @NETDEV_DOWN
	.comm	_NFP_TUNNEL_MAC_OFFLOAD_DEL,4,2 ; @NFP_TUNNEL_MAC_OFFLOAD_DEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to delete offload MAC on %s.\n"

	.comm	_NETDEV_UP,8,3                  ; @NETDEV_UP
	.comm	_NFP_TUNNEL_MAC_OFFLOAD_ADD,4,2 ; @NFP_TUNNEL_MAC_OFFLOAD_ADD
l_.str.1:                               ; @.str.1
	.asciz	"Failed to offload MAC on %s.\n"

	.comm	_NETDEV_CHANGEADDR,8,3          ; @NETDEV_CHANGEADDR
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.comm	_NFP_TUNNEL_MAC_OFFLOAD_MOD,4,2 ; @NFP_TUNNEL_MAC_OFFLOAD_MOD
l_.str.2:                               ; @.str.2
	.asciz	"Failed to offload MAC change on %s.\n"

	.comm	_NETDEV_CHANGEUPPER,8,3         ; @NETDEV_CHANGEUPPER
l_.str.3:                               ; @.str.3
	.asciz	"Failed to delete offloaded MAC on %s.\n"

.subsections_via_symbols
