	.file	"extr_dpp.c_dpp_ecdh.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DPP: EVP_PKEY_CTX_new failed: %s"
	.align 8
.LC1:
	.string	"DPP: EVP_PKEY_derive_init failed: %s"
	.align 8
.LC2:
	.string	"DPP: EVP_PKEY_derive_set_peet failed: %s"
	.align 8
.LC3:
	.string	"DPP: EVP_PKEY_derive(NULL) failed: %s"
	.align 8
.LC4:
	.string	"DPP: Unexpected secret_len=%d from EVP_PKEY_derive()"
	.align 8
.LC5:
	.string	"DPP: EVP_PKEY_derive failed: %s"
	.align 8
.LC6:
	.string	"DPP: Unexpected secret_len change"
	.text
	.p2align 4
	.type	dpp_ecdh, @function
dpp_ecdh:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 824
	.cfi_def_cfa_offset 864
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 808[rsp], rax
	xor	eax, eax
	call	ERR_clear_error@PLT
	mov	QWORD PTR [r12], 0
	xor	esi, esi
	mov	rdi, rbp
	call	EVP_PKEY_CTX_new@PLT
	test	rax, rax
	je	.L21
	mov	rdi, rax
	mov	rbp, rax
	call	EVP_PKEY_derive_init@PLT
	cmp	eax, 1
	jne	.L22
	mov	rsi, r13
	mov	rdi, rbp
	call	EVP_PKEY_derive_set_peer@PLT
	cmp	eax, 1
	je	.L6
	xor	eax, eax
	mov	r12d, -1
	call	ERR_get_error@PLT
	xor	esi, esi
	mov	edi, eax
	call	ERR_error_string@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC2[rip]
	mov	edx, eax
	call	wpa_printf@PLT
.L5:
	mov	rdi, rbp
	call	EVP_PKEY_CTX_free@PLT
