	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function veth_validate
_veth_validate:                         ## @veth_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_IFLA_ADDRESS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rdi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	callq	_nla_len
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	(%r14), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_nla_data
	movl	%eax, %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	_IFLA_MTU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	callq	_nla_get_u32
	movl	%eax, %edi
	callq	_is_valid_veth_mtu
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_ADDRESS,8,3               ## @IFLA_ADDRESS
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_IFLA_MTU,8,3                   ## @IFLA_MTU
	.no_dead_strip	_veth_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function veth_validate
_veth_validate:                         ; @veth_validate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _IFLA_ADDRESS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IFLA_ADDRESS@GOTPAGEOFF]
	ldr	x8, [x20]
	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_6
; %bb.2:
	ldr	x8, [x20]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_data
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_7
LBB0_3:
Lloh5:
	adrp	x8, _IFLA_MTU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFLA_MTU@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_9
; %bb.4:
	bl	_nla_get_u32
	bl	_is_valid_veth_mtu
	cbz	w0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_ADDRESS,8,3               ; @IFLA_ADDRESS
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_IFLA_MTU,8,3                   ; @IFLA_MTU
	.no_dead_strip	_veth_validate
.subsections_via_symbols
