	.file	"extr_..libopenssl.c_x9_62_on_exchange.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	x9_62_on_exchange, @function
x9_62_on_exchange:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR [rdi]
	mov	DWORD PTR 12[rsp], esi
	mov	edi, DWORD PTR 0[r13]
	call	EC_KEY_get0_group@PLT
	test	rbp, rbp
	je	.L2
	mov	edx, DWORD PTR 4[r13]
	mov	esi, r14d
	mov	rdi, rax
	mov	r12, rax
	call	x9_62_decode_point@PLT
	mov	r15d, DWORD PTR PTLS_ALERT_DECODE_ERROR[rip]
	mov	r14, rax
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR 0[r13]
	mov	rdi, rbp
	mov	rcx, rax
	mov	rsi, r12
	call	ecdh_calc_secret@PLT
	mov	rdi, r14
	mov	r15d, eax
	call	EC_POINT_free@PLT
.L2:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L12
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, r13
	call	x9_62_free_context@PLT
	mov	QWORD PTR [rbx], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	x9_62_on_exchange, .-x9_62_on_exchange
	.comm	PTLS_ALERT_DECODE_ERROR,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_..libopenssl.c_x9_62_on_exchange.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	x9_62_on_exchange, %function
x9_62_on_exchange:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	ldr	r8, [r0]
	mov	r5, r0
	ldr	r0, [r8]
	mov	r6, r1
	mov	r7, r3
	bl	EC_KEY_get0_group
	cmp	r4, #0
	beq	.L2
	mov	r1, r7
	ldr	r2, [r8, #4]
	mov	r9, r0
	bl	x9_62_decode_point
	subs	r7, r0, #0
	beq	.L11
	mov	r0, r4
	mov	r1, r9
	mov	r3, r7
	ldr	r2, [r8]
	bl	ecdh_calc_secret
	mov	r4, r0
	mov	r0, r7
	bl	EC_POINT_free
.L2:
	cmp	r6, #0
	bne	.L12
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, .L13
	cmp	r6, #0
	ldr	r4, [r3]
	beq	.L1
.L12:
	mov	r0, r8
	bl	x9_62_free_context
	mov	r3, #0
	mov	r0, r4
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	PTLS_ALERT_DECODE_ERROR
	.size	x9_62_on_exchange, .-x9_62_on_exchange
	.comm	PTLS_ALERT_DECODE_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
