	.file	"extr_netvsc_drv.c_netvsc_set_channels.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"restoring channel setting failed\n"
	.text
	.p2align 4
	.type	netvsc_set_channels, @function
netvsc_set_channels:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	netdev_priv@PLT
	mov	edi, DWORD PTR [rax]
	call	rtnl_dereference@PLT
	mov	r12d, DWORD PTR [rbx]
	test	r12d, r12d
	je	.L2
	cmp	QWORD PTR 24[rbx], 0
	jne	.L2
	cmp	QWORD PTR 16[rbx], 0
	jne	.L2
	cmp	QWORD PTR 8[rbx], 0
	jne	.L2
	mov	r14, rax
	test	rax, rax
	je	.L5
	cmp	QWORD PTR 16[rax], 0
	jne	.L5
	mov	rax, QWORD PTR NVSP_PROTOCOL_VERSION_5[rip]
	cmp	QWORD PTR [r14], rax
	jl	.L2
	cmp	DWORD PTR 8[r14], r12d
	jnb	.L23
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r14
	mov	ebx, DWORD PTR 12[r14]
	call	netvsc_devinfo_get@PLT
	mov	r13, rax
	test	rax, rax
	je	.L24
	mov	DWORD PTR [rax], r12d
	mov	rsi, r14
	mov	rdi, rbp
	call	netvsc_detach@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rsi, r13
	mov	rdi, rbp
	call	netvsc_attach@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L25
.L8:
	mov	rdi, r13
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L25:
	mov	DWORD PTR 0[r13], ebx
	mov	rsi, r13
	mov	rdi, rbp
	call	netvsc_attach@PLT
	test	eax, eax
	je	.L8
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	netdev_err@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	netvsc_set_channels, .-netvsc_set_channels
	.comm	NVSP_PROTOCOL_VERSION_5,8,8
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_netvsc_drv.c_netvsc_set_channels.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"restoring channel setting failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	netvsc_set_channels, %function
netvsc_set_channels:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r6, r0
	bl	netdev_priv
	ldr	r0, [r0]
	bl	rtnl_dereference
	ldr	r7, [r4]
	cmp	r7, #0
	beq	.L2
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L2
	cmp	r0, #0
	mov	r5, r0
	beq	.L5
	ldr	r3, [r0, #12]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L26
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L2
	ldr	r3, [r0, #4]
	cmp	r3, r7
	bcs	.L23
.L2:
	ldr	r3, .L26+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r3, .L26+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L23:
	ldr	r8, [r0, #8]
	bl	netvsc_devinfo_get
	subs	r9, r0, #0
	beq	.L24
	mov	r1, r5
	mov	r0, r6
	str	r7, [r9]
	bl	netvsc_detach
	subs	r4, r0, #0
	bne	.L8
	mov	r1, r9
	mov	r0, r6
	bl	netvsc_attach
	subs	r4, r0, #0
	bne	.L25
.L8:
	mov	r0, r9
	bl	kfree
	b	.L1
.L24:
	ldr	r3, .L26+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L25:
	mov	r1, r9
	mov	r0, r6
	str	r8, [r9]
	bl	netvsc_attach
	cmp	r0, #0
	beq	.L8
	mov	r0, r6
	ldr	r1, .L26+16
	bl	netdev_err
	b	.L8
.L27:
	.align	2
.L26:
	.word	NVSP_PROTOCOL_VERSION_5
	.word	EINVAL
	.word	ENODEV
	.word	ENOMEM
	.word	.LC0
	.size	netvsc_set_channels, .-netvsc_set_channels
	.comm	NVSP_PROTOCOL_VERSION_5,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
