	.file	"extr_sha1_main.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"STDIN"
.LC1:
	.string	"-?"
.LC2:
	.string	"--help"
.LC3:
	.string	"-"
.LC4:
	.string	"rb"
.LC5:
	.string	"sha: unable to open file %s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC6:
	.string	"sha: could not compute message digest for %s\n"
	.align 8
.LC7:
	.string	"%08X %08X %08X %08X %08X - %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	edi, 1
	jg	.L2
	jne	.L18
.L3:
	xor	r15d, r15d
	xor	ebx, ebx
	lea	r13, 31[rsp]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L9:
	add	ebx, 1
	cmp	r14d, ebx
	jle	.L18
.L17:
	test	ebx, ebx
	mov	eax, 1
	cmove	ebx, eax
	cmp	r14d, 1
	je	.L11
	mov	rcx, QWORD PTR 8[rsp]
	movsx	rax, ebx
	lea	rsi, .LC3[rip]
	lea	r12, [rcx+rax*8]
	mov	rdi, QWORD PTR [r12]
	call	string_is_equal@PLT
	test	rax, rax
	je	.L31
.L11:
	test	r15d, r15d
	jne	.L9
	mov	DWORD PTR 4[rsp], 1
	mov	rbp, QWORD PTR stdin[rip]
	mov	r15d, 1
.L12:
	lea	r12, 32[rsp]
	mov	rdi, r12
	call	SHA1Reset@PLT
	mov	rdi, rbp
	call	fgetc@PLT
	mov	BYTE PTR 31[rsp], al
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, 1
	mov	rsi, r13
	mov	rdi, r12
	call	SHA1Input@PLT
	mov	rdi, rbp
	call	fgetc@PLT
	mov	BYTE PTR 31[rsp], al
.L13:
	mov	rdi, rbp
	call	feof@PLT
	test	eax, eax
	je	.L14
	mov	ecx, DWORD PTR 4[rsp]
	test	ecx, ecx
	je	.L32
	mov	rdi, r12
	call	SHA1Result@PLT
	lea	rdx, .LC0[rip]
	test	eax, eax
	je	.L19
