	.file	"29808.c"
	.intel_syntax noprefix
	.text
	.globl	fread
	.type	fread, @function
fread:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	r14, rcx
	mov	r12, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], 0
	cmp	QWORD PTR -64[rbp], 0
	je	.L2
	jmp	.L3
.L8:
	mov	rbx, QWORD PTR -64[rbp]
.L7:
	mov	rdi, r14
	call	getc@PLT
	mov	r13d, eax
	cmp	r13d, -1
	je	.L4
	mov	rax, r12
	lea	r12, 1[rax]
	mov	edx, r13d
	mov	BYTE PTR [rax], dl
	jmp	.L9
.L4:
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L6
.L9:
	sub	rbx, 1
	test	rbx, rbx
	jne	.L7
	add	QWORD PTR -40[rbp], 1
.L3:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jb	.L8
.L2:
	mov	rax, QWORD PTR -40[rbp]
.L6:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fread, .-fread
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"29808.c"
	.text
	.align	2
	.global	fread
	.syntax unified
	.arm
	.fpu softvfp
	.type	fread, %function
fread:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mov	r7, r3
	ldr	r6, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L2
	b	.L3
.L8:
	ldr	r4, [fp, #-36]
.L7:
	mov	r0, r7
	bl	getc
	mov	r5, r0
	cmn	r5, #1
	beq	.L4
	mov	r3, r6
	add	r6, r3, #1
	and	r2, r5, #255
	strb	r2, [r3]
	b	.L9
.L4:
	ldr	r3, [fp, #-24]
	b	.L6
.L9:
	sub	r4, r4, #1
	cmp	r4, #0
	bne	.L7
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcc	.L8
.L2:
	ldr	r3, [fp, #-24]
.L6:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	fread, .-fread
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
