	.file	"extr_octeon-sha256.c___octeon_sha256_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__octeon_sha256_update, @function
__octeon_sha256_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	mov	esi, DWORD PTR SHA256_BLOCK_SIZE[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ecx, DWORD PTR [rdi]
	mov	eax, ecx
	add	ecx, r12d
	div	esi
	mov	DWORD PTR [rdi], ecx
	mov	ebx, edx
	lea	eax, [rbx+r12]
	cmp	esi, eax
	ja	.L2
	mov	rdi, rbp
	test	ebx, ebx
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	call	octeon_sha256_transform@PLT
	mov	eax, DWORD PTR SHA256_BLOCK_SIZE[rip]
	lea	edx, [rbx+rax]
	add	eax, edx
	mov	rbx, rdx
	lea	rdi, 0[rbp+rdx*4]
	cmp	eax, r12d
	jbe	.L4
	sub	r12d, edx
	xor	r8d, r8d
.L5:
	add	r8, QWORD PTR 8[r13]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	mov	rsi, rdi
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r8
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r8d, edx
	mov	rdi, rbp
	sal	r8, 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 8[r13]
	sub	esi, ebx
	mov	r14d, ebx
	mov	edx, esi
	neg	r14d
	mov	rsi, rbp
	lea	rdi, [rax+rbx*4]
	mov	ebx, r14d
	call	memcpy@PLT
	mov	rdi, QWORD PTR 8[r13]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	__octeon_sha256_update, .-__octeon_sha256_update
	.comm	SHA256_BLOCK_SIZE,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_octeon-sha256.c___octeon_sha256_update.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__octeon_sha256_update, %function
__octeon_sha256_update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L11
	ldr	r9, [r0]
	ldr	r10, [r8]
	mov	r7, r0
	mov	r6, r1
	mov	r0, r9
	mov	r1, r10
	mov	r5, r2
	bl	__aeabi_uidivmod
	mov	r4, r1
	add	r3, r1, r5
	cmp	r10, r3
	add	r9, r9, r5
	movhi	r1, r6
	str	r9, [r7]
	lslhi	r4, r4, #2
	bhi	.L5
	cmp	r4, #0
	moveq	r1, r6
	bne	.L10
.L4:
	mov	r0, r1
	bl	octeon_sha256_transform
	ldr	r3, [r8]
	add	r4, r4, r3
	add	r3, r3, r4
	cmp	r3, r5
	add	r1, r6, r4, lsl #2
	bls	.L4
	sub	r5, r5, r4
	mov	r4, #0
.L5:
	ldr	r0, [r7, #4]
	mov	r2, r5
	add	r0, r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	memcpy
.L10:
	ldr	r0, [r7, #4]
	mov	r1, r6
	sub	r2, r10, r4
	add	r0, r0, r4, lsl #2
	bl	memcpy
	rsb	r4, r4, #0
	ldr	r1, [r7, #4]
	b	.L4
.L12:
	.align	2
.L11:
	.word	SHA256_BLOCK_SIZE
	.size	__octeon_sha256_update, .-__octeon_sha256_update
	.comm	SHA256_BLOCK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
