	.file	"790253.c"
	.intel_syntax noprefix
	.text
	.globl	version
	.section	.rodata
	.type	version, @object
	.size	version, 4
version:
	.string	"1.0"
	.globl	copyright
	.align 32
	.type	copyright, @object
	.size	copyright, 35
copyright:
	.string	"Copyright (C) 2015 Serge Vakulenko"
	.globl	progname
	.bss
	.align 8
	.type	progname, @object
	.size	progname, 8
progname:
	.zero	8
	.globl	verbose
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.zero	4
	.globl	blocksize_kbytes
	.data
	.align 4
	.type	blocksize_kbytes, @object
	.size	blocksize_kbytes, 4
blocksize_kbytes:
	.long	4
	.globl	fd
	.bss
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.globl	block
	.align 32
	.type	block, @object
	.size	block, 65536
block:
	.zero	65536
	.section	.rodata
.LC0:
	.string	"Mbyte #%u: seek failed\n"
.LC1:
	.string	"Mbyte #%u: write failed\n"
.LC2:
	.string	"Write Mbyte"
.LC3:
	.string	" #%u"
	.text
	.globl	write_mbyte
	.type	write_mbyte, @function
write_mbyte:
.LFB6:
	.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	DWORD PTR -36[rbp], edi
	mov	eax, DWORD PTR -36[rbp]
	sal	rax, 20
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR blocksize_kbytes[rip]
	sal	eax, 10
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	shr	rax, 2
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -36[rbp]
	not	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, block[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L3
	mov	eax, DWORD PTR fd[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	cmp	QWORD PTR -8[rbp], rax
	je	.L4
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR fd[rip]
	lea	rsi, block[rip]
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L6
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L5
.L6:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	shr	eax, 5
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L7
	cmp	DWORD PTR -36[rbp], 0
	jne	.L8
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	fdatasync@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L7:
	mov	eax, 1
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	write_mbyte, .-write_mbyte
	.section	.rodata
.LC4:
	.string	"Mbyte #%u: read failed\n"
	.align 8
.LC5:
	.string	"Mbyte #%u, word %u: data error: read %x, expected %x\n"
.LC6:
	.string	"Read Mbyte"
	.text
	.globl	verify_mbyte
	.type	verify_mbyte, @function
verify_mbyte:
.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	DWORD PTR -36[rbp], edi
	mov	eax, DWORD PTR -36[rbp]
	sal	rax, 20
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR blocksize_kbytes[rip]
	sal	eax, 10
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	shr	rax, 2
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR fd[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	cmp	QWORD PTR -8[rbp], rax
	je	.L10
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR fd[rip]
	lea	rsi, block[rip]
	mov	edi, eax
	call	read@PLT
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L11
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L11:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, block[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -36[rbp]
	not	edx
	cmp	eax, edx
	je	.L13
	mov	eax, DWORD PTR -36[rbp]
	not	eax
	mov	esi, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, block[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L13:
	add	DWORD PTR -20[rbp], 1
.L12:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L14
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	shr	eax, 5
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L17
	cmp	DWORD PTR -36[rbp], 0
	jne	.L16
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	verify_mbyte, .-verify_mbyte
	.section	.rodata
.LC7:
	.string	"Disk test, Version %s, %s\n"
.LC8:
	.string	"Usage:"
	.align 8
.LC9:
	.string	"    %s [-v] [-b blocksz] /dev/disk\n"
.LC10:
	.string	"Options:"
.LC11:
	.string	"    -v    verbose mode"
	.align 8
.LC12:
	.string	"    -b #  block size in kbytes, default 4"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdx, copyright[rip]
	lea	rsi, version[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR progname[rip]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.section	.rodata
.LC13:
	.string	"vb:"
.LC14:
	.string	"Bad block size = %d kbytes.\n"
	.align 8
.LC15:
	.string	"Valid range is 1...%d kbytes.\n"
.LC16:
	.string	"Disk device: %s\n"
.LC17:
	.string	"Block size: %d kbytes\n"
.LC18:
	.string	"%s: Cannot open\n"
.LC19:
	.string	"\nDisk size is %u Mbytes\n"
.LC20:
	.string	"\nDisk is OK"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR progname[rip], rax
.L27:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC13[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	cmp	eax, 118
	je	.L20
	cmp	eax, 118
	jg	.L21
	cmp	eax, -1
	je	.L40
	cmp	eax, 98
	je	.L23
	jmp	.L21
.L20:
	mov	eax, DWORD PTR verbose[rip]
	add	eax, 1
	mov	DWORD PTR verbose[rip], eax
	jmp	.L25
.L23:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR blocksize_kbytes[rip], eax
	jmp	.L25
.L21:
	mov	eax, 0
	call	usage
	jmp	.L26
.L40:
	nop
	jmp	.L26
.L25:
	jmp	.L27
.L26:
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -32[rbp], rax
	cmp	DWORD PTR -20[rbp], 1
	je	.L28
	mov	eax, 0
	call	usage
.L28:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR blocksize_kbytes[rip]
	test	eax, eax
	jle	.L29
	mov	eax, DWORD PTR blocksize_kbytes[rip]
	cmp	eax, 64
	jle	.L30
.L29:
	mov	eax, DWORD PTR blocksize_kbytes[rip]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 64
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR blocksize_kbytes[rip]
	cmp	eax, 4
	je	.L31
	mov	eax, DWORD PTR blocksize_kbytes[rip]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
.L31:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	jns	.L32
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L32:
	mov	DWORD PTR -16[rbp], 0
.L35:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	write_mbyte
	test	eax, eax
	je	.L41
	add	DWORD PTR -16[rbp], 1
	jmp	.L35
.L41:
	nop
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L36
.L37:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	verify_mbyte
	add	DWORD PTR -16[rbp], 1
.L36:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jb	.L37
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"790253.c"
	.text
	.global	version
	.section	.rodata
	.align	2
	.type	version, %object
	.size	version, 4
version:
	.ascii	"1.0\000"
	.global	copyright
	.align	2
	.type	copyright, %object
	.size	copyright, 35
copyright:
	.ascii	"Copyright (C) 2015 Serge Vakulenko\000"
	.comm	progname,4,4
	.comm	verbose,4,4
	.global	blocksize_kbytes
	.data
	.align	2
	.type	blocksize_kbytes, %object
	.size	blocksize_kbytes, 4
blocksize_kbytes:
	.word	4
	.comm	fd,4,4
	.comm	block,65536,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Mbyte #%u: seek failed\012\000"
	.align	2
.LC1:
	.ascii	"Mbyte #%u: write failed\012\000"
	.align	2
.LC2:
	.ascii	"Write Mbyte\000"
	.align	2
.LC3:
	.ascii	" #%u\000"
	.text
	.align	2
	.global	write_mbyte
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_mbyte, %function
write_mbyte:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #20
	str	r3, [fp, #-16]
	ldr	r3, .L9
	ldr	r3, [r3]
	lsl	r3, r3, #10
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #2
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L3:
	ldr	r3, [fp, #-24]
	mvn	r2, r3
	ldr	r1, .L9+4
	ldr	r3, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	ldr	r3, .L9+8
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	lseek
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L4
	ldr	r1, [fp, #-24]
	ldr	r0, .L9+12
	bl	printf
	mov	r3, #0
	b	.L5
.L4:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L9+4
	mov	r0, r3
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	beq	.L6
	ldr	r1, [fp, #-24]
	ldr	r0, .L9+16
	bl	printf
	mov	r3, #0
	b	.L5
.L6:
	ldr	r1, [fp, #-24]
	ldr	r3, .L9+20
	umull	r2, r3, r1, r3
	lsr	r2, r3, #5
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L7
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L9+24
	bl	printf
.L8:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fdatasync
	ldr	r1, [fp, #-24]
	ldr	r0, .L9+28
	bl	printf
	ldr	r3, .L9+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L7:
	mov	r3, #1
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	blocksize_kbytes
	.word	block
	.word	fd
	.word	.LC0
	.word	.LC1
	.word	1374389535
	.word	.LC2
	.word	.LC3
	.word	stdout
	.size	write_mbyte, .-write_mbyte
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Mbyte #%u: read failed\012\000"
	.align	2
.LC5:
	.ascii	"Mbyte #%u, word %u: data error: read %x, expected %"
	.ascii	"x\012\000"
	.align	2
.LC6:
	.ascii	"Read Mbyte\000"
	.text
	.align	2
	.global	verify_mbyte
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_mbyte, %function
verify_mbyte:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #20
	str	r3, [fp, #-16]
	ldr	r3, .L20
	ldr	r3, [r3]
	lsl	r3, r3, #10
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #2
	str	r3, [fp, #-8]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	lseek
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L12
	ldr	r1, [fp, #-24]
	ldr	r0, .L20+8
	bl	printf
	mvn	r0, #0
	bl	exit
.L12:
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L20+12
	mov	r0, r3
	bl	read
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	beq	.L13
	ldr	r1, [fp, #-24]
	ldr	r0, .L20+16
	bl	printf
	mvn	r0, #0
	bl	exit
.L13:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L14
.L16:
	ldr	r2, .L20+12
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	mvn	r3, r3
	cmp	r2, r3
	beq	.L15
	ldr	r2, .L20+12
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	mvn	r3, r3
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L20+20
	bl	printf
	mvn	r0, #0
	bl	exit
.L15:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L14:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L16
	ldr	r1, [fp, #-24]
	ldr	r3, .L20+24
	umull	r2, r3, r1, r3
	lsr	r2, r3, #5
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L19
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L20+28
	bl	printf
.L18:
	ldr	r1, [fp, #-24]
	ldr	r0, .L20+32
	bl	printf
	ldr	r3, .L20+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	blocksize_kbytes
	.word	fd
	.word	.LC0
	.word	block
	.word	.LC4
	.word	.LC5
	.word	1374389535
	.word	.LC6
	.word	.LC3
	.word	stdout
	.size	verify_mbyte, .-verify_mbyte
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Disk test, Version %s, %s\012\000"
	.align	2
.LC8:
	.ascii	"Usage:\000"
	.align	2
.LC9:
	.ascii	"    %s [-v] [-b blocksz] /dev/disk\012\000"
	.align	2
.LC10:
	.ascii	"Options:\000"
	.align	2
.LC11:
	.ascii	"    -v    verbose mode\000"
	.align	2
.LC12:
	.ascii	"    -b #  block size in kbytes, default 4\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L23
	ldr	r1, .L23+4
	ldr	r0, .L23+8
	bl	printf
	ldr	r0, .L23+12
	bl	puts
	ldr	r3, .L23+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+20
	bl	printf
	ldr	r0, .L23+24
	bl	puts
	ldr	r0, .L23+28
	bl	puts
	ldr	r0, .L23+32
	bl	puts
	mvn	r0, #0
	bl	exit
.L24:
	.align	2
.L23:
	.word	copyright
	.word	version
	.word	.LC7
	.word	.LC8
	.word	progname
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC13:
	.ascii	"vb:\000"
	.align	2
.LC14:
	.ascii	"Bad block size = %d kbytes.\012\000"
	.align	2
.LC15:
	.ascii	"Valid range is 1...%d kbytes.\012\000"
	.align	2
.LC16:
	.ascii	"Disk device: %s\012\000"
	.align	2
.LC17:
	.ascii	"Block size: %d kbytes\012\000"
	.align	2
.LC18:
	.ascii	"%s: Cannot open\012\000"
	.align	2
.LC19:
	.ascii	"\012Disk size is %u Mbytes\012\000"
	.align	2
.LC20:
	.ascii	"\012Disk is OK\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, .L48
	str	r3, [r2]
.L33:
	ldr	r2, .L48+4
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt
	mov	r3, r0
	cmp	r3, #118
	beq	.L26
	cmp	r3, #118
	bgt	.L27
	cmn	r3, #1
	beq	.L46
	cmp	r3, #98
	beq	.L29
	b	.L27
.L26:
	ldr	r3, .L48+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L48+8
	str	r3, [r2]
	b	.L31
.L29:
	ldr	r3, .L48+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L48+16
	str	r3, [r2]
	b	.L31
.L27:
	bl	usage
	b	.L32
.L46:
	nop
	b	.L32
.L31:
	b	.L33
.L32:
	ldr	r3, .L48+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, .L48+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L34
	bl	usage
.L34:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L48+16
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L35
	ldr	r3, .L48+16
	ldr	r3, [r3]
	cmp	r3, #64
	ble	.L36
.L35:
	ldr	r3, .L48+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L48+24
	bl	printf
	mov	r1, #64
	ldr	r0, .L48+28
	bl	printf
	mvn	r0, #0
	bl	exit
.L36:
	ldr	r1, [fp, #-12]
	ldr	r0, .L48+32
	bl	printf
	ldr	r3, .L48+16
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L37
	ldr	r3, .L48+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L48+36
	bl	printf
.L37:
	mov	r1, #2
	ldr	r0, [fp, #-12]
	bl	open
	mov	r3, r0
	ldr	r2, .L48+40
	str	r3, [r2]
	ldr	r3, .L48+40
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L38
	ldr	r1, [fp, #-12]
	ldr	r0, .L48+44
	bl	printf
	mvn	r0, #0
	bl	exit
.L38:
	mov	r3, #0
	str	r3, [fp, #-16]
.L41:
	ldr	r0, [fp, #-16]
	bl	write_mbyte
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L41
.L47:
	nop
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L48+48
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L42
.L43:
	ldr	r0, [fp, #-16]
	bl	verify_mbyte
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L42:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L43
	ldr	r0, .L48+52
	bl	puts
	ldr	r3, .L48+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	progname
	.word	.LC13
	.word	verbose
	.word	optarg
	.word	blocksize_kbytes
	.word	optind
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	fd
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
