	.file	"extr_ec_access.c_read_ec_val.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Cannot set offset to 0x%.2x"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Could not read byte 0x%.2x from %s\n"
	.section	.rodata.str1.1
.LC2:
	.string	"0x%.2x\n"
	.text
	.p2align 4
	.globl	read_ec_val
	.type	read_ec_val, @function
read_ec_val:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	lseek@PLT
	cmp	r12d, eax
	je	.L2
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	err@PLT
.L2:
	lea	rsi, 4[rsp]
	mov	edx, 1
	mov	edi, ebp
	call	read@PLT
	cmp	eax, 1
	je	.L3
	mov	ecx, DWORD PTR SYSFS_PATH[rip]
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	mov	edx, r12d
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	err@PLT
.L3:
	mov	esi, DWORD PTR 4[rsp]
	lea	rdi, .LC2[rip]
	call	printf@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_ec_val, .-read_ec_val
	.comm	SYSFS_PATH,4,4
	.comm	SEEK_SET,4,4
	.comm	EXIT_FAILURE,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_ec_access.c_read_ec_val.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot set offset to 0x%.2x\000"
	.align	2
.LC1:
	.ascii	"Could not read byte 0x%.2x from %s\012\000"
	.align	2
.LC2:
	.ascii	"0x%.2x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_ec_val
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_ec_val, %function
read_ec_val:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L11
	ldr	r2, .L11+4
	sub	sp, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r2, [r3]
	mov	r4, r1
	mov	r5, r0
	bl	lseek
	cmp	r4, r0
	beq	.L2
	ldr	r3, .L11+8
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L11+12
	bl	err
.L2:
	mov	r0, r5
	mov	r2, #1
	mov	r1, sp
	bl	read
	cmp	r0, #1
	beq	.L3
	ldr	r1, .L11+8
	ldr	r3, .L11+16
	ldr	r0, [r1]
	mov	r2, r4
	ldr	r3, [r3]
	ldr	r1, .L11+20
	bl	err
.L3:
	ldr	r1, [sp]
	ldr	r0, .L11+24
	bl	printf
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	SEEK_SET
	.word	.LC3
	.word	EXIT_FAILURE
	.word	.LC0
	.word	SYSFS_PATH
	.word	.LC1
	.word	.LC2
	.size	read_ec_val, .-read_ec_val
	.comm	SYSFS_PATH,4,4
	.comm	SEEK_SET,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
