	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsa_dh_generate
_dsa_dh_generate:                       ## @dsa_dh_generate
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, 8(%rdi)
	jg	LBB0_13
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %r12d
	movl	4(%rdi), %r15d
	movq	16(%rdi), %r13
	xorl	%eax, %eax
	callq	_DSA_new
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %rdi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	$2048, %r12d                    ## imm = 0x800
	movl	$256, %eax                      ## imm = 0x100
	movl	$160, %r12d
	cmovgel	%eax, %r12d
	cmpl	$-1, %r15d
	cmovnel	%r15d, %r12d
	testq	%r13, %r13
	jne	LBB0_7
## %bb.3:
	movq	%rdi, %r15
	cmpl	$2048, -44(%rbp)                ## 4-byte Folded Reload
                                        ## imm = 0x800
	jl	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_EVP_sha256
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_EVP_sha1
LBB0_6:
	movq	%rax, %r13
	movq	%r15, %rdi
LBB0_7:
	movl	8(%r14), %eax
	cmpl	$2, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.9:
	movq	%rbx, 24(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	$0, 16(%rsp)
	movq	%rdi, %rbx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_dsa_builtin_paramgen
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, 32(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movq	$0, 24(%rsp)
	movl	$-1, (%rsp)
	movq	%rdi, %rbx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_dsa_builtin_paramgen2
LBB0_11:
	testl	%eax, %eax
	movq	%rbx, %rdi
	jg	LBB0_14
LBB0_12:
	callq	_DSA_free
LBB0_13:
	xorl	%edi, %edi
LBB0_14:
	movq	%rdi, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dsa_dh_generate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsa_dh_generate
_dsa_dh_generate:                       ; @dsa_dh_generate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldr	w8, [x0, #8]
	cmp	w8, #2
	b.gt	LBB0_12
; %bb.1:
	mov	x21, x1
	mov	x24, x0
	ldp	w20, w23, [x0]
	ldr	x22, [x0, #16]
	bl	_DSA_new
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.2:
	mov	w8, #160
	mov	w9, #256
	cmp	w20, #2047
	csel	w8, w9, w8, gt
	cmn	w23, #1
	csel	w23, w8, w23, eq
	cbnz	x22, LBB0_7
; %bb.3:
	cmp	w20, #2048
	b.lt	LBB0_5
; %bb.4:
	bl	_EVP_sha256
	b	LBB0_6
LBB0_5:
	bl	_EVP_sha1
LBB0_6:
	mov	x22, x0
LBB0_7:
	ldr	w8, [x24, #8]
	cmp	w8, #2
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.9:
	stp	xzr, x21, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_dsa_builtin_paramgen
	cmp	w0, #0
	b.gt	LBB0_13
	b	LBB0_11
LBB0_10:
	stp	xzr, xzr, [sp]
	str	x21, [sp, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, #0
	mov	w5, #0
	mov	w6, #-1
	mov	x7, #0
	bl	_dsa_builtin_paramgen2
	cmp	w0, #0
	b.gt	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_DSA_free
LBB0_12:
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dsa_dh_generate
.subsections_via_symbols
