	.file	"extr_crypt-sha2.c_fz_sha256_final.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fz_sha256_final
	.type	fz_sha256_final, @function
fz_sha256_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, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdx, QWORD PTR [rdi]
	mov	rcx, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR [rdx]
	and	esi, 63
	mov	edi, esi
	mov	DWORD PTR [rcx+rdi*4], 128
	cmp	esi, 55
	je	.L2
	lea	eax, 1[rsi]
	cmp	eax, 64
	je	.L17
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, eax
	lea	edx, 1[rax]
	mov	DWORD PTR [rcx+rsi*4], 0
	cmp	eax, 55
	je	.L18
	mov	eax, edx
.L19:
	cmp	eax, 64
	jne	.L3
.L17:
	mov	rsi, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	call	transform256@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rcx, QWORD PTR 16[rbp]
	mov	edx, 3
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR 16[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	eax, edx
	mov	DWORD PTR 8[rcx], 0
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdx, QWORD PTR 0[rbp]
.L2:
	mov	eax, DWORD PTR [rdx]
	mov	esi, DWORD PTR 4[rdx]
	mov	ecx, eax
	sal	eax, 3
	sar	ecx, 29
	mov	DWORD PTR [rdx], eax
	xor	eax, eax
	lea	ecx, [rcx+rsi*8]
	mov	DWORD PTR 4[rdx], ecx
	call	isbigendian@PLT
	test	eax, eax
	mov	rax, QWORD PTR 0[rbp]
	je	.L20
	mov	edx, DWORD PTR 4[rax]
	mov	rsi, QWORD PTR 24[rbp]
	mov	DWORD PTR 56[rsi], edx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 60[rsi], eax
.L7:
	mov	rdi, QWORD PTR 8[rbp]
	call	transform256@PLT
	xor	eax, eax
	call	isbigendian@PLT
	mov	rsi, QWORD PTR 8[rbp]
	test	eax, eax
	jne	.L10
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR [rsi+rbx]
	call	bswap32@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	DWORD PTR [rsi+rbx], eax
	add	rbx, 4
	cmp	rbx, 32
	jne	.L9
.L10:
	mov	rdi, r12
	mov	edx, 32
	call	memcpy@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	edx, 32
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rax]
	call	bswap32@PLT
	mov	rdx, QWORD PTR 24[rbp]
	mov	DWORD PTR 56[rdx], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax]
	call	bswap32@PLT
	mov	rsi, QWORD PTR 24[rbp]
	mov	DWORD PTR 60[rsi], eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	fz_sha256_final, .-fz_sha256_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_crypt-sha2.c_fz_sha256_final.c"
	.text
	.align	2
	.global	fz_sha256_final
	.syntax unified
	.arm
	.fpu softvfp
	.type	fz_sha256_final, %function
fz_sha256_final:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	ip, #128
	ldr	r0, [r0]
	ldr	r2, [r6, #8]
	ldr	r3, [r0]
	mov	r5, r1
	and	r3, r3, #63
	cmp	r3, #55
	str	ip, [r2, r3, lsl #2]
	beq	.L2
	mov	r4, #0
	add	r3, r3, #1
.L5:
	cmp	r3, #64
	beq	.L17
	cmp	r3, #55
	str	r4, [r2, r3, lsl #2]
	add	r3, r3, #1
	bne	.L5
	ldr	r0, [r6]
.L2:
	ldr	r3, [r0]
	ldr	r1, [r0, #4]
	asr	r2, r3, #29
	add	r2, r2, r1, lsl #3
	lsl	r3, r3, #3
	str	r3, [r0]
	str	r2, [r0, #4]
	bl	isbigendian
	cmp	r0, #0
	ldr	r3, [r6]
	beq	.L18
	ldr	r2, [r3, #4]
	ldr	r1, [r6, #12]
	str	r2, [r1, #56]
	ldr	r3, [r3]
	str	r3, [r1, #60]
.L7:
	ldr	r0, [r6, #4]
	bl	transform256
	bl	isbigendian
	subs	r4, r0, #0
	ldr	r1, [r6, #4]
	beq	.L9
.L10:
	mov	r0, r5
	mov	r2, #32
	bl	memcpy
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	mov	r2, #16
	mov	r1, #0
	b	memset
.L9:
	ldr	r0, [r1, r4]
	bl	bswap32
	ldr	r1, [r6, #4]
	str	r0, [r1, r4]
	add	r4, r4, #4
	cmp	r4, #32
	bne	.L9
	b	.L10
.L17:
	ldr	r1, [r6, #12]
	ldr	r0, [r6, #4]
	bl	transform256
	ldr	r3, [r6, #8]
	mov	r1, r3
	str	r4, [r3]
	mov	r2, r3
	str	r4, [r1, #4]
	mov	r3, #3
	str	r4, [r1, #8]
	b	.L5
.L18:
	ldr	r0, [r3, #4]
	bl	bswap32
	ldr	r2, [r6, #12]
	ldr	r3, [r6]
	str	r0, [r2, #56]
	ldr	r0, [r3]
	bl	bswap32
	ldr	r1, [r6, #12]
	str	r0, [r1, #60]
	b	.L7
	.size	fz_sha256_final, .-fz_sha256_final
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
