	.file	"extr_emac_hal.c_emac_hal_set_csr_clock_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	emac_hal_set_csr_clock_range
	.type	emac_hal_set_csr_clock_range, @function
emac_hal_set_csr_clock_range:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ[rip]
	mov	rcx, QWORD PTR [rdi]
	lea	edx, -20[rax]
	cmp	edx, 14
	ja	.L2
	mov	DWORD PTR [rcx], 2
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	lea	edx, -35[rax]
	cmp	edx, 24
	ja	.L4
	mov	DWORD PTR [rcx], 3
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	lea	edx, -60[rax]
	cmp	edx, 39
	jbe	.L9
	lea	edx, -100[rax]
	cmp	edx, 49
	ja	.L6
	mov	DWORD PTR [rcx], 1
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR [rcx], 0
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	sub	eax, 151
	cmp	eax, 98
	seta	al
	movzx	eax, al
	add	eax, 4
	mov	DWORD PTR [rcx], eax
	ret
	.cfi_endproc
.LFE0:
	.size	emac_hal_set_csr_clock_range, .-emac_hal_set_csr_clock_range
	.comm	CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ,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_emac_hal.c_emac_hal_set_csr_clock_range.c"
	.text
	.align	2
	.global	emac_hal_set_csr_clock_range
	.syntax unified
	.arm
	.fpu softvfp
	.type	emac_hal_set_csr_clock_range, %function
emac_hal_set_csr_clock_range:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L10
	ldr	r1, [r0]
	ldr	r3, [r3]
	sub	r2, r3, #20
	cmp	r2, #14
	bhi	.L2
	mov	r3, #2
	str	r3, [r1]
	bx	lr
.L2:
	sub	r2, r3, #35
	cmp	r2, #24
	bhi	.L4
	mov	r3, #3
	str	r3, [r1]
	bx	lr
.L4:
	sub	r2, r3, #60
	cmp	r2, #39
	bls	.L9
	sub	r2, r3, #100
	cmp	r2, #49
	bhi	.L6
	mov	r3, #1
	str	r3, [r1]
	bx	lr
.L9:
	mov	r3, #0
	str	r3, [r1]
	bx	lr
.L6:
	sub	r3, r3, #151
	cmp	r3, #98
	movls	r3, #4
	movhi	r3, #5
	str	r3, [r1]
	bx	lr
.L11:
	.align	2
.L10:
	.word	CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ
	.size	emac_hal_set_csr_clock_range, .-emac_hal_set_csr_clock_range
	.comm	CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
