	.file	"extr_cpufreq.c_sysfs_cpufreq_get_one_value.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sysfs_cpufreq_get_one_value, @function
sysfs_cpufreq_get_one_value:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_LINE_LEN[rip]
	mov	r8, rsp
	mov	rcx, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	r8, rax
	and	rdx, -16
	mov	rax, r8
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
	cmp	DWORD PTR MAX_CPUFREQ_VALUE_READ_FILES[rip], esi
	ja	.L18
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -8[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L19
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR cpufreq_value_files[rip]
	mov	esi, esi
	mov	rdx, rsp
	mov	esi, DWORD PTR [rax+rsi*4]
	call	sysfs_cpufreq_read_file@PLT
	test	eax, eax
	je	.L5
	xor	edx, edx
	lea	rsi, -16[rbp]
	mov	rdi, rsp
	call	strtoul@PLT
	cmp	QWORD PTR -16[rbp], rsp
	je	.L5
	mov	rcx, QWORD PTR ERANGE[rip]
	cmp	QWORD PTR errno[rip], rcx
	jne	.L1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	or	QWORD PTR -8[rsp+rdx], 0
	cmp	DWORD PTR MAX_CPUFREQ_VALUE_READ_FILES[rip], esi
	jbe	.L5
	jmp	.L18
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sysfs_cpufreq_get_one_value, .-sysfs_cpufreq_get_one_value
	.comm	errno,8,8
	.comm	cpufreq_value_files,8,8
	.comm	MAX_LINE_LEN,4,4
	.comm	MAX_CPUFREQ_VALUE_READ_FILES,4,4
	.comm	ERANGE,8,8
	.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_cpufreq.c_sysfs_cpufreq_get_one_value.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysfs_cpufreq_get_one_value, %function
sysfs_cpufreq_get_one_value:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r2, .L12
	ldr	r3, .L12+4
	ldr	ip, [r2]
	ldr	r3, [r3]
	cmp	ip, r1
	add	r2, r3, #7
	ldr	ip, .L12+8
	bic	r2, r2, #7
	ldr	ip, [ip]
	str	ip, [fp, #-8]
	mov	ip,#0
	sub	sp, sp, r2
	bhi	.L10
.L2:
	mov	r0, #0
.L1:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	ldr	r2, .L12+12
	ldr	ip, [r2]
	mov	r2, sp
	ldr	r1, [ip, r1, lsl #2]
	bl	sysfs_cpufreq_read_file
	cmp	r0, #0
	beq	.L2
	mov	r2, #0
	mov	r0, sp
	sub	r1, fp, #12
	bl	strtoul
	mov	r2, sp
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	beq	.L2
	ldr	r2, .L12+16
	ldr	r3, .L12+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L1
	b	.L2
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	MAX_CPUFREQ_VALUE_READ_FILES
	.word	MAX_LINE_LEN
	.word	.LC0
	.word	cpufreq_value_files
	.word	errno
	.word	ERANGE
	.size	sysfs_cpufreq_get_one_value, .-sysfs_cpufreq_get_one_value
	.comm	errno,4,4
	.comm	cpufreq_value_files,4,4
	.comm	MAX_LINE_LEN,4,4
	.comm	MAX_CPUFREQ_VALUE_READ_FILES,4,4
	.comm	ERANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
