	.file	"extr_devmatch.c_read_hints.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Can't open %s for reading"
.LC1:
	.string	"Can't fstat %s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"not enough space to read hints file of %ju bytes"
	.align 8
.LC3:
	.string	"Can't read in %ju bytes from %s"
	.text
	.p2align 4
	.type	read_hints, @function
read_hints:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	open@PLT
	mov	ebp, eax
	test	eax, eax
	jns	.L2
	mov	rax, QWORD PTR ENOENT[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L8
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	mov	edi, 1
	xor	eax, eax
	call	err@PLT
.L2:
	mov	rsi, rsp
	mov	edi, ebp
	call	fstat@PLT
	test	rax, rax
	jne	.L14
.L4:
	mov	r14, QWORD PTR [rsp]
	mov	rdi, r14
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L15
.L5:
	mov	rdx, r14
	mov	rsi, r12
	mov	edi, ebp
	call	read@PLT
	mov	rdx, QWORD PTR [rsp]
	cmp	rax, rdx
	jne	.L16
.L6:
	mov	edi, ebp
	call	close@PLT
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rbx], rax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L16:
	.cfi_restore_state
	movsx	rdx, edx
	mov	rcx, r13
	lea	rsi, .LC3[rip]
	xor	eax, eax
	mov	edi, 1
	call	err@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	mov	edi, 1
	xor	eax, eax
	call	err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	xor	r12d, r12d
	jmp	.L1
.L15:
	movsx	rdx, r14d
	lea	rsi, .LC2[rip]
	mov	edi, 1
	xor	eax, eax
	call	err@PLT
	mov	r14, QWORD PTR [rsp]
	jmp	.L5
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_hints, .-read_hints
	.comm	errno,8,8
	.comm	O_RDONLY,4,4
	.comm	ENOENT,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_devmatch.c_read_hints.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can't open %s for reading\000"
	.align	2
.LC1:
	.ascii	"Can't fstat %s\012\000"
	.align	2
.LC2:
	.ascii	"not enough space to read hints file of %ju bytes\000"
	.align	2
.LC3:
	.ascii	"Can't read in %ju bytes from %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_hints, %function
read_hints:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L18
	mov	r7, r1
	ldr	r1, [r3]
	ldr	r3, .L18+4
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	open
	subs	r4, r0, #0
	bge	.L2
	ldr	r2, .L18+8
	ldr	r3, .L18+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r5, #0
	beq	.L1
	mov	r2, r6
	mov	r0, #1
	ldr	r1, .L18+16
	bl	err
.L2:
	mov	r1, sp
	mov	r0, r4
	bl	fstat
	cmp	r0, #0
	bne	.L14
.L4:
	ldr	r0, [sp]
	bl	malloc
	subs	r5, r0, #0
	beq	.L15
.L5:
	ldr	r2, [sp]
	mov	r1, r5
	mov	r0, r4
	bl	read
	ldr	r2, [sp]
	cmp	r0, r2
	bne	.L16
	mov	r0, r4
	bl	close
	ldr	r3, [sp]
	str	r3, [r7]
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	mov	r3, r6
	ldr	r1, .L18+20
	mov	r0, #1
	bl	err
	mov	r0, r4
	bl	close
	ldr	r3, [sp]
	str	r3, [r7]
	b	.L1
.L14:
	mov	r2, r6
	ldr	r1, .L18+24
	mov	r0, #1
	bl	err
	b	.L4
.L15:
	ldr	r2, [sp]
	ldr	r1, .L18+28
	mov	r0, #1
	bl	err
	b	.L5
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	O_RDONLY
	.word	.LC4
	.word	errno
	.word	ENOENT
	.word	.LC0
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	read_hints, .-read_hints
	.comm	errno,4,4
	.comm	O_RDONLY,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
