	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function probable_prime_dh_safe
_probable_prime_dh_safe:                ## @probable_prime_dh_safe
	.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	%r8, %r13
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, %rdi
	callq	_BN_CTX_start
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_BN_rshift1
	testl	%eax, %eax
	je	LBB0_21
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	decl	%r15d
	movq	_BN_RAND_TOP_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BN_RAND_BOTTOM_ODD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_BN_rand
	testl	%eax, %eax
	je	LBB0_21
## %bb.3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_BN_mod
	testl	%eax, %eax
	je	LBB0_21
## %bb.4:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_BN_sub
	testl	%eax, %eax
	je	LBB0_21
## %bb.5:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.6:
	movq	%r12, %rdi
	callq	_BN_rshift1
	testl	%eax, %eax
	je	LBB0_21
## %bb.7:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_BN_add
	testl	%eax, %eax
	je	LBB0_21
LBB0_8:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_BN_lshift1
	testl	%eax, %eax
	je	LBB0_24
## %bb.9:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_BN_add_word
	testl	%eax, %eax
	je	LBB0_24
## %bb.10:
	movq	_NUMPRIMES@GOTPCREL(%rip), %rax
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	cmpl	$2, (%rax)
	jl	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_primes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rsi
	movq	%r12, %r15
	movq	%r12, %rdi
	callq	_BN_mod_word
	movq	%rax, %rbx
	movq	_primes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_mod_word
	cmpq	$-1, %rbx
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpq	$-1, %rax
	je	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%r14
	movq	_NUMPRIMES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	movq	%r15, %r12
	jl	LBB0_13
	jmp	LBB0_26
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %r12
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_add
	testl	%eax, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	callq	_BN_add
	testl	%eax, %eax
	movq	_NUMPRIMES@GOTPCREL(%rip), %rax
	jne	LBB0_11
	jmp	LBB0_24
LBB0_20:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_BN_add_word
	testl	%eax, %eax
	jne	LBB0_8
LBB0_21:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_22:
	movq	%r13, %rdi
	callq	_BN_CTX_end
	movq	%r12, %rdi
	callq	_bn_check_top
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	$1, %ebx
	jmp	LBB0_22
LBB0_23:
	movq	%r15, %r12
LBB0_24:
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_RAND_TOP_ONE,4,2            ## @BN_RAND_TOP_ONE
	.comm	_BN_RAND_BOTTOM_ODD,4,2         ## @BN_RAND_BOTTOM_ODD
	.comm	_NUMPRIMES,4,2                  ## @NUMPRIMES
	.comm	_primes,8,3                     ## @primes
	.no_dead_strip	_probable_prime_dh_safe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function probable_prime_dh_safe
_probable_prime_dh_safe:                ; @probable_prime_dh_safe
	.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
	mov	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x26, x1
	mov	x19, x0
	mov	x0, x4
	bl	_BN_CTX_start
	mov	x0, x20
	bl	_BN_CTX_get
	mov	x25, x0
	mov	x0, x20
	bl	_BN_CTX_get
	mov	x22, x0
	mov	x0, x20
	bl	_BN_CTX_get
	cbz	x0, LBB0_19
; %bb.1:
	mov	x23, x0
	mov	x1, x21
	bl	_BN_rshift1
	cbz	w0, LBB0_19
; %bb.2:
	sub	w1, w26, #1
Lloh0:
	adrp	x8, _BN_RAND_TOP_ONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_RAND_TOP_ONE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _BN_RAND_BOTTOM_ODD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BN_RAND_BOTTOM_ODD@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_BN_rand
	cbz	w0, LBB0_19
; %bb.3:
	mov	x0, x25
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	bl	_BN_mod
	cbz	w0, LBB0_19
; %bb.4:
	mov	x0, x22
	mov	x1, x22
	mov	x2, x25
	bl	_BN_sub
	cbz	w0, LBB0_19
; %bb.5:
	cbz	x24, LBB0_8
; %bb.6:
	mov	x0, x25
	mov	x1, x24
	bl	_BN_rshift1
	cbz	w0, LBB0_19
; %bb.7:
	mov	x0, x22
	mov	x1, x22
	mov	x2, x25
	bl	_BN_add
	cbnz	w0, LBB0_9
	b	LBB0_19
LBB0_8:
	mov	x0, x22
	mov	w1, #1
	bl	_BN_add_word
	cbz	w0, LBB0_19
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	bl	_BN_lshift1
	cbz	w0, LBB0_19
; %bb.10:
	mov	x0, x19
	mov	w1, #1
	bl	_BN_add_word
	cbz	w0, LBB0_19
; %bb.11:
Lloh6:
	adrp	x25, _NUMPRIMES@GOTPAGE
Lloh7:
	ldr	x25, [x25, _NUMPRIMES@GOTPAGEOFF]
Lloh8:
	adrp	x26, _primes@GOTPAGE
Lloh9:
	ldr	x26, [x26, _primes@GOTPAGEOFF]
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w27, #1
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	lsl	x28, x27, #3
	ldr	x1, [x8, x28]
	mov	x0, x19
	bl	_BN_mod_word
	mov	x24, x0
	ldr	x8, [x26]
	ldr	x1, [x8, x28]
	mov	x0, x22
	bl	_BN_mod_word
	cmn	x24, #1
	ccmn	x0, #1, #4, ne
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	cmp	x24, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x25]
	mov	w24, #1
	cmp	x27, x8
	b.lt	LBB0_14
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x19
	mov	x2, x21
	bl	_BN_add
	cbz	w0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	mov	x1, x22
	mov	x2, x23
	bl	_BN_add
	mov	w24, #0
	cbnz	w0, LBB0_12
	b	LBB0_20
LBB0_19:
	mov	w24, #0
LBB0_20:
	mov	x0, x20
	bl	_BN_CTX_end
	mov	x0, x19
	bl	_bn_check_top
	mov	x0, x24
	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_21:
	mov	w24, #1
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_RAND_TOP_ONE,4,2            ; @BN_RAND_TOP_ONE
	.comm	_BN_RAND_BOTTOM_ODD,4,2         ; @BN_RAND_BOTTOM_ODD
	.comm	_NUMPRIMES,4,2                  ; @NUMPRIMES
	.comm	_primes,8,3                     ; @primes
	.no_dead_strip	_probable_prime_dh_safe
.subsections_via_symbols
