	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsa_generate_private_key
_dsa_generate_private_key:              ## @dsa_generate_private_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	cmpl	$1024, %edi                     ## imm = 0x400
	jne	LBB0_3
## %bb.4:
	movq	%rsi, %rbx
	xorl	%eax, %eax
	callq	_DSA_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	$0, (%rbx)
	movq	$0, (%rsp)
	movq	%rax, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_DSA_generate_parameters_ex
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_DSA_generate_key
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r14, (%rbx)
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_SSH_ERR_KEY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_8:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_DSA_free
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_KEY_LENGTH,4,2         ## @SSH_ERR_KEY_LENGTH
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.no_dead_strip	_dsa_generate_private_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsa_generate_private_key
_dsa_generate_private_key:              ; @dsa_generate_private_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_6
; %bb.1:
	cmp	w0, #1024
	b.ne	LBB0_7
; %bb.2:
	mov	x20, x1
	bl	_DSA_new
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.3:
	str	xzr, [x20]
	mov	x0, x19
	mov	w1, #1024
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_DSA_generate_parameters_ex
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_DSA_generate_key
	cbz	w0, LBB0_9
; %bb.5:
	mov	w21, #0
	str	x19, [x20]
	mov	x19, #0
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_12
LBB0_7:
Lloh3:
	adrp	x8, _SSH_ERR_KEY_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_KEY_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	b	LBB0_12
LBB0_8:
Lloh6:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
LBB0_10:
	ldr	w21, [x8]
LBB0_11:
	mov	x0, x19
	bl	_DSA_free
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_KEY_LENGTH,4,2         ; @SSH_ERR_KEY_LENGTH
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.no_dead_strip	_dsa_generate_private_key
.subsections_via_symbols
