	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_generate_prime_ex           ## -- Begin function BN_generate_prime_ex
	.p2align	4, 0x90
_BN_generate_prime_ex:                  ## @BN_generate_prime_ex
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_BN_prime_checks_for_size
	cmpl	$1, %r13d
	jle	LBB0_1
## %bb.2:
	movl	%r14d, -72(%rbp)                ## 4-byte Spill
	cmpl	$3, %r13d
	je	LBB0_6
## %bb.3:
	cmpl	$5, %r13d
	ja	LBB0_6
## %bb.4:
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	testq	%r15, %r15
	jne	LBB0_6
LBB0_1:
	movq	_BN_F_BN_GENERATE_PRIME_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BN_R_BITS_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNerr
	xorl	%r13d, %r13d
	jmp	LBB0_41
LBB0_6:
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	_NUMPRIMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_OPENSSL_zalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BN_CTX_new
	testq	%rax, %rax
	movq	%r12, %r14
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BN_CTX_start
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_39
## %bb.11:
	movq	%rax, %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_probable_prime_dh_safe
	testl	%eax, %eax
	je	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	leal	1(%rbx), %r13d
	jmp	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_probable_prime
	testl	%eax, %eax
	je	LBB0_14
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_12 Depth=1
	leal	1(%rbx), %r13d
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %r15
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_BN_rshift1
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_20
## %bb.36:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_37
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_BN_is_prime_fasttest_ex
	cmpl	$-1, %eax
	je	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	testl	%eax, %eax
	je	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=2
	xorl	%r13d, %r13d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_BN_is_prime_fasttest_ex
	cmpl	$-1, %eax
	je	LBB0_38
## %bb.34:                              ##   in Loop: Header=BB0_30 Depth=2
	testl	%eax, %eax
	je	LBB0_32
## %bb.35:                              ##   in Loop: Header=BB0_30 Depth=2
	movq	%r12, %rdi
	movl	$2, %esi
	movl	%r15d, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	je	LBB0_38
## %bb.29:                              ##   in Loop: Header=BB0_30 Depth=2
	decl	%r14d
	jne	LBB0_30
	jmp	LBB0_37
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_bn_probable_prime_dh
	testl	%eax, %eax
	je	LBB0_14
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	movl	%ebx, %r13d
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r13d, %ebx
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_BN_is_prime_fasttest_ex
                                        ## kill: def $ebx killed $ebx def $rbx
	testl	%eax, %eax
	je	LBB0_12
	jmp	LBB0_28
LBB0_32:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_7:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	%r12, %r14
	jmp	LBB0_40
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_39
LBB0_14:
	xorl	%r13d, %r13d
LBB0_25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_28:
	cmpl	$-1, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_38
LBB0_37:
	movl	$1, %r13d
LBB0_38:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_39:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_40:
	movq	%rax, %rdi
	callq	_OPENSSL_free
	movq	%rbx, %rdi
	callq	_BN_CTX_end
	movq	%rbx, %rdi
	callq	_BN_CTX_free
	movq	%r14, %rdi
	callq	_bn_check_top
LBB0_41:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%r13d, %r13d
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_F_BN_GENERATE_PRIME_EX,4,2  ## @BN_F_BN_GENERATE_PRIME_EX
	.comm	_BN_R_BITS_TOO_SMALL,4,2        ## @BN_R_BITS_TOO_SMALL
	.comm	_NUMPRIMES,4,2                  ## @NUMPRIMES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_generate_prime_ex           ; -- Begin function BN_generate_prime_ex
	.p2align	2
_BN_generate_prime_ex:                  ; @BN_generate_prime_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x19, x0
	mov	x0, x1
	bl	_BN_prime_checks_for_size
	cmp	w26, #1
	b.le	LBB0_5
; %bb.1:
	mov	x28, x0
	cmp	w26, #3
	b.eq	LBB0_6
; %bb.2:
	cmp	w26, #5
	b.hi	LBB0_6
; %bb.3:
	cbz	w25, LBB0_6
