	.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, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_netdev_extended
	movq	_IFLA_LINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r13,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	callq	_nla_get_u32
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	48(%rax), %r15
LBB0_7:
	movq	_IFLA_MTU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r13,%rax,8)
	je	LBB0_8
## %bb.9:
	movq	8(%r12), %rax
	cmpq	8(%r15), %rax
	jle	LBB0_10
	jmp	LBB0_1
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_8:
	movq	8(%r15), %rax
	movq	%rax, 8(%r12)
LBB0_10:
	movq	_IFLA_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r13,%rax,8)
	jne	LBB0_12
## %bb.11:
	movl	16(%r12), %edi
	callq	_random_ether_addr
LBB0_12:
	movq	24(%r15), %r13
	testq	%r13, %r13
	je	LBB0_13
## %bb.15:
	cmpl	$0, (%r13)
	jne	LBB0_1
LBB0_16:
	movq	%r15, 48(%r14)
	movq	%r12, 40(%r14)
	movq	%r13, 32(%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	movq	_MACVLAN_MODE_VEPA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.17:
	movq	_IFLA_MACVLAN_MODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rdx,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_nla_get_u32
	movq	%rax, 16(%r14)
LBB0_19:
	movq	_MACVLAN_MODE_PASSTHRU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.20:
	leaq	4(%r13), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_1
## %bb.21:
	movl	$1, (%r13)
	movl	16(%r12), %edi
	movl	16(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_22:
	movq	%r12, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	js	LBB0_24
## %bb.23:
	addq	$24, %r14
	addq	$4, %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail_rcu
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_netif_stacked_transfer_operstate
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_13:
	movq	%r15, %rdi
	callq	_macvlan_port_create
	testl	%eax, %eax
	js	LBB0_24
## %bb.14:
	movq	24(%r15), %r13
	cmpl	$0, (%r13)
	je	LBB0_16
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_IFLA_ADDRESS,8,3               ## @IFLA_ADDRESS
	.comm	_MACVLAN_MODE_VEPA,8,3          ## @MACVLAN_MODE_VEPA
	.comm	_IFLA_MACVLAN_MODE,8,3          ## @IFLA_MACVLAN_MODE
	.comm	_MACVLAN_MODE_PASSTHRU,8,3      ## @MACVLAN_MODE_PASSTHRU
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.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	x23, x4
	mov	x24, x3
	mov	x22, x2
	mov	x25, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netdev_extended
Lloh0:
	adrp	x8, _IFLA_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_LINK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x25, x8, lsl #3]
	cbz	x8, LBB0_22
; %bb.1:
	ldr	x21, [x0]
	mov	x0, x8
	bl	_nla_get_u32
	mov	x1, x0
	mov	x0, x21
	bl	___dev_get_by_index
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_netdev_priv
	ldr	x21, [x0, #48]
LBB0_4:
Lloh3:
	adrp	x8, _IFLA_MTU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFLA_MTU@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x25, x8, lsl #3]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.le	LBB0_8
	b	LBB0_22
LBB0_6:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_23
LBB0_7:
	ldr	x8, [x21, #8]
	str	x8, [x19, #8]
LBB0_8:
Lloh8:
	adrp	x8, _IFLA_ADDRESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFLA_ADDRESS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x25, x8, lsl #3]
	cbz	x8, LBB0_19
; %bb.9:
	ldr	x25, [x21, #24]
	cbz	x25, LBB0_20
LBB0_10:
	ldr	w8, [x25]
	cbnz	w8, LBB0_22
LBB0_11:
	stp	x19, x21, [x20, #40]
	str	x25, [x20, #32]
	stp	x24, x23, [x20]
Lloh11:
	adrp	x8, _MACVLAN_MODE_VEPA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MACVLAN_MODE_VEPA@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	str	x0, [x20, #16]
	cbz	x22, LBB0_14
; %bb.12:
Lloh14:
	adrp	x8, _IFLA_MACVLAN_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IFLA_MACVLAN_MODE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x22, x8, lsl #3]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x8
	bl	_nla_get_u32
	str	x0, [x20, #16]
LBB0_14:
Lloh17:
	adrp	x8, _MACVLAN_MODE_PASSTHRU@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MACVLAN_MODE_PASSTHRU@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.15:
	add	x0, x25, #4
	bl	_list_empty
	cbz	w0, LBB0_22
; %bb.16:
	mov	w8, #1
	str	w8, [x25]
	ldr	w0, [x19, #16]
	ldr	w1, [x21, #16]
Lloh20:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_17:
	mov	x0, x19
	bl	_register_netdevice
	tbnz	w0, #31, LBB0_24
; %bb.18:
	add	x0, x20, #24
	add	x1, x25, #4
	bl	_list_add_tail_rcu
	mov	x0, x21
	mov	x1, x19
	bl	_netif_stacked_transfer_operstate
	mov	w0, #0
	b	LBB0_24
LBB0_19:
	ldr	w0, [x19, #16]
	bl	_random_ether_addr
	ldr	x25, [x21, #24]
	cbnz	x25, LBB0_10
LBB0_20:
	mov	x0, x21
	bl	_macvlan_port_create
	tbnz	w0, #31, LBB0_24
; %bb.21:
	ldr	x25, [x21, #24]
	ldr	w8, [x25]
	cbz	w8, LBB0_11
LBB0_22:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.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	_IFLA_ADDRESS,8,3               ; @IFLA_ADDRESS
	.comm	_MACVLAN_MODE_VEPA,8,3          ; @MACVLAN_MODE_VEPA
	.comm	_IFLA_MACVLAN_MODE,8,3          ; @IFLA_MACVLAN_MODE
	.comm	_MACVLAN_MODE_PASSTHRU,8,3      ; @MACVLAN_MODE_PASSTHRU
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
