	.file	"extr_dsa_ameth.c_dsa_priv_decode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dsa_priv_decode, @function
dsa_priv_decode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r8, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	xor	edi, edi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r13, 8[rsp]
	lea	rcx, 32[rsp]
	mov	rdx, rsp
	mov	rsi, r13
	call	PKCS8_pkey_get0@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L28
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	rcx, QWORD PTR 32[rsp]
	lea	rdx, 24[rsp]
	lea	rsi, 4[rsp]
	xor	edi, edi
	call	X509_ALGOR_get0@PLT
	mov	edx, DWORD PTR [rsp]
	mov	rsi, r13
	xor	edi, edi
	call	d2i_ASN1_INTEGER@PLT
	mov	r13, rax
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR V_ASN1_NEG_INTEGER[rip]
	cmp	QWORD PTR 0[r13], rax
	je	.L3
	mov	eax, DWORD PTR V_ASN1_SEQUENCE[rip]
	cmp	DWORD PTR 4[rsp], eax
	je	.L30
.L3:
	mov	esi, DWORD PTR DSA_R_DECODE_ERROR[rip]
	mov	edi, DWORD PTR DSA_F_DSA_PRIV_DECODE[rip]
	xor	r12d, r12d
	xor	r14d, r14d
	call	DSAerr@PLT
.L5:
	mov	rdi, r12
	xor	r12d, r12d
	call	DSA_free@PLT
.L10:
	mov	rdi, r14
	call	BN_CTX_free@PLT
	mov	rdi, r13
	call	ASN1_STRING_clear_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR 24[rsp]
	lea	rsi, 16[rsp]
	xor	edi, edi
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR 16[rsp], rdx
	mov	edx, DWORD PTR 8[rax]
	call	d2i_DSAparams@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	xor	eax, eax
	call	BN_secure_new@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rsi, rax
	test	rax, rax
	je	.L6
	mov	rdi, r13
	call	ASN1_INTEGER_to_BN@PLT
	test	eax, eax
	jne	.L31
.L6:
	mov	esi, DWORD PTR DSA_R_BN_ERROR[rip]
	mov	edi, DWORD PTR DSA_F_DSA_PRIV_DECODE[rip]
	xor	r14d, r14d
	call	DSAerr@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L31:
	xor	eax, eax
	call	BN_new@PLT
	mov	QWORD PTR 24[r12], rax
	mov	r14, rax
	test	rax, rax
	je	.L26
	xor	eax, eax
	call	BN_CTX_new@PLT
	mov	r14, rax
	test	rax, rax
	je	.L26
	mov	rdi, QWORD PTR 8[r12]
	mov	esi, DWORD PTR BN_FLG_CONSTTIME[rip]
	call	BN_set_flags@PLT
	mov	rdx, QWORD PTR 8[r12]
	mov	ecx, DWORD PTR [r12]
	mov	r8, r14
	mov	esi, DWORD PTR 16[r12]
	mov	rdi, QWORD PTR 24[r12]
	call	BN_mod_exp@PLT
	test	eax, eax
	jne	.L9
	mov	esi, DWORD PTR DSA_R_BN_ERROR[rip]
	mov	edi, DWORD PTR DSA_F_DSA_PRIV_DECODE[rip]
	call	DSAerr@PLT
	jmp	.L5
.L9:
	mov	rsi, r12
	mov	rdi, rbp
	mov	r12d, 1
	call	EVP_PKEY_assign_DSA@PLT
	jmp	.L10
.L26:
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR DSA_F_DSA_PRIV_DECODE[rip]
	call	DSAerr@PLT
	jmp	.L5
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dsa_priv_decode, .-dsa_priv_decode
	.comm	V_ASN1_SEQUENCE,4,4
	.comm	V_ASN1_NEG_INTEGER,8,8
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	DSA_R_DECODE_ERROR,4,4
	.comm	DSA_R_BN_ERROR,4,4
	.comm	DSA_F_DSA_PRIV_DECODE,4,4
	.comm	BN_FLG_CONSTTIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dsa_ameth.c_dsa_priv_decode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsa_priv_decode, %function
dsa_priv_decode:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	ip, .L31
	sub	sp, sp, #44
	str	r1, [sp]
	mov	r5, r0
	add	r1, sp, #12
	mov	r0, #0
	add	r3, sp, #32
	add	r2, sp, #20
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	bl	PKCS8_pkey_get0
	subs	r4, r0, #0
	bne	.L27
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L27:
	ldr	r3, [sp, #32]
	add	r2, sp, #28
	add	r1, sp, #24
	mov	r0, #0
	bl	X509_ALGOR_get0
	mov	r0, #0
	ldr	r2, [sp, #20]
	add	r1, sp, #12
	bl	d2i_ASN1_INTEGER
	subs	r6, r0, #0
	beq	.L3
	ldr	r3, .L31+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L31+8
	ldr	r2, [sp, #24]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L29
.L3:
	mov	r4, #0
	ldr	r2, .L31+12
	ldr	r3, .L31+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	DSAerr
	mov	r7, r4
.L5:
	mov	r0, r4
	bl	DSA_free
	mov	r4, #0
.L10:
	mov	r0, r7
	bl	BN_CTX_free
	mov	r0, r6
	bl	ASN1_STRING_clear_free
	b	.L1
.L29:
	ldr	r3, [sp, #28]
	mov	r0, #0
	ldr	ip, [r3]
	ldr	r2, [r3, #4]
	add	r1, sp, #16
	str	ip, [sp, #16]
	bl	d2i_DSAparams
	subs	r4, r0, #0
	beq	.L3
	bl	BN_secure_new
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4, #4]
	beq	.L6
	mov	r0, r6
	bl	ASN1_INTEGER_to_BN
	cmp	r0, #0
	bne	.L30
.L6:
	ldr	r2, .L31+20
	ldr	r3, .L31+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	DSAerr
	mov	r7, #0
	b	.L5
.L30:
	bl	BN_new
	cmp	r0, #0
	mov	r7, r0
	str	r0, [r4, #12]
	beq	.L25
	bl	BN_CTX_new
	subs	r7, r0, #0
	beq	.L25
	ldr	r3, .L31+24
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	BN_set_flags
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	str	r7, [sp]
	bl	BN_mod_exp
	cmp	r0, #0
	bne	.L9
	ldr	r2, .L31+20
	ldr	r3, .L31+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	DSAerr
	b	.L5
.L9:
	mov	r1, r4
	mov	r0, r5
	bl	EVP_PKEY_assign_DSA
	mov	r4, #1
	b	.L10
.L25:
	ldr	r2, .L31+28
	ldr	r3, .L31+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	DSAerr
	b	.L5
.L28:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	V_ASN1_NEG_INTEGER
	.word	V_ASN1_SEQUENCE
	.word	DSA_R_DECODE_ERROR
	.word	DSA_F_DSA_PRIV_DECODE
	.word	DSA_R_BN_ERROR
	.word	BN_FLG_CONSTTIME
	.word	ERR_R_MALLOC_FAILURE
	.size	dsa_priv_decode, .-dsa_priv_decode
	.comm	V_ASN1_SEQUENCE,4,4
	.comm	V_ASN1_NEG_INTEGER,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	DSA_R_DECODE_ERROR,4,4
	.comm	DSA_R_BN_ERROR,4,4
	.comm	DSA_F_DSA_PRIV_DECODE,4,4
	.comm	BN_FLG_CONSTTIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
