	.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_weak
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_weak:           ## @secp256k1_fe_normalize_weak
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movl	36(%rcx), %eax
	movl	%eax, %edx
	sarl	$22, %edx
	imull	$977, %edx, %esi                ## imm = 0x3D1
	shll	$6, %edx
	addl	4(%rcx), %edx
	addl	(%rcx), %esi
	movd	%esi, %xmm0
	sarl	$26, %esi
	addl	%edx, %esi
	pinsrd	$1, %esi, %xmm0
	sarl	$26, %esi
	addl	8(%rcx), %esi
	pinsrd	$2, %esi, %xmm0
	sarl	$26, %esi
	addl	12(%rcx), %esi
	pinsrd	$3, %esi, %xmm0
	movdqa	%xmm0, %xmm1
	sarl	$26, %esi
	addl	16(%rcx), %esi
	movd	%esi, %xmm2
	sarl	$26, %esi
	addl	20(%rcx), %esi
	pinsrd	$1, %esi, %xmm2
	sarl	$26, %esi
	addl	24(%rcx), %esi
	andl	$4194303, %eax                  ## imm = 0x3FFFFF
	pinsrd	$2, %esi, %xmm2
	sarl	$26, %esi
	addl	28(%rcx), %esi
	pinsrd	$3, %esi, %xmm2
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [67108863,67108863,67108863,67108863]
	movl	%esi, %ebx
	sarl	$26, %ebx
	addl	32(%rcx), %ebx
	pand	%xmm0, %xmm1
	movdqa	%xmm1, -64(%rbp)                ## 16-byte Spill
	pand	%xmm0, %xmm2
	movdqa	%xmm2, -48(%rbp)                ## 16-byte Spill
	movl	%ebx, %r15d
	sarl	$26, %r15d
	addl	%eax, %r15d
	andl	$67108863, %ebx                 ## imm = 0x3FFFFFF
	xorl	%edi, %edi
	cmpl	$8388608, %r15d                 ## imm = 0x800000
	setb	%dil
	callq	_VERIFY_CHECK
	movq	(%r14), %rax
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, (%rax)
	movaps	-48(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 16(%rax)
	movl	%ebx, 32(%rax)
	movl	%r15d, 36(%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_secp256k1_fe_normalize_weak
.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_weak
_secp256k1_fe_normalize_weak:           ; @secp256k1_fe_normalize_weak
	.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
	mov	x19, x0
	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	w9, w9, #0x3ffffff
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	add	w9, w11, w10, asr #26
	and	w21, w10, #0x3ffffff
	add	w10, w12, w9, asr #26
	and	w22, w9, #0x3ffffff
	add	w9, w13, w10, asr #26
	and	w23, w10, #0x3ffffff
	add	w10, w14, w9, asr #26
	and	w24, w9, #0x3ffffff
	add	w9, w15, w10, asr #26
	and	w25, w10, #0x3ffffff
	add	w10, w16, w9, asr #26
	and	w26, w9, #0x3ffffff
	add	w9, w17, w10, asr #26
	and	w27, w10, #0x3ffffff
	add	w28, w8, w9, asr #26
	and	w20, w9, #0x3ffffff
	cmp	w28, #2048, lsl #12             ; =8388608
	cset	w0, lo
	bl	_VERIFY_CHECK
	ldr	x8, [x19]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	stp	w9, w21, [x8]
	stp	w22, w23, [x8, #8]
	stp	w24, w25, [x8, #16]
	stp	w26, w27, [x8, #24]
	stp	w20, w28, [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_weak
.subsections_via_symbols
