	.file	"extr_filesys-utils.c_read_whole_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Couldn't open %s for reading. %m\n"
	.align 8
.LC1:
	.string	"read %d bytes of %d from %s. %m\n"
	.text
	.p2align 4
	.type	read_whole_file, @function
read_whole_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	mov	esi, DWORD PTR O_RDONLY[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	open@PLT
	test	eax, eax
	js	.L6
	test	r12d, r12d
	mov	edi, 1
	mov	ebp, eax
	cmovg	edi, r12d
	call	zmalloc@PLT
	mov	edi, ebp
	mov	edx, r12d
	mov	rsi, rax
	mov	r13, rax
	call	read@PLT
	mov	edi, ebp
	mov	r15d, eax
	call	close@PLT
	cmp	r12d, r15d
	jne	.L7
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
	mov	r8, r14
	mov	ecx, r12d
	mov	edx, r15d
	xor	r13d, r13d
	lea	rsi, .LC1[rip]
	mov	edi, 1
	xor	eax, eax
	call	vkprintf@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
.L6:
	.cfi_restore_state
	mov	rdx, r14
	xor	r13d, r13d
	lea	rsi, .LC0[rip]
	xor	eax, eax
	mov	edi, 1
	call	vkprintf@PLT
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
	.cfi_endproc
.LFE0:
	.size	read_whole_file, .-read_whole_file
	.comm	O_RDONLY,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_filesys-utils.c_read_whole_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Couldn't open %s for reading. %m\012\000"
	.align	2
.LC1:
	.ascii	"read %d bytes of %d from %s. %m\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_whole_file, %function
read_whole_file:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L8
	mov	r4, r1
	sub	sp, sp, #8
	ldr	r1, [r3]
	mov	r8, r0
	bl	open
	subs	r5, r0, #0
	blt	.L6
	cmp	r4, #1
	movge	r0, r4
	movlt	r0, #1
	bl	zmalloc
	mov	r2, r4
	mov	r1, r0
	mov	r6, r0
	mov	r0, r5
	bl	read
	mov	r7, r0
	mov	r0, r5
	bl	close
	cmp	r4, r7
	bne	.L7
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r6, #0
	mov	r3, r4
	mov	r2, r7
	ldr	r1, .L8+4
	str	r8, [sp]
	mov	r0, #1
	bl	vkprintf
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r6, #0
	mov	r2, r8
	ldr	r1, .L8+8
	mov	r0, #1
	bl	vkprintf
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	O_RDONLY
	.word	.LC1
	.word	.LC0
	.size	read_whole_file, .-read_whole_file
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
