	.file	"68888320.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%02x"
	.text
	.globl	generatehex
	.type	generatehex, @function
generatehex:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, DWORD PTR -4[rbp]
	add	edx, edx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rcx, rdx
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 19
	jle	.L3
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	generatehex, .-generatehex
	.section	.rodata
.LC1:
	.string	"Error with sha1digest()\n"
.LC2:
	.string	"does NOT match"
.LC3:
	.string	"matches"
	.align 8
.LC4:
	.string	"Known digest:  '%s'  data length: %zu\n"
.LC5:
	.string	"  Hex digest:  '%s'  %s\n"
.LC6:
	.string	"  Bin digest:  '%s'  %s\n"
	.text
	.globl	testhash
	.type	testhash, @function
testhash:
.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, 208
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -164[rbp], 0
	mov	rcx, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	lea	rsi, -112[rbp]
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sha1digest@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L11
.L5:
	lea	rdx, -144[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	generatehex
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	je	.L7
	lea	rax, .LC2[rip]
	mov	QWORD PTR -160[rbp], rax
	add	DWORD PTR -164[rbp], 1
	jmp	.L8
.L7:
	lea	rax, .LC3[rip]
	mov	QWORD PTR -160[rbp], rax
.L8:
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	je	.L9
	lea	rax, .LC2[rip]
	mov	QWORD PTR -152[rbp], rax
	add	DWORD PTR -164[rbp], 1
	jmp	.L10
.L9:
	lea	rax, .LC3[rip]
	mov	QWORD PTR -152[rbp], rax
.L10:
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -160[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -152[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -164[rbp]
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	testhash, .-testhash
	.section	.rodata
.LC7:
	.string	"-l"
.LC8:
	.string	"-nsrl"
	.align 8
.LC9:
	.string	"-nsrl option requires a directory argument"
.LC10:
	.string	"abc"
	.align 8
.LC11:
	.string	"a9993e364706816aba3e25717850c26c9cd0d89d"
.LC12:
	.string	""
	.align 8
.LC13:
	.string	"da39a3ee5e6b4b0d3255bfef95601890afd80709"
	.align 8
.LC14:
	.string	"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
	.align 8
.LC15:
	.string	"84983e441c3bd26ebaae4aa1f95129e5e54670f1"
	.align 8
.LC16:
	.string	"abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu"
	.align 8
.LC17:
	.string	"a49b2446a02c645bf419f995b67091253a04a259"
	.align 8
.LC18:
	.string	"34aa973cd4c4daa4f61eeb2bdbad27316534016f"
	.align 8
.LC19:
	.string	"abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmno"
	.align 8
.LC20:
	.string	"7789f0c9ef7bfc40d93311143dfbe69e2017f592"
	.align 8
.LC21:
	.string	"The quick brown fox jumps over the lazy dog"
	.align 8
.LC22:
	.string	"2fd4e1c67a2d28fced849ee1bb76e7391b93eb12"
	.align 8
.LC23:
	.string	"The quick brown fox jumps over the lazy cog"
	.align 8
.LC24:
	.string	"de9f2c7fd25e1b3afad3e85a0bd17d9b100db4b3"
.LC25:
	.string	"%s/byte-hashes.sha1"
.LC26:
	.string	"r"
.LC27:
	.string	"Error opening %s: %s\n"
.LC28:
	.string	"hash count: %d\n"
.LC29:
	.string	"%s/byte%04d.dat"
.LC30:
	.string	"Error reading %s: %s\n"
	.align 8
.LC31:
	.string	"Short read of %s, expected %zu bytes\n"
.LC32:
	.string	"File: %s\n"
.LC33:
	.string	"Failures: %d\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
	sub	rsp, 2064
	mov	DWORD PTR -2052[rbp], edi
	mov	QWORD PTR -2064[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2016[rbp], 0
	mov	DWORD PTR -2036[rbp], 0
	mov	DWORD PTR -2032[rbp], 0
	mov	DWORD PTR -2028[rbp], 0
	jmp	.L14
.L19:
	mov	eax, DWORD PTR -2028[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2064[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	DWORD PTR -2032[rbp], 1
.L15:
	mov	eax, DWORD PTR -2028[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2064[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR -2028[rbp]
	add	eax, 1
	cmp	DWORD PTR -2052[rbp], eax
	jne	.L17
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -2028[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2064[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -2016[rbp], rax
.L16:
	add	DWORD PTR -2028[rbp], 1
.L14:
	mov	eax, DWORD PTR -2028[rbp]
	cmp	eax, DWORD PTR -2052[rbp]
	jl	.L19
	lea	rax, .LC10[rip]
	mov	QWORD PTR -2008[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -2000[rbp], rax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -2000[rbp]
	mov	rax, QWORD PTR -2008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	testhash
	add	DWORD PTR -2036[rbp], eax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -2008[rbp], rax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -2000[rbp], rax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -2000[rbp]
	mov	rax, QWORD PTR -2008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	testhash
	add	DWORD PTR -2036[rbp], eax
	lea	rax, .LC14[rip]
	mov	QWORD PTR -2008[rbp], rax
	lea	rax, .LC15[rip]
	mov	QWORD PTR -2000[rbp], rax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -2000[rbp]
	mov	rax, QWORD PTR -2008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	testhash
	add	DWORD PTR -2036[rbp], eax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -2008[rbp], rax
	lea	rax, .LC17[rip]
	mov	QWORD PTR -2000[rbp], rax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -2000[rbp]
	mov	rax, QWORD PTR -2008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	testhash
	add	DWORD PTR -2036[rbp], eax
	mov	edi, 1000000
	call	malloc@PLT
	mov	QWORD PTR -2008[rbp], rax
	mov	rax, QWORD PTR -2008[rbp]
	mov	edx, 1000000
	mov	esi, 97
	mov	rdi, rax
	call	memset@PLT
	lea	rax, .LC18[rip]
	mov	QWORD PTR -2000[rbp], rax
	mov	rdx, QWORD PTR -2000[rbp]
	mov	rax, QWORD PTR -2008[rbp]
	mov	esi, 1000000
	mov	rdi, rax
	call	testhash
	add	DWORD PTR -2036[rbp], eax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -2032[rbp], 0
	je	.L20
	lea	rax, .LC19[rip]
	mov	QWORD PTR -1992[rbp], rax
	mov	rax, QWORD PTR -1992[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -1984[rbp], rax
	mov	rax, QWORD PTR -1984[rbp]
	sal	rax, 24
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -2008[rbp], rax
	mov	DWORD PTR -2028[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -2028[rbp]
	cdqe
	imul	rax, QWORD PTR -1984[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -2008[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -1984[rbp]
	mov	rax, QWORD PTR -1992[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	add	DWORD PTR -2028[rbp], 1
.L21:
	cmp	DWORD PTR -2028[rbp], 16777215
	jle	.L22
	lea	rax, .LC20[rip]
	mov	QWORD PTR -2000[rbp], rax
	mov	rax, QWORD PTR -1984[rbp]
	sal	rax, 24
	mov	rcx, rax
	mov	rdx, QWORD PTR -2000[rbp]
	mov	rax, QWORD PTR -2008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	testhash
	add	DWORD PTR -2036[rbp], eax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rdi, rax
	call	free@PLT
.L20:
	lea	rax, .LC21[rip]
	mov	QWORD PTR -2008[rbp], rax
	lea	rax, .LC22[rip]
	mov	QWORD PTR -2000[rbp], rax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -2000[rbp]
	mov	rax, QWORD PTR -2008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	testhash
	add	DWORD PTR -2036[rbp], eax
	lea	rax, .LC23[rip]
	mov	QWORD PTR -2008[rbp], rax
	lea	rax, .LC24[rip]
	mov	QWORD PTR -2000[rbp], rax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -2000[rbp]
	mov	rax, QWORD PTR -2008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	testhash
	add	DWORD PTR -2036[rbp], eax
	cmp	QWORD PTR -2016[rbp], 0
	je	.L23
	lea	rdx, -1824[rbp]
	mov	eax, 0
	mov	ecx, 200
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -2024[rbp], 0
	mov	rdx, QWORD PTR -2016[rbp]
	lea	rax, -224[rbp]
	mov	rcx, rdx
	lea	rdx, .LC25[rip]
	mov	esi, 100
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -224[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1976[rbp], rax
	cmp	QWORD PTR -1976[rbp], 0
	jne	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L18
.L27:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 41
	jbe	.L26
	movzx	eax, BYTE PTR -72[rbp]
	cmp	al, 32
	jne	.L26
	movzx	eax, BYTE PTR -71[rbp]
	cmp	al, 94
	jne	.L26
	mov	BYTE PTR -72[rbp], 0
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -2024[rbp]
	cdqe
	mov	QWORD PTR -1824[rbp+rax*8], rdx
	add	DWORD PTR -2024[rbp], 1
.L26:
	mov	rdx, QWORD PTR -1976[rbp]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L27
	mov	rax, QWORD PTR -1976[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -2024[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -2020[rbp], 0
	jmp	.L28
.L33:
	mov	ecx, DWORD PTR -2020[rbp]
	mov	rdx, QWORD PTR -2016[rbp]
	lea	rax, -224[rbp]
	mov	r8d, ecx
	mov	rcx, rdx
	lea	rdx, .LC29[rip]
	mov	esi, 100
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -224[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1976[rbp], rax
	cmp	QWORD PTR -1976[rbp], 0
	jne	.L29
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L18
.L29:
	mov	rax, QWORD PTR -1976[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	edx, eax
	lea	rax, -1968[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fstat@PLT
	mov	rax, QWORD PTR -1920[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -2008[rbp], rax
	mov	rax, QWORD PTR -1920[rbp]
	test	rax, rax
	jle	.L30
	mov	rax, QWORD PTR -1920[rbp]
	mov	rsi, rax
	mov	rdx, QWORD PTR -1976[rbp]
	mov	rax, QWORD PTR -2008[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L30
	mov	rax, QWORD PTR -1976[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L31
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L32
.L31:
	mov	rax, QWORD PTR -1920[rbp]
	mov	rdx, rax
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
.L32:
	mov	eax, 1
	jmp	.L18
.L30:
	mov	rax, QWORD PTR -1976[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2020[rbp]
	cdqe
	mov	rdx, QWORD PTR -1824[rbp+rax*8]
	mov	rax, QWORD PTR -1920[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	testhash
	add	DWORD PTR -2036[rbp], eax
	mov	rax, QWORD PTR -2008[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -2020[rbp], 1
.L28:
	mov	eax, DWORD PTR -2020[rbp]
	cmp	eax, DWORD PTR -2024[rbp]
	jl	.L33
.L23:
	mov	eax, DWORD PTR -2036[rbp]
	mov	esi, eax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2036[rbp]
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"68888320.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%02x\000"
	.text
	.align	2
	.global	generatehex
	.syntax unified
	.arm
	.fpu softvfp
	.type	generatehex, %function
generatehex:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r0, r3, r2
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L4
	bl	sprintf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	ble	.L3
	ldr	r3, [fp, #-16]
	add	r3, r3, #40
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	generatehex, .-generatehex
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Error with sha1digest()\012\000"
	.align	2
.LC2:
	.ascii	"does NOT match\000"
	.align	2
.LC3:
	.ascii	"matches\000"
	.align	2
.LC4:
	.ascii	"Known digest:  '%s'  data length: %zu\012\000"
	.align	2
.LC5:
	.ascii	"  Hex digest:  '%s'  %s\012\000"
	.align	2
.LC6:
	.ascii	"  Bin digest:  '%s'  %s\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testhash
	.syntax unified
	.arm
	.fpu softvfp
	.type	testhash, %function
testhash:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	str	r2, [fp, #-144]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	sub	r1, fp, #96
	sub	r0, fp, #116
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-136]
	bl	sha1digest
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L15+8
	bl	fwrite
	mov	r3, #1
	b	.L13
.L7:
	sub	r2, fp, #116
	sub	r3, fp, #52
	mov	r1, r2
	mov	r0, r3
	bl	generatehex
	sub	r3, fp, #96
	ldr	r1, [fp, #-144]
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L15+12
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	b	.L10
.L9:
	ldr	r3, .L15+16
	str	r3, [fp, #-128]
.L10:
	sub	r3, fp, #52
	ldr	r1, [fp, #-144]
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L15+12
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	b	.L12
.L11:
	ldr	r3, .L15+16
	str	r3, [fp, #-124]
.L12:
	ldr	r2, [fp, #-140]
	ldr	r1, [fp, #-144]
	ldr	r0, .L15+20
	bl	printf
	sub	r3, fp, #96
	ldr	r2, [fp, #-128]
	mov	r1, r3
	ldr	r0, .L15+24
	bl	printf
	sub	r3, fp, #52
	ldr	r2, [fp, #-124]
	mov	r1, r3
	ldr	r0, .L15+28
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-120]
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	testhash, .-testhash
	.section	.rodata
	.align	2
.LC8:
	.ascii	"-l\000"
	.align	2
.LC9:
	.ascii	"-nsrl\000"
	.align	2
.LC10:
	.ascii	"-nsrl option requires a directory argument\000"
	.align	2
.LC11:
	.ascii	"abc\000"
	.align	2
.LC12:
	.ascii	"a9993e364706816aba3e25717850c26c9cd0d89d\000"
	.align	2
.LC13:
	.ascii	"\000"
	.align	2
.LC14:
	.ascii	"da39a3ee5e6b4b0d3255bfef95601890afd80709\000"
	.align	2
.LC15:
	.ascii	"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomno"
	.ascii	"pnopq\000"
	.align	2
.LC16:
	.ascii	"84983e441c3bd26ebaae4aa1f95129e5e54670f1\000"
	.align	2
.LC17:
	.ascii	"abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghi"
	.ascii	"jklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqr"
	.ascii	"stnopqrstu\000"
	.align	2
.LC18:
	.ascii	"a49b2446a02c645bf419f995b67091253a04a259\000"
	.align	2
.LC19:
	.ascii	"34aa973cd4c4daa4f61eeb2bdbad27316534016f\000"
	.align	2
.LC20:
	.ascii	"abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghi"
	.ascii	"jklmnhijklmno\000"
	.align	2
.LC21:
	.ascii	"7789f0c9ef7bfc40d93311143dfbe69e2017f592\000"
	.align	2
.LC22:
	.ascii	"The quick brown fox jumps over the lazy dog\000"
	.align	2
.LC23:
	.ascii	"2fd4e1c67a2d28fced849ee1bb76e7391b93eb12\000"
	.align	2
.LC24:
	.ascii	"The quick brown fox jumps over the lazy cog\000"
	.align	2
.LC25:
	.ascii	"de9f2c7fd25e1b3afad3e85a0bd17d9b100db4b3\000"
	.align	2
.LC26:
	.ascii	"%s/byte-hashes.sha1\000"
	.align	2
.LC27:
	.ascii	"r\000"
	.align	2
.LC28:
	.ascii	"Error opening %s: %s\012\000"
	.align	2
.LC29:
	.ascii	"hash count: %d\012\000"
	.align	2
.LC30:
	.ascii	"%s/byte%04d.dat\000"
	.align	2
.LC31:
	.ascii	"Error reading %s: %s\012\000"
	.align	2
.LC32:
	.ascii	"Short read of %s, expected %zu bytes\012\000"
	.align	2
.LC33:
	.ascii	"File: %s\012\000"
	.align	2
.LC34:
	.ascii	"Failures: %d\012\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1152
	sub	sp, sp, #8
	str	r0, [fp, #-1152]
	str	r1, [fp, #-1156]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1144]
	mov	r3, #0
	str	r3, [fp, #-1140]
	mov	r3, #0
	str	r3, [fp, #-1136]
	mov	r3, #0
	str	r3, [fp, #-1132]
	b	.L18
.L23:
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L39+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r3, #1
	str	r3, [fp, #-1136]
.L19:
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L39+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-1132]
	add	r3, r3, #1
	ldr	r2, [fp, #-1152]
	cmp	r2, r3
	bne	.L21
	ldr	r0, .L39+12
	bl	puts
	mov	r3, #1
	b	.L22
.L21:
	ldr	r3, [fp, #-1132]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-1144]
.L20:
	ldr	r3, [fp, #-1132]
	add	r3, r3, #1
	str	r3, [fp, #-1132]
.L18:
	ldr	r2, [fp, #-1132]
	ldr	r3, [fp, #-1152]
	cmp	r2, r3
	blt	.L23
	ldr	r3, .L39+16
	str	r3, [fp, #-1120]
	ldr	r3, .L39+20
	str	r3, [fp, #-1116]
	ldr	r0, [fp, #-1120]
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-1116]
	mov	r1, r3
	ldr	r0, [fp, #-1120]
	bl	testhash
	mov	r2, r0
	ldr	r3, [fp, #-1140]
	add	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r3, .L39+24
	str	r3, [fp, #-1120]
	ldr	r3, .L39+28
	str	r3, [fp, #-1116]
	ldr	r0, [fp, #-1120]
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-1116]
	mov	r1, r3
	ldr	r0, [fp, #-1120]
	bl	testhash
	mov	r2, r0
	ldr	r3, [fp, #-1140]
	add	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r3, .L39+32
	str	r3, [fp, #-1120]
	ldr	r3, .L39+36
	str	r3, [fp, #-1116]
	ldr	r0, [fp, #-1120]
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-1116]
	mov	r1, r3
	ldr	r0, [fp, #-1120]
	bl	testhash
	mov	r2, r0
	ldr	r3, [fp, #-1140]
	add	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r3, .L39+40
	str	r3, [fp, #-1120]
	ldr	r3, .L39+44
	str	r3, [fp, #-1116]
	ldr	r0, [fp, #-1120]
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-1116]
	mov	r1, r3
	ldr	r0, [fp, #-1120]
	bl	testhash
	mov	r2, r0
	ldr	r3, [fp, #-1140]
	add	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r0, .L39+48
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1120]
	ldr	r2, .L39+48
	mov	r1, #97
	ldr	r0, [fp, #-1120]
	bl	memset
	ldr	r3, .L39+52
	str	r3, [fp, #-1116]
	ldr	r2, [fp, #-1116]
	ldr	r1, .L39+48
	ldr	r0, [fp, #-1120]
	bl	testhash
	mov	r2, r0
	ldr	r3, [fp, #-1140]
	add	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r0, [fp, #-1120]
	bl	free
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L39+56
	str	r3, [fp, #-1112]
	ldr	r0, [fp, #-1112]
	bl	strlen
	str	r0, [fp, #-1108]
	ldr	r3, [fp, #-1108]
	lsl	r3, r3, #24
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1120]
	mov	r3, #0
	str	r3, [fp, #-1132]
	b	.L25
.L26:
	ldr	r3, [fp, #-1132]
	ldr	r2, [fp, #-1108]
	mul	r3, r2, r3
	ldr	r2, [fp, #-1120]
	add	r3, r2, r3
	ldr	r2, [fp, #-1108]
	ldr	r1, [fp, #-1112]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-1132]
	add	r3, r3, #1
	str	r3, [fp, #-1132]
.L25:
	ldr	r3, [fp, #-1132]
	cmp	r3, #16777216
	blt	.L26
	ldr	r3, .L39+60
	str	r3, [fp, #-1116]
	ldr	r3, [fp, #-1108]
	lsl	r3, r3, #24
	ldr	r2, [fp, #-1116]
	mov	r1, r3
	ldr	r0, [fp, #-1120]
	bl	testhash
	mov	r2, r0
	ldr	r3, [fp, #-1140]
	add	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r0, [fp, #-1120]
	bl	free
.L24:
	ldr	r3, .L39+64
	str	r3, [fp, #-1120]
	ldr	r3, .L39+68
	str	r3, [fp, #-1116]
	ldr	r0, [fp, #-1120]
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-1116]
	mov	r1, r3
	ldr	r0, [fp, #-1120]
	bl	testhash
	mov	r2, r0
	ldr	r3, [fp, #-1140]
	add	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r3, .L39+72
	str	r3, [fp, #-1120]
	ldr	r3, .L39+76
	str	r3, [fp, #-1116]
	ldr	r0, [fp, #-1120]
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-1116]
	mov	r1, r3
	ldr	r0, [fp, #-1120]
	bl	testhash
	mov	r2, r0
	ldr	r3, [fp, #-1140]
	add	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1144]
	cmp	r3, #0
	beq	.L27
	sub	r3, fp, #1008
	mov	r2, #800
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1128]
	sub	r0, fp, #208
	ldr	r3, [fp, #-1144]
	ldr	r2, .L39+80
	mov	r1, #100
	bl	snprintf
	sub	r3, fp, #208
	ldr	r1, .L39+84
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1104]
	ldr	r3, [fp, #-1104]
	cmp	r3, #0
	bne	.L30
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L39+88
	bl	printf
	mov	r3, #1
	b	.L22
.L31:
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #41
	bls	.L30
	ldrb	r3, [fp, #-68]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L30
	ldrb	r3, [fp, #-67]	@ zero_extendqisi2
	cmp	r3, #94
	bne	.L30
	mov	r3, #0
	strb	r3, [fp, #-68]
	sub	r3, fp, #108
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1128]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1004]
	ldr	r3, [fp, #-1128]
	add	r3, r3, #1
	str	r3, [fp, #-1128]
.L30:
	sub	r3, fp, #108
	ldr	r2, [fp, #-1104]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r0, [fp, #-1104]
	bl	fclose
	ldr	r3, .L39+92
	ldr	r3, [r3]
	ldr	r2, [fp, #-1128]
	ldr	r1, .L39+96
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-1124]
	b	.L32
.L37:
	sub	r0, fp, #208
	ldr	r3, [fp, #-1124]
	str	r3, [sp]
	ldr	r3, [fp, #-1144]
	ldr	r2, .L39+100
	mov	r1, #100
	bl	snprintf
	sub	r3, fp, #208
	ldr	r1, .L39+84
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1104]
	ldr	r3, [fp, #-1104]
	cmp	r3, #0
	bne	.L33
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L39+88
	bl	printf
	mov	r3, #1
	b	.L22
.L33:
	ldr	r0, [fp, #-1104]
	bl	fileno
	mov	r2, r0
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	fstat
	ldr	r3, [fp, #-1056]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1120]
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	ble	.L34
	ldr	r3, [fp, #-1056]
	mov	r1, r3
	ldr	r3, [fp, #-1104]
	mov	r2, #1
	ldr	r0, [fp, #-1120]
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L34
	ldr	r0, [fp, #-1104]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L39+104
	bl	printf
	b	.L36
.L35:
	ldr	r3, [fp, #-1056]
	mov	r2, r3
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L39+108
	bl	printf
.L36:
	mov	r3, #1
	b	.L22
.L34:
	ldr	r0, [fp, #-1104]
	bl	fclose
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L39+112
	bl	printf
	ldr	r3, [fp, #-1056]
	mov	r1, r3
	ldr	r3, [fp, #-1124]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1004]
	mov	r2, r3
	ldr	r0, [fp, #-1120]
	bl	testhash
	mov	r2, r0
	ldr	r3, [fp, #-1140]
	add	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r0, [fp, #-1120]
	bl	free
	ldr	r3, [fp, #-1124]
	add	r3, r3, #1
	str	r3, [fp, #-1124]
.L32:
	ldr	r2, [fp, #-1124]
	ldr	r3, [fp, #-1128]
	cmp	r2, r3
	blt	.L37
.L27:
	ldr	r1, [fp, #-1140]
	ldr	r0, .L39+116
	bl	printf
	ldr	r3, [fp, #-1140]
.L22:
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC35
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	1000000
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	stderr
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
