	.file	"extr_picohash.h__picohash_sha256_do_final.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_picohash_sha256_do_final, @function
_picohash_sha256_do_final:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rax, DWORD PTR 4[rdi]
	mov	rbx, rdi
	lea	edx, 0[0+rax*8]
	add	DWORD PTR [rdi], edx
	mov	rdx, QWORD PTR 8[rdi]
	lea	ecx, 1[rax]
	mov	DWORD PTR 4[rdi], ecx
	mov	BYTE PTR [rdx+rax], -128
	movsx	rax, DWORD PTR 4[rdi]
	cmp	eax, 56
	jg	.L19
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR 8[rbx]
	lea	ecx, 1[rax]
	mov	DWORD PTR 4[rbx], ecx
	mov	BYTE PTR [rdx+rax], 0
	movsx	rax, DWORD PTR 4[rbx]
	cmp	eax, 55
	jle	.L7
.L8:
	mov	edx, 56
	mov	ecx, 56
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	sar	eax, cl
	sub	ecx, 8
	mov	BYTE PTR [rsi+rdx], al
	add	rdx, 1
	cmp	ecx, -8
	jne	.L6
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rbx
	call	_picohash_sha256_compress@PLT
	mov	rcx, rbp
	xor	eax, eax
	and	rcx, -4
	shr	rbp, 2
	je	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR [rdx+rax]
	sar	edx, 24
	mov	BYTE PTR [r12+rax], dl
	mov	rdx, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR [rdx+rax]
	sar	edx, 16
	mov	BYTE PTR 1[r12+rax], dl
	mov	rdx, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR [rdx+rax]
	movzx	edx, dh
	mov	BYTE PTR 2[r12+rax], dl
	mov	rdx, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR [rdx+rax]
	mov	BYTE PTR 3[r12+rax], dl
	add	rax, 4
	cmp	rcx, rax
	jne	.L10
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbx]
	lea	ecx, 1[rax]
	mov	DWORD PTR 4[rbx], ecx
	mov	BYTE PTR [rdx+rax], 0
	movsx	rax, DWORD PTR 4[rbx]
.L19:
	cmp	eax, 63
	jle	.L3
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rbx
	call	_picohash_sha256_compress@PLT
	xor	eax, eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	_picohash_sha256_do_final, .-_picohash_sha256_do_final
	.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_picohash.h__picohash_sha256_do_final.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_picohash_sha256_do_final, %function
_picohash_sha256_do_final:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mvn	lr, #127
	ldr	r3, [r0, #4]
	ldr	ip, [r0]
	ldr	r0, [r0, #8]
	add	ip, ip, r3, lsl #3
	str	ip, [r4]
	add	ip, r3, #1
	str	ip, [r4, #4]
	strb	lr, [r0, r3]
	ldr	r3, [r4, #4]
	mov	r6, r1
	cmp	r3, #56
	mov	r5, r2
	ble	.L2
	cmp	r3, #63
	bgt	.L5
	mov	r0, #0
.L3:
	ldr	r2, [r4, #8]
	add	r1, r3, #1
	str	r1, [r4, #4]
	strb	r0, [r2, r3]
	ldr	r3, [r4, #4]
	cmp	r3, #63
	ble	.L3
.L5:
	mov	r0, r4
	ldr	r1, [r4, #8]
	bl	_picohash_sha256_compress
	mov	r3, #0
.L4:
	mov	r0, #0
.L7:
	ldr	r2, [r4, #8]
	add	r1, r3, #1
	str	r1, [r4, #4]
	strb	r0, [r2, r3]
	ldr	r3, [r4, #4]
	cmp	r3, #55
	ble	.L7
.L8:
	mov	ip, #56
	mov	r3, ip
.L6:
	ldr	r0, [r4]
	ldr	r2, [r4, #8]
	asr	r0, r0, r3
	sub	r3, r3, #8
	cmn	r3, #8
	strb	r0, [r2, ip]
	add	ip, ip, #1
	bne	.L6
	mov	r0, r4
	ldr	r1, [r4, #8]
	bl	_picohash_sha256_compress
	lsrs	r0, r5, #2
	popeq	{r4, r5, r6, pc}
	mov	r1, r6
	mov	r3, #0
	add	r0, r6, r0, lsl #2
.L10:
	ldr	r2, [r4, #12]
	add	r1, r1, #4
	ldr	r2, [r2, r3]
	asr	r2, r2, #24
	strb	r2, [r1, #-4]
	ldr	r2, [r4, #12]
	ldr	r2, [r2, r3]
	asr	r2, r2, #16
	strb	r2, [r1, #-3]
	ldr	r2, [r4, #12]
	ldr	r2, [r2, r3]
	asr	r2, r2, #8
	strb	r2, [r1, #-2]
	ldr	r2, [r4, #12]
	ldr	r2, [r2, r3]
	add	r3, r3, #4
	strb	r2, [r1, #-1]
	cmp	r0, r1
	bne	.L10
	pop	{r4, r5, r6, pc}
.L2:
	bne	.L4
	b	.L8
	.size	_picohash_sha256_do_final, .-_picohash_sha256_do_final
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
