	.file	"extr_ifxmips_sha1.c_sha1_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sha1_update, @function
sha1_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, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	shash_desc_ctx@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rax]
	mov	r14d, eax
	lea	eax, [rax+r12*8]
	sar	r14d, 3
	mov	DWORD PTR 0[rbp], eax
	and	r14d, 63
	mov	edi, r14d
	lea	eax, [r14+r12]
	sal	rdi, 2
	cmp	eax, 63
	ja	.L8
.L2:
	add	rdi, QWORD PTR 8[rbp]
	mov	edx, r12d
	mov	rsi, r13
	call	memcpy@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ebx, 64
	add	rdi, QWORD PTR 8[rbp]
	mov	rsi, r13
	sub	ebx, r14d
	mov	edx, ebx
	call	memcpy@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, rbp
	call	sha1_transform@PLT
	mov	eax, 127
	sub	eax, r14d
	cmp	r12d, eax
	jbe	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, ebx
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, rbp
	lea	rdx, 0[r13+rax*4]
	call	sha1_transform@PLT
	mov	eax, ebx
	add	ebx, 64
	add	eax, 127
	cmp	eax, r12d
	jb	.L3
	mov	eax, ebx
	sub	r12d, ebx
	xor	edi, edi
	lea	r13, 0[r13+rax*4]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	lea	r13, 0[r13+rbx*4]
	lea	r12d, -64[r14+r12]
	xor	edi, edi
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	sha1_update, .-sha1_update
	.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_ifxmips_sha1.c_sha1_update.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sha1_update, %function
sha1_update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r8, r1
	bl	shash_desc_ctx
	ldr	r3, [r0]
	mov	r4, r0
	asr	r7, r3, #3
	and	r7, r7, #63
	add	r2, r7, r5
	add	r3, r3, r5, lsl #3
	cmp	r2, #63
	str	r3, [r0]
	lsl	r3, r7, #2
	bhi	.L8
.L2:
	ldr	r0, [r4, #4]
	mov	r2, r5
	mov	r1, r8
	add	r0, r0, r3
	bl	memcpy
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, [r0, #4]
	rsb	r6, r7, #64
	mov	r1, r8
	add	r0, r0, r3
	mov	r2, r6
	bl	memcpy
	mov	r0, r4
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	bl	sha1_transform
	rsb	r3, r7, #127
	cmp	r5, r3
	subls	r7, r7, #64
	movls	r3, #0
	addls	r5, r5, r7
	addls	r8, r8, r6, lsl #2
	bls	.L2
	add	r7, r8, r6, lsl #2
.L4:
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [r4, #8]
	bl	sha1_transform
	add	r3, r6, #127
	cmp	r5, r3
	add	r7, r7, #256
	add	r6, r6, #64
	bhi	.L4
	mov	r3, #0
	add	r8, r8, r6, lsl #2
	sub	r5, r5, r6
	b	.L2
	.size	sha1_update, .-sha1_update
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
