	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsa_priv_decode
_dsa_priv_decode:                       ## @dsa_priv_decode
	.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
	movq	%rsi, %r8
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	leaq	-88(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	xorl	%edi, %edi
	callq	_PKCS8_pkey_get0
	testl	%eax, %eax
	je	LBB0_22
## %bb.1:
	movq	-64(%rbp), %rcx
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	xorl	%edi, %edi
	callq	_X509_ALGOR_get0
	movl	-48(%rbp), %edx
	leaq	-88(%rbp), %rsi
	xorl	%edi, %edi
	callq	_d2i_ASN1_INTEGER
	movq	%rax, %r15
	movq	_DSA_R_DECODE_ERROR@GOTPCREL(%rip), %rdx
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r15), %rax
	movq	_V_ASN1_NEG_INTEGER@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.5:
	movl	-44(%rbp), %eax
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rcx, -80(%rbp)
	movl	8(%rax), %edx
	xorl	%r13d, %r13d
	leaq	-80(%rbp), %rsi
	xorl	%edi, %edi
	callq	_d2i_DSAparams
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_secure_new
	movq	%rax, 8(%rbx)
	movq	_DSA_R_BN_ERROR@GOTPCREL(%rip), %rdx
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ASN1_INTEGER_to_BN
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, 24(%rbx)
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	xorl	%eax, %eax
	callq	_BN_CTX_new
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	%rax, %r12
	movq	8(%rbx), %rdi
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BN_set_flags
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r12, %r8
	callq	_BN_mod_exp
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_EVP_PKEY_assign_DSA
	movl	$1, %r14d
	jmp	LBB0_21
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_4:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
LBB0_20:
	movq	_DSA_F_DSA_PRIV_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rdx), %esi
	callq	_DSAerr
	movq	%r13, %rdi
	callq	_DSA_free
LBB0_21:
	movq	%r12, %rdi
	callq	_BN_CTX_free
	movq	%r15, %rdi
	callq	_ASN1_STRING_clear_free
LBB0_22:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r12d, %r12d
	movq	_DSA_R_DECODE_ERROR@GOTPCREL(%rip), %rdx
	jmp	LBB0_20
LBB0_16:
	movq	%rbx, %r13
	movq	_DSA_R_BN_ERROR@GOTPCREL(%rip), %rdx
	jmp	LBB0_20
LBB0_17:
	movq	%rbx, %rcx
	movq	%r13, %rdx
	jmp	LBB0_19
LBB0_18:
	movq	%r13, %rdx
	xorl	%r12d, %r12d
LBB0_19:
	movq	%rbx, %r13
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_NEG_INTEGER,8,3         ## @V_ASN1_NEG_INTEGER
	.comm	_V_ASN1_SEQUENCE,4,2            ## @V_ASN1_SEQUENCE
	.comm	_DSA_F_DSA_PRIV_DECODE,4,2      ## @DSA_F_DSA_PRIV_DECODE
	.comm	_DSA_R_BN_ERROR,4,2             ## @DSA_R_BN_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_BN_FLG_CONSTTIME,4,2           ## @BN_FLG_CONSTTIME
	.comm	_DSA_R_DECODE_ERROR,4,2         ## @DSA_R_DECODE_ERROR
	.no_dead_strip	_dsa_priv_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsa_priv_decode
_dsa_priv_decode:                       ; @dsa_priv_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x4, x1
	mov	x22, x0
	add	x1, sp, #40
	add	x2, sp, #28
	add	x3, sp, #8
	mov	x0, #0
	bl	_PKCS8_pkey_get0
	cbz	w0, LBB0_15
; %bb.1:
	ldr	x3, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, #0
	bl	_X509_ALGOR_get0
	ldr	w2, [sp, #28]
	add	x1, sp, #40
	mov	x0, #0
	bl	_d2i_ASN1_INTEGER
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V_ASN1_NEG_INTEGER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V_ASN1_NEG_INTEGER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.3:
	ldr	w8, [sp, #24]
Lloh3:
	adrp	x9, _V_ASN1_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [sp, #16]
	ldr	x9, [x8]
	str	x9, [sp, #32]
	ldr	w2, [x8, #8]
	add	x1, sp, #32
	mov	x0, #0
	bl	_d2i_DSAparams
	mov	x20, x0
	cbz	x0, LBB0_19
; %bb.5:
	bl	_BN_secure_new
	str	x0, [x20, #8]
	cbz	x0, LBB0_17
; %bb.6:
	mov	x1, x0
	mov	x0, x19
	bl	_ASN1_INTEGER_to_BN
	cbz	w0, LBB0_17
; %bb.7:
	bl	_BN_new
	str	x0, [x20, #24]
	cbz	x0, LBB0_20
; %bb.8:
	bl	_BN_CTX_new
	mov	x21, x0
	cbz	x0, LBB0_21
; %bb.9:
	ldr	x0, [x20, #8]
Lloh6:
	adrp	x8, _BN_FLG_CONSTTIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BN_FLG_CONSTTIME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_BN_set_flags
	ldr	x0, [x20, #24]
	ldr	w1, [x20, #16]
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	mov	x4, x21
	bl	_BN_mod_exp
	cbz	w0, LBB0_18
; %bb.10:
	mov	x0, x22
	mov	x1, x20
	bl	_EVP_PKEY_assign_DSA
	mov	w20, #1
	b	LBB0_14
LBB0_11:
	mov	x21, #0
	mov	x20, #0
LBB0_12:
Lloh9:
	adrp	x8, _DSA_R_DECODE_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSA_R_DECODE_ERROR@GOTPAGEOFF]
LBB0_13:
Lloh11:
	adrp	x9, _DSA_F_DSA_PRIV_DECODE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DSA_F_DSA_PRIV_DECODE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_DSAerr
	mov	x0, x20
	bl	_DSA_free
	mov	w20, #0
LBB0_14:
	mov	x0, x21
	bl	_BN_CTX_free
	mov	x0, x19
	bl	_ASN1_STRING_clear_free
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_17:
	mov	x21, #0
LBB0_18:
Lloh14:
	adrp	x8, _DSA_R_BN_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DSA_R_BN_ERROR@GOTPAGEOFF]
	b	LBB0_13
LBB0_19:
	mov	x21, #0
	b	LBB0_12
LBB0_20:
	mov	x21, #0
LBB0_21:
Lloh16:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_NEG_INTEGER,8,3         ; @V_ASN1_NEG_INTEGER
	.comm	_V_ASN1_SEQUENCE,4,2            ; @V_ASN1_SEQUENCE
	.comm	_DSA_F_DSA_PRIV_DECODE,4,2      ; @DSA_F_DSA_PRIV_DECODE
	.comm	_DSA_R_BN_ERROR,4,2             ; @DSA_R_BN_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_BN_FLG_CONSTTIME,4,2           ; @BN_FLG_CONSTTIME
	.comm	_DSA_R_DECODE_ERROR,4,2         ; @DSA_R_DECODE_ERROR
	.no_dead_strip	_dsa_priv_decode
.subsections_via_symbols
