	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macvtap_device_event
_macvtap_device_event:                  ## @macvtap_device_event
	.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, %rdi
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_notifier_info_to_dev
	movq	%rax, %r13
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	8(%r13), %rax
	cmpq	_macvtap_link_ops@GOTPCREL(%rip), %rax
	je	LBB0_1
LBB0_11:
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snprintf
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	cmpq	$128, %r12
	je	LBB0_9
## %bb.2:
	cmpq	$130, %r12
	je	LBB0_12
## %bb.3:
	cmpq	$129, %r12
	jne	LBB0_11
## %bb.4:
	movq	_macvtap_major@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_tap_get_minor
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	callq	_MAJOR
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_MKDEV
	movq	%r13, %r12
	addq	$4, %r12
	movq	_macvtap_class@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_device_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_macvtap_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_tap_free_minor
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_5
LBB0_9:
	cmpl	$0, (%r14)
	je	LBB0_11
## %bb.10:
	addq	$4, %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_sysfs_remove_link
	movq	_macvtap_major@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_MAJOR
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_MKDEV
	movq	_macvtap_class@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_device_destroy
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_tap_free_minor
	jmp	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_tap_queue_resize
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	movq	_NOTIFY_BAD@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_sysfs_create_link
	testl	%eax, %eax
	je	LBB0_11
LBB0_5:
	movl	%eax, %edi
	callq	_notifier_from_errno
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_macvtap_link_ops,4,2           ## @macvtap_link_ops
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tap%d"

	.comm	_macvtap_major,4,2              ## @macvtap_major
	.comm	_macvtap_class,4,2              ## @macvtap_class
	.comm	_NOTIFY_BAD,4,2                 ## @NOTIFY_BAD
	.no_dead_strip	_macvtap_device_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macvtap_device_event
_macvtap_device_event:                  ; @macvtap_device_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x0, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_netdev_notifier_info_to_dev
	mov	x21, x0
Lloh3:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	x8, [x0, #8]
Lloh8:
	adrp	x9, _macvtap_link_ops@GOTPAGE
Lloh9:
	ldr	x9, [x9, _macvtap_link_ops@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_5
LBB0_1:
Lloh10:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.4:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w3, [x21]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
	mov	x0, x21
	bl	_netdev_priv
	mov	x19, x0
	cmp	x22, #128
	b.eq	LBB0_10
; %bb.6:
	cmp	x22, #130
	b.eq	LBB0_12
; %bb.7:
	cmp	x22, #129
	b.ne	LBB0_1
; %bb.8:
Lloh17:
	adrp	x23, _macvtap_major@GOTPAGE
Lloh18:
	ldr	x23, [x23, _macvtap_major@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x19
	bl	_tap_get_minor
	cbz	w0, LBB0_14
LBB0_9:
	bl	_notifier_from_errno
	b	LBB0_3
LBB0_10:
	ldr	w8, [x19]
	cbz	w8, LBB0_1
; %bb.11:
	add	x0, x21, #4
	mov	x1, x20
	bl	_sysfs_remove_link
Lloh19:
	adrp	x20, _macvtap_major@GOTPAGE
Lloh20:
	ldr	x20, [x20, _macvtap_major@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_MAJOR
	ldr	w1, [x19]
	bl	_MKDEV
	mov	x1, x0
Lloh21:
	adrp	x0, _macvtap_class@GOTPAGE
Lloh22:
	ldr	x0, [x0, _macvtap_class@GOTPAGEOFF]
	bl	_device_destroy
	ldr	w0, [x20]
	mov	x1, x19
	bl	_tap_free_minor
	b	LBB0_1
LBB0_12:
	mov	x0, x19
	bl	_tap_queue_resize
	cbz	w0, LBB0_1
; %bb.13:
Lloh23:
	adrp	x8, _NOTIFY_BAD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NOTIFY_BAD@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
	ldr	w0, [x23]
	bl	_MAJOR
	ldr	w1, [x19]
	bl	_MKDEV
	mov	x2, x0
	add	x22, x21, #4
Lloh25:
	adrp	x0, _macvtap_class@GOTPAGE
Lloh26:
	ldr	x0, [x0, _macvtap_class@GOTPAGEOFF]
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	bl	_device_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	w0, LBB0_16
; %bb.15:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_tap_free_minor
	mov	x0, x21
	bl	_PTR_ERR
	bl	_notifier_from_errno
	b	LBB0_3
LBB0_16:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_sysfs_create_link
	cbnz	w0, LBB0_9
	b	LBB0_1
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_macvtap_link_ops,4,2           ; @macvtap_link_ops
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tap%d"

	.comm	_macvtap_major,4,2              ; @macvtap_major
	.comm	_macvtap_class,4,2              ; @macvtap_class
	.comm	_NOTIFY_BAD,4,2                 ; @NOTIFY_BAD
	.no_dead_strip	_macvtap_device_event
.subsections_via_symbols
