	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_sign_ed25519            ## -- Begin function crypto_sign_ed25519
	.p2align	4, 0x90
_crypto_sign_ed25519:                   ## @crypto_sign_ed25519
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, -184(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rsp, -216(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_crypto_hash_sha512_BYTES@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -208(%rbp)                ## 8-byte Spill
	movl	(%r14), %eax
	movq	%r13, %r14
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -200(%rbp)                ## 8-byte Spill
	leaq	-176(%rbp), %rdi
	movl	$32, %edx
	movq	%r13, %rsi
	callq	_crypto_hash_sha512
	andb	$-8, -176(%rbp)
	movb	-145(%rbp), %al
	andb	$63, %al
	orb	$64, %al
	movb	%al, -145(%rbp)
	leaq	64(%r12), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	-184(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%r12, %r12
	je	LBB0_23
## %bb.1:
	cmpq	$8, %r12
	jb	LBB0_2
## %bb.3:
	movq	%rbx, %rax
	subq	%r15, %rax
	addq	$64, %rax
	cmpq	$32, %rax
	jae	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_19:
	movq	%rax, %rsi
	notq	%rsi
	addq	%r12, %rsi
	movq	%r12, %rdx
	andq	$3, %rdx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rax), %ecx
	movb	%cl, 64(%rbx,%rax)
	incq	%rax
	decq	%rdx
	jne	LBB0_20
LBB0_21:
	cmpq	$3, %rsi
	jb	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rax), %ecx
	movb	%cl, 64(%rbx,%rax)
	movzbl	1(%r15,%rax), %ecx
	movb	%cl, 65(%rbx,%rax)
	movzbl	2(%r15,%rax), %ecx
	movb	%cl, 66(%rbx,%rax)
	movzbl	3(%r15,%rax), %ecx
	movb	%cl, 67(%rbx,%rax)
	addq	$4, %rax
	cmpq	%rax, %r12
	jne	LBB0_22
LBB0_23:
	leaq	32(%rbx), %rsi
	movaps	-144(%rbp), %xmm0
	movaps	-128(%rbp), %xmm1
	movups	%xmm1, 48(%rbx)
	movups	%xmm0, 32(%rbx)
	addq	$32, %r12
	movq	-208(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_crypto_hash_sha512
	leaq	-232(%rbp), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_sc25519_from64bytes
	leaq	-220(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ge25519_scalarmult_base
	leaq	-80(%rbp), %rdi
	movq	%r12, %rsi
	callq	_ge25519_pack
	movaps	-80(%rbp), %xmm0
	movaps	-64(%rbp), %xmm1
	movups	%xmm0, (%rbx)
	movups	%xmm1, 16(%rbx)
	addq	$32, %r14
	movq	-200(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	-192(%rbp), %r8                 ## 8-byte Reload
	callq	_get_hram
	leaq	-228(%rbp), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sc25519_from64bytes
	leaq	-224(%rbp), %r12
	leaq	-176(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sc25519_from32bytes
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_sc25519_mul
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sc25519_add
	leaq	-112(%rbp), %rdi
	movq	%r14, %rsi
	callq	_sc25519_to32bytes
	movaps	-112(%rbp), %xmm0
	movaps	-96(%rbp), %xmm1
	movups	%xmm0, 32(%rbx)
	movups	%xmm1, 48(%rbx)
	movq	-216(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$32, %r12
	jae	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_7:
	movq	%r12, %rax
	andq	$-32, %rax
	leaq	-32(%rax), %rsi
	movq	%rsi, %rdx
	shrq	$5, %rdx
	incq	%rdx
	movl	%edx, %ecx
	andl	$3, %ecx
	cmpq	$96, %rsi
	jae	LBB0_9
## %bb.8:
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_9:
	andq	$-4, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r15,%rsi), %xmm0
	movups	16(%r15,%rsi), %xmm1
	movups	%xmm0, 64(%rbx,%rsi)
	movups	%xmm1, 80(%rbx,%rsi)
	movups	32(%r15,%rsi), %xmm0
	movups	48(%r15,%rsi), %xmm1
	movups	%xmm0, 96(%rbx,%rsi)
	movups	%xmm1, 112(%rbx,%rsi)
	movups	64(%r15,%rsi), %xmm0
	movups	80(%r15,%rsi), %xmm1
	movups	%xmm0, 128(%rbx,%rsi)
	movups	%xmm1, 144(%rbx,%rsi)
	movups	96(%r15,%rsi), %xmm0
	movups	112(%r15,%rsi), %xmm1
	movups	%xmm0, 160(%rbx,%rsi)
	movups	%xmm1, 176(%rbx,%rsi)
	subq	$-128, %rsi
	addq	$-4, %rdx
	jne	LBB0_10
LBB0_11:
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.12:
	leaq	(%rsi,%rbx), %rdx
	addq	$80, %rdx
	addq	%r15, %rsi
	addq	$16, %rsi
	shlq	$5, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rdi), %xmm0
	movups	(%rsi,%rdi), %xmm1
	movups	%xmm0, -16(%rdx,%rdi)
	movups	%xmm1, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_13
LBB0_14:
	cmpq	%r12, %rax
	je	LBB0_23
## %bb.15:
	testb	$24, %r12b
	je	LBB0_19
LBB0_16:
	movq	%rax, %rcx
	movq	%r12, %rax
	andq	$-8, %rax
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx), %rdx
	movq	%rdx, 64(%rbx,%rcx)
	addq	$8, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_17
## %bb.18:
	cmpq	%r12, %rax
	je	LBB0_23
	jmp	LBB0_19
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_crypto_hash_sha512_BYTES,4,2   ## @crypto_hash_sha512_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_sign_ed25519            ; -- Begin function crypto_sign_ed25519
	.p2align	2
_crypto_sign_ed25519:                   ; @crypto_sign_ed25519
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #160
	mov	x20, x4
	mov	x22, x3
	mov	x25, x2
	mov	x26, x1
	mov	x19, x0
	mov	x27, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _crypto_hash_sha512_BYTES@GOTPAGE
Lloh4:
	ldr	x12, [x12, _crypto_hash_sha512_BYTES@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	w8, [x12]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	sub	x0, x29, #216
	mov	x1, x4
	mov	w2, #32
	bl	_crypto_hash_sha512
	ldurb	w8, [x29, #-216]
	and	w8, w8, #0xf8
	sturb	w8, [x29, #-216]
	ldurb	w8, [x29, #-185]
	mov	w9, #64
	bfxil	w9, w8, #0, #6
	sturb	w9, [x29, #-185]
	add	x24, x22, #64
	str	x24, [x26]
	cbz	x22, LBB0_6
; %bb.1:
	cmp	x22, #8
	b.lo	LBB0_3
; %bb.2:
	sub	x8, x19, x25
	add	x8, x8, #64
	cmp	x8, #64
	b.hs	LBB0_8
LBB0_3:
	mov	x8, #0
LBB0_4:
	sub	x9, x22, x8
	add	x10, x8, x19
	add	x10, x10, #64
	add	x8, x25, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8], #1
	strb	w11, [x10], #1
	subs	x9, x9, #1
	b.ne	LBB0_5
LBB0_6:
	add	x1, x19, #32
	ldur	q0, [x29, #-184]
	ldur	q1, [x29, #-168]
	stp	q0, q1, [x19, #32]
	add	x2, x22, #32
	mov	x0, x23
	bl	_crypto_hash_sha512
	sub	x0, x29, #220
	mov	x1, x23
	bl	_sc25519_from64bytes
	sub	x0, x29, #232
	sub	x1, x29, #220
	bl	_ge25519_scalarmult_base
	sub	x0, x29, #120
	sub	x1, x29, #232
	bl	_ge25519_pack
	ldur	q0, [x29, #-120]
	ldur	q1, [x29, #-104]
	stp	q0, q1, [x19]
	add	x2, x20, #32
	mov	x0, x21
	mov	x1, x19
	mov	x3, x19
	mov	x4, x24
	bl	_get_hram
	sub	x0, x29, #224
	mov	x1, x21
	bl	_sc25519_from64bytes
	sub	x0, x29, #228
	sub	x1, x29, #216
	bl	_sc25519_from32bytes
	sub	x0, x29, #224
	sub	x1, x29, #224
	sub	x2, x29, #228
	bl	_sc25519_mul
	sub	x0, x29, #224
	sub	x1, x29, #224
	sub	x2, x29, #220
	bl	_sc25519_add
	sub	x0, x29, #152
	sub	x1, x29, #224
	bl	_sc25519_to32bytes
	ldur	q0, [x29, #-152]
	ldur	q1, [x29, #-136]
	stp	q0, q1, [x19, #32]
	mov	sp, x27
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.7:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	cmp	x22, #64
	b.hs	LBB0_10
; %bb.9:
	mov	x8, #0
	b	LBB0_14
LBB0_10:
	and	x8, x22, #0xffffffffffffffc0
	add	x9, x25, #32
	add	x10, x19, #112
	mov	x11, x8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x9, #-32]
	ldp	q2, q3, [x9], #64
	stp	q0, q1, [x10, #-48]
	stp	q2, q3, [x10, #-16]
	add	x10, x10, #64
	subs	x11, x11, #64
	b.ne	LBB0_11
; %bb.12:
	cmp	x8, x22
	b.eq	LBB0_6
; %bb.13:
	tst	x22, #0x38
	b.eq	LBB0_4
LBB0_14:
	mov	x11, x8
	and	x8, x22, #0xfffffffffffffff8
	add	x9, x25, x11
	add	x10, x11, x19
	add	x10, x10, #64
	sub	x11, x11, x8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9], #8
	str	d0, [x10], #8
	adds	x11, x11, #8
	b.ne	LBB0_15
; %bb.16:
	cmp	x8, x22
	b.eq	LBB0_6
	b	LBB0_4
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_crypto_hash_sha512_BYTES,4,2   ; @crypto_hash_sha512_BYTES
.subsections_via_symbols
