	.file	"extr_digest.c_sha256_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rb"
	.section	.rodata
.LC1:
	.string	""
	.string	""
	.section	.rodata.str1.1
.LC2:
	.string	"%02x"
	.text
	.p2align 4
	.globl	sha256_file
	.type	sha256_file, @function
sha256_file:
.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	ebx, 1
	sub	rsp, 56
	mov	QWORD PTR -88[rbp], rsi
	lea	rsi, .LC0[rip]
	mov	DWORD PTR -76[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	fopen@PLT
	test	rax, rax
	je	.L1
	mov	r13, rax
	movsx	rax, DWORD PTR SHA256_DIGEST_LENGTH[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L4
.L28:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L28
.L4:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L29
.L5:
	lea	r14, -60[rbp]
	mov	r15, rsp
	mov	rdi, r14
	call	SHA256_Init@PLT
	mov	edi, 1048576
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L30
	xor	ebx, ebx
	cmp	DWORD PTR -76[rbp], 1048576
	mov	edx, 1048576
	jg	.L7
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	mov	rsi, r12
	mov	rdi, r14
	add	ebx, edx
	call	SHA256_Update@PLT
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, 1048576
	sub	edx, ebx
	cmp	edx, 1048576
	cmovg	edx, eax
.L7:
	mov	rcx, r13
	mov	esi, 1
	mov	rdi, r12
	call	fread@PLT
	mov	edx, eax
	test	eax, eax
	jne	.L9
.L8:
	mov	ebx, DWORD PTR -72[rbp]
	mov	esi, DWORD PTR -76[rbp]
	mov	rdi, r13
	mov	edx, DWORD PTR SEEK_SET[rip]
	add	esi, ebx
	call	fseek@PLT
	test	ebx, ebx
	jle	.L12
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, 1
	mov	rdi, r14
	xor	eax, eax
	add	ebx, 1
	lea	rsi, .LC1[rip]
	call	SHA256_Update@PLT
	cmp	DWORD PTR -72[rbp], ebx
	jne	.L11
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, ebx
	mov	rsi, r12
	mov	rdi, r14
	xor	eax, eax
	call	SHA256_Update@PLT
.L12:
	mov	rcx, r13
	mov	edx, 1048576
	mov	esi, 1
	mov	rdi, r12
	call	fread@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L13
	mov	rsi, r14
	mov	rdi, r15
	call	SHA256_Final@PLT
	mov	eax, DWORD PTR SHA256_DIGEST_LENGTH[rip]
	test	eax, eax
	jle	.L14
	mov	rcx, QWORD PTR -88[rbp]
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR [r15+r14*4]
	mov	rdi, rcx
	mov	QWORD PTR -72[rbp], rcx
	add	r14, 1
	lea	rsi, .LC2[rip]
	call	sprintf@PLT
	mov	rcx, QWORD PTR -72[rbp]
	add	rcx, 2
	cmp	DWORD PTR SHA256_DIGEST_LENGTH[rip], r14d
	jg	.L15
.L14:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, r13
	mov	BYTE PTR 64[rax], 0
	call	fclose@PLT
	mov	rdi, r12
	call	free@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	lea	rsp, -40[rbp]
	mov	eax, ebx
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	edx, DWORD PTR -76[rbp]
	mov	rcx, r13
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rsi, r12
	mov	rdi, r14
	mov	edx, eax
	xor	eax, eax
	call	SHA256_Update@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L5
.L30:
	mov	rdi, r13
	call	fclose@PLT
	mov	ebx, DWORD PTR ENOMEM[rip]
	jmp	.L1
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sha256_file, .-sha256_file
	.comm	SHA256_DIGEST_LENGTH,4,4
	.comm	SEEK_SET,4,4
	.comm	ENOMEM,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_digest.c_sha256_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"%02x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sha256_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	sha256_file, %function
sha256_file:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	ip, r1
	add	fp, sp, #32
	sub	sp, sp, #20
	mov	r8, r3
	ldr	r3, .L22
	str	ip, [fp, #-48]
	ldr	r1, .L22+4
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	fopen
	subs	r5, r0, #0
	moveq	r7, #1
	beq	.L1
	ldr	r10, .L22+8
	sub	r0, fp, #44
	ldr	r3, [r10]
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	SHA256_Init
	mov	r0, #1048576
	bl	malloc
	subs	r4, r0, #0
	mov	r6, sp
	beq	.L20
	cmp	r9, #1048576
	movgt	r2, #1048576
	movgt	r7, #0
	bgt	.L4
	mov	r2, r9
	mov	r1, #1
	mov	r3, r5
	bl	fread
	mov	r1, r4
	mov	r2, r0
	sub	r0, fp, #44
	bl	SHA256_Update
.L5:
	ldr	r3, .L22+12
	mov	r0, r5
	ldr	r2, [r3]
	add	r1, r9, r8
	bl	fseek
	cmp	r8, #0
	ble	.L9
	mov	r7, #0
	ldr	r9, .L22+16
.L8:
	mov	r2, #1
	mov	r1, r9
	add	r7, r7, #1
	sub	r0, fp, #44
	bl	SHA256_Update
	cmp	r8, r7
	bne	.L8
	b	.L9
.L6:
	add	r7, r7, r2
	mov	r1, r4
	sub	r0, fp, #44
	bl	SHA256_Update
	sub	r2, r9, r7
	cmp	r2, #1048576
	movge	r2, #1048576
.L4:
	mov	r3, r5
	mov	r1, #1
	mov	r0, r4
	bl	fread
	subs	r2, r0, #0
	bne	.L6
	b	.L5
.L10:
	mov	r2, r7
	mov	r1, r4
	sub	r0, fp, #44
	bl	SHA256_Update
.L9:
	mov	r3, r5
	mov	r2, #1048576
	mov	r1, #1
	mov	r0, r4
	bl	fread
	subs	r7, r0, #0
	bne	.L10
	mov	r0, r6
	sub	r1, fp, #44
	bl	SHA256_Final
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L11
	mov	r8, r7
	ldr	r9, [fp, #-48]
	ldr	r1, .L22+20
	sub	r6, r6, #4
.L12:
	mov	r0, r9
	ldr	r2, [r6, #4]!
	bl	sprintf
	ldr	r3, [r10]
	add	r8, r8, #1
	cmp	r3, r8
	ldr	r1, .L22+20
	add	r9, r9, #2
	bgt	.L12
.L11:
	mov	r3, #0
	ldr	r2, [fp, #-48]
	mov	r0, r5
	strb	r3, [r2, #64]
	bl	fclose
	mov	r0, r4
	bl	free
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	bl	__stack_chk_fail
.L20:
	mov	r0, r5
	bl	fclose
	ldr	r3, .L22+24
	ldr	r7, [r3]
	b	.L1
.L23:
	.align	2
.L22:
	.word	.LC3
	.word	.LC0
	.word	SHA256_DIGEST_LENGTH
	.word	SEEK_SET
	.word	.LANCHOR0
	.word	.LC2
	.word	ENOMEM
	.size	sha256_file, .-sha256_file
	.comm	SHA256_DIGEST_LENGTH,4,4
	.comm	SEEK_SET,4,4
	.comm	ENOMEM,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC1:
	.ascii	"\000\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
