	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_kronecker
_test_kronecker:                        ## @test_kronecker
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_21
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_22
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_23
## %bb.4:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	$512, %esi                      ## imm = 0x200
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_BN_generate_prime_ex
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_23
## %bb.5:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_rand_neg
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_BN_set_negative
	movq	_NUM0@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_25
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$512, %esi                      ## imm = 0x200
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_BN_bntest_rand
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rand_neg
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_BN_set_negative
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_BN_copy
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_BN_set_negative
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_BN_sub_word
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_23
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	_BN_rshift1
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_BN_set_negative
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_BN_mod_exp_recp
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_BN_set_negative
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_BN_is_word
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_BN_is_zero
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_BN_add_word
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_BN_ucmp
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	testl	%eax, %eax
	je	LBB0_27
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_BN_kronecker
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$-1, %esi
	callq	_TEST_int_ge
	testl	%eax, %eax
	je	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_BN_is_negative
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_BN_is_negative
	movl	%ebx, %ecx
	negl	%ecx
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	$1, %ebx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_NUM0@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_6
	jmp	LBB0_23
LBB0_20:
	xorl	%r13d, %r13d
LBB0_21:
	xorl	%r15d, %r15d
LBB0_22:
	xorl	%r12d, %r12d
LBB0_23:
	movq	%r14, %rdi
	callq	_BN_free
	movq	%r13, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	callq	_BN_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_27:
	leaq	L_.str(%rip), %rdi
	callq	_TEST_info
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM0,4,2                       ## @NUM0
	.comm	_ctx,4,2                        ## @ctx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Legendre symbol computation failed"

	.no_dead_strip	_test_kronecker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_kronecker
_test_kronecker:                        ; @test_kronecker
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_BN_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_23
; %bb.1:
	bl	_BN_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_24
; %bb.2:
	bl	_BN_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_25
; %bb.3:
	bl	_BN_new
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_26
; %bb.4:
	mov	x0, x20
	mov	w1, #512
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_BN_generate_prime_ex
	bl	_TEST_true
	cbz	w0, LBB0_26
; %bb.5:
	bl	_rand_neg
	mov	x1, x0
	mov	x0, x20
	bl	_BN_set_negative
Lloh0:
	adrp	x25, _NUM0@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NUM0@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.6:
	mov	w26, #0
Lloh2:
	adrp	x27, _ctx@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ctx@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #512
	mov	w2, #0
	mov	w3, #0
	bl	_BN_bntest_rand
	bl	_TEST_true
	cbz	w0, LBB0_26
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_rand_neg
	mov	x1, x0
	mov	x0, x19
	bl	_BN_set_negative
	mov	x0, x22
	mov	x1, x20
	bl	_BN_copy
	bl	_TEST_true
	cbz	w0, LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_BN_set_negative
	mov	x0, x22
	mov	w1, #1
	bl	_BN_sub_word
	bl	_TEST_true
	cbz	w0, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x1, x22
	bl	_BN_rshift1
	bl	_TEST_true
	cbz	w0, LBB0_26
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	w1, #0
	bl	_BN_set_negative
	ldr	w4, [x27]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	bl	_BN_mod_exp_recp
	bl	_TEST_true
	cbz	w0, LBB0_26
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #1
	mov	x0, x20
	mov	w1, #1
	bl	_BN_set_negative
	mov	x0, x21
	mov	w1, #1
	bl	_BN_is_word
	cbnz	x0, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_BN_is_zero
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #0
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	w1, #1
	bl	_BN_add_word
	bl	_TEST_true
	cbz	w0, LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_BN_ucmp
	mov	w1, #0
	bl	_TEST_int_eq
	cbz	w0, LBB0_29
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #-1
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_BN_kronecker
	mov	x24, x0
	mov	w1, #-1
	bl	_TEST_int_ge
	cbz	w0, LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_BN_is_negative
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_BN_is_negative
	cmp	x0, #0
	cneg	w24, w24, ne
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_TEST_int_eq
	cbz	w0, LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w26, w26, #1
	ldr	w8, [x25]
	mov	w23, #1
	cmp	w26, w8
	b.lt	LBB0_7
	b	LBB0_27
LBB0_23:
	mov	x20, #0
LBB0_24:
	mov	x21, #0
LBB0_25:
	mov	x22, #0
LBB0_26:
	mov	w23, #0
LBB0_27:
	mov	x0, x19
	bl	_BN_free
	mov	x0, x20
	bl	_BN_free
	mov	x0, x21
	bl	_BN_free
	mov	x0, x22
	bl	_BN_free
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	mov	w23, #1
	b	LBB0_27
LBB0_29:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEST_info
	b	LBB0_26
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM0,4,2                       ; @NUM0
	.comm	_ctx,4,2                        ; @ctx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Legendre symbol computation failed"

	.no_dead_strip	_test_kronecker
.subsections_via_symbols
