	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxlan_validate
_vxlan_validate:                        ## @vxlan_validate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_IFLA_ADDRESS@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rdi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_nla_len
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	(%r15), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_nla_data
	movq	%rax, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_12
LBB0_3:
	testq	%r14, %r14
	je	LBB0_11
## %bb.4:
	movq	_IFLA_VXLAN_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_nla_get_u32
	movq	_VXLAN_VID_MASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_13
LBB0_6:
	movq	_IFLA_VXLAN_PORT_RANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.7:
	callq	_nla_data
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_ntohs
	movq	%rax, %r15
	movl	4(%r14), %edi
	callq	_ntohs
	cmpq	%rax, %r15
	jge	LBB0_16
## %bb.8:
	movl	4(%r14), %edi
	callq	_ntohs
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_ntohs
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_ADDRESS,8,3               ## @IFLA_ADDRESS
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid link address (not ethernet)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid all zero ethernet address\n"

	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_IFLA_VXLAN_ID,8,3              ## @IFLA_VXLAN_ID
	.comm	_VXLAN_VID_MASK,8,3             ## @VXLAN_VID_MASK
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_IFLA_VXLAN_PORT_RANGE,8,3      ## @IFLA_VXLAN_PORT_RANGE
L_.str.2:                               ## @.str.2
	.asciz	"port range %u .. %u not valid\n"

	.no_dead_strip	_vxlan_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxlan_validate
_vxlan_validate:                        ; @vxlan_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _IFLA_ADDRESS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IFLA_ADDRESS@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x0, x8, lsl #3]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_nla_len
Lloh2:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [x21]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_data
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_14
LBB0_3:
	cbz	x19, LBB0_11
; %bb.4:
Lloh5:
	adrp	x8, _IFLA_VXLAN_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFLA_VXLAN_ID@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_nla_get_u32
Lloh8:
	adrp	x8, _VXLAN_VID_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VXLAN_VID_MASK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_15
LBB0_6:
Lloh11:
	adrp	x8, _IFLA_VXLAN_PORT_RANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFLA_VXLAN_PORT_RANGE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_13
; %bb.7:
	bl	_nla_data
	mov	x19, x0
	ldr	w0, [x0]
	bl	_ntohs
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_ntohs
	cmp	x20, x0
	b.ge	LBB0_16
; %bb.8:
	ldr	w0, [x19, #4]
	bl	_ntohs
	mov	x20, x0
	ldr	w0, [x19]
	bl	_ntohs
	stp	x20, x0, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	bl	_pr_debug
LBB0_11:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	add	sp, sp, #64
	ret
LBB0_14:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
Lloh22:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_12
LBB0_15:
Lloh24:
	adrp	x8, _ERANGE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_12
LBB0_16:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_ADDRESS,8,3               ; @IFLA_ADDRESS
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid link address (not ethernet)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid all zero ethernet address\n"

	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_IFLA_VXLAN_ID,8,3              ; @IFLA_VXLAN_ID
	.comm	_VXLAN_VID_MASK,8,3             ; @VXLAN_VID_MASK
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_IFLA_VXLAN_PORT_RANGE,8,3      ; @IFLA_VXLAN_PORT_RANGE
l_.str.2:                               ; @.str.2
	.asciz	"port range %u .. %u not valid\n"

	.no_dead_strip	_vxlan_validate
.subsections_via_symbols
