	.file	"extr_sign.c__crypto_sign_ed25519_detached.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_crypto_sign_ed25519_detached
	.type	_crypto_sign_ed25519_detached, @function
_crypto_sign_ed25519_detached:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 264
	.cfi_def_cfa_offset 320
	mov	QWORD PTR [rsp], rcx
	lea	rbp, 40[rsp]
	lea	r14, 48[rsp]
	mov	QWORD PTR 24[rsp], rsi
	mov	rdi, rbp
	mov	esi, r9d
	lea	r12, 112[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 248[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 20[rsp], r9d
	call	_crypto_sign_ed25519_ref10_hinit@PLT
	mov	rsi, rbx
	mov	edx, 32
	mov	rdi, r14
	call	crypto_hash_sha512@PLT
	lea	rsi, 80[rsp]
	mov	edx, 32
	mov	rdi, rbp
	call	crypto_hash_sha512_update@PLT
	mov	r10, QWORD PTR [rsp]
	mov	rsi, r15
	mov	rdi, rbp
	mov	rdx, r10
	mov	QWORD PTR 8[rsp], r10
	call	crypto_hash_sha512_update@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	crypto_hash_sha512_final@PLT
	lea	r8, 32[r13]
	mov	edx, 32
	lea	rsi, 32[rbx]
	mov	rdi, r8
	mov	QWORD PTR [rsp], r8
	lea	rbx, 44[rsp]
	call	memmove@PLT
	mov	rdi, r12
	call	sc25519_reduce@PLT
	mov	rsi, r12
	mov	rdi, rbx
	call	ge25519_scalarmult_base@PLT
	mov	rdi, r13
	mov	rsi, rbx
	call	ge25519_p3_tobytes@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	rdi, rbp
	mov	esi, r9d
	call	_crypto_sign_ed25519_ref10_hinit@PLT
	mov	rsi, r13
	mov	edx, 64
	mov	rdi, rbp
	call	crypto_hash_sha512_update@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	rsi, r15
	mov	rdi, rbp
	lea	r13, 176[rsp]
	mov	rdx, r10
	call	crypto_hash_sha512_update@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	crypto_hash_sha512_final@PLT
	mov	rdi, r13
	call	sc25519_reduce@PLT
	mov	rdi, r14
	call	_crypto_sign_ed25519_clamp@PLT
	mov	r8, QWORD PTR [rsp]
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, r8
	call	sc25519_muladd@PLT
	mov	esi, 64
	mov	rdi, r14
	call	sodium_memzero@PLT
	mov	esi, 64
	mov	rdi, r12
	call	sodium_memzero@PLT
	mov	r11, QWORD PTR 24[rsp]
	test	r11, r11
	je	.L2
	mov	QWORD PTR [r11], 64
.L2:
	mov	rax, QWORD PTR 248[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 264
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.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
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_crypto_sign_ed25519_detached, .-_crypto_sign_ed25519_detached
	.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_sign.c__crypto_sign_ed25519_detached.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_crypto_sign_ed25519_detached
	.syntax unified
	.arm
	.fpu softvfp
	.type	_crypto_sign_ed25519_detached, %function
_crypto_sign_ed25519_detached:
	@ args = 16, pretend = 0, frame = 208
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	mov	r4, r0
	mov	r8, r1
	sub	sp, sp, #212
	ldr	r9, [sp, #260]
	ldr	r3, .L10
	ldr	r10, [sp, #256]
	mov	r1, r9
	add	r7, sp, #248
	ldmia	r7, {r6-r7}
	add	r0, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #204]
	mov	r3,#0
	bl	_crypto_sign_ed25519_ref10_hinit
	mov	r1, r10
	mov	r2, #32
	add	r0, sp, #12
	bl	crypto_hash_sha512
	mov	r2, #32
	mov	r3, #0
	add	r1, sp, #44
	add	r0, sp, #4
	bl	crypto_hash_sha512_update
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	add	r0, sp, #4
	bl	crypto_hash_sha512_update
	add	fp, r4, #32
	add	r1, sp, #76
	add	r0, sp, #4
	bl	crypto_hash_sha512_final
	mov	r2, #32
	add	r1, r10, #32
	mov	r0, fp
	bl	memmove
	add	r0, sp, #76
	bl	sc25519_reduce
	add	r1, sp, #76
	add	r0, sp, #8
	bl	ge25519_scalarmult_base
	add	r1, sp, #8
	mov	r0, r4
	bl	ge25519_p3_tobytes
	mov	r1, r9
	add	r0, sp, #4
	bl	_crypto_sign_ed25519_ref10_hinit
	mov	r1, r4
	mov	r2, #64
	mov	r3, #0
	add	r0, sp, #4
	bl	crypto_hash_sha512_update
	mov	r2, r6
	mov	r3, r7
	mov	r1, r5
	add	r0, sp, #4
	bl	crypto_hash_sha512_update
	add	r1, sp, #140
	add	r0, sp, #4
	bl	crypto_hash_sha512_final
	add	r0, sp, #140
	bl	sc25519_reduce
	add	r0, sp, #12
	bl	_crypto_sign_ed25519_clamp
	add	r3, sp, #76
	add	r2, sp, #12
	add	r1, sp, #140
	mov	r0, fp
	bl	sc25519_muladd
	mov	r1, #64
	add	r0, sp, #12
	bl	sodium_memzero
	mov	r1, #64
	add	r0, sp, #76
	bl	sodium_memzero
	cmp	r8, #0
	movne	r2, #64
	movne	r3, #0
	stmne	r8, {r2-r3}
.L2:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #204]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, #0
	add	sp, sp, #212
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	_crypto_sign_ed25519_detached, .-_crypto_sign_ed25519_detached
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
