	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geneve_validate
_geneve_validate:                       ## @geneve_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
	movl	%eax, %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movq	_IFLA_GENEVE_ID@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:
	callq	_nla_get_u32
	movq	_GENEVE_N_VID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_9
LBB0_10:
	movq	_IFLA_GENEVE_DF@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%r15,%rax,8), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.11:
	callq	_nla_get_u8
	movq	_GENEVE_DF_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jbe	LBB0_16
## %bb.12:
	movq	(%r13), %rax
	movq	(%r12,%rax,8), %rsi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_13
LBB0_2:
	leaq	L_.str(%rip), %rdx
LBB0_13:
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_ATTR
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	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_15
LBB0_9:
	movq	(%rbx), %rax
	movq	(%r15,%rax,8), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_ATTR
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.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
L_.str.2:                               ## @.str.2
	.asciz	"Not enough attributes provided to perform the operation"

	.comm	_IFLA_GENEVE_ID,8,3             ## @IFLA_GENEVE_ID
	.comm	_GENEVE_N_VID,8,3               ## @GENEVE_N_VID
L_.str.3:                               ## @.str.3
	.asciz	"Geneve ID must be lower than 16777216"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_IFLA_GENEVE_DF,8,3             ## @IFLA_GENEVE_DF
	.comm	_GENEVE_DF_MAX,4,2              ## @GENEVE_DF_MAX
L_.str.4:                               ## @.str.4
	.asciz	"Invalid DF attribute"

	.no_dead_strip	_geneve_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geneve_validate
_geneve_validate:                       ; @geneve_validate
	.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	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_9
; %bb.2:
	mov	x0, x1
	bl	_nla_data
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_15
LBB0_3:
	cbz	x21, LBB0_11
; %bb.4:
Lloh5:
	adrp	x22, _IFLA_GENEVE_ID@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IFLA_GENEVE_ID@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_nla_get_u32
Lloh7:
	adrp	x8, _GENEVE_N_VID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GENEVE_N_VID@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_16
LBB0_6:
Lloh10:
	adrp	x22, _IFLA_GENEVE_DF@GOTPAGE
Lloh11:
	ldr	x22, [x22, _IFLA_GENEVE_DF@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_14
; %bb.7:
	bl	_nla_get_u8
Lloh12:
	adrp	x8, _GENEVE_DF_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GENEVE_DF_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_17
; %bb.8:
	ldr	x8, [x22]
	ldr	x1, [x20, x8, lsl #3]
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_ATTR
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG
LBB0_12:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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_15:
	ldr	x8, [x22]
	ldr	x1, [x20, x8, lsl #3]
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_ATTR
Lloh25:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
	ldr	x8, [x22]
	ldr	x1, [x21, x8, lsl #3]
Lloh27:
	adrp	x2, l_.str.3@PAGE
Lloh28:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_ATTR
Lloh29:
	adrp	x8, _ERANGE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.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
l_.str.2:                               ; @.str.2
	.asciz	"Not enough attributes provided to perform the operation"

	.comm	_IFLA_GENEVE_ID,8,3             ; @IFLA_GENEVE_ID
	.comm	_GENEVE_N_VID,8,3               ; @GENEVE_N_VID
l_.str.3:                               ; @.str.3
	.asciz	"Geneve ID must be lower than 16777216"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_IFLA_GENEVE_DF,8,3             ; @IFLA_GENEVE_DF
	.comm	_GENEVE_DF_MAX,4,2              ; @GENEVE_DF_MAX
l_.str.4:                               ; @.str.4
	.asciz	"Invalid DF attribute"

	.no_dead_strip	_geneve_validate
.subsections_via_symbols
