	.file	"extr_standalone.c_fread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fread
	.type	fread, @function
fread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	mov	edi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR sourceleft[rip]
	cdq
	idiv	ebx
	mov	esi, eax
	call	min@PLT
	imul	ebx, eax
	cmp	DWORD PTR sourcedesc[rip], ebp
	jne	.L6
	mov	esi, DWORD PTR sourceptr[rip]
	mov	edx, ebx
	mov	edi, r13d
	mov	r12d, eax
	call	memcpy@PLT
	sub	DWORD PTR sourceleft[rip], ebx
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR EBADF[rip]
	mov	r12d, -1
	mov	DWORD PTR errno[rip], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fread, .-fread
	.comm	sourceptr,4,4
	.comm	sourceleft,4,4
	.comm	sourcedesc,4,4
	.comm	errno,4,4
	.comm	EBADF,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_standalone.c_fread.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	fread
	.syntax unified
	.arm
	.fpu softvfp
	.type	fread, %function
fread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L7
	mov	r5, r1
	mov	r7, r0
	mov	r1, r2
	ldr	r0, [r8]
	mov	r6, r3
	mov	r4, r2
	bl	__aeabi_idiv
	mov	r1, r0
	mov	r0, r5
	bl	min
	ldr	r3, .L7+4
	mul	r4, r0, r4
	ldr	r3, [r3]
	cmp	r3, r6
	bne	.L6
	ldr	r3, .L7+8
	mov	r2, r4
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r7
	bl	memcpy
	ldr	r2, [r8]
	sub	r4, r2, r4
	str	r4, [r8]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r2, .L7+12
	ldr	r3, .L7+16
	ldr	r2, [r2]
	mvn	r5, #0
	str	r2, [r3]
	b	.L1
.L8:
	.align	2
.L7:
	.word	sourceleft
	.word	sourcedesc
	.word	sourceptr
	.word	EBADF
	.word	errno
	.size	fread, .-fread
	.comm	sourceptr,4,4
	.comm	sourceleft,4,4
	.comm	sourcedesc,4,4
	.comm	errno,4,4
	.comm	EBADF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
