	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macvtap_newlink
_macvtap_newlink:                       ## @macvtap_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_macvtap_receive@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_macvtap_forward@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_macvlan_common_newlink
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_macvtap_get_minor
	testl	%eax, %eax
	je	LBB0_2
## %bb.7:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_notifier_from_errno            ## TAILCALL
LBB0_2:
	movq	_macvtap_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAJOR
	movl	4(%r14), %esi
	movl	%eax, %edi
	callq	_MKDEV
	movq	_macvtap_class@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	4(%r15), %rsi
	movl	(%r15), %r9d
	leaq	L_.str(%rip), %r8
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_device_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_macvtap_del_queues
	movq	%r14, %rdi
	callq	_macvtap_free_minor
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_TUN_OFFLOADS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_macvtap_receive,4,2            ## @macvtap_receive
	.comm	_macvtap_forward,4,2            ## @macvtap_forward
	.comm	_macvtap_major,4,2              ## @macvtap_major
	.comm	_macvtap_class,4,2              ## @macvtap_class
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tap%d"

	.comm	_TUN_OFFLOADS,4,2               ## @TUN_OFFLOADS
	.no_dead_strip	_macvtap_newlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macvtap_newlink
_macvtap_newlink:                       ; @macvtap_newlink
	.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	x19, x0
Lloh0:
	adrp	x8, _macvtap_receive@GOTPAGE
Lloh1:
	ldr	x8, [x8, _macvtap_receive@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _macvtap_forward@GOTPAGE
Lloh4:
	ldr	x8, [x8, _macvtap_forward@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	bl	_macvlan_common_newlink
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x21
	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
LBB0_2:
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	bl	_macvtap_get_minor
	cbz	w0, LBB0_4
; %bb.3:
	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
	b	_notifier_from_errno
LBB0_4:
Lloh6:
	adrp	x8, _macvtap_major@GOTPAGE
Lloh7:
	ldr	x8, [x8, _macvtap_major@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_MAJOR
	ldr	w1, [x20, #4]
	bl	_MKDEV
	mov	x2, x0
Lloh9:
	adrp	x8, _macvtap_class@GOTPAGE
Lloh10:
	ldr	x8, [x8, _macvtap_class@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	ldr	w5, [x1], #4
Lloh12:
	adrp	x4, l_.str@PAGE
Lloh13:
	add	x4, x4, l_.str@PAGEOFF
	mov	x3, x19
	bl	_device_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
	mov	x0, x19
	bl	_macvtap_del_queues
	mov	x0, x20
	bl	_macvtap_free_minor
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
Lloh14:
	adrp	x8, _TUN_OFFLOADS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TUN_OFFLOADS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_macvtap_receive,4,2            ; @macvtap_receive
	.comm	_macvtap_forward,4,2            ; @macvtap_forward
	.comm	_macvtap_major,4,2              ; @macvtap_major
	.comm	_macvtap_class,4,2              ; @macvtap_class
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tap%d"

	.comm	_TUN_OFFLOADS,4,2               ; @TUN_OFFLOADS
	.no_dead_strip	_macvtap_newlink
.subsections_via_symbols