.L20:
	mov	rax, QWORD PTR 32[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	lea	rdi, .LC7[rip]
	add	ebx, 1
	mov	r10d, DWORD PTR 4[rax]
	mov	r9d, DWORD PTR 16[rax]
	mov	r8d, DWORD PTR 12[rax]
	mov	ecx, DWORD PTR 8[rax]
	push	rdx
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR [rax]
	mov	edx, r10d
	call	printf@PLT
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
	cmp	r14d, ebx
	jg	.L17
.L18:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L33
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	rdi, rbp
	call	fclose@PLT
	mov	rdi, r12
	call	SHA1Result@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	r8d, eax
	movsx	rax, ebx
	lea	rax, [rcx+rax*8]
	mov	rdx, QWORD PTR [rax]
	test	r8d, r8d
	jne	.L20
.L19:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	call	fprintf@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC4[rip]
	call	fopen@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L34
	mov	DWORD PTR 4[rsp], 0
	jmp	.L12
.L2:
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	mov	rdi, QWORD PTR 8[rax]
	call	string_is_equal@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC2[rip]
	mov	rdi, QWORD PTR 8[rax]
	call	string_is_equal@PLT
	test	rax, rax
	je	.L3
.L6:
	xor	eax, eax
	call	usage@PLT
	mov	eax, 1
	jmp	.L1
.L34:
	mov	rdx, QWORD PTR [r12]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L1
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stdin,8,8
	.comm	stderr,4,4
	.comm	_O_BINARY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sha1_main.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"STDIN\000"
	.align	2
.LC1:
	.ascii	"-?\000"
	.align	2
.LC2:
	.ascii	"--help\000"
	.align	2
.LC3:
	.ascii	"-\000"
	.align	2
.LC4:
	.ascii	"rb\000"
	.align	2
.LC5:
	.ascii	"sha: unable to open file %s\012\000"
	.align	2
.LC6:
	.ascii	"sha: could not compute message digest for %s\012\000"
	.align	2
.LC7:
	.ascii	"%08X %08X %08X %08X %08X - %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L37
	sub	sp, sp, #44
	cmp	r0, #1
	mov	r7, r0
	mov	r9, r1
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bgt	.L2
	bne	.L19
.L3:
	mov	r8, #0
	ldr	fp, .L37+4
	mov	r5, r8
	ldr	r10, .L37+8
	b	.L18
.L9:
	add	r5, r5, #1
	cmp	r7, r5
	ble	.L19
.L18:
	cmp	r5, #0
	moveq	r5, #1
	cmp	r7, #1
	beq	.L11
	mov	r1, r10
	ldr	r0, [r9, r5, lsl #2]
	bl	string_is_equal
	subs	r6, r0, #0
	add	r3, r9, r5, lsl #2
	beq	.L32
.L11:
	cmp	r8, #0
	bne	.L9
	mov	r8, #1
	mov	r6, r8
	ldr	r3, .L37+12
	ldr	r4, [r3]
.L12:
	add	r0, sp, #32
	bl	SHA1Reset
	mov	r0, r4
	bl	fgetc
	strb	r0, [sp, #31]
	b	.L13
.L14:
	mov	r2, #1
	add	r1, sp, #31
	add	r0, sp, #32
	bl	SHA1Input
	mov	r0, r4
	bl	fgetc
	strb	r0, [sp, #31]
.L13:
	mov	r0, r4
	bl	feof
	cmp	r0, #0
	beq	.L14
	cmp	r6, #0
	beq	.L33
	add	r0, sp, #32
	bl	SHA1Result
	cmp	r0, #0
	beq	.L34
	ldr	r0, [sp, #32]
	ldr	lr, .L37+16
.L30:
	ldm	r0, {r1, r2, r3, ip}
	ldr	r0, [r0, #16]
	add	r5, r5, #1
	stmib	sp, {r0, lr}
	str	ip, [sp]
	mov	r0, fp
	bl	printf
	cmp	r7, r5
	bgt	.L18
.L19:
	mov	r0, #0
.L1:
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r0, r4
	bl	fclose
	add	r0, sp, #32
	bl	SHA1Result
	cmp	r0, #0
	bne	.L36
	ldr	r3, .L37+20
	ldr	r2, [r9, r5, lsl #2]
	ldr	r0, [r3]
.L20:
	ldr	r1, .L37+24
	bl	fprintf
	b	.L9
.L34:
	ldr	r3, .L37+20
	ldr	r2, .L37+16
	ldr	r0, [r3]
	b	.L20
.L36:
	ldr	r0, [sp, #32]
	ldr	lr, [r9, r5, lsl #2]
	b	.L30
.L32:
	ldr	r1, .L37+28
	ldr	r0, [r9, r5, lsl #2]
	str	r3, [sp, #20]
	bl	fopen
	subs	r4, r0, #0
	ldr	r3, [sp, #20]
	bne	.L12
	ldr	r1, .L37+20
	ldr	r2, [r3]
	ldr	r0, [r1]
	ldr	r1, .L37+32
	bl	fprintf
	mov	r0, #2
	b	.L1
.L2:
	ldr	r1, .L37+36
	ldr	r0, [r9, #4]
	bl	string_is_equal
	cmp	r0, #0
	bne	.L6
	ldr	r1, .L37+40
	ldr	r0, [r9, #4]
	bl	string_is_equal
	cmp	r0, #0
	beq	.L3
.L6:
	bl	usage
	mov	r0, #1
	b	.L1
.L35:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	.LC8
	.word	.LC7
	.word	.LC3
	.word	stdin
	.word	.LC0
	.word	stderr
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.comm	stdin,4,4
	.comm	stderr,4,4
	.comm	_O_BINARY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
