	.file	"715213.c"
	.intel_syntax noprefix
	.text
	.globl	num_blocks_written
	.type	num_blocks_written, @function
num_blocks_written:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L3
	add	QWORD PTR -8[rbp], 1
.L3:
	add	QWORD PTR -16[rbp], 1
.L2:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jb	.L4
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	num_blocks_written, .-num_blocks_written
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"/dev/random"
.LC2:
	.string	"Can't open /dev/random: %s\n"
	.align 8
.LC3:
	.string	"It seems like all the blocks have been written.\n"
	.text
	.globl	pick_a_block
	.type	pick_a_block, @function
pick_a_block:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	div	QWORD PTR -40[rbp]
	mov	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	jmp	.L8
.L11:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	jmp	.L13
.L9:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	edx, 0
	div	QWORD PTR -40[rbp]
	mov	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	add	QWORD PTR -24[rbp], 1
.L8:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L13:
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pick_a_block, .-pick_a_block
	.section	.rodata
.LC4:
	.string	"Usage: %s <src> <dst>\n"
.LC5:
	.string	"Can't stat %s: %s\n"
	.align 8
.LC6:
	.string	"file size:%d -- block size:%d -- num_blocks:%d\n"
.LC7:
	.string	"calloc(%d, %d) failed: %s\n"
	.align 8
.LC8:
	.string	"malloc(%d) for payload failed: %s\n"
	.align 8
.LC9:
	.string	"Can't open %s for reading: %s\n"
	.align 8
.LC10:
	.string	"Can't open %s for writing: %s\n"
	.align 8
.LC11:
	.string	"lseek tried to go to %d in src, but only went to %d\n"
	.align 8
.LC12:
	.string	"lseek tried to go to %d in dst, but only went to %d\n"
	.align 8
.LC13:
	.string	"Warning: block %d only read %d of %d bytes: %s\n"
	.align 8
.LC15:
	.string	"%d/%d -- Block %d done (%2.2f%%) -- read %d, wrote %d\n"
	.align 8
