	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipvlan_nl_changelink
_ipvlan_nl_changelink:                  ## @ipvlan_nl_changelink
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_ipvlan_port_get_rtnl
	testq	%r12, %r12
	je	LBB0_12
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_dev_net
	movl	(%rax), %edi
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ns_capable
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_IFLA_IPVLAN_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_nla_get_u16
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_ipvlan_set_port_mode
	testl	%eax, %eax
	jne	LBB0_13
LBB0_5:
	movq	_IFLA_IPVLAN_FLAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.6:
	callq	_nla_get_u16
	movl	%eax, %ebx
	movq	_IPVLAN_F_PRIVATE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_ipvlan_mark_private
	jmp	LBB0_9
LBB0_2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_8:
	movq	%r14, %rdi
	callq	_ipvlan_clear_private
LBB0_9:
	movq	_IPVLAN_F_VEPA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_ipvlan_mark_vepa
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_ipvlan_clear_vepa
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_IFLA_IPVLAN_MODE,8,3           ## @IFLA_IPVLAN_MODE
	.comm	_IFLA_IPVLAN_FLAGS,8,3          ## @IFLA_IPVLAN_FLAGS
	.comm	_IPVLAN_F_PRIVATE,4,2           ## @IPVLAN_F_PRIVATE
	.comm	_IPVLAN_F_VEPA,4,2              ## @IPVLAN_F_VEPA
	.no_dead_strip	_ipvlan_nl_changelink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipvlan_nl_changelink
_ipvlan_nl_changelink:                  ; @ipvlan_nl_changelink
	.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	x21, x3
	mov	x20, x2
	bl	_netdev_priv
	mov	x22, x0
	ldr	w0, [x0]
	bl	_ipvlan_port_get_rtnl
	cbz	x20, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	w0, [x22]
	bl	_dev_net
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ns_capable
	cbz	w0, LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _IFLA_IPVLAN_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFLA_IPVLAN_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_nla_get_u16
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_ipvlan_set_port_mode
	cbnz	w0, LBB0_13
LBB0_4:
Lloh6:
	adrp	x8, _IFLA_IPVLAN_FLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFLA_IPVLAN_FLAGS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_13
; %bb.5:
	bl	_nla_get_u16
	mov	x20, x0
Lloh9:
	adrp	x8, _IPVLAN_F_PRIVATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPVLAN_F_PRIVATE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_ipvlan_mark_private
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _EPERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	bl	_ipvlan_clear_private
LBB0_9:
Lloh15:
	adrp	x8, _IPVLAN_F_VEPA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPVLAN_F_VEPA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	x0, x19
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	bl	_ipvlan_mark_vepa
	b	LBB0_12
LBB0_11:
	bl	_ipvlan_clear_vepa
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_IFLA_IPVLAN_MODE,8,3           ; @IFLA_IPVLAN_MODE
	.comm	_IFLA_IPVLAN_FLAGS,8,3          ; @IFLA_IPVLAN_FLAGS
	.comm	_IPVLAN_F_PRIVATE,4,2           ; @IPVLAN_F_PRIVATE
	.comm	_IPVLAN_F_VEPA,4,2              ; @IPVLAN_F_VEPA
	.no_dead_strip	_ipvlan_nl_changelink
.subsections_via_symbols
