	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_num_jacobi                ## -- Begin function test_num_jacobi
	.p2align	4, 0x90
_test_num_jacobi:                       ## @test_num_jacobi
	.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	-52(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_secp256k1_scalar_set_int
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_get_num
	leaq	l___const.test_num_jacobi.jacobi5(%rip), %r13
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r15
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_secp256k1_scalar_set_int
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_jacobi
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	sete	%dil
	callq	_CHECK
	incq	%rbx
	addq	$4, %r13
	cmpq	$10, %rbx
	jne	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rdi
	leaq	-52(%rbp), %r14
	movq	%r14, %rsi
	callq	_secp256k1_scalar_get_num
	leaq	-60(%rbp), %r15
	leaq	-64(%rbp), %r12
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_random_scalar_order_test
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_secp256k1_num_mod
	movq	%rbx, %rdi
	callq	_secp256k1_num_is_zero
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_secp256k1_num_jacobi
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	-44(%rbp), %rdi
	movq	%rdi, %rsi
	movq	%rdi, %rdx
	callq	_secp256k1_num_add
LBB0_6:
	leaq	-44(%rbp), %r15
	leaq	-48(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_jacobi
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_CHECK
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_secp256k1_num_add
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_jacobi
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_CHECK
	movq	%r14, %rdi
	callq	_secp256k1_scalar_order_get_num
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_random_scalar_order_test
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_sqr
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_jacobi
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_CHECK
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_mul
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_jacobi
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_CHECK
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_jacobi
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_CHECK
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_secp256k1_scalar_set_int
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_secp256k1_num_sub
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_jacobi
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_CHECK
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.test_num_jacobi.jacobi5
l___const.test_num_jacobi.jacobi5:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_num_jacobi                ; -- Begin function test_num_jacobi
	.p2align	2
_test_num_jacobi:                       ; @test_num_jacobi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	add	x0, sp, #20
	mov	w1, #5
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #16
	add	x1, sp, #20
	bl	_secp256k1_scalar_get_num
	mov	x19, #0
Lloh0:
	adrp	x20, l___const.test_num_jacobi.jacobi5@PAGE
Lloh1:
	add	x20, x20, l___const.test_num_jacobi.jacobi5@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	x1, x19
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #12
	add	x1, sp, #24
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_secp256k1_num_jacobi
	ldr	w8, [x20, x19, lsl #2]
	cmp	w0, w8
	cset	w0, eq
	bl	_CHECK
	add	x19, x19, #1
	cmp	x19, #10
	b.ne	LBB0_1
; %bb.2:
	add	x0, sp, #16
	add	x1, sp, #20
	bl	_secp256k1_scalar_get_num
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #20
	bl	_random_scalar_order_test
	add	x0, sp, #8
	add	x1, sp, #20
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #12
	sub	x1, x29, #20
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_secp256k1_num_mod
	add	x0, sp, #12
	bl	_secp256k1_num_is_zero
	cbnz	x0, LBB0_3
; %bb.4:
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_secp256k1_num_jacobi
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
	add	x0, sp, #12
	add	x1, sp, #12
	add	x2, sp, #12
	bl	_secp256k1_num_add
LBB0_6:
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_secp256k1_num_jacobi
	cmp	w0, #1
	cset	w0, eq
	bl	_CHECK
	add	x0, sp, #12
	add	x1, sp, #12
	add	x2, sp, #12
	bl	_secp256k1_num_add
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_secp256k1_num_jacobi
	cmn	w0, #1
	cset	w0, eq
	bl	_CHECK
	add	x0, sp, #16
	bl	_secp256k1_scalar_order_get_num
	sub	x0, x29, #20
	bl	_random_scalar_order_test
	sub	x0, x29, #20
	sub	x1, x29, #20
	bl	_secp256k1_scalar_sqr
	add	x0, sp, #12
	sub	x1, x29, #20
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_secp256k1_num_jacobi
	cmp	w0, #1
	cset	w0, eq
	bl	_CHECK
	sub	x0, x29, #20
	sub	x1, x29, #20
	add	x2, sp, #20
	bl	_secp256k1_scalar_mul
	add	x0, sp, #12
	sub	x1, x29, #20
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_secp256k1_num_jacobi
	cmn	w0, #1
	cset	w0, eq
	bl	_CHECK
	add	x0, sp, #16
	add	x1, sp, #16
	bl	_secp256k1_num_jacobi
	cmp	w0, #0
	cset	w0, eq
	bl	_CHECK
	add	x0, sp, #24
	mov	w1, #1
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #12
	add	x1, sp, #24
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #12
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_secp256k1_num_sub
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_secp256k1_num_jacobi
	cmp	w0, #1
	cset	w0, eq
	bl	_CHECK
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.test_num_jacobi.jacobi5
l___const.test_num_jacobi.jacobi5:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1

.subsections_via_symbols
