	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_sc_open
_netvsc_sc_open:                        ## @netvsc_sc_open
	.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	%rdi, %r13
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_hv_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	(%r13), %rbx
	movl	(%rax), %edi
	callq	_rcu_dereference_raw
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	cmpq	(%rax), %rbx
	jge	LBB0_6
## %bb.2:
	movq	16(%r15), %r12
	shlq	$4, %rbx
	leaq	(%r12,%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_HV_CALL_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_set_channel_read_mode
	movq	%r13, 8(%r12,%rbx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_netvsc_ring_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_netvsc_channel_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, (%rsp)
	movq	%r13, %rdi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_vmbus_open
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_netdev_notice
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_napi_enable
LBB0_5:
	leaq	12(%r15), %rdi
	callq	_atomic_inc_return
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.7:
	addq	$8, %r15
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HV_CALL_ISR,4,2                ## @HV_CALL_ISR
	.comm	_netvsc_ring_bytes,4,2          ## @netvsc_ring_bytes
	.comm	_netvsc_channel_cb,4,2          ## @netvsc_channel_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sub channel open failed: %d\n"

	.no_dead_strip	_netvsc_sc_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_sc_open
_netvsc_sc_open:                        ; @netvsc_sc_open
	.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	x21, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_hv_get_drvdata
	mov	x20, x0
	bl	_netdev_priv
	ldr	x22, [x21]
	ldr	w0, [x0]
	bl	_rcu_dereference_raw
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x22, x8
	b.ge	LBB0_7
; %bb.2:
	ldr	x8, [x19, #16]
	add	x22, x8, x22, lsl #4
Lloh0:
	adrp	x8, _HV_CALL_ISR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HV_CALL_ISR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_set_channel_read_mode
	str	x21, [x22, #8]
Lloh3:
	adrp	x8, _netvsc_ring_bytes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _netvsc_ring_bytes@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _netvsc_channel_cb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _netvsc_channel_cb@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x2, x1
	mov	x3, #0
	mov	w4, #0
	mov	x6, x22
	bl	_vmbus_open
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_notice
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	bl	_napi_enable
LBB0_5:
	add	x0, x19, #12
	bl	_atomic_inc_return
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	add	x0, x19, #8
	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	_wake_up
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_CALL_ISR,4,2                ; @HV_CALL_ISR
	.comm	_netvsc_ring_bytes,4,2          ; @netvsc_ring_bytes
	.comm	_netvsc_channel_cb,4,2          ; @netvsc_channel_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sub channel open failed: %d\n"

	.no_dead_strip	_netvsc_sc_open
.subsections_via_symbols
