	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipvlan_nl_validate
_ipvlan_nl_validate:                    ## @ipvlan_nl_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
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	_IFLA_IPVLAN_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_nla_get_u16
	movq	_IPVLAN_MODE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
LBB0_3:
	movq	_IFLA_IPVLAN_FLAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	callq	_nla_get_u16
	movq	_IPVLAN_F_PRIVATE@GOTPCREL(%rip), %rdx
	movq	_IPVLAN_F_VEPA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rdx), %rcx
	movq	%rcx, %rdx
	notq	%rdx
	testq	%rdx, %rax
	jne	LBB0_6
## %bb.5:
	notq	%rax
	testq	%rax, %rcx
	jne	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_IPVLAN_MODE,8,3           ## @IFLA_IPVLAN_MODE
	.comm	_IPVLAN_MODE_MAX,8,3            ## @IPVLAN_MODE_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFLA_IPVLAN_FLAGS,8,3          ## @IFLA_IPVLAN_FLAGS
	.comm	_IPVLAN_F_PRIVATE,8,3           ## @IPVLAN_F_PRIVATE
	.comm	_IPVLAN_F_VEPA,8,3              ## @IPVLAN_F_VEPA
	.no_dead_strip	_ipvlan_nl_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipvlan_nl_validate
_ipvlan_nl_validate:                    ; @ipvlan_nl_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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _IFLA_IPVLAN_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_IPVLAN_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x1, x8, lsl #3]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_nla_get_u16
Lloh3:
	adrp	x8, _IPVLAN_MODE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPVLAN_MODE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _IFLA_IPVLAN_FLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFLA_IPVLAN_FLAGS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_8
; %bb.4:
	bl	_nla_get_u16
Lloh9:
	adrp	x8, _IPVLAN_F_PRIVATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPVLAN_F_PRIVATE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _IPVLAN_F_VEPA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPVLAN_F_VEPA@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bics	xzr, x0, x8
	b.ne	LBB0_6
; %bb.5:
	bics	xzr, x8, x0
	b.ne	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_IPVLAN_MODE,8,3           ; @IFLA_IPVLAN_MODE
	.comm	_IPVLAN_MODE_MAX,8,3            ; @IPVLAN_MODE_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFLA_IPVLAN_FLAGS,8,3          ; @IFLA_IPVLAN_FLAGS
	.comm	_IPVLAN_F_PRIVATE,8,3           ; @IPVLAN_F_PRIVATE
	.comm	_IPVLAN_F_VEPA,8,3              ; @IPVLAN_F_VEPA
	.no_dead_strip	_ipvlan_nl_validate
.subsections_via_symbols
