	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function secp256k1_fe_normalize
LCPI0_0:
	.long	67108863                        ## 0x3ffffff
	.long	67108863                        ## 0x3ffffff
	.long	67108863                        ## 0x3ffffff
	.long	67108863                        ## 0x3ffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_secp256k1_fe_normalize:                ## @secp256k1_fe_normalize
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rcx
	movl	36(%rcx), %eax
	movl	%eax, %edx
	sarl	$22, %edx
	imull	$977, %edx, %esi                ## imm = 0x3D1
	addl	(%rcx), %esi
	shll	$6, %edx
	addl	4(%rcx), %edx
	andl	$4194303, %eax                  ## imm = 0x3FFFFF
	movl	%esi, %r14d
	sarl	$26, %r14d
	addl	%edx, %r14d
	andl	$67108863, %esi                 ## imm = 0x3FFFFFF
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movl	%r14d, %esi
	sarl	$26, %esi
	addl	8(%rcx), %esi
	andl	$67108863, %r14d                ## imm = 0x3FFFFFF
	movl	%esi, %ebx
	sarl	$26, %ebx
	addl	12(%rcx), %ebx
	movl	%ebx, %edx
	sarl	$26, %edx
	addl	16(%rcx), %edx
	movl	%ebx, %edi
	andl	$67108863, %edi                 ## imm = 0x3FFFFFF
	movl	%edi, -96(%rbp)                 ## 4-byte Spill
	andl	%esi, %ebx
	andl	$67108863, %esi                 ## imm = 0x3FFFFFF
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	sarl	$26, %esi
	addl	20(%rcx), %esi
	andl	%edx, %ebx
	movl	%esi, %edi
	sarl	$26, %edi
	addl	24(%rcx), %edi
	andl	$67108863, %edx                 ## imm = 0x3FFFFFF
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	andl	%esi, %ebx
	andl	$67108863, %esi                 ## imm = 0x3FFFFFF
	movl	%esi, -80(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	sarl	$26, %r12d
	addl	28(%rcx), %r12d
	andl	$67108863, %edi                 ## imm = 0x3FFFFFF
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	andl	%edi, %ebx
	movl	%r12d, %r13d
	sarl	$26, %r13d
	addl	32(%rcx), %r13d
	andl	%r12d, %ebx
	andl	$67108863, %r12d                ## imm = 0x3FFFFFF
	movl	%r13d, %r15d
	sarl	$26, %r15d
	addl	%eax, %r15d
	andl	%r13d, %ebx
	andl	$67108863, %r13d                ## imm = 0x3FFFFFF
	xorl	%edi, %edi
	cmpl	$8388608, %r15d                 ## imm = 0x800000
	setb	%dil
	callq	_VERIFY_CHECK
	movl	%r15d, %ecx
	sarl	$22, %ecx
	movl	%r15d, %eax
	movl	%r15d, %esi
	xorl	$4194303, %eax                  ## imm = 0x3FFFFF
	xorl	$67108863, %ebx                 ## imm = 0x3FFFFFF
	orl	%eax, %ebx
	sete	%al
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	leal	977(%rdi), %edx
	shrl	$26, %edx
	addl	%r14d, %edx
	addl	$64, %edx
	cmpl	$67108864, %edx                 ## imm = 0x4000000
	setae	%dl
	andb	%al, %dl
	movzbl	%dl, %eax
	orl	%ecx, %eax
	imull	$977, %eax, %r15d               ## imm = 0x3D1
	movl	%eax, %ecx
	shll	$6, %ecx
	addl	%r14d, %ecx
	addl	%edi, %r15d
	movd	%r15d, %xmm1
	sarl	$26, %r15d
	addl	%ecx, %r15d
	pinsrd	$1, %r15d, %xmm1
	sarl	$26, %r15d
	addl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	pinsrd	$2, %r15d, %xmm1
	sarl	$26, %r15d
	addl	-96(%rbp), %r15d                ## 4-byte Folded Reload
	pinsrd	$3, %r15d, %xmm1
	sarl	$26, %r15d
	addl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [67108863,67108863,67108863,67108863]
	pand	%xmm0, %xmm1
	movdqa	%xmm1, -96(%rbp)                ## 16-byte Spill
	movd	%r15d, %xmm1
	sarl	$26, %r15d
	addl	-80(%rbp), %r15d                ## 4-byte Folded Reload
	pinsrd	$1, %r15d, %xmm1
	sarl	$26, %r15d
	addl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	pinsrd	$2, %r15d, %xmm1
	sarl	$26, %r15d
	addl	%r12d, %r15d
	pinsrd	$3, %r15d, %xmm1
	sarl	$26, %r15d
	addl	%r13d, %r15d
	pand	%xmm0, %xmm1
	movdqa	%xmm1, -80(%rbp)                ## 16-byte Spill
	movl	%r15d, %ebx
	sarl	$26, %ebx
	addl	%esi, %ebx
	andl	$67108863, %r15d                ## imm = 0x3FFFFFF
	movl	%ebx, %ecx
	sarl	$22, %ecx
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	sete	%dil
	callq	_VERIFY_CHECK
	andl	$4194303, %ebx                  ## imm = 0x3FFFFF
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movaps	-96(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, (%rax)
	movaps	-80(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 16(%rax)
	movl	%r15d, 32(%rax)
	movl	%ebx, 36(%rax)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_secp256k1_fe_normalize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_fe_normalize
_secp256k1_fe_normalize:                ; @secp256k1_fe_normalize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x0]
	ldp	w9, w10, [x8]
	ldp	w11, w12, [x8, #8]
	ldp	w13, w14, [x8, #16]
	ldp	w15, w16, [x8, #24]
	ldp	w17, w8, [x8, #32]
	asr	w0, w8, #22
	and	w8, w8, #0x3fffff
	mov	w1, #977
	madd	w9, w0, w1, w9
	add	w10, w10, w0, lsl #6
	add	w10, w10, w9, asr #26
	and	w21, w9, #0x3ffffff
	add	w9, w11, w10, asr #26
	and	w22, w10, #0x3ffffff
	add	w10, w12, w9, asr #26
	and	w11, w9, #0x3ffffff
	str	w11, [sp, #4]                   ; 4-byte Folded Spill
	add	w11, w13, w10, asr #26
	and	w24, w10, #0x3ffffff
	and	w9, w10, w9
	add	w10, w14, w11, asr #26
	and	w25, w11, #0x3ffffff
	and	w9, w9, w11
	add	w11, w15, w10, asr #26
	and	w26, w10, #0x3ffffff
	and	w9, w9, w10
	add	w10, w16, w11, asr #26
	and	w27, w11, #0x3ffffff
	and	w9, w9, w27
	add	w11, w17, w10, asr #26
	and	w28, w10, #0x3ffffff
	and	w9, w9, w10
	add	w20, w8, w11, asr #26
	and	w19, w11, #0x3ffffff
	and	w23, w9, w11
	cmp	w20, #2048, lsl #12             ; =8388608
	cset	w0, lo
	bl	_VERIFY_CHECK
	mov	w8, #67108863
	cmp	w23, w8
	mov	w8, #4194303
	ccmp	w20, w8, #0, eq
	cset	w8, eq
	add	w9, w21, #977
	add	w9, w22, w9, lsr #26
	add	w9, w9, #64
	tst	w9, #0xc000000
	cset	w9, ne
	and	w8, w9, w8
	orr	w8, w8, w20, asr #22
	mov	w9, #977
	madd	w9, w8, w9, w21
	add	w10, w22, w8, lsl #6
	add	w10, w10, w9, asr #26
	and	w21, w9, #0x3ffffff
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	add	w9, w9, w10, asr #26
	and	w22, w10, #0x3ffffff
	add	w10, w24, w9, asr #26
	and	w23, w9, #0x3ffffff
	add	w9, w25, w10, asr #26
	and	w24, w10, #0x3ffffff
	add	w10, w26, w9, asr #26
	and	w25, w9, #0x3ffffff
	add	w9, w27, w10, asr #26
	and	w26, w10, #0x3ffffff
	add	w10, w28, w9, asr #26
	and	w27, w9, #0x3ffffff
	add	w9, w19, w10, asr #26
	and	w19, w10, #0x3ffffff
	add	w20, w20, w9, asr #26
	and	w28, w9, #0x3ffffff
	cmp	w8, w20, asr #22
	cset	w0, eq
	bl	_VERIFY_CHECK
	and	w8, w20, #0x3fffff
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x9, [x9]
	stp	w21, w22, [x9]
	stp	w23, w24, [x9, #8]
	stp	w25, w26, [x9, #16]
	stp	w27, w19, [x9, #24]
	stp	w28, w8, [x9, #32]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_secp256k1_fe_normalize
.subsections_via_symbols
