	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bn_probable_prime_dh           ## -- Begin function bn_probable_prime_dh
	.p2align	4, 0x90
_bn_probable_prime_dh:                  ## @bn_probable_prime_dh
	.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
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	%r8, %rdi
	callq	_BN_CTX_start
	movq	%r14, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_BN_RAND_TOP_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BN_RAND_BOTTOM_ODD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_BN_rand
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_BN_mod
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_BN_sub
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_BN_add
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_7
LBB0_6:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_7:
	movq	%r14, %rdi
	callq	_BN_CTX_end
	movq	%r13, %rdi
	callq	_bn_check_top
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$1, %esi
	callq	_BN_add_word
	testl	%eax, %eax
	je	LBB0_7
LBB0_9:
	movq	_NUMPRIMES@GOTPCREL(%rip), %r15
	movq	_primes@GOTPCREL(%rip), %r12
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	cmpl	$2, (%r15)
	jl	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movl	(%rax,%rbx,8), %esi
	movq	%r13, %rdi
	callq	_BN_mod_word
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	$1, %eax
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_add
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_7
LBB0_17:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bn_probable_prime_dh           ; -- Begin function bn_probable_prime_dh
	.p2align	2
_bn_probable_prime_dh:                  ; @bn_probable_prime_dh
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	mov	x0, x4
	bl	_BN_CTX_start
	mov	x0, x20
	bl	_BN_CTX_get
	cbz	x0, LBB0_14
; %bb.1:
	mov	x23, x0
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, x19
	mov	x1, x24
	bl	_BN_rand
	cbz	w0, LBB0_14
; %bb.2:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_BN_mod
	cbz	w0, LBB0_14
; %bb.3:
	mov	x0, x19
	mov	x1, x19
	mov	x2, x23
	bl	_BN_sub
	cbz	w0, LBB0_14
; %bb.4:
	mov	x0, x19
	cbz	x22, LBB0_6
; %bb.5:
	mov	x1, x19
	mov	x2, x22
	bl	_BN_add
	cbnz	w0, LBB0_7
	b	LBB0_14
LBB0_6:
	mov	w1, #1
	bl	_BN_add_word
	cbz	w0, LBB0_14
LBB0_7:
Lloh6:
	adrp	x23, _NUMPRIMES@GOTPAGE
Lloh7:
	ldr	x23, [x23, _NUMPRIMES@GOTPAGEOFF]
Lloh8:
	adrp	x24, _primes@GOTPAGE
Lloh9:
	ldr	x24, [x24, _primes@GOTPAGEOFF]
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w22, #1
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	x1, [x8, x22, lsl #3]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_BN_mod_word
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	w0, #1
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x22, x22, #1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.lt	LBB0_10
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x19
	mov	x2, x21
	bl	_BN_add
	mov	w22, #0
	cbnz	w0, LBB0_8
	b	LBB0_15
LBB0_14:
	mov	w22, #0
LBB0_15:
	mov	x0, x20
	bl	_BN_CTX_end
	mov	x0, x19
	bl	_bn_check_top
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w22, #1
	b	LBB0_15
	.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
.subsections_via_symbols
