	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_attach
_netvsc_attach:                         ## @netvsc_attach
	.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	%rsi, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	(%rax), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rndis_filter_device_add
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	cmpl	$2, (%rbx)
	jl	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_rndis_set_subchannel
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
LBB0_4:
	movq	%r15, %rdi
	callq	_netif_device_attach
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	%r15, %rdi
	callq	_netif_running
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_rndis_filter_open
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_netif_device_detach
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rndis_filter_device_remove
	movl	%r13d, %r12d
	jmp	LBB0_9
LBB0_6:
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_netif_carrier_on
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_netvsc_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_attach
_netvsc_attach:                         ; @netvsc_attach
	.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	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x20, [x0]
	mov	x0, x20
	mov	x1, x22
	bl	_rndis_filter_device_add
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.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
	b	_PTR_ERR
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_rndis_set_subchannel
	cbz	w0, LBB0_5
; %bb.4:
	movi.2s	v0, #1
	str	d0, [x21]
LBB0_5:
	mov	x0, x19
	bl	_netif_device_attach
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_rndis_filter_open
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
	mov	x0, x19
	bl	_netif_device_detach
	mov	x0, x20
	mov	x1, x21
	bl	_rndis_filter_device_remove
	b	LBB0_11
LBB0_8:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_netif_carrier_on
LBB0_10:
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_netvsc_attach
.subsections_via_symbols
