	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_sqrt                       ## -- Begin function run_sqrt
	.p2align	4, 0x90
_run_sqrt:                              ## @run_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_secp256k1_fe_set_int
	leaq	-52(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_fe_sqr
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_test_sqrt
	movl	$1, %ebx
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_secp256k1_fe_set_int
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_fe_sqr
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_test_sqrt
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_secp256k1_fe_negate
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_test_sqrt
	incl	%ebx
	cmpl	$101, %ebx
	jne	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdi
	movq	_count@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r15
	leaq	-52(%rbp), %r12
	leaq	-48(%rbp), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	cmpl	$10, %eax
	leaq	-44(%rbp), %rdi
	je	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_random_fe_non_square
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_random_fe
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_fe_sqr
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_test_sqrt
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_secp256k1_fe_negate
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_test_sqrt
	movq	%rbx, %rdi
	movq	%r12, %rsi
	leaq	-44(%rbp), %rdx
	callq	_secp256k1_fe_mul
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_test_sqrt
	incl	%r14d
	cmpl	(%r13), %r14d
	jl	LBB0_5
	jmp	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_count,4,2                      ## @count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_sqrt                       ; -- Begin function run_sqrt
	.p2align	2
_run_sqrt:                              ; @run_sqrt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	add	x0, sp, #8
	mov	w1, #0
	bl	_secp256k1_fe_set_int
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_secp256k1_fe_sqr
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_test_sqrt
	mov	w19, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x19
	bl	_secp256k1_fe_set_int
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_secp256k1_fe_sqr
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_test_sqrt
	mov	x0, sp
	add	x1, sp, #4
	mov	w2, #1
	bl	_secp256k1_fe_negate
	mov	x0, sp
	mov	x1, #0
	bl	_test_sqrt
	add	w19, w19, #1
	cmp	w19, #101
	b.ne	LBB0_1
; %bb.2:
	mov	w19, #0
Lloh0:
	adrp	x20, _count@GOTPAGE
Lloh1:
	ldr	x20, [x20, _count@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
	cmp	w19, #10
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x0, sp, #12
	bl	_random_fe_non_square
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #8
	bl	_random_fe
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_secp256k1_fe_sqr
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_test_sqrt
	mov	x0, sp
	add	x1, sp, #4
	mov	w2, #1
	bl	_secp256k1_fe_negate
	mov	x0, sp
	mov	x1, #0
	bl	_test_sqrt
	mov	x0, sp
	add	x1, sp, #4
	add	x2, sp, #12
	bl	_secp256k1_fe_mul
	mov	x0, sp
	mov	x1, #0
	bl	_test_sqrt
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_count,4,2                      ; @count
.subsections_via_symbols
