	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsa_priv_encode
_dsa_priv_encode:                       ## @dsa_priv_encode
	.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	$0, -48(%rbp)
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.4:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ASN1_STRING_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	(%rbx), %rdi
	movq	%rax, %rsi
	addq	$12, %rsi
	callq	_i2d_DSAparams
	movq	%rax, (%r15)
	testq	%rax, %rax
	jle	LBB0_7
## %bb.9:
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, 8(%r15)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_BN_to_ASN1_INTEGER
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_i2d_ASN1_INTEGER
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ASN1_STRING_clear_free
	movq	_NID_dsa@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OBJ_nid2obj
	movl	(%r13), %ecx
	movq	-48(%rbp), %r9
	movl	%r12d, (%rsp)
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_PKCS8_pkey_set0
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	-48(%rbp), %rdi
	jmp	LBB0_13
LBB0_2:
	movq	_DSA_F_DSA_PRIV_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DSA_R_MISSING_PARAMETERS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_DSAerr
	xorl	%edi, %edi
	xorl	%r15d, %r15d
LBB0_13:
	callq	_OPENSSL_free
	movq	%r15, %rdi
	callq	_ASN1_STRING_free
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ASN1_STRING_clear_free
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_DSA_F_DSA_PRIV_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_DSA_F_DSA_PRIV_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_DSA_F_DSA_PRIV_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DSA_R_BN_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_DSAerr
	xorl	%edi, %edi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DSA_F_DSA_PRIV_ENCODE,4,2      ## @DSA_F_DSA_PRIV_ENCODE
	.comm	_DSA_R_MISSING_PARAMETERS,4,2   ## @DSA_R_MISSING_PARAMETERS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_SEQUENCE,4,2            ## @V_ASN1_SEQUENCE
	.comm	_DSA_R_BN_ERROR,4,2             ## @DSA_R_BN_ERROR
	.comm	_NID_dsa,4,2                    ## @NID_dsa
	.no_dead_strip	_dsa_priv_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsa_priv_encode
_dsa_priv_encode:                       ; @dsa_priv_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	str	xzr, [sp, #8]
	ldr	x8, [x1]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x21, x1
	mov	x20, x0
	bl	_ASN1_STRING_new
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x0, [x21]
	add	x1, x19, #12
	bl	_i2d_DSAparams
	str	x0, [x19]
	cmp	x0, #0
	b.le	LBB0_8
; %bb.4:
Lloh0:
	adrp	x23, _V_ASN1_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _V_ASN1_SEQUENCE@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [x19, #8]
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, #0
	bl	_BN_to_ASN1_INTEGER
	cbz	x0, LBB0_12
; %bb.5:
	mov	x21, x0
	add	x1, sp, #8
	bl	_i2d_ASN1_INTEGER
	mov	x22, x0
	mov	x0, x21
	bl	_ASN1_STRING_clear_free
Lloh2:
	adrp	x8, _NID_dsa@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NID_dsa@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_OBJ_nid2obj
	mov	x1, x0
	ldr	w3, [x23]
	ldr	x5, [sp, #8]
	mov	x0, x20
	mov	w2, #0
	mov	x4, x19
	mov	x6, x22
	bl	_PKCS8_pkey_set0
	cbz	w0, LBB0_13
; %bb.6:
	mov	w0, #1
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x8, _DSA_F_DSA_PRIV_ENCODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSA_F_DSA_PRIV_ENCODE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _DSA_R_MISSING_PARAMETERS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSA_R_MISSING_PARAMETERS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_DSAerr
	mov	x0, #0
	mov	x19, #0
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _DSA_F_DSA_PRIV_ENCODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DSA_F_DSA_PRIV_ENCODE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	bl	_DSAerr
	mov	x0, #0
LBB0_10:
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_ASN1_STRING_free
	mov	x0, #0
	bl	_ASN1_STRING_clear_free
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #80
	ret
LBB0_12:
Lloh16:
	adrp	x8, _DSA_F_DSA_PRIV_ENCODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DSA_F_DSA_PRIV_ENCODE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _DSA_R_BN_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DSA_R_BN_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_13:
	ldr	x0, [sp, #8]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DSA_F_DSA_PRIV_ENCODE,4,2      ; @DSA_F_DSA_PRIV_ENCODE
	.comm	_DSA_R_MISSING_PARAMETERS,4,2   ; @DSA_R_MISSING_PARAMETERS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_SEQUENCE,4,2            ; @V_ASN1_SEQUENCE
	.comm	_DSA_R_BN_ERROR,4,2             ; @DSA_R_BN_ERROR
	.comm	_NID_dsa,4,2                    ; @NID_dsa
	.no_dead_strip	_dsa_priv_encode
.subsections_via_symbols
