	.file	"extr_sha256-internal.c_sha256_process.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sha256_process
	.type	sha256_process, @function
sha256_process:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	rax, DWORD PTR [rdi]
	cmp	eax, 7
	ja	.L13
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdx, rdx
	jne	.L3
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	sub	rsi, rax
	mov	rdi, r12
	call	MIN@PLT
	movsx	rdi, DWORD PTR [rbx]
	mov	rsi, r13
	add	rdi, QWORD PTR 16[rbx]
	mov	rdx, rax
	mov	rbp, rax
	call	os_memcpy@PLT
	mov	eax, DWORD PTR [rbx]
	add	r13, rbp
	sub	r12, rbp
	add	eax, ebp
	mov	DWORD PTR [rbx], eax
	cdqe
	cmp	rax, QWORD PTR SHA256_BLOCK_SIZE[rip]
	je	.L18
.L6:
	test	r12, r12
	je	.L7
.L19:
	movsx	rax, DWORD PTR [rbx]
.L3:
	mov	rsi, QWORD PTR SHA256_BLOCK_SIZE[rip]
	test	eax, eax
	jne	.L5
	cmp	rsi, r12
	ja	.L5
	mov	rsi, r13
	mov	rdi, rbx
	call	sha256_compress@PLT
	test	rax, rax
	js	.L2
	mov	rax, QWORD PTR SHA256_BLOCK_SIZE[rip]
	sub	r12, rax
	lea	rdx, 0[0+rax*8]
	add	r13, rax
	add	QWORD PTR 8[rbx], rdx
	test	r12, r12
	jne	.L19
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rsi, QWORD PTR 16[rbx]
	mov	rdi, rbx
	call	sha256_compress@PLT
	test	rax, rax
	js	.L2
	mov	rax, QWORD PTR SHA256_BLOCK_SIZE[rip]
	mov	DWORD PTR [rbx], 0
	sal	rax, 3
	add	QWORD PTR 8[rbx], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	sha256_process, .-sha256_process
	.comm	SHA256_BLOCK_SIZE,8,8
	.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_sha256-internal.c_sha256_process.c"
	.text
	.align	2
	.global	sha256_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	sha256_process, %function
sha256_process:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #3
	bhi	.L13
	cmp	r2, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r2
	beq	.L7
	mov	r4, r0
	mov	r7, r1
	mov	r8, #0
	ldr	r9, .L20
	b	.L3
.L5:
	sub	r1, r1, r3
	mov	r0, r6
	bl	MIN
	mov	r5, r0
	ldr	r3, [r4]
	ldr	r0, [r4, #8]
	mov	r2, r5
	mov	r1, r7
	add	r0, r0, r3
	bl	os_memcpy
	ldr	r3, [r4]
	ldr	r2, [r9]
	add	r3, r5, r3
	cmp	r3, r2
	sub	r6, r6, r5
	add	r7, r7, r5
	str	r3, [r4]
	beq	.L18
.L6:
	cmp	r6, #0
	beq	.L7
.L19:
	ldr	r3, [r4]
.L3:
	cmp	r3, #0
	ldr	r1, [r9]
	bne	.L5
	cmp	r1, r6
	bhi	.L5
	mov	r1, r7
	mov	r0, r4
	bl	sha256_compress
	cmp	r0, #0
	blt	.L2
	ldr	r2, [r9]
	ldr	r3, [r4, #4]
	sub	r6, r6, r2
	add	r3, r3, r2, lsl #3
	cmp	r6, #0
	add	r7, r7, r2
	str	r3, [r4, #4]
	bne	.L19
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	mov	r0, r4
	ldr	r1, [r4, #8]
	bl	sha256_compress
	cmp	r0, #0
	blt	.L2
	ldr	r2, [r9]
	ldr	r3, [r4, #4]
	str	r8, [r4]
	add	r3, r3, r2, lsl #3
	str	r3, [r4, #4]
	b	.L6
.L2:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mvn	r0, #0
	bx	lr
.L21:
	.align	2
.L20:
	.word	SHA256_BLOCK_SIZE
	.size	sha256_process, .-sha256_process
	.comm	SHA256_BLOCK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
