	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_macvlan_common_newlink         ## -- Begin function macvlan_common_newlink
	.p2align	4, 0x90
_macvlan_common_newlink:                ## @macvlan_common_newlink
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	_IFLA_LINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r12,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	callq	_nla_get_u32
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_netif_is_macvlan
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_macvlan_dev_real_dev
	movq	%rax, %r13
LBB0_7:
	movq	_IFLA_MTU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r12,%rax,8)
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	jle	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_37:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r13), %rax
	movq	%rax, (%r14)
LBB0_10:
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	12(%r13), %eax
	movl	%eax, 12(%r14)
	movq	_IFLA_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r12,%rax,8)
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_eth_hw_addr_random
LBB0_12:
	movq	%r13, %rdi
	callq	_netif_is_macvlan_port
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	%r13, %rdi
	callq	_macvlan_port_create
	testl	%eax, %eax
	js	LBB0_14
LBB0_15:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_macvlan_port_get_rtnl
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_macvlan_passthru
	testq	%rax, %rax
	je	LBB0_20
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_17:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_37
## %bb.18:
	movq	%r13, %rdi
	callq	_macvlan_port_get_rtnl
	testq	%rax, %rax
	je	LBB0_37
## %bb.19:
	movl	(%rbx), %edi
	callq	_macvlan_port_destroy
	jmp	LBB0_37
LBB0_20:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, 40(%rdx)
	movq	%r14, 32(%rdx)
	movq	%rbx, 24(%rdx)
	movq	_MACVLAN_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdx)
	movq	_MACVLAN_MODE_VEPA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	testq	%r15, %r15
	je	LBB0_25
## %bb.21:
	movq	_IFLA_MACVLAN_MODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_nla_get_u32
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
LBB0_23:
	movq	_IFLA_MACVLAN_FLAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_nla_get_u16
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 12(%rdx)
	movq	(%rdx), %rax
LBB0_25:
	movq	_MACVLAN_MODE_PASSTHRU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.26:
	cmpq	$0, 8(%rbx)
	jne	LBB0_16
## %bb.27:
	movq	%rbx, %rdi
	callq	_macvlan_set_passthru
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_eth_hw_addr_inherit
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_28:
	testq	%r15, %r15
	je	LBB0_32
## %bb.29:
	movq	_IFLA_MACVLAN_MACADDR_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.30:
	movq	(%rdx), %rax
	movq	_MACVLAN_MODE_SOURCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.31:
	callq	_nla_get_u32
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_macvlan_changelink_sources
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
LBB0_32:
	movq	%r14, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	js	LBB0_33
## %bb.34:
	movq	_IFF_MACVLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_netdev_upper_dev_link
	testl	%eax, %eax
	je	LBB0_35
## %bb.36:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_unregister_netdevice
	jmp	LBB0_37
LBB0_14:
	movl	%eax, %r12d
	jmp	LBB0_37
LBB0_33:
	movl	%eax, %r12d
	jmp	LBB0_17
LBB0_35:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_list_add_tail_rcu
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_netif_stacked_transfer_operstate
	movq	%r14, %rdi
	callq	_linkwatch_fire_event
	xorl	%r12d, %r12d
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_LINK,8,3                  ## @IFLA_LINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IFLA_MTU,8,3                   ## @IFLA_MTU
	.comm	_ETH_MIN_MTU,4,2                ## @ETH_MIN_MTU
	.comm	_IFLA_ADDRESS,8,3               ## @IFLA_ADDRESS
	.comm	_MACVLAN_FEATURES,4,2           ## @MACVLAN_FEATURES
	.comm	_MACVLAN_MODE_VEPA,8,3          ## @MACVLAN_MODE_VEPA
	.comm	_IFLA_MACVLAN_MODE,8,3          ## @IFLA_MACVLAN_MODE
	.comm	_IFLA_MACVLAN_FLAGS,8,3         ## @IFLA_MACVLAN_FLAGS
	.comm	_MACVLAN_MODE_PASSTHRU,8,3      ## @MACVLAN_MODE_PASSTHRU
	.comm	_IFLA_MACVLAN_MACADDR_MODE,8,3  ## @IFLA_MACVLAN_MACADDR_MODE
	.comm	_MACVLAN_MODE_SOURCE,8,3        ## @MACVLAN_MODE_SOURCE
	.comm	_IFF_MACVLAN,4,2                ## @IFF_MACVLAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_macvlan_common_newlink         ; -- Begin function macvlan_common_newlink
	.p2align	2
_macvlan_common_newlink:                ; @macvlan_common_newlink
	.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	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x22, x0
Lloh0:
	adrp	x8, _IFLA_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_LINK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x24, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.1:
	bl	_nla_get_u32
	mov	x1, x0
	mov	x0, x20
	bl	___dev_get_by_index
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	bl	_netif_is_macvlan
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_macvlan_dev_real_dev
	mov	x20, x0
LBB0_4:
Lloh3:
	adrp	x8, _IFLA_MTU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFLA_MTU@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x24, x8, lsl #3]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_11
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_9:
	mov	x0, x26
	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