.L1:
	mov	rax, QWORD PTR 808[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 824
	.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
.L22:
	.cfi_restore_state
	xor	eax, eax
	mov	r12d, -1
	call	ERR_get_error@PLT
	xor	esi, esi
	mov	edi, eax
	call	ERR_error_string@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC1[rip]
	mov	edx, eax
	call	wpa_printf@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	xor	esi, esi
	mov	rdx, r12
	mov	rdi, rbp
	call	EVP_PKEY_derive@PLT
	cmp	eax, 1
	jne	.L24
	mov	rdx, QWORD PTR [r12]
	cmp	rdx, QWORD PTR DPP_MAX_SHARED_SECRET_LEN[rip]
	jbe	.L8
	cmp	rdx, 200
	mov	edi, DWORD PTR MSG_ERROR[rip]
	cmovbe	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC4[rip]
	call	wpa_printf@PLT
	cmp	QWORD PTR [r12], 200
	ja	.L18
	mov	r13, rsp
	mov	rdx, r12
	mov	rdi, rbp
	mov	rsi, r13
	call	EVP_PKEY_derive@PLT
	cmp	eax, 1
	jne	.L19
	mov	rcx, QWORD PTR [r12]
	cmp	rcx, QWORD PTR DPP_MAX_SHARED_SECRET_LEN[rip]
	jbe	.L13
	mov	edi, DWORD PTR MSG_ERROR[rip]
	mov	edx, ecx
	lea	rsi, .LC4[rip]
	call	wpa_printf@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r12d, -1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	xor	eax, eax
	mov	r12d, -1
	call	ERR_get_error@PLT
	xor	esi, esi
	mov	edi, eax
	call	ERR_error_string@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC3[rip]
	mov	edx, eax
	call	wpa_printf@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, rbp
	xor	r12d, r12d
	call	EVP_PKEY_derive@PLT
	cmp	eax, 1
	je	.L5
.L19:
	xor	eax, eax
	call	ERR_get_error@PLT
	xor	esi, esi
	mov	edi, eax
	call	ERR_error_string@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC5[rip]
	mov	edx, eax
	call	wpa_printf@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rdx, r13
	lea	rsi, .LC6[rip]
	call	wpa_hexdump_key@PLT
	mov	rdx, QWORD PTR [r12]
	mov	rsi, r13
	mov	rdi, r14
	xor	r12d, r12d
	call	os_memcpy@PLT
	mov	esi, 800
	mov	rdi, r13
	call	forced_memzero@PLT
	jmp	.L5
.L21:
	xor	eax, eax
	mov	r12d, -1
	call	ERR_get_error@PLT
	xor	esi, esi
	mov	edi, eax
	call	ERR_error_string@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	wpa_printf@PLT
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dpp_ecdh, .-dpp_ecdh
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	DPP_MAX_SHARED_SECRET_LEN,8,8
	.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_dpp.c_dpp_ecdh.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DPP: EVP_PKEY_CTX_new failed: %s\000"
	.align	2
.LC1:
	.ascii	"DPP: EVP_PKEY_derive_init failed: %s\000"
	.align	2
.LC2:
	.ascii	"DPP: EVP_PKEY_derive_set_peet failed: %s\000"
	.align	2
.LC3:
	.ascii	"DPP: EVP_PKEY_derive(NULL) failed: %s\000"
	.align	2
.LC4:
	.ascii	"DPP: Unexpected secret_len=%d from EVP_PKEY_derive("
	.ascii	")\000"
	.align	2
.LC5:
	.ascii	"DPP: EVP_PKEY_derive failed: %s\000"
	.align	2
.LC6:
	.ascii	"DPP: Unexpected secret_len change\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dpp_ecdh, %function
dpp_ecdh:
	@ args = 0, pretend = 0, frame = 808
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r3
	mov	r6, #0
	ldr	r3, .L23
	sub	sp, sp, #808
	mov	r8, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #804]
	mov	r3,#0
	bl	ERR_clear_error
	mov	r0, r4
	mov	r1, r6
	str	r6, [r5]
	bl	EVP_PKEY_CTX_new
	subs	r4, r0, #0
	beq	.L18
	bl	EVP_PKEY_derive_init
	cmp	r0, #1
	bne	.L19
	mov	r1, r8
	mov	r0, r4
	bl	EVP_PKEY_derive_set_peer
	cmp	r0, #1
	beq	.L6
	ldr	r3, .L23+4
	mvn	r5, #0
	ldr	r7, [r3]
	bl	ERR_get_error
	mov	r1, r6
	bl	ERR_error_string
	ldr	r1, .L23+8
	mov	r2, r0
	mov	r0, r7
	bl	wpa_printf
.L5:
	mov	r0, r4
	bl	EVP_PKEY_CTX_free
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #804]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r5
	add	sp, sp, #808
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r3, .L23+4
	mvn	r5, #0
	ldr	r7, [r3]
	bl	ERR_get_error
	mov	r1, r6
	bl	ERR_error_string
	ldr	r1, .L23+12
	mov	r2, r0
	mov	r0, r7
	bl	wpa_printf
	b	.L5
.L6:
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	EVP_PKEY_derive
	cmp	r0, #1
	bne	.L21
	ldr	r8, .L23+16
	ldr	r2, [r5]
	ldr	r3, [r8]
	cmp	r2, r3
	bls	.L8
	cmp	r2, #200
	ldrhi	r3, .L23+4
	ldrls	r3, .L23+20
	ldr	r1, .L23+24
	ldr	r0, [r3]
	bl	wpa_printf
	ldr	r3, [r5]
	cmp	r3, #200
	bhi	.L11
	mov	r2, r5
	mov	r0, r4
	add	r1, sp, #4
	bl	EVP_PKEY_derive
	cmp	r0, #1
	bne	.L22
	ldr	r2, [r8]
	ldr	r3, [r5]
	cmp	r3, r2
	bls	.L13
	ldr	r1, .L23+4
	mov	r2, r3
	ldr	r0, [r1]
	ldr	r1, .L23+24
	bl	wpa_printf
.L11:
	mvn	r5, #0
	b	.L5
.L21:
	ldr	r3, .L23+4
	mvn	r5, #0
	ldr	r7, [r3]
	bl	ERR_get_error
	mov	r1, r6
	bl	ERR_error_string
	ldr	r1, .L23+28
	mov	r2, r0
	mov	r0, r7
	bl	wpa_printf
	b	.L5
.L8:
	mov	r2, r5
	mov	r1, r7
	mov	r0, r4
	bl	EVP_PKEY_derive
	cmp	r0, #1
	moveq	r5, r6
	beq	.L5
	ldr	r3, .L23+4
	mvn	r5, #0
	ldr	r7, [r3]
	bl	ERR_get_error
	mov	r1, r6
	bl	ERR_error_string
	ldr	r1, .L23+32
	mov	r2, r0
	mov	r0, r7
	bl	wpa_printf
	b	.L5
.L22:
	ldr	r3, .L23+4
	ldr	r5, [r3]
	bl	ERR_get_error
	mov	r1, #0
	bl	ERR_error_string
	ldr	r1, .L23+32
	mov	r2, r0
	mov	r0, r5
	bl	wpa_printf
	b	.L11
.L13:
	ldr	r2, .L23+20
	ldr	r1, .L23+36
	ldr	r0, [r2]
	add	r2, sp, #4
	bl	wpa_hexdump_key
	ldr	r2, [r5]
	add	r1, sp, #4
	mov	r0, r7
	bl	os_memcpy
	mov	r1, #800
	add	r0, sp, #4
	bl	forced_memzero
	mov	r5, #0
	b	.L5
.L18:
	ldr	r3, .L23+4
	mvn	r5, #0
	ldr	r6, [r3]
	bl	ERR_get_error
	mov	r1, r4
	bl	ERR_error_string
	ldr	r1, .L23+40
	mov	r2, r0
	mov	r0, r6
	bl	wpa_printf
	b	.L1
.L20:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC7
	.word	MSG_ERROR
	.word	.LC2
	.word	.LC1
	.word	DPP_MAX_SHARED_SECRET_LEN
	.word	MSG_DEBUG
	.word	.LC4
	.word	.LC3
	.word	.LC5
	.word	.LC6
	.word	.LC0
	.size	dpp_ecdh, .-dpp_ecdh
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	DPP_MAX_SHARED_SECRET_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
