	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_udp_tunnel_add
_xgbe_udp_tunnel_add:                   ## @xgbe_udp_tunnel_add
	.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	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	cmpl	$0, 12(%rax)
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	_UDP_TUNNEL_TYPE_VXLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	incl	(%rbx)
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	8(%r15), %edi
	movl	12(%r15), %r13d
	callq	_be16_to_cpu
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_netif_dbg
	cmpl	$0, 4(%rbx)
	je	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_drv@GOTPCREL(%rip), %r12
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	12(%r15), %ecx
	movl	%ecx, 8(%rax)
	movl	8(%r15), %ecx
	movl	%ecx, 4(%rax)
	movq	%rbx, %rsi
	addq	$8, %rsi
	movq	%rax, %rdi
	callq	_list_add_tail
	cmpl	$1, (%rbx)
	jne	LBB0_5
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xgbe_enable_vxlan_accel        ## TAILCALL
LBB0_6:
	movl	$1, 4(%rbx)
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xgbe_disable_vxlan_accel       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UDP_TUNNEL_TYPE_VXLAN,8,3      ## @UDP_TUNNEL_TYPE_VXLAN
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adding VXLAN tunnel, family=%hx/port=%hx\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"internal error, disabling VXLAN accelerations\n"

	.no_dead_strip	_xgbe_udp_tunnel_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_udp_tunnel_add
_xgbe_udp_tunnel_add:                   ; @xgbe_udp_tunnel_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _UDP_TUNNEL_TYPE_VXLAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UDP_TUNNEL_TYPE_VXLAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
Lloh3:
	adrp	x23, _drv@GOTPAGE
Lloh4:
	ldr	x23, [x23, _drv@GOTPAGEOFF]
	ldr	w22, [x23]
	ldp	w0, w24, [x21, #8]
	bl	_be16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_netif_dbg
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_4
LBB0_3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	ldr	d0, [x21, #8]
	stur	d0, [x0, #4]
	add	x1, x19, #8
	bl	_list_add_tail
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.6:
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_xgbe_enable_vxlan_accel
LBB0_7:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w1, [x23]
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_dbg
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_xgbe_disable_vxlan_accel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UDP_TUNNEL_TYPE_VXLAN,8,3      ; @UDP_TUNNEL_TYPE_VXLAN
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adding VXLAN tunnel, family=%hx/port=%hx\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"internal error, disabling VXLAN accelerations\n"

	.no_dead_strip	_xgbe_udp_tunnel_add
.subsections_via_symbols
