	.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	%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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_IFLA_ADDRESS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rdi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	callq	_nla_len
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rdx
	movq	(%r12,%rdx,8), %rsi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%rsi, %rdi
	callq	_nla_data
	movq	%rax, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	_IFLA_MTU@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:
	callq	_nla_get_u32
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.7:
	movq	_ETH_MAX_MTU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_8
LBB0_9:
	testq	%r15, %r15
	je	LBB0_10
## %bb.11:
	movq	_IFLA_VXLAN_ID@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	callq	_nla_get_u32
	movq	_VXLAN_N_VID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_13
LBB0_14:
	movq	_IFLA_VXLAN_PORT_RANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.15:
	callq	_nla_data
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_ntohs
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_ntohs
	movq	_IFLA_VXLAN_PORT_RANGE@GOTPCREL(%rip), %rcx
	cmpq	%rax, %r13
	jge	LBB0_17
## %bb.16:
	movq	(%rcx), %rax
	movq	(%r12,%rax,8), %rsi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_20
LBB0_2:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_20
LBB0_8:
	movq	(%rbx), %rax
	movq	(%r12,%rax,8), %rsi
	leaq	L_.str.2(%rip), %rdx
LBB0_20:
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_ATTR
	jmp	LBB0_21
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_22:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rax
	movq	(%r12,%rax,8), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_ATTR
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_17:
	movq	_IFLA_VXLAN_DF@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%r15,%rax,8), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.18:
	callq	_nla_get_u8
	movq	_VXLAN_DF_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jbe	LBB0_23
## %bb.19:
	movq	(%r13), %rax
	movq	(%r12,%rax,8), %rsi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_20
LBB0_13:
	movq	(%rbx), %rax
	movq	(%r12,%rax,8), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_ATTR
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
	.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	"Provided link layer address is not Ethernet"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Provided Ethernet address is not unicast"

	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_IFLA_MTU,8,3                   ## @IFLA_MTU
	.comm	_ETH_MIN_MTU,8,3                ## @ETH_MIN_MTU
	.comm	_ETH_MAX_MTU,8,3                ## @ETH_MAX_MTU
L_.str.2:                               ## @.str.2
	.asciz	"MTU must be between 68 and 65535"

L_.str.3:                               ## @.str.3
	.asciz	"Required attributes not provided to perform the operation"

	.comm	_IFLA_VXLAN_ID,8,3              ## @IFLA_VXLAN_ID
	.comm	_VXLAN_N_VID,8,3                ## @VXLAN_N_VID
L_.str.4:                               ## @.str.4
	.asciz	"VXLAN ID must be lower than 16777216"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_IFLA_VXLAN_PORT_RANGE,8,3      ## @IFLA_VXLAN_PORT_RANGE
L_.str.5:                               ## @.str.5
	.asciz	"Invalid source port range"

	.comm	_IFLA_VXLAN_DF,8,3              ## @IFLA_VXLAN_DF
	.comm	_VXLAN_DF_MAX,4,2               ## @VXLAN_DF_MAX
L_.str.6:                               ## @.str.6
	.asciz	"Invalid DF attribute"

	.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:
	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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _IFLA_ADDRESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IFLA_ADDRESS@GOTPAGEOFF]
	ldr	x8, [x22]
	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]
	ldr	x9, [x22]
	ldr	x1, [x20, x9, lsl #3]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.2:
	mov	x0, x1
	bl	_nla_data
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_18
LBB0_3:
Lloh5:
	adrp	x22, _IFLA_MTU@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IFLA_MTU@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_nla_get_u32
Lloh7:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _ETH_MAX_MTU@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ETH_MAX_MTU@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #0, ge
	b.le	LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	x1, [x20, x8, lsl #3]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_6:
	cbz	x21, LBB0_14
; %bb.7:
Lloh15:
	adrp	x22, _IFLA_VXLAN_ID@GOTPAGE
Lloh16:
	ldr	x22, [x22, _IFLA_VXLAN_ID@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_nla_get_u32
Lloh17:
	adrp	x8, _VXLAN_N_VID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VXLAN_N_VID@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_22
LBB0_9:
Lloh20:
	adrp	x24, _IFLA_VXLAN_PORT_RANGE@GOTPAGE
Lloh21:
	ldr	x24, [x24, _IFLA_VXLAN_PORT_RANGE@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_19
; %bb.10:
	bl	_nla_data
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_ntohs
	mov	x23, x0
	ldr	w0, [x22]
	bl	_ntohs
	cmp	x23, x0
	b.ge	LBB0_19
; %bb.11:
	ldr	x8, [x24]
	ldr	x1, [x20, x8, lsl #3]
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_ATTR
	b	LBB0_15
LBB0_14:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG
LBB0_15:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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_18:
	ldr	x8, [x22]
	ldr	x1, [x20, x8, lsl #3]
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_ATTR
Lloh32:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_16
LBB0_19:
Lloh34:
	adrp	x22, _IFLA_VXLAN_DF@GOTPAGE
Lloh35:
	ldr	x22, [x22, _IFLA_VXLAN_DF@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_17
; %bb.20:
	bl	_nla_get_u8
Lloh36:
	adrp	x8, _VXLAN_DF_MAX@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VXLAN_DF_MAX@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_23
; %bb.21:
	ldr	x8, [x22]
	ldr	x1, [x20, x8, lsl #3]
Lloh39:
	adrp	x2, l_.str.6@PAGE
Lloh40:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_22:
	ldr	x8, [x22]
	ldr	x1, [x20, x8, lsl #3]
Lloh41:
	adrp	x2, l_.str.4@PAGE
Lloh42:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_ATTR
Lloh43:
	adrp	x8, _ERANGE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_16
LBB0_23:
	mov	w0, #0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.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	"Provided link layer address is not Ethernet"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Provided Ethernet address is not unicast"

	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_IFLA_MTU,8,3                   ; @IFLA_MTU
	.comm	_ETH_MIN_MTU,8,3                ; @ETH_MIN_MTU
	.comm	_ETH_MAX_MTU,8,3                ; @ETH_MAX_MTU
l_.str.2:                               ; @.str.2
	.asciz	"MTU must be between 68 and 65535"

l_.str.3:                               ; @.str.3
	.asciz	"Required attributes not provided to perform the operation"

	.comm	_IFLA_VXLAN_ID,8,3              ; @IFLA_VXLAN_ID
	.comm	_VXLAN_N_VID,8,3                ; @VXLAN_N_VID
l_.str.4:                               ; @.str.4
	.asciz	"VXLAN ID must be lower than 16777216"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_IFLA_VXLAN_PORT_RANGE,8,3      ; @IFLA_VXLAN_PORT_RANGE
l_.str.5:                               ; @.str.5
	.asciz	"Invalid source port range"

	.comm	_IFLA_VXLAN_DF,8,3              ; @IFLA_VXLAN_DF
	.comm	_VXLAN_DF_MAX,4,2               ; @VXLAN_DF_MAX
l_.str.6:                               ; @.str.6
	.asciz	"Invalid DF attribute"

	.no_dead_strip	_vxlan_validate
.subsections_via_symbols