; %bb.4:
	cbnz	x24, LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _BN_F_BN_GENERATE_PRIME_EX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_F_BN_GENERATE_PRIME_EX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _BN_R_BITS_TOO_SMALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BN_R_BITS_TOO_SMALL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_BNerr
	mov	w20, #0
	b	LBB0_38
LBB0_6:
Lloh6:
	adrp	x8, _NUMPRIMES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUMPRIMES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w0, w8, #2
	bl	_OPENSSL_zalloc
	mov	x27, x0
	cbz	x0, LBB0_31
; %bb.7:
	bl	_BN_CTX_new
	mov	x21, x0
	cbz	x0, LBB0_32
; %bb.8:
	mov	x0, x21
	bl	_BN_CTX_start
	mov	x0, x21
	bl	_BN_CTX_get
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	w20, #0
	cbz	x0, LBB0_37
; %bb.9:
	str	x27, [sp, #16]                  ; 8-byte Folded Spill
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	mov	x0, x19
	mov	x1, x26
	cbz	x24, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x2, x24
	mov	x3, x23
	mov	x4, x21
	cbz	w25, LBB0_26
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_probable_prime_dh_safe
	cbz	w0, LBB0_32
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	x2, x20
	bl	_BN_GENCB_call
	cbz	w0, LBB0_32
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w27, w20, #1
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x2, x27
	bl	_probable_prime
	cbz	w0, LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	x2, x20
	bl	_BN_GENCB_call
	cbz	w0, LBB0_32
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w27, w20, #1
	cbz	w25, LBB0_29
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	str	w27, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x19
	bl	_BN_rshift1
	cbz	w0, LBB0_34
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x27, x28
	cmp	w28, #1
	b.lt	LBB0_35
LBB0_20:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	mov	w3, #0
	mov	x4, x22
	bl	_BN_is_prime_fasttest_ex
	cmn	w0, #1
	b.eq	LBB0_34
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	cbz	w0, LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=2
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	w1, #1
	mov	x2, x21
	mov	w3, #0
	mov	x4, x22
	bl	_BN_is_prime_fasttest_ex
	cmn	w0, #1
	b.eq	LBB0_34
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=2
	cbz	w0, LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=2
	mov	x0, x22
	mov	w1, #2
	mov	x2, x20
	bl	_BN_GENCB_call
	cbz	w0, LBB0_34
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=2
	subs	w27, w27, #1
	b.ne	LBB0_20
	b	LBB0_35
LBB0_26:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_bn_probable_prime_dh
	cbz	w0, LBB0_32
; %bb.27:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	x2, x20
	bl	_BN_GENCB_call
	cbz	w0, LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w27, w20, #1
LBB0_29:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x28
	mov	x2, x21
	mov	w3, #0
	mov	x4, x22
	bl	_BN_is_prime_fasttest_ex
	mov	x20, x27
	ldr	x27, [sp, #16]                  ; 8-byte Folded Reload
	cbz	w0, LBB0_10
	b	LBB0_33
LBB0_30:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x27, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_10
LBB0_31:
	mov	w20, #0
	mov	x21, #0
	b	LBB0_37
LBB0_32:
	mov	w20, #0
	b	LBB0_37
LBB0_33:
	cmn	w0, #1
	b.ne	LBB0_35
LBB0_34:
	mov	w20, #0
	b	LBB0_36
LBB0_35:
	mov	w20, #1
LBB0_36:
	ldr	x27, [sp, #16]                  ; 8-byte Folded Reload
LBB0_37:
	mov	x0, x27
	bl	_OPENSSL_free
	mov	x0, x21
	bl	_BN_CTX_end
	mov	x0, x21
	bl	_BN_CTX_free
	mov	x0, x19
	bl	_bn_check_top
LBB0_38:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_F_BN_GENERATE_PRIME_EX,4,2  ; @BN_F_BN_GENERATE_PRIME_EX
	.comm	_BN_R_BITS_TOO_SMALL,4,2        ; @BN_R_BITS_TOO_SMALL
	.comm	_NUMPRIMES,4,2                  ; @NUMPRIMES
.subsections_via_symbols
