	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_udp_tunnel_add
_i40e_udp_tunnel_add:                   ## @i40e_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, %r12
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r14
	movl	4(%r12), %edi
	callq	_ntohs
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i40e_get_udp_port_idx
	movq	_I40E_MAX_PF_UDP_OFFLOAD_PORTS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jge	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_i40e_get_udp_port_idx
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_info                    ## TAILCALL
LBB0_5:
	movl	(%r12), %ecx
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.7:
	cmpl	$129, %ecx
	jne	LBB0_11
## %bb.8:
	movq	_I40E_HW_GENEVE_OFFLOAD_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_11
## %bb.9:
	movq	_I40E_AQC_TUNNEL_TYPE_NGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_I40E_AQC_TUNNEL_TYPE_VXLAN@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %ecx
	movq	16(%r14), %rdx
	leaq	(%rax,%rax,2), %rsi
	movl	%ecx, 8(%rdx,%rsi,4)
	movl	%r15d, 4(%rdx,%rsi,4)
	movq	_I40E_UDP_PORT_INDEX_UNUSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdx,%rsi,4)
	movq	%rax, %rdi
	callq	_BIT_ULL
	orl	%eax, 8(%r14)
	movq	___I40E_UDP_FILTER_SYNC_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_MAX_PF_UDP_OFFLOAD_PORTS,8,3 ## @I40E_MAX_PF_UDP_OFFLOAD_PORTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %d already offloaded\n"

L_.str.1:                               ## @.str.1
	.asciz	"maximum number of offloaded UDP ports reached, not adding port %d\n"

	.comm	_I40E_AQC_TUNNEL_TYPE_VXLAN,4,2 ## @I40E_AQC_TUNNEL_TYPE_VXLAN
	.comm	_I40E_HW_GENEVE_OFFLOAD_CAPABLE,4,2 ## @I40E_HW_GENEVE_OFFLOAD_CAPABLE
	.comm	_I40E_AQC_TUNNEL_TYPE_NGE,4,2   ## @I40E_AQC_TUNNEL_TYPE_NGE
	.comm	_I40E_UDP_PORT_INDEX_UNUSED,4,2 ## @I40E_UDP_PORT_INDEX_UNUSED
	.comm	___I40E_UDP_FILTER_SYNC_PENDING,4,2 ## @__I40E_UDP_FILTER_SYNC_PENDING
	.no_dead_strip	_i40e_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 i40e_udp_tunnel_add
_i40e_udp_tunnel_add:                   ; @i40e_udp_tunnel_add
	.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
	mov	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	w0, [x22, #4]
	bl	_ntohs
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_get_udp_port_idx
Lloh0:
	adrp	x23, _I40E_MAX_PF_UDP_OFFLOAD_PORTS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _I40E_MAX_PF_UDP_OFFLOAD_PORTS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_i40e_get_udp_port_idx
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x21
	mov	x2, x20
	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	_netdev_info
LBB0_5:
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _I40E_HW_GENEVE_OFFLOAD_CAPABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40E_HW_GENEVE_OFFLOAD_CAPABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _I40E_AQC_TUNNEL_TYPE_NGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_AQC_TUNNEL_TYPE_NGE@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	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_10:
Lloh11:
	adrp	x8, _I40E_AQC_TUNNEL_TYPE_VXLAN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40E_AQC_TUNNEL_TYPE_VXLAN@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	mov	w10, #12
	madd	x9, x0, x10, x9
	stp	w20, w8, [x9, #4]
Lloh13:
	adrp	x8, _I40E_UDP_PORT_INDEX_UNUSED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40E_UDP_PORT_INDEX_UNUSED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x9]
	bl	_BIT_ULL
	ldp	w1, w8, [x19, #4]
	orr	w8, w8, w0
	str	w8, [x19, #8]
Lloh16:
	adrp	x8, ___I40E_UDP_FILTER_SYNC_PENDING@GOTPAGE
Lloh17:
	ldr	x8, [x8, ___I40E_UDP_FILTER_SYNC_PENDING@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	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	_set_bit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_MAX_PF_UDP_OFFLOAD_PORTS,8,3 ; @I40E_MAX_PF_UDP_OFFLOAD_PORTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %d already offloaded\n"

l_.str.1:                               ; @.str.1
	.asciz	"maximum number of offloaded UDP ports reached, not adding port %d\n"

	.comm	_I40E_AQC_TUNNEL_TYPE_VXLAN,4,2 ; @I40E_AQC_TUNNEL_TYPE_VXLAN
	.comm	_I40E_HW_GENEVE_OFFLOAD_CAPABLE,4,2 ; @I40E_HW_GENEVE_OFFLOAD_CAPABLE
	.comm	_I40E_AQC_TUNNEL_TYPE_NGE,4,2   ; @I40E_AQC_TUNNEL_TYPE_NGE
	.comm	_I40E_UDP_PORT_INDEX_UNUSED,4,2 ; @I40E_UDP_PORT_INDEX_UNUSED
	.comm	___I40E_UDP_FILTER_SYNC_PENDING,4,2 ; @__I40E_UDP_FILTER_SYNC_PENDING
	.no_dead_strip	_i40e_udp_tunnel_add
.subsections_via_symbols
