	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fe25519_freeze                 ## -- Begin function fe25519_freeze
	.p2align	4, 0x90
_fe25519_freeze:                        ## @fe25519_freeze
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	124(%rax), %edi
	movl	$127, %esi
	callq	_equal
	movl	%eax, %r15d
	movl	$31, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	-4(%rax,%rbx,4), %edi
	movl	$255, %esi
	callq	_equal
	andl	%eax, %r15d
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	$237, %esi
	callq	_ge
	andl	%r15d, %eax
	negl	%eax
	movl	%eax, %edx
	andl	$127, %edx
	movq	(%r14), %rcx
	subl	%edx, 124(%rcx)
	movzbl	%al, %edx
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	108(%rcx), %xmm1
	psubd	%xmm0, %xmm1
	movdqu	%xmm1, 108(%rcx)
	movdqu	92(%rcx), %xmm1
	psubd	%xmm0, %xmm1
	movdqu	%xmm1, 92(%rcx)
	movdqu	76(%rcx), %xmm1
	psubd	%xmm0, %xmm1
	movdqu	%xmm1, 76(%rcx)
	movdqu	12(%rcx), %xmm1
	movdqu	28(%rcx), %xmm2
	movdqu	44(%rcx), %xmm3
	movdqu	60(%rcx), %xmm4
	psubd	%xmm0, %xmm4
	movdqu	%xmm4, 60(%rcx)
	psubd	%xmm0, %xmm3
	movdqu	%xmm3, 44(%rcx)
	psubd	%xmm0, %xmm2
	movdqu	%xmm2, 28(%rcx)
	psubd	%xmm0, %xmm1
	movdqu	%xmm1, 12(%rcx)
	subl	%edx, 8(%rcx)
	subl	%edx, 4(%rcx)
	andl	$237, %eax
	subl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fe25519_freeze
lCPI0_0:
	.long	237                             ; 0xed
	.long	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_fe25519_freeze
	.p2align	2
_fe25519_freeze:                        ; @fe25519_freeze
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #124]
	mov	w1, #127
	bl	_equal
	mov	x20, x0
	mov	w21, #30
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x21, lsl #2]
	mov	w1, #255
	bl	_equal
	and	w20, w0, w20
	subs	x21, x21, #1
	b.hi	LBB0_1
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #237
	bl	_ge
	and	w8, w0, w20
	neg	w8, w8
	and	w9, w8, #0x7f
	ldr	x10, [x19]
	ldp	w12, w11, [x10, #120]
	sub	w9, w11, w9
	dup.2s	v0, w8
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	and.8b	v0, v0, v1
	dup.4s	v1, v0[1]
	mov.s	w8, v0[1]
	zip1.4s	v2, v0, v1
	sub	w8, w12, w8
	stp	w8, w9, [x10, #120]
	dup.2s	v0, v0[1]
	ldr	d3, [x10, #112]
	sub.2s	v0, v3, v0
	str	d0, [x10, #112]
	ldr	q0, [x10, #96]
	sub.4s	v4, v0, v1
	ldp	q3, q0, [x10, #64]
	sub.4s	v0, v0, v1
	sub.4s	v5, v3, v1
	stp	q0, q4, [x10, #80]
	ldp	q3, q0, [x10, #32]
	sub.4s	v0, v0, v1
	sub.4s	v4, v3, v1
	stp	q0, q5, [x10, #48]
	ldp	q3, q0, [x10]
	sub.4s	v0, v0, v1
	sub.4s	v1, v3, v2
	stp	q0, q4, [x10, #16]
	str	q1, [x10]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
