	.file	"extr_attr.c_read_attr_from_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
	.text
	.p2align 4
	.type	read_attr_from_file, @function
read_attr_from_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	lea	rsi, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 2104
	.cfi_def_cfa_offset 2160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 2088[rsp], rax
	xor	eax, eax
	call	fopen_or_warn@PLT
	test	rax, rax
	je	.L7
	mov	esi, 4
	mov	edi, 1
	mov	r12, rax
	xor	ebx, ebx
	call	xcalloc@PLT
	lea	rbp, 32[rsp]
	mov	r14, rax
	lea	rax, 24[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	add	ebx, 1
	mov	r8d, r15d
	mov	rdx, r13
	mov	rdi, r14
	mov	ecx, ebx
	call	handle_attr_line@PLT
.L3:
	mov	rdx, r12
	mov	esi, 2048
	mov	rdi, rbp
	call	fgets@PLT
	test	rax, rax
	je	.L11
	mov	QWORD PTR 24[rsp], rbp
	mov	rsi, rbp
	test	ebx, ebx
	jne	.L4
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, eax
	call	skip_utf8_bom@PLT
	mov	rsi, QWORD PTR 24[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r12
	call	fclose@PLT
.L1:
	mov	rax, QWORD PTR 2088[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 2104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_attr_from_file, .-read_attr_from_file
	.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_attr.c_read_attr_from_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_attr_from_file, %function
read_attr_from_file:
	@ args = 0, pretend = 0, frame = 2056
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L13
	sub	sp, sp, #2064
	sub	sp, sp, #4
	mov	r9, r1
	ldr	r1, .L13+4
	ldr	r3, [r3]
	str	r3, [sp, #2060]
	mov	r3,#0
	mov	r8, r0
	bl	fopen_or_warn
	subs	r6, r0, #0
	moveq	r7, r6
	beq	.L1
	mov	r1, #4
	mov	r0, #1
	bl	xcalloc
	mov	r4, #0
	mov	r7, r0
	add	r5, sp, #12
	b	.L3
.L4:
	add	r4, r4, #1
	mov	r3, r4
	mov	r2, r8
	mov	r0, r7
	str	r9, [sp]
	bl	handle_attr_line
.L3:
	mov	r2, r6
	mov	r1, #2048
	mov	r0, r5
	bl	fgets
	cmp	r0, #0
	beq	.L11
	cmp	r4, #0
	movne	r1, r5
	str	r5, [sp, #8]
	bne	.L4
	mov	r0, r5
	bl	strlen
	mov	r1, r0
	add	r0, sp, #8
	bl	skip_utf8_bom
	ldr	r1, [sp, #8]
	b	.L4
.L11:
	mov	r0, r6
	bl	fclose
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #2060]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r7
	add	sp, sp, #2064
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	.LC0
	.size	read_attr_from_file, .-read_attr_from_file
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
