	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_sqrt                      ## -- Begin function test_sqrt
	.p2align	4, 0x90
_test_sqrt:                             ## @test_sqrt
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	leaq	-40(%rbp), %rdi
	callq	_secp256k1_fe_sqrt
	testl	%eax, %eax
	setne	%al
	testq	%rbx, %rbx
	sete	%cl
	xorb	%al, %cl
	movzbl	%cl, %edi
	callq	_CHECK
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	leaq	-36(%rbp), %r15
	leaq	-40(%rbp), %r12
	movl	$1, %r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_secp256k1_fe_negate
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_fe_add
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_fe_add
	movq	%r12, %rdi
	callq	_secp256k1_fe_normalize
	movq	%r15, %rdi
	callq	_secp256k1_fe_normalize
	movq	%r12, %rdi
	callq	_secp256k1_fe_is_zero
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	-36(%rbp), %rdi
	callq	_secp256k1_fe_is_zero
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_3:
	movl	%r14d, %edi
	callq	_CHECK
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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
	.globl	_test_sqrt                      ; -- Begin function test_sqrt
	.p2align	2
_test_sqrt:                             ; @test_sqrt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x1, x0
	add	x0, sp, #12
	bl	_secp256k1_fe_sqrt
	cmp	w0, #0
	cset	w8, ne
	cmp	x20, #0
	cset	w9, eq
	eor	w0, w9, w8
	bl	_CHECK
	cbz	x20, LBB0_4
; %bb.1:
	mov	w19, #1
	add	x0, sp, #8
	add	x1, sp, #12
	mov	w2, #1
	bl	_secp256k1_fe_negate
	add	x0, sp, #12
	mov	x1, x20
	bl	_secp256k1_fe_add
	add	x0, sp, #8
	mov	x1, x20
	bl	_secp256k1_fe_add
	add	x0, sp, #12
	bl	_secp256k1_fe_normalize
	add	x0, sp, #8
	bl	_secp256k1_fe_normalize
	add	x0, sp, #12
	bl	_secp256k1_fe_is_zero
	cbnz	x0, LBB0_3
; %bb.2:
	add	x0, sp, #8
	bl	_secp256k1_fe_is_zero
	cmp	x0, #0
	cset	w19, ne
LBB0_3:
	mov	x0, x19
	bl	_CHECK
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
