	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_fe_normalize_var
_secp256k1_fe_normalize_var:            ## @secp256k1_fe_normalize_var
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -80(%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, %r12d
	sarl	$26, %r12d
	addl	%edx, %r12d
	andl	$67108863, %esi                 ## imm = 0x3FFFFFF
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	sarl	$26, %esi
	addl	8(%rcx), %esi
	andl	$67108863, %r12d                ## 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, -48(%rbp)                 ## 4-byte Spill
	andl	%esi, %ebx
	andl	$67108863, %esi                 ## imm = 0x3FFFFFF
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	sarl	$26, %esi
	addl	20(%rcx), %esi
	andl	%edx, %ebx
	movl	%esi, %r15d
	sarl	$26, %r15d
	addl	24(%rcx), %r15d
	andl	$67108863, %edx                 ## imm = 0x3FFFFFF
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	andl	%esi, %ebx
	andl	$67108863, %esi                 ## imm = 0x3FFFFFF
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, %r14d
	sarl	$26, %r14d
	addl	28(%rcx), %r14d
	andl	$67108863, %r15d                ## imm = 0x3FFFFFF
	andl	%r15d, %ebx
	movl	%r14d, %edx
	sarl	$26, %edx
	addl	32(%rcx), %edx
	andl	%r14d, %ebx
	andl	$67108863, %r14d                ## imm = 0x3FFFFFF
	movl	%edx, %r13d
	sarl	$26, %r13d
	addl	%eax, %r13d
	andl	%edx, %ebx
	andl	$67108863, %edx                 ## imm = 0x3FFFFFF
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	$8388608, %r13d                 ## imm = 0x800000
	setb	%dil
	callq	_VERIFY_CHECK
	movl	%r13d, %r9d
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edi
	movl	%r13d, %ecx
	sarl	$22, %ecx
	movl	%r13d, %eax
	xorl	$4194303, %eax                  ## imm = 0x3FFFFF
	xorl	$67108863, %ebx                 ## imm = 0x3FFFFFF
	orl	%eax, %ebx
	sete	%al
	leal	977(%rsi), %ebx
	movl	%ebx, %r12d
	shrl	$26, %r12d
	addl	%edi, %r12d
	cmpl	$67108800, %r12d                ## imm = 0x3FFFFC0
	setae	%dl
	andb	%al, %dl
	movzbl	%dl, %eax
	orl	%ecx, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ecx
	shll	$6, %ecx
	addl	%ecx, %r12d
	andl	$67108863, %ebx                 ## imm = 0x3FFFFFF
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%r12d, %ecx
	sarl	$26, %ecx
	addl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	andl	$67108863, %r12d                ## imm = 0x3FFFFFF
	movl	%ecx, %edx
	sarl	$26, %edx
	addl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	andl	$67108863, %ecx                 ## imm = 0x3FFFFFF
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %ecx
	sarl	$26, %ecx
	addl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	andl	$67108863, %edx                 ## imm = 0x3FFFFFF
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	sarl	$26, %edx
	addl	-52(%rbp), %edx                 ## 4-byte Folded Reload
	andl	$67108863, %ecx                 ## imm = 0x3FFFFFF
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	sarl	$26, %r13d
	addl	%r15d, %r13d
	andl	$67108863, %edx                 ## imm = 0x3FFFFFF
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r15d
	sarl	$26, %r15d
	addl	%r14d, %r15d
	andl	$67108863, %r13d                ## imm = 0x3FFFFFF
	movl	%r15d, %r14d
	sarl	$26, %r14d
	addl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	andl	$67108863, %r15d                ## imm = 0x3FFFFFF
	movl	%r14d, %ebx
	sarl	$26, %ebx
	addl	%r9d, %ebx
	andl	$67108863, %r14d                ## imm = 0x3FFFFFF
	movl	%ebx, %ecx
	sarl	$22, %ecx
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	sete	%dil
	callq	_VERIFY_CHECK
	andl	$4194303, %ebx                  ## imm = 0x3FFFFF
	movl	%r12d, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	jmp	LBB0_3
LBB0_1:
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	%r15d, %r13d
	movl	%r14d, %r15d
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
LBB0_3:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%esi, (%rax)
	movl	%edi, 4(%rax)
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax)
	movl	%edx, 12(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%rax)
	movl	%r8d, 20(%rax)
	movl	%r13d, 24(%rax)
	movl	%r15d, 28(%rax)
	movl	%r14d, 32(%rax)
	movl	%r9d, 36(%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_secp256k1_fe_normalize_var
.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_var
_secp256k1_fe_normalize_var:            ; @secp256k1_fe_normalize_var
	.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	w20, w9, #0x3ffffff
	add	w9, w11, w10, asr #26
	and	w22, w10, #0x3ffffff
	add	w10, w12, w9, asr #26
	and	w23, w9, #0x3ffffff
	add	w11, w13, w10, asr #26
	and	w12, w10, #0x3ffffff
	str	w12, [sp, #4]                   ; 4-byte Folded Spill
	and	w9, w10, w9
	add	w10, w14, w11, asr #26
	and	w24, w11, #0x3ffffff
	and	w9, w9, w11
	add	w11, w15, w10, asr #26
	and	w25, w10, #0x3ffffff
	and	w9, w9, w10
	add	w10, w16, w11, asr #26
	and	w26, w11, #0x3ffffff
	and	w9, w9, w26
	add	w11, w17, w10, asr #26
	and	w27, w10, #0x3ffffff
	and	w9, w9, w10
	add	w19, w8, w11, asr #26
	and	w28, w11, #0x3ffffff
	and	w21, w9, w11
	cmp	w19, #2048, lsl #12             ; =8388608
	cset	w0, lo
	bl	_VERIFY_CHECK
	mov	w8, #67108863
	cmp	w21, w8
	mov	w8, #4194303
	ccmp	w19, w8, #0, eq
	add	w9, w20, #977
	add	w10, w22, w9, lsr #26
	mov	w8, #65471
	movk	w8, #1023, lsl #16
	ccmp	w10, w8, #0, eq
	cset	w8, hi
	orr	w8, w8, w19, asr #22
	cbz	w8, LBB0_2
; %bb.1:
	add	w10, w10, w8, lsl #6
	and	w20, w9, #0x3ffffff
	add	w9, w23, w10, asr #26
	and	w22, w10, #0x3ffffff
	ldr	w10, [sp, #4]                   ; 4-byte Folded Reload
	add	w10, w10, w9, asr #26
	and	w23, w9, #0x3ffffff
	add	w9, w24, w10, asr #26
	and	w21, w10, #0x3ffffff
	add	w10, w25, w9, asr #26
	and	w24, w9, #0x3ffffff
	add	w9, w26, w10, asr #26
	and	w25, w10, #0x3ffffff
	add	w10, w27, w9, asr #26
	and	w26, w9, #0x3ffffff
	add	w9, w28, w10, asr #26
	and	w27, w10, #0x3ffffff
	add	w19, w19, w9, asr #26
	and	w28, w9, #0x3ffffff
	cmp	w8, w19, asr #22
	cset	w0, eq
	bl	_VERIFY_CHECK
	and	w19, w19, #0x3fffff
	b	LBB0_3
LBB0_2:
	ldr	w21, [sp, #4]                   ; 4-byte Folded Reload
LBB0_3:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	stp	w20, w22, [x8]
	stp	w23, w21, [x8, #8]
	stp	w24, w25, [x8, #16]
	stp	w26, w27, [x8, #24]
	stp	w28, w19, [x8, #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_var
.subsections_via_symbols
