	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_scalar_negate
_secp256k1_scalar_negate:               ## @secp256k1_scalar_negate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_EXHAUSTIVE_TEST_ORDER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subq	%rax, %rcx
	testq	%rax, %rax
	cmoveq	%rax, %rcx
	movq	%rcx, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXHAUSTIVE_TEST_ORDER,8,3      ## @EXHAUSTIVE_TEST_ORDER
	.no_dead_strip	_secp256k1_scalar_negate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_scalar_negate
_secp256k1_scalar_negate:               ; @secp256k1_scalar_negate
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _EXHAUSTIVE_TEST_ORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXHAUSTIVE_TEST_ORDER@GOTPAGEOFF]
	ldr	x9, [x1]
Lloh2:
	ldr	x8, [x8]
	sub	x8, x8, x9
	cmp	x9, #0
	csel	x8, xzr, x8, eq
	str	x8, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXHAUSTIVE_TEST_ORDER,8,3      ; @EXHAUSTIVE_TEST_ORDER
	.no_dead_strip	_secp256k1_scalar_negate
.subsections_via_symbols