LBB0_10:
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_11:
Lloh10:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	stp	w9, w8, [x19, #12]
Lloh13:
	adrp	x8, _IFLA_ADDRESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IFLA_ADDRESS@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x8, [x24, x8, lsl #3]
	cbnz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_eth_hw_addr_random
LBB0_13:
	mov	x0, x20
	bl	_netif_is_macvlan_port
	mov	x25, x0
	cbnz	w0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_macvlan_port_create
	tbnz	w0, #31, LBB0_35
LBB0_15:
	mov	x0, x20
	bl	_macvlan_port_get_rtnl
	mov	x24, x0
	bl	_macvlan_passthru
	cbz	x0, LBB0_20
LBB0_16:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_17:
	cbnz	w25, LBB0_9
; %bb.18:
	mov	x0, x20
	bl	_macvlan_port_get_rtnl
	cbz	x0, LBB0_9
; %bb.19:
	ldr	w0, [x24]
	bl	_macvlan_port_destroy
	b	LBB0_9
LBB0_20:
	stp	x19, x20, [x22, #32]
	str	x24, [x22, #24]
Lloh19:
	adrp	x8, _MACVLAN_FEATURES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MACVLAN_FEATURES@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x22, #16]
Lloh22:
	adrp	x8, _MACVLAN_MODE_VEPA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MACVLAN_MODE_VEPA@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	str	x0, [x22]
	cbz	x23, LBB0_25
; %bb.21:
Lloh25:
	adrp	x8, _IFLA_MACVLAN_MODE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IFLA_MACVLAN_MODE@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x8, [x23, x8, lsl #3]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x8
	bl	_nla_get_u32
	str	x0, [x22]
LBB0_23:
Lloh28:
	adrp	x8, _IFLA_MACVLAN_FLAGS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IFLA_MACVLAN_FLAGS@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	x8, [x23, x8, lsl #3]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x8
	bl	_nla_get_u16
	str	w0, [x22, #12]
	ldr	x0, [x22]
LBB0_25:
Lloh31:
	adrp	x8, _MACVLAN_MODE_PASSTHRU@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MACVLAN_MODE_PASSTHRU@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_28
; %bb.26:
	ldr	x8, [x24, #8]
	cbnz	x8, LBB0_16
; %bb.27:
	mov	x0, x24
	bl	_macvlan_set_passthru
	mov	x0, x19
	mov	x1, x20
	bl	_eth_hw_addr_inherit
LBB0_28:
	cbz	x23, LBB0_32
; %bb.29:
Lloh34:
	adrp	x8, _IFLA_MACVLAN_MACADDR_MODE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IFLA_MACVLAN_MACADDR_MODE@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x0, [x23, x8, lsl #3]
	cbz	x0, LBB0_32
; %bb.30:
	ldr	x8, [x22]
Lloh37:
	adrp	x9, _MACVLAN_MODE_SOURCE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MACVLAN_MODE_SOURCE@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.31:
	bl	_nla_get_u32
	mov	x1, x0
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x23
	bl	_macvlan_changelink_sources
	mov	x26, x0
	cbnz	w0, LBB0_17
LBB0_32:
	mov	x0, x19
	bl	_register_netdevice
	tbnz	w0, #31, LBB0_36
; %bb.33:
Lloh40:
	adrp	x8, _IFF_MACVLAN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IFF_MACVLAN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_netdev_upper_dev_link
	mov	x26, x0
	cbz	w0, LBB0_37
; %bb.34:
	mov	x0, x19
	bl	_unregister_netdevice
	b	LBB0_9
LBB0_35:
	mov	x26, x0
	b	LBB0_9
LBB0_36:
	mov	x26, x0
	b	LBB0_17
LBB0_37:
	add	x0, x22, #8
	add	x1, x24, #4
	bl	_list_add_tail_rcu
	mov	x0, x20
	mov	x1, x19
	bl	_netif_stacked_transfer_operstate
	mov	x0, x19
	bl	_linkwatch_fire_event
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_LINK,8,3                  ; @IFLA_LINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IFLA_MTU,8,3                   ; @IFLA_MTU
	.comm	_ETH_MIN_MTU,4,2                ; @ETH_MIN_MTU
	.comm	_IFLA_ADDRESS,8,3               ; @IFLA_ADDRESS
	.comm	_MACVLAN_FEATURES,4,2           ; @MACVLAN_FEATURES
	.comm	_MACVLAN_MODE_VEPA,8,3          ; @MACVLAN_MODE_VEPA
	.comm	_IFLA_MACVLAN_MODE,8,3          ; @IFLA_MACVLAN_MODE
	.comm	_IFLA_MACVLAN_FLAGS,8,3         ; @IFLA_MACVLAN_FLAGS
	.comm	_MACVLAN_MODE_PASSTHRU,8,3      ; @MACVLAN_MODE_PASSTHRU
	.comm	_IFLA_MACVLAN_MACADDR_MODE,8,3  ; @IFLA_MACVLAN_MACADDR_MODE
	.comm	_MACVLAN_MODE_SOURCE,8,3        ; @MACVLAN_MODE_SOURCE
	.comm	_IFF_MACVLAN,4,2                ; @IFF_MACVLAN
.subsections_via_symbols
