	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macvlan_changelink
_macvlan_changelink:                    ## @macvlan_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	%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, %r12
	callq	_netdev_priv
	testq	%r12, %r12
	je	LBB0_17
## %bb.1:
	movq	%rax, %r14
	movq	_IFLA_MACVLAN_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	callq	_nla_get_u32
	movl	%eax, %ebx
	movq	_MACVLAN_MODE_PASSTHRU@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %ebx
	setne	%dl
	movslq	(%r14), %rax
	cmpl	%ecx, %eax
	sete	%cl
	xorb	%dl, %cl
	je	LBB0_3
## %bb.4:
	movq	_MACVLAN_MODE_SOURCE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_7
## %bb.5:
	cmpl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	movl	12(%r14), %edi
	movq	%r14, %rsi
	callq	_macvlan_flush_sources
LBB0_7:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_IFLA_MACVLAN_FLAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
	jmp	LBB0_13
LBB0_8:
	movq	_IFLA_MACVLAN_FLAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	testq	%rdi, %rdi
	je	LBB0_14
LBB0_9:
	callq	_nla_get_u16
	movl	%eax, %ebx
	movl	%eax, %r13d
	xorl	4(%r14), %r13d
	movq	_MACVLAN_FLAG_NOPROMISC@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movl	12(%r14), %edi
	callq	_macvlan_passthru
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.11:
	movq	_MACVLAN_FLAG_NOPROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movl	8(%r14), %edi
	xorl	%esi, %esi
	negl	%eax
	sbbl	%esi, %esi
	orl	$1, %esi
	callq	_dev_set_promiscuity
	testl	%eax, %eax
	js	LBB0_18
LBB0_12:
	movl	%ebx, 4(%r14)
	testq	%r15, %r15
	je	LBB0_14
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
LBB0_14:
	movq	_IFLA_MACVLAN_MACADDR_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.15:
	movslq	(%r14), %rax
	movq	_MACVLAN_MODE_SOURCE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_3
## %bb.16:
	callq	_nla_get_u32
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_macvlan_changelink_sources
	testl	%eax, %eax
	jne	LBB0_18
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_MACVLAN_MODE,8,3          ## @IFLA_MACVLAN_MODE
	.comm	_MACVLAN_MODE_PASSTHRU,4,2      ## @MACVLAN_MODE_PASSTHRU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MACVLAN_MODE_SOURCE,8,3        ## @MACVLAN_MODE_SOURCE
	.comm	_IFLA_MACVLAN_FLAGS,8,3         ## @IFLA_MACVLAN_FLAGS
	.comm	_MACVLAN_FLAG_NOPROMISC,4,2     ## @MACVLAN_FLAG_NOPROMISC
	.comm	_IFLA_MACVLAN_MACADDR_MODE,8,3  ## @IFLA_MACVLAN_MACADDR_MODE
	.no_dead_strip	_macvlan_changelink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macvlan_changelink
_macvlan_changelink:                    ; @macvlan_changelink
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	bl	_netdev_priv
	cbz	x19, LBB0_16
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _IFLA_MACVLAN_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_MACVLAN_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x19, x8, lsl #3]
	cbz	x21, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_nla_get_u32
Lloh3:
	adrp	x8, _MACVLAN_MODE_PASSTHRU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MACVLAN_MODE_PASSTHRU@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	cmp	w0, w9
	cset	w10, ne
	ldrsw	x8, [x20]
	cmp	w8, w9
	cset	w9, eq
	eor	w9, w10, w9
	tbz	w9, #0, LBB0_17
; %bb.3:
	mov	x22, x0
Lloh6:
	adrp	x9, _MACVLAN_MODE_SOURCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MACVLAN_MODE_SOURCE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	ccmp	w8, w0, #4, eq
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x20, #12]
	mov	x1, x20
	bl	_macvlan_flush_sources
LBB0_5:
Lloh9:
	adrp	x8, _IFLA_MACVLAN_FLAGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFLA_MACVLAN_FLAGS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbnz	x0, LBB0_8
	b	LBB0_12
LBB0_6:
Lloh12:
	adrp	x8, _IFLA_MACVLAN_FLAGS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IFLA_MACVLAN_FLAGS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_13
; %bb.7:
                                        ; implicit-def: $w22
LBB0_8:
	bl	_nla_get_u16
	mov	x23, x0
	ldr	w25, [x20, #4]
Lloh15:
	adrp	x24, _MACVLAN_FLAG_NOPROMISC@GOTPAGE
Lloh16:
	ldr	x24, [x24, _MACVLAN_FLAG_NOPROMISC@GOTPAGEOFF]
	ldr	w26, [x24]
	ldr	w0, [x20, #12]
	bl	_macvlan_passthru
	cbz	x0, LBB0_11
; %bb.9:
	eor	w8, w25, w23
	and	w8, w8, w26
	cbz	w8, LBB0_11
; %bb.10:
	ldr	w8, [x24]
	ldr	w0, [x20, #8]
	tst	w8, w23
	mov	w8, #1
	cneg	w1, w8, ne
	bl	_dev_set_promiscuity
	tbnz	w0, #31, LBB0_18
LBB0_11:
	str	w23, [x20, #4]
	cbz	x21, LBB0_13
LBB0_12:
	str	w22, [x20]
LBB0_13:
Lloh17:
	adrp	x8, _IFLA_MACVLAN_MACADDR_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IFLA_MACVLAN_MACADDR_MODE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_16
; %bb.14:
	ldrsw	x8, [x20]
Lloh20:
	adrp	x9, _MACVLAN_MODE_SOURCE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MACVLAN_MODE_SOURCE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	bl	_nla_get_u32
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_macvlan_changelink_sources
	cbnz	w0, LBB0_18
LBB0_16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_MACVLAN_MODE,8,3          ; @IFLA_MACVLAN_MODE
	.comm	_MACVLAN_MODE_PASSTHRU,4,2      ; @MACVLAN_MODE_PASSTHRU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MACVLAN_MODE_SOURCE,8,3        ; @MACVLAN_MODE_SOURCE
	.comm	_IFLA_MACVLAN_FLAGS,8,3         ; @IFLA_MACVLAN_FLAGS
	.comm	_MACVLAN_FLAG_NOPROMISC,4,2     ; @MACVLAN_FLAG_NOPROMISC
	.comm	_IFLA_MACVLAN_MACADDR_MODE,8,3  ; @IFLA_MACVLAN_MACADDR_MODE
	.no_dead_strip	_macvlan_changelink
.subsections_via_symbols
