	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function probable_prime
_probable_prime:                        ## @probable_prime
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_BN_MASK2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_primes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NUMPRIMES@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	movq	-8(%rax,%rcx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_BN_BITS2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_BN_RAND_TOP_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BN_RAND_BOTTOM_ODD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_BN_priv_rand
	testl	%eax, %eax
	je	LBB0_31
## %bb.1:
	subq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movl	%r13d, %ecx
	shlq	%cl, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
                                        ##       Child Loop BB0_13 Depth 3
	cmpl	$2, (%r15)
	jl	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_primes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_BN_mod_word
	cmpq	$-1, %rax
	je	LBB0_31
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, -60(%rbp)                ## 4-byte Folded Reload
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_BN_BITS2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_BN_get_word
	cmpl	%r13d, %ebx
	notq	%rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, %edx
	cmoveq	%rdx, %rcx
	addq	%rax, %rcx
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	cmpq	%r10, %rcx
	cmovlq	%rcx, %r10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
                                        ##       Child Loop BB0_13 Depth 3
	cmpl	%ebx, -60(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	(%r15), %ecx
	cmpl	$2, %ecx
	jl	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	_primes@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r12,%rdi,8), %rax
	addq	%r13, %rax
	movq	(%rsi,%rdi,8), %rbx
	movq	%rax, %rdx
	orq	%rbx, %rdx
	shrq	$32, %rdx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	cqto
	idivq	%rbx
	cmpq	$1, %rdx
	jg	LBB0_17
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=3
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
	cmpq	$1, %rdx
	jle	LBB0_25
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=3
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_13
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r14, %rdi
	callq	_BN_get_word
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movl	(%r15), %esi
	cmpl	$2, %esi
	jl	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %r9
	movq	_primes@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	$1, %edi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=3
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	je	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=3
	incq	%rdi
	cmpq	%rdi, %rsi
	je	LBB0_26
LBB0_20:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r8,%rdi,8), %rcx
	cmpq	%r9, %rcx
	jge	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	movq	(%r12,%rdi,8), %rax
	addq	%r13, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=3
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	jne	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=2
	addq	$2, %r13
	cmpq	%r10, %r13
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jle	LBB0_10
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_BN_add_word
	testl	%eax, %eax
	je	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_BN_num_bits
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %eax
	je	LBB0_34
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BN_RAND_TOP_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BN_RAND_BOTTOM_ODD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_BN_priv_rand
	testl	%eax, %eax
	movl	%ebx, %r13d
	jne	LBB0_2
LBB0_31:
	xorl	%eax, %eax
LBB0_32:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	%r14, %rdi
	callq	_bn_check_top
	movl	$1, %eax
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_MASK2,8,3                   ## @BN_MASK2
	.comm	_primes,8,3                     ## @primes
	.comm	_NUMPRIMES,4,2                  ## @NUMPRIMES
	.comm	_BN_BITS2,4,2                   ## @BN_BITS2
	.comm	_BN_RAND_TOP_TWO,4,2            ## @BN_RAND_TOP_TWO
	.comm	_BN_RAND_BOTTOM_ODD,4,2         ## @BN_RAND_BOTTOM_ODD
	.no_dead_strip	_probable_prime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function probable_prime
_probable_prime:                        ; @probable_prime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BN_MASK2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_MASK2@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x23, _primes@GOTPAGE
Lloh4:
	ldr	x23, [x23, _primes@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh5:
	adrp	x24, _NUMPRIMES@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NUMPRIMES@GOTPAGEOFF]
	ldrsw	x9, [x24]
	add	x8, x8, x9, lsl #3
	ldur	x25, [x8, #-8]
Lloh7:
	adrp	x8, _BN_BITS2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BN_BITS2@GOTPAGEOFF]
Lloh9:
	ldr	w26, [x8]
Lloh10:
	adrp	x8, _BN_RAND_TOP_TWO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BN_RAND_TOP_TWO@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x28, _BN_RAND_BOTTOM_ODD@GOTPAGE
Lloh14:
	ldr	x28, [x28, _BN_RAND_BOTTOM_ODD@GOTPAGEOFF]
	ldr	w3, [x28]
	bl	_BN_priv_rand
	cbz	w0, LBB0_24
; %bb.1:
	sub	x25, x22, x25
	mov	w8, #1
	lsl	x8, x8, x21
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x27, x20, #8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, #1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	ldr	x1, [x8, x22, lsl #3]
	mov	x0, x19
	bl	_BN_mod_word
	cmn	x0, #1
	b.eq	LBB0_23
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	str	x0, [x20, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w26, w21
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh15:
	adrp	x8, _BN_BITS2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BN_BITS2@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_BN_get_word
	mvn	x8, x0
	cmp	w22, w21
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	csel	x9, xzr, x9, eq
	add	x8, x9, x8
	cmp	x8, x25
	csel	x25, x8, x25, lt
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, #0
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w26, w21
	b.ge	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w9, [x24]
	cmp	w9, #2
	b.lt	LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x23]
	add	x8, x8, #8
	sub	x9, x9, #1
	mov	x10, x27
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x11, [x10]
	add	x11, x11, x22
	ldr	x12, [x8]
	sdiv	x13, x11, x12
	msub	x11, x13, x12, x11
	cmp	x11, #1
	b.le	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	add	x8, x8, #8
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_12
	b	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x19
	bl	_BN_get_word
	ldr	w9, [x24]
	cmp	w9, #2
	b.lt	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x23]
	add	x8, x8, #8
	sub	x9, x9, #1
	mov	x10, x27
LBB0_16:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x11, [x8]
	cmp	x11, x0
	b.ge	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	ldr	x12, [x10]
	add	x12, x12, x22
	sdiv	x13, x12, x11
	msub	x11, x13, x11, x12
	cbz	x11, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=3
	add	x10, x10, #8
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_16
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=2
	add	x22, x22, #2
	cmp	x22, x25
	b.le	LBB0_9
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_BN_add_word
	cbz	w0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_BN_num_bits
	cmp	w0, w21
	b.eq	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh18:
	adrp	x8, _BN_RAND_TOP_TWO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BN_RAND_TOP_TWO@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	w3, [x28]
	mov	x0, x19
	mov	x1, x21
	bl	_BN_priv_rand
	cbnz	w0, LBB0_2
	b	LBB0_24
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	mov	x0, x19
	bl	_bn_check_top
	mov	w0, #1
	b	LBB0_24
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_MASK2,8,3                   ; @BN_MASK2
	.comm	_primes,8,3                     ; @primes
	.comm	_NUMPRIMES,4,2                  ; @NUMPRIMES
	.comm	_BN_BITS2,4,2                   ; @BN_BITS2
	.comm	_BN_RAND_TOP_TWO,4,2            ; @BN_RAND_TOP_TWO
	.comm	_BN_RAND_BOTTOM_ODD,4,2         ; @BN_RAND_BOTTOM_ODD
	.no_dead_strip	_probable_prime
.subsections_via_symbols
