	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_register_vf
_netvsc_register_vf:                    ## @netvsc_register_vf
	.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	(%rdi), %rax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %r13
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	callq	_get_netvsc_byslot
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_rtnl_dereference
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	(%r15), %edi
	callq	_rtnl_dereference
	testq	%rax, %rax
	je	LBB0_4
LBB0_10:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_net
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_dev_net
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_net_eq
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movl	16(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_netvsc_vf_join
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_dev_hold
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
	movl	8(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_netdev_update_features
	movq	_NOTIFY_OK@GOTPCREL(%rip), %r13
	jmp	LBB0_10
LBB0_5:
	movq	%r14, %rdi
	callq	_dev_net
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dev_change_net_namespace
	movl	16(%r14), %edx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_netdev_err
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_info
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eth%d"

L_.str.1:                               ## @.str.1
	.asciz	"could not move to same namespace as %s: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"VF moved to namespace with: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"VF registering: %s\n"

	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.no_dead_strip	_netvsc_register_vf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_register_vf
_netvsc_register_vf:                    ; @netvsc_register_vf
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_get_netvsc_byslot
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_rtnl_dereference
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	bl	_rtnl_dereference
	cbz	x0, LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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_6:
	mov	x0, x20
	bl	_dev_net
	mov	x22, x0
	mov	x0, x19
	bl	_dev_net
	mov	x1, x0
	mov	x0, x22
	bl	_net_eq
	cbz	w0, LBB0_9
; %bb.7:
	ldr	w2, [x19, #16]
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	x0, x19
	mov	x1, x20
	bl	_netvsc_vf_join
	cbnz	x0, LBB0_4
; %bb.8:
	mov	x0, x19
	bl	_dev_hold
	ldr	w0, [x21]
	mov	x1, x19
	bl	_rcu_assign_pointer
	ldr	w8, [x20, #8]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_netdev_update_features
Lloh7:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	mov	x0, x20
	bl	_dev_net
	mov	x1, x0
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_change_net_namespace
	ldr	w2, [x20, #16]
	cbz	w0, LBB0_11
; %bb.10:
	mov	x3, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_4
LBB0_11:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eth%d"

l_.str.1:                               ; @.str.1
	.asciz	"could not move to same namespace as %s: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"VF moved to namespace with: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"VF registering: %s\n"

	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.no_dead_strip	_netvsc_register_vf
.subsections_via_symbols
