	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_set_channels
_netvsc_set_channels:                   ## @netvsc_set_channels
	.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, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movl	(%rax), %edi
	callq	_rtnl_dereference
	movl	(%rbx), %r13d
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpq	$0, 16(%r12)
	je	LBB0_9
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	(%r12), %rax
	movq	_NVSP_PROTOCOL_VERSION_5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_4
## %bb.10:
	cmpl	8(%r12), %r13d
	ja	LBB0_4
## %bb.11:
	movl	12(%r12), %ebx
	movq	%r12, %rdi
	callq	_netvsc_devinfo_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, (%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_netvsc_detach
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
LBB0_18:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_19
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_netvsc_attach
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %ebx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_netvsc_attach
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_18
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NVSP_PROTOCOL_VERSION_5,8,3    ## @NVSP_PROTOCOL_VERSION_5
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"restoring channel setting failed\n"

	.no_dead_strip	_netvsc_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_set_channels
_netvsc_set_channels:                   ; @netvsc_set_channels
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w0, [x0]
	bl	_rtnl_dereference
	ldr	w22, [x21]
	cbz	w22, LBB0_4
; %bb.1:
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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_7:
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _NVSP_PROTOCOL_VERSION_5@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NVSP_PROTOCOL_VERSION_5@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.11:
	ldr	w8, [x20, #8]
	cmp	w22, w8
	b.hi	LBB0_4
; %bb.12:
	ldr	w23, [x20, #12]
	mov	x0, x20
	bl	_netvsc_devinfo_get
	cbz	x0, LBB0_18
; %bb.13:
	mov	x21, x0
	str	w22, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_netvsc_detach
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.14:
	mov	x0, x19
	mov	x1, x21
	bl	_netvsc_attach
	mov	x20, x0
	cbz	w0, LBB0_17
; %bb.15:
	str	w23, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_netvsc_attach
	cbz	w0, LBB0_17
; %bb.16:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_17:
	mov	x0, x21
	bl	_kfree
	b	LBB0_6
LBB0_18:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NVSP_PROTOCOL_VERSION_5,8,3    ; @NVSP_PROTOCOL_VERSION_5
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"restoring channel setting failed\n"

	.no_dead_strip	_netvsc_set_channels
.subsections_via_symbols
