	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dh_builtin_genparams
_dh_builtin_genparams:                  ## @dh_builtin_genparams
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%r12, %rdi
	callq	_BN_CTX_start
	movq	%r12, %rdi
	callq	_BN_CTX_get
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_20
## %bb.2:
	movq	%rax, %r15
	cmpq	$0, 8(%r14)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_20
LBB0_4:
	cmpq	$0, (%r14)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_20
LBB0_6:
	cmpl	$1, %r13d
	jg	LBB0_8
## %bb.7:
	movq	_DH_F_DH_BUILTIN_GENPARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DH_R_BAD_GENERATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DHerr
LBB0_20:
	movq	_DH_F_DH_BUILTIN_GENPARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_BN_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DHerr
	xorl	%ebx, %ebx
LBB0_21:
	movq	%r12, %rdi
	callq	_BN_CTX_end
	movq	%r12, %rdi
	callq	_BN_CTX_free
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_DH_GENERATOR_2@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$24, %esi
	callq	_BN_set_word
	testl	%eax, %eax
	je	LBB0_20
## %bb.10:
	movq	%r15, %rdi
	movl	$11, %esi
	callq	_BN_set_word
	movl	$2, %r13d
	jmp	LBB0_16
LBB0_11:
	movq	_DH_GENERATOR_5@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_14
## %bb.12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$60, %esi
	callq	_BN_set_word
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:
	movq	%r15, %rdi
	movl	$23, %esi
	callq	_BN_set_word
	movl	$5, %r13d
	jmp	LBB0_16
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$12, %esi
	callq	_BN_set_word
	testl	%eax, %eax
	je	LBB0_20
## %bb.15:
	movq	%r15, %rdi
	movl	$11, %esi
	callq	_BN_set_word
LBB0_16:
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:
	movq	8(%r14), %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_BN_generate_prime_ex
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	(%r14), %rdi
	movl	%r13d, %esi
	callq	_BN_set_word
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_DH_F_DH_BUILTIN_GENPARAMS,4,2  ## @DH_F_DH_BUILTIN_GENPARAMS
	.comm	_DH_R_BAD_GENERATOR,4,2         ## @DH_R_BAD_GENERATOR
	.comm	_DH_GENERATOR_2,4,2             ## @DH_GENERATOR_2
	.comm	_DH_GENERATOR_5,4,2             ## @DH_GENERATOR_5
	.comm	_ERR_R_BN_LIB,4,2               ## @ERR_R_BN_LIB
	.no_dead_strip	_dh_builtin_genparams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dh_builtin_genparams
_dh_builtin_genparams:                  ; @dh_builtin_genparams
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	bl	_BN_CTX_new
	mov	x19, x0
Lloh0:
	adrp	x26, _DH_F_DH_BUILTIN_GENPARAMS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DH_F_DH_BUILTIN_GENPARAMS@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x24, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_8
; %bb.2:
	mov	x25, x0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	bl	_BN_new
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
LBB0_4:
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
; %bb.5:
	bl	_BN_new
	str	x0, [x20]
	cbz	x0, LBB0_8
LBB0_6:
	cmp	w23, #1
	b.gt	LBB0_10
; %bb.7:
	ldr	w0, [x26]
Lloh2:
	adrp	x8, _DH_R_BAD_GENERATOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DH_R_BAD_GENERATOR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_DHerr
LBB0_8:
	ldr	w0, [x26]
Lloh5:
	adrp	x8, _ERR_R_BN_LIB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_BN_LIB@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_DHerr
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh8:
	adrp	x8, _DH_GENERATOR_2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DH_GENERATOR_2@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x24
	mov	w1, #24
	bl	_BN_set_word
	cbz	w0, LBB0_8
; %bb.12:
	mov	x0, x25
	mov	w1, #11
	bl	_BN_set_word
	cbz	w0, LBB0_8
; %bb.13:
	mov	w23, #2
	b	LBB0_20
LBB0_14:
Lloh11:
	adrp	x8, _DH_GENERATOR_5@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DH_GENERATOR_5@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	x0, x24
	cmp	w8, w23
	b.ne	LBB0_18
; %bb.15:
	mov	w1, #60
	bl	_BN_set_word
	cbz	w0, LBB0_8
; %bb.16:
	mov	x0, x25
	mov	w1, #23
	bl	_BN_set_word
	cbz	w0, LBB0_8
; %bb.17:
	mov	w23, #5
	b	LBB0_20
LBB0_18:
	mov	w1, #12
	bl	_BN_set_word
	cbz	w0, LBB0_8
; %bb.19:
	mov	x0, x25
	mov	w1, #11
	bl	_BN_set_word
	cbz	w0, LBB0_8
LBB0_20:
	ldr	x0, [x20, #8]
	mov	x1, x22
	mov	w2, #1
	mov	x3, x24
	mov	x4, x25
	mov	x5, x21
	bl	_BN_generate_prime_ex
	cbz	w0, LBB0_8
; %bb.21:
	mov	x0, x21
	mov	w1, #3
	mov	w2, #0
	bl	_BN_GENCB_call
	cbz	w0, LBB0_8
; %bb.22:
	ldr	x0, [x20]
	mov	x1, x23
	bl	_BN_set_word
	cbz	w0, LBB0_8
; %bb.23:
	mov	w20, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DH_F_DH_BUILTIN_GENPARAMS,4,2  ; @DH_F_DH_BUILTIN_GENPARAMS
	.comm	_DH_R_BAD_GENERATOR,4,2         ; @DH_R_BAD_GENERATOR
	.comm	_DH_GENERATOR_2,4,2             ; @DH_GENERATOR_2
	.comm	_DH_GENERATOR_5,4,2             ; @DH_GENERATOR_5
	.comm	_ERR_R_BN_LIB,4,2               ; @ERR_R_BN_LIB
	.no_dead_strip	_dh_builtin_genparams
.subsections_via_symbols
