	.file	"extr_atmel.c_atmel_set_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atmel_set_rate, @function
atmel_set_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdx
	call	netdev_priv@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L2
	movabs	rcx, 4294967299
	mov	QWORD PTR [rax], rcx
.L3:
	mov	eax, DWORD PTR EINPROGRESS[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rax], 0
	cmp	edx, 3
	ja	.L4
	mov	DWORD PTR [rax], edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	edx, 5500000
	je	.L5
	jg	.L6
	cmp	edx, 1000000
	je	.L7
	cmp	edx, 2000000
	jne	.L9
	mov	DWORD PTR [rax], 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	edx, 11000000
	jne	.L9
	mov	DWORD PTR [rax], 3
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR [rax], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR [rax], 2
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	atmel_set_rate, .-atmel_set_rate
	.comm	EINVAL,4,4
	.comm	EINPROGRESS,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_atmel.c_atmel_set_rate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atmel_set_rate, %function
atmel_set_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r2
	bl	netdev_priv
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
	mov	r2, #3
	mov	r3, #1
	stm	r0, {r2, r3}
.L3:
	ldr	r3, .L15
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L2:
	mov	r2, #0
	ldr	r3, [r4, #4]
	str	r2, [r0, #4]
	cmp	r3, #3
	bhi	.L4
.L13:
	str	r3, [r0]
	b	.L3
.L4:
	ldr	r1, .L15+4
	cmp	r3, r1
	beq	.L5
	bgt	.L6
	ldr	r1, .L15+8
	cmp	r3, r1
	beq	.L7
	ldr	r2, .L15+12
	cmp	r3, r2
	moveq	r3, #1
	streq	r3, [r0]
	beq	.L3
.L9:
	ldr	r3, .L15+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L6:
	ldr	r2, .L15+20
	cmp	r3, r2
	moveq	r3, #3
	streq	r3, [r0]
	beq	.L3
	b	.L9
.L7:
	str	r2, [r0]
	b	.L3
.L5:
	mov	r3, #2
	b	.L13
.L16:
	.align	2
.L15:
	.word	EINPROGRESS
	.word	5500000
	.word	1000000
	.word	2000000
	.word	EINVAL
	.word	11000000
	.size	atmel_set_rate, .-atmel_set_rate
	.comm	EINVAL,4,4
	.comm	EINPROGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