.LC16:
	.string	"Block %d read %d bytes, but only wrote %d bytes: %s.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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, 272
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 3
	je	.L15
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L32
.L15:
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -256[rbp], rax
	lea	rdx, -192[rbp]
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -256[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L32
.L17:
	mov	rax, QWORD PTR -144[rbp]
	mov	rbx, QWORD PTR -136[rbp]
	cqo
	idiv	rbx
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	rcx, QWORD PTR -136[rbp]
	cqo
	idiv	rcx
	mov	rax, rdx
	test	rax, rax
	je	.L18
	add	QWORD PTR -272[rbp], 1
.L18:
	mov	rax, QWORD PTR -272[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -272[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -248[rbp], rax
	cmp	QWORD PTR -248[rbp], 0
	jne	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -272[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rdx
	mov	ecx, 4
	mov	edx, esi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L32
.L19:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -240[rbp], rax
	cmp	QWORD PTR -240[rbp], 0
	jne	.L20
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	mov	edx, esi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L32
.L20:
	mov	rax, QWORD PTR -256[rbp]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], -1
	jne	.L21
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -256[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L32
.L21:
	mov	rax, QWORD PTR -264[rbp]
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], -1
	jne	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -264[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L32
.L22:
	mov	edx, DWORD PTR -168[rbp]
	mov	eax, DWORD PTR -280[rbp]
	mov	esi, edx
	mov	edi, eax
	call	fchmod@PLT
	jmp	.L23
.L31:
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pick_a_block
	mov	DWORD PTR -276[rbp], eax
	mov	eax, DWORD PTR -276[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	rcx, rdx
	imul	rcx, rax
	mov	eax, DWORD PTR -284[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	eax, DWORD PTR -276[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -136[rbp]
	imul	rax, rdx
	cmp	QWORD PTR -232[rbp], rax
	je	.L24
	mov	rax, QWORD PTR -232[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -276[rbp]
	imul	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L32
.L24:
	mov	eax, DWORD PTR -276[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	rcx, rdx
	imul	rcx, rax
	mov	eax, DWORD PTR -280[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	eax, DWORD PTR -276[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -136[rbp]
	imul	rax, rdx
	cmp	QWORD PTR -232[rbp], rax
	je	.L25
	mov	rax, QWORD PTR -232[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -276[rbp]
	imul	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L32
.L25:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -240[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR -284[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -224[rbp], rax
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	mov	rdx, QWORD PTR -272[rbp]
	sub	rdx, 1
	cmp	rax, rdx
	je	.L26
	mov	rax, QWORD PTR -136[rbp]
	cmp	QWORD PTR -224[rbp], rax
	jb	.L27
	cmp	QWORD PTR -224[rbp], -1
	jne	.L26
.L27:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -136[rbp]
	mov	edi, eax
	mov	rax, QWORD PTR -224[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -276[rbp]
	mov	r9, rcx
	mov	r8d, edi
	mov	ecx, esi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L26:
	mov	rdx, QWORD PTR -224[rbp]
	mov	rcx, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR -280[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	test	rax, rax
	js	.L28
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L29
.L28:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L29:
	movsd	QWORD PTR -208[rbp], xmm0
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	num_blocks_written
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -200[rbp], xmm0
	mov	rax, QWORD PTR -216[rbp]
	mov	r14d, eax
	mov	rax, QWORD PTR -224[rbp]
	mov	r13d, eax
	movsd	xmm1, QWORD PTR -200[rbp]
	movsd	xmm0, QWORD PTR .LC14[rip]
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -208[rbp]
	movq	rbx, xmm0
	mov	rax, QWORD PTR -272[rbp]
	mov	r12d, eax
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	num_blocks_written
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -276[rbp]
	mov	r9d, r14d
	mov	r8d, r13d
	movq	xmm0, rbx
	mov	ecx, eax
	mov	edx, r12d
	lea	rdi, .LC15[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -224[rbp]
	cmp	rax, QWORD PTR -216[rbp]
	je	.L30
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -216[rbp]
	mov	edi, eax
	mov	rax, QWORD PTR -224[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -276[rbp]
	mov	r9, rcx
	mov	r8d, edi
	mov	ecx, esi
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L32
.L30:
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L23:
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	num_blocks_written
	cdqe
	cmp	QWORD PTR -272[rbp], rax
	jne	.L31
	mov	eax, DWORD PTR -284[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -280[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L32:
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	add	rsp, 272
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC14:
	.long	0
	.long	1079574528
	.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	"715213.c"
	.text
	.align	2
	.global	num_blocks_written
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_blocks_written, %function
num_blocks_written:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L4
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	num_blocks_written, .-num_blocks_written
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"/dev/random\000"
	.align	2
.LC2:
	.ascii	"Can't open /dev/random: %s\012\000"
	.global	__aeabi_uidivmod
	.align	2
.LC3:
	.ascii	"It seems like all the blocks have been written.\012"
	.ascii	"\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pick_a_block
	.syntax unified
	.arm
	.fpu softvfp
	.type	pick_a_block, %function
pick_a_block:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L14+4
	ldr	r0, .L14+8
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L14+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L14+16
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L7:
	sub	r0, fp, #28
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L8
.L11:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-28]
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	b	.L13
.L9:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L8:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bcc	.L11
	ldr	r3, .L14+12
	ldr	r3, [r3]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L14+20
	bl	fwrite
	mov	r0, #2
	bl	exit
.L13:
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.size	pick_a_block, .-pick_a_block
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: %s <src> <dst>\012\000"
	.align	2
.LC6:
	.ascii	"Can't stat %s: %s\012\000"
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
.LC7:
	.ascii	"file size:%d -- block size:%d -- num_blocks:%d\012\000"
	.align	2
.LC8:
	.ascii	"calloc(%d, %d) failed: %s\012\000"
	.align	2
.LC9:
	.ascii	"malloc(%d) for payload failed: %s\012\000"
	.align	2
.LC10:
	.ascii	"Can't open %s for reading: %s\012\000"
	.align	2
.LC11:
	.ascii	"Can't open %s for writing: %s\012\000"
	.align	2
.LC12:
	.ascii	"lseek tried to go to %d in src, but only went to %d"
	.ascii	"\012\000"
	.align	2
.LC13:
	.ascii	"lseek tried to go to %d in dst, but only went to %d"
	.ascii	"\012\000"
	.align	2
.LC14:
	.ascii	"Warning: block %d only read %d of %d bytes: %s\012\000"
	.global	__aeabi_ui2d
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.align	2
.LC15:
	.ascii	"%d/%d -- Block %d done (%2.2f%%) -- read %d, wrote "
	.ascii	"%d\012\000"
	.align	2
.LC16:
	.ascii	"Block %d read %d bytes, but only wrote %d bytes: %s"
	.ascii	".\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #188
	str	r0, [fp, #-184]
	str	r1, [fp, #-188]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-184]
	cmp	r3, #3
	beq	.L17
	ldr	r3, .L34+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-188]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+8
	bl	fprintf
	mov	r3, #1
	b	.L32
.L17:
	ldr	r3, [fp, #-188]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-188]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-168]
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, [fp, #-168]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L34+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-168]
	ldr	r1, .L34+12
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L32
.L19:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-68]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-68]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L20:
	ldr	r1, [fp, #-72]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-176]
	ldr	r0, .L34+16
	bl	printf
	mov	r1, #4
	ldr	r0, [fp, #-176]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L34+4
	ldr	r4, [r3]
	ldr	r5, [fp, #-176]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, #4
	mov	r2, r5
	ldr	r1, .L34+20
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L32
.L21:
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L34+4
	ldr	r4, [r3]
	ldr	r5, [fp, #-68]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L34+24
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L32
.L22:
	mov	r1, #2048
	ldr	r0, [fp, #-168]
	bl	open
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmn	r3, #1
	bne	.L23
	ldr	r3, .L34+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-168]
	ldr	r1, .L34+28
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L32
.L23:
	ldr	r1, .L34+32
	ldr	r0, [fp, #-172]
	bl	open
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmn	r3, #1
	bne	.L24
	ldr	r3, .L34+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-172]
	ldr	r1, .L34+36
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L32
.L24:
	ldr	r3, [fp, #-100]
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	fchmod
	b	.L25
.L31:
	ldr	r1, [fp, #-164]
	ldr	r0, [fp, #-176]
	bl	pick_a_block
	mov	r3, r0
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-148]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-156]
	bl	lseek
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-148]
	mul	r3, r2, r3
	ldr	r2, [fp, #-144]
	cmp	r2, r3
	beq	.L26
	ldr	r3, .L34+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-148]
	mul	r2, r3, r2
	ldr	r3, [fp, #-144]
	ldr	r1, .L34+40
	bl	fprintf
	mov	r3, #1
	b	.L32
.L26:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-148]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	lseek
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-148]
	mul	r3, r2, r3
	ldr	r2, [fp, #-144]
	cmp	r2, r3
	beq	.L27
	ldr	r3, .L34+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-148]
	mul	r2, r3, r2
	ldr	r3, [fp, #-144]
	ldr	r1, .L34+44
	bl	fprintf
	mov	r3, #1
	b	.L32
.L27:
	ldr	r3, [fp, #-68]
	mov	r2, r3
	ldr	r3, [fp, #-160]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-68]
	mov	r2, r3
	ldr	r1, [fp, #-160]
	ldr	r0, [fp, #-156]
	bl	read
	mov	r3, r0
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-176]
	sub	r2, r3, #1
	ldr	r3, [fp, #-148]
	cmp	r2, r3
	beq	.L28
	ldr	r3, [fp, #-68]
	mov	r2, r3
	ldr	r3, [fp, #-140]
	cmp	r3, r2
	bcc	.L29
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L28
.L29:
	ldr	r3, .L34+4
	ldr	r5, [r3]
	ldr	r6, [fp, #-140]
	ldr	r4, [fp, #-68]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, r6
	ldr	r2, [fp, #-148]
	ldr	r1, .L34+48
	mov	r0, r5
	bl	fprintf
.L28:
	ldr	r2, [fp, #-140]
	ldr	r1, [fp, #-160]
	ldr	r0, [fp, #-152]
	bl	write
	mov	r3, r0
	str	r3, [fp, #-136]
	ldr	r0, [fp, #-176]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-132]
	str	r3, [fp, #-128]
	ldr	r1, [fp, #-164]
	ldr	r0, [fp, #-176]
	bl	num_blocks_written
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-124]
	str	r3, [fp, #-120]
	ldr	r1, [fp, #-164]
	ldr	r0, [fp, #-176]
	bl	num_blocks_written
	mov	r3, r0
	add	r4, r3, #1
	ldr	r5, [fp, #-176]
	mov	r2, #0
	ldr	r3, .L34+52
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #132
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	ldr	r3, [fp, #-148]
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L34+56
	bl	printf
	ldr	r2, [fp, #-140]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	beq	.L30
	ldr	r3, .L34+4
	ldr	r5, [r3]
	ldr	r6, [fp, #-140]
	ldr	r4, [fp, #-136]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, r6
	ldr	r2, [fp, #-148]
	ldr	r1, .L34+60
	mov	r0, r5
	bl	fprintf
	mov	r3, #1
	b	.L32
.L30:
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L25:
	ldr	r1, [fp, #-164]
	ldr	r0, [fp, #-176]
	bl	num_blocks_written
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-176]
	cmp	r3, r2
	bne	.L31
	ldr	r0, [fp, #-156]
	bl	close
	ldr	r0, [fp, #-152]
	bl	close
	mov	r3, #0
.L32:
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC17
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	578
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	1079574528
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
