	.file	"extr_dh_ameth.c_dh_priv_decode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dh_priv_decode, @function
dh_priv_decode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r8, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	xor	edi, edi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 8[rsp]
	lea	rcx, 32[rsp]
	mov	rdx, rsp
	mov	rsi, r12
	call	PKCS8_pkey_get0@PLT
	test	eax, eax
	jne	.L26
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L27
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.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	eax, DWORD PTR V_ASN1_SEQUENCE[rip]
	cmp	DWORD PTR 4[rsp], eax
	je	.L28
.L3:
	xor	r12d, r12d
.L4:
	mov	esi, DWORD PTR EVP_R_DECODE_ERROR[rip]
	mov	edi, DWORD PTR DH_F_DH_PRIV_DECODE[rip]
	xor	r13d, r13d
	call	DHerr@PLT
.L6:
	mov	rdi, r13
	call	DH_free@PLT
	mov	rdi, r12
	call	ASN1_STRING_clear_free@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edx, DWORD PTR [rsp]
	mov	rsi, r12
	xor	edi, edi
	call	d2i_ASN1_INTEGER@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR 24[rsp]
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR 16[rsp], rdx
	mov	edx, DWORD PTR 8[rax]
	call	d2i_dhp@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
	xor	eax, eax
	call	BN_secure_new@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rsi, rax
	test	rax, rax
	je	.L7
	mov	rdi, r12
	call	ASN1_INTEGER_to_BN@PLT
	test	eax, eax
	jne	.L29
.L7:
	mov	esi, DWORD PTR DH_R_BN_ERROR[rip]
	mov	edi, DWORD PTR DH_F_DH_PRIV_DECODE[rip]
	call	DHerr@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, r13
	call	DH_generate_key@PLT
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, r13
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	call	EVP_PKEY_assign@PLT
	mov	rdi, r12
	call	ASN1_STRING_clear_free@PLT
	mov	eax, 1
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dh_priv_decode, .-dh_priv_decode
	.comm	V_ASN1_SEQUENCE,4,4
	.comm	EVP_R_DECODE_ERROR,4,4
	.comm	DH_R_BN_ERROR,4,4
	.comm	DH_F_DH_PRIV_DECODE,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_dh_ameth.c_dh_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	dh_priv_decode, %function
dh_priv_decode:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	ip, .L30
	sub	sp, sp, #40
	str	r1, [sp]
	mov	r4, 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
	cmp	r0, #0
	bne	.L26
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L26:
	ldr	r3, [sp, #32]
	add	r2, sp, #28
	mov	r0, #0
	add	r1, sp, #24
	bl	X509_ALGOR_get0
	ldr	r3, .L30+4
	ldr	r2, [sp, #24]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L28
.L3:
	mov	r5, #0
.L4:
	ldr	r2, .L30+8
	ldr	r3, .L30+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	DHerr
	mov	r6, #0
.L6:
	mov	r0, r6
	bl	DH_free
	mov	r0, r5
	bl	ASN1_STRING_clear_free
	mov	r0, #0
	b	.L1
.L28:
	mov	r0, #0
	ldr	r2, [sp, #20]
	add	r1, sp, #12
	bl	d2i_ASN1_INTEGER
	subs	r5, r0, #0
	beq	.L3
	ldr	r3, [sp, #28]
	mov	r0, r4
	ldr	ip, [r3]
	ldr	r2, [r3, #4]
	add	r1, sp, #16
	str	ip, [sp, #16]
	bl	d2i_dhp
	subs	r6, r0, #0
	beq	.L4
	bl	BN_secure_new
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r6]
	beq	.L7
	mov	r0, r5
	bl	ASN1_INTEGER_to_BN
	cmp	r0, #0
	bne	.L29
.L7:
	ldr	r2, .L30+16
	ldr	r3, .L30+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	DHerr
	b	.L6
.L29:
	mov	r0, r6
	bl	DH_generate_key
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r4]
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	bl	EVP_PKEY_assign
	mov	r0, r5
	bl	ASN1_STRING_clear_free
	mov	r0, #1
	b	.L1
.L27:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC0
	.word	V_ASN1_SEQUENCE
	.word	EVP_R_DECODE_ERROR
	.word	DH_F_DH_PRIV_DECODE
	.word	DH_R_BN_ERROR
	.size	dh_priv_decode, .-dh_priv_decode
	.comm	V_ASN1_SEQUENCE,4,4
	.comm	EVP_R_DECODE_ERROR,4,4
	.comm	DH_R_BN_ERROR,4,4
	.comm	DH_F_DH_PRIV_DECODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
