	.file	"682447.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"From"
.LC1:
	.string	"To"
	.align 8
.LC2:
	.string	"Record %d: read error, errno=%d\n"
	.align 8
.LC3:
	.string	"Block size set from input; %d bytes\n"
	.align 8
.LC4:
	.string	"Record %d: read short; expected %d, got %d\n"
	.align 8
.LC5:
	.string	"Record %d: write error: errno=%d\n"
	.align 8
.LC6:
	.string	"Record %d: write short; expected %d, got %d\n"
	.align 8
.LC7:
	.string	"copy completed: %d records copied\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2088
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	r14d, 10240
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	getfile@PLT
	mov	r15d, eax
	mov	esi, 1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	getfile@PLT
	mov	DWORD PTR -10308[rbp], eax
	mov	r12d, 0
.L9:
	lea	rax, -10304[rbp]
	mov	edx, r14d
	mov	rsi, rax
	mov	edi, r15d
	mov	eax, 0
	call	read@PLT
	mov	ebx, eax
	test	ebx, ebx
	je	.L12
	test	ebx, ebx
	jns	.L4
	mov	eax, DWORD PTR errno[rip]
	mov	edx, eax
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L4:
	cmp	ebx, r14d
	je	.L5
	test	r12d, r12d
	jne	.L6
	mov	r14d, ebx
	mov	esi, r14d
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L6:
	mov	ecx, ebx
	mov	edx, r14d
	mov	esi, r12d
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	lea	rax, -10304[rbp]
	mov	edx, ebx
	mov	rsi, rax
	mov	edi, DWORD PTR -10308[rbp]
	mov	eax, 0
	call	write@PLT
	mov	r13d, eax
	test	r13d, r13d
	jns	.L7
	mov	eax, DWORD PTR errno[rip]
	mov	edx, eax
	mov	esi, r12d
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L7:
	cmp	r13d, ebx
	jge	.L8
	mov	ecx, r13d
	mov	edx, ebx
	mov	esi, r12d
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L8:
	add	r12d, 1
	jmp	.L9
.L12:
	nop
.L3:
	mov	esi, r12d
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -56[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	add	rsp, 10280
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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	"682447.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"From\000"
	.align	2
.LC1:
	.ascii	"To\000"
	.align	2
.LC2:
	.ascii	"Record %d: read error, errno=%d\012\000"
	.align	2
.LC3:
	.ascii	"Block size set from input; %d bytes\012\000"
	.align	2
.LC4:
	.ascii	"Record %d: read short; expected %d, got %d\012\000"
	.align	2
.LC5:
	.ascii	"Record %d: write error: errno=%d\012\000"
	.align	2
.LC6:
	.ascii	"Record %d: write short; expected %d, got %d\012\000"
	.align	2
.LC7:
	.ascii	"copy completed: %d records copied\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #10240
	sub	sp, sp, #8
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r6, #10240
	mov	r1, #0
	ldr	r0, .L13+4
	bl	getfile
	mov	r8, r0
	mov	r1, #1
	ldr	r0, .L13+8
	bl	getfile
	mov	r9, r0
	mov	r4, #0
.L9:
	sub	r3, fp, #10240
	sub	r3, r3, #28
	sub	r3, r3, #4
	mov	r2, r6
	mov	r1, r3
	mov	r0, r8
	bl	read
	mov	r5, r0
	cmp	r5, #0
	beq	.L12
	cmp	r5, #0
	bge	.L4
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L13+16
	bl	printf
	b	.L3
.L4:
	cmp	r5, r6
	beq	.L5
	cmp	r4, #0
	bne	.L6
	mov	r6, r5
	mov	r1, r6
	ldr	r0, .L13+20
	bl	printf
	b	.L5
.L6:
	mov	r3, r5
	mov	r2, r6
	mov	r1, r4
	ldr	r0, .L13+24
	bl	printf
.L5:
	sub	r3, fp, #10240
	sub	r3, r3, #28
	sub	r3, r3, #4
	mov	r2, r5
	mov	r1, r3
	mov	r0, r9
	bl	write
	mov	r7, r0
	cmp	r7, #0
	bge	.L7
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L13+28
	bl	printf
	b	.L3
.L7:
	cmp	r7, r5
	bge	.L8
	mov	r3, r7
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L13+32
	bl	printf
	b	.L3
.L8:
	add	r4, r4, #1
	b	.L9
.L12:
	nop
.L3:
	mov	r1, r4
	ldr	r0, .L13+36
	bl	printf
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	errno
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
