	.file	"extr_blake2b-ref.c_blake2b.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	blake2b
	.type	blake2b, @function
blake2b:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdx, rdx
	sete	sil
	test	rcx, rcx
	setne	al
	test	sil, al
	jne	.L5
	mov	r14, rdi
	test	rdi, rdi
	je	.L5
	test	r8, r8
	sete	sil
	test	r9, r9
	setne	al
	test	sil, al
	jne	.L5
	test	r12, r12
	je	.L5
	cmp	QWORD PTR BLAKE2B_OUTBYTES[rip], r12
	jb	.L5
	cmp	QWORD PTR BLAKE2B_KEYBYTES[rip], r9
	jb	.L5
	mov	rbp, rdx
	mov	r13, rcx
	lea	r15, 4[rsp]
	test	r9, r9
	jne	.L11
	mov	rsi, r12
	mov	rdi, r15
	call	blake2b_init@PLT
	test	rax, rax
	js	.L5
.L7:
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r15
	call	blake2b_update@PLT
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, r15
	call	blake2b_final@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rcx, r9
	mov	rdx, r8
	mov	rsi, r12
	mov	rdi, r15
	call	blake2b_init_key@PLT
	test	rax, rax
	jns	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, -1
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	blake2b, .-blake2b
	.comm	BLAKE2B_OUTBYTES,8,8
	.comm	BLAKE2B_KEYBYTES,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_blake2b-ref.c_blake2b.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	blake2b
	.syntax unified
	.arm
	.fpu softvfp
	.type	blake2b, %function
blake2b:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	ip, r3, #0
	movne	ip, #1
	cmp	r2, #0
	movne	ip, #0
	cmp	r0, #0
	moveq	ip, #1
	push	{r4, r5, r6, r7, r8, lr}
	cmp	ip, #0
	ldr	ip, .L12
	sub	sp, sp, #8
	mov	r6, r2
	mov	r7, r3
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	ldr	r2, [sp, #32]
	ldr	r3, [sp, #36]
	bne	.L4
	subs	ip, r3, #0
	movne	ip, #1
	cmp	r2, #0
	movne	ip, #0
	cmp	r1, #0
	moveq	ip, #1
	cmp	ip, #0
	mov	r4, r1
	bne	.L4
	mov	r5, r0
	ldr	r0, .L12+4
	ldr	r0, [r0]
	cmp	r0, r1
	bcc	.L4
	ldr	r0, .L12+8
	ldr	r0, [r0]
	cmp	r0, r3
	bcc	.L4
	mov	r8, sp
	cmp	r3, #0
	mov	r0, r8
	bne	.L10
	bl	blake2b_init
	cmp	r0, #0
	blt	.L4
.L6:
	mov	r2, r7
	mov	r1, r6
	mov	r0, r8
	bl	blake2b_update
	mov	r2, r4
	mov	r1, r5
	mov	r0, r8
	bl	blake2b_final
	mov	r0, #0
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	bl	blake2b_init_key
	cmp	r0, #0
	bge	.L6
.L4:
	mvn	r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	BLAKE2B_OUTBYTES
	.word	BLAKE2B_KEYBYTES
	.size	blake2b, .-blake2b
	.comm	BLAKE2B_OUTBYTES,4,4
	.comm	BLAKE2B_KEYBYTES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
