	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macvlan_validate
_macvlan_validate:                      ## @macvlan_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_4
## %bb.1:
	callq	_nla_len
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.2:
	movq	(%r15), %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:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_17
## %bb.5:
	movq	_IFLA_MACVLAN_FLAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_nla_get_u16
	movq	_MACVLAN_FLAG_NOPROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_15
LBB0_7:
	movq	_IFLA_MACVLAN_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_nla_get_u32
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_15
LBB0_9:
	movq	_IFLA_MACVLAN_MACADDR_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_nla_get_u32
	addl	$-133, %eax
	cmpl	$4, %eax
	jae	LBB0_15
LBB0_11:
	movq	_IFLA_MACVLAN_MACADDR@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	callq	_nla_len
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movq	(%r15), %rax
	movq	(%r14,%rax,8), %rdi
	callq	_nla_data
	movl	%eax, %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_3
LBB0_14:
	movq	_IFLA_MACVLAN_MACADDR_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r14,%rax,8)
	je	LBB0_17
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.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_MACVLAN_FLAGS,8,3         ## @IFLA_MACVLAN_FLAGS
	.comm	_MACVLAN_FLAG_NOPROMISC,4,2     ## @MACVLAN_FLAG_NOPROMISC
	.comm	_IFLA_MACVLAN_MODE,8,3          ## @IFLA_MACVLAN_MODE
	.comm	_IFLA_MACVLAN_MACADDR_MODE,8,3  ## @IFLA_MACVLAN_MACADDR_MODE
	.comm	_IFLA_MACVLAN_MACADDR,8,3       ## @IFLA_MACVLAN_MACADDR
	.comm	_IFLA_MACVLAN_MACADDR_COUNT,8,3 ## @IFLA_MACVLAN_MACADDR_COUNT
	.no_dead_strip	_macvlan_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macvlan_validate
_macvlan_validate:                      ; @macvlan_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, 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_14
; %bb.2:
	ldr	x8, [x21]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_data
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_18
LBB0_3:
	cbz	x19, LBB0_16
; %bb.4:
Lloh5:
	adrp	x8, _IFLA_MACVLAN_FLAGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFLA_MACVLAN_FLAGS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_nla_get_u16
Lloh8:
	adrp	x8, _MACVLAN_FLAG_NOPROMISC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MACVLAN_FLAG_NOPROMISC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bics	wzr, w0, w8
	b.ne	LBB0_14
LBB0_6:
Lloh11:
	adrp	x8, _IFLA_MACVLAN_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFLA_MACVLAN_MODE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_nla_get_u32
	sub	w8, w0, #128
	cmp	w8, #5
	b.hs	LBB0_14
LBB0_8:
Lloh14:
	adrp	x8, _IFLA_MACVLAN_MACADDR_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IFLA_MACVLAN_MACADDR_MODE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_nla_get_u32
	sub	w8, w0, #133
	cmp	w8, #4
	b.hs	LBB0_14
LBB0_10:
Lloh17:
	adrp	x20, _IFLA_MACVLAN_MACADDR@GOTPAGE
Lloh18:
	ldr	x20, [x20, _IFLA_MACVLAN_MACADDR@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_13
; %bb.11:
	bl	_nla_len
Lloh19:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x20]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_data
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_18
LBB0_13:
Lloh22:
	adrp	x8, _IFLA_MACVLAN_MACADDR_COUNT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IFLA_MACVLAN_MACADDR_COUNT@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_16
LBB0_14:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	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_18:
Lloh27:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_15
	.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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.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_MACVLAN_FLAGS,8,3         ; @IFLA_MACVLAN_FLAGS
	.comm	_MACVLAN_FLAG_NOPROMISC,4,2     ; @MACVLAN_FLAG_NOPROMISC
	.comm	_IFLA_MACVLAN_MODE,8,3          ; @IFLA_MACVLAN_MODE
	.comm	_IFLA_MACVLAN_MACADDR_MODE,8,3  ; @IFLA_MACVLAN_MACADDR_MODE
	.comm	_IFLA_MACVLAN_MACADDR,8,3       ; @IFLA_MACVLAN_MACADDR
	.comm	_IFLA_MACVLAN_MACADDR_COUNT,8,3 ; @IFLA_MACVLAN_MACADDR_COUNT
	.no_dead_strip	_macvlan_validate
.subsections_via_symbols
