	.file	"extr_dpp.c_dpp_keygen_configurator.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DPP: Unsupported curve: %s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"DPP: Failed to extract C-sign-key"
	.align 8
.LC2:
	.string	"DPP: Failed to derive kid for C-sign-key"
	.text
	.p2align 4
	.globl	dpp_keygen_configurator
	.type	dpp_keygen_configurator, @function
dpp_keygen_configurator:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdi
	push	r14
	.cfi_offset 14, -32
	mov	r14, rsi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SHA256_MAC_LEN[rip]
	mov	rsi, rsp
	mov	rbx, rax
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rcx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L28:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L28
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L29
.L4:
	mov	edi, 32
	mov	QWORD PTR -88[rbp], rdx
	mov	r13, rsp
	call	os_zalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	test	r15, r15
	mov	rdx, QWORD PTR -88[rbp]
	je	.L30
	mov	rdi, r15
	mov	QWORD PTR -88[rbp], rdx
	call	dpp_get_curve_name@PLT
	mov	rdx, QWORD PTR -88[rbp]
	test	rax, rax
	mov	QWORD PTR 24[r12], rax
	je	.L31
	test	r14, r14
	je	.L8
.L35:
	lea	rdi, 24[r12]
	mov	rsi, r14
	call	dpp_set_keypair@PLT
	mov	DWORD PTR 16[r12], eax
	mov	edi, eax
.L9:
	xor	r14d, r14d
	test	edi, edi
	je	.L10
	mov	DWORD PTR [r12], 1
	mov	esi, 1
	call	dpp_get_pubkey_point@PLT
	mov	r14, rax
	test	rax, rax
	je	.L32
	mov	rdi, rax
	call	wpabuf_head@PLT
	mov	rdi, r14
	mov	QWORD PTR -72[rbp], rax
	call	wpabuf_len@PLT
	lea	rdx, -64[rbp]
	lea	rsi, -72[rbp]
	mov	rcx, r13
	mov	edi, 1
	mov	QWORD PTR -64[rbp], rax
	call	sha256_vector@PLT
	test	rax, rax
	js	.L33
	lea	esi, 0[0+rbx*4]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, r13
	call	base64_url_encode@PLT
	mov	QWORD PTR 8[r12], rax
	test	rax, rax
	je	.L10
.L13:
	mov	rdi, r14
	call	wpabuf_free@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	lea	rsp, -40[rbp]
	mov	rax, r12
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r12
	xor	r12d, r12d
	call	dpp_configurator_free@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR dpp_curves[rip]
	mov	QWORD PTR 24[r12], rax
	test	r14, r14
	jne	.L35
.L8:
	mov	rdi, QWORD PTR 24[r12]
	call	dpp_gen_keypair@PLT
	mov	DWORD PTR 16[r12], eax
	mov	edi, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, DWORD PTR MSG_INFO[rip]
	mov	rdx, r15
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	os_free@PLT
	jmp	.L1
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dpp_keygen_configurator, .-dpp_keygen_configurator
	.comm	dpp_curves,8,8
	.comm	SHA256_MAC_LEN,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,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_dpp.c_dpp_keygen_configurator.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DPP: Unsupported curve: %s\000"
	.align	2
.LC1:
	.ascii	"DPP: Failed to extract C-sign-key\000"
	.align	2
.LC2:
	.ascii	"DPP: Failed to derive kid for C-sign-key\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dpp_keygen_configurator
	.syntax unified
	.arm
	.fpu softvfp
	.type	dpp_keygen_configurator, %function
dpp_keygen_configurator:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L28
	mov	r8, r0
	ldr	r6, [r3]
	mov	r0, #16
	lsl	r6, r6, #2
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L28+4
	mov	r5, r1
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	os_zalloc
	subs	r4, r0, #0
	beq	.L1
	cmp	r8, #0
	mov	r7, sp
	beq	.L21
	mov	r0, r8
	bl	dpp_get_curve_name
	cmp	r0, #0
	mov	r10, r0
	str	r0, [r4, #12]
	beq	.L22
	cmp	r5, #0
	beq	.L5
.L26:
	mov	r1, r5
	mov	r2, r9
	add	r0, r4, #12
	bl	dpp_set_keypair
	cmp	r0, #0
	moveq	r5, r0
	str	r0, [r4, #8]
	beq	.L7
.L27:
	mov	r8, #1
	mov	r1, r8
	str	r8, [r4]
	bl	dpp_get_pubkey_point
	subs	r5, r0, #0
	beq	.L23
	bl	wpabuf_head
	mov	r3, r0
	mov	r0, r5
	str	r3, [fp, #-48]
	bl	wpabuf_len
	mov	ip, r0
	mov	r3, r7
	mov	r0, r8
	sub	r2, fp, #44
	sub	r1, fp, #48
	str	ip, [fp, #-44]
	bl	sha256_vector
	cmp	r0, #0
	blt	.L24
	mov	r3, #0
	mov	r1, r6
	mov	r0, r7
	mov	r2, r3
	bl	base64_url_encode
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L7
.L10:
	mov	r0, r5
	bl	wpabuf_free
.L1:
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r3, .L28+8
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [r4, #12]
	bne	.L26
.L5:
	ldr	r0, [r4, #12]
	bl	dpp_gen_keypair
	cmp	r0, #0
	moveq	r5, r0
	str	r0, [r4, #8]
	bne	.L27
.L7:
	mov	r0, r4
	bl	dpp_configurator_free
	mov	r4, #0
	b	.L10
.L24:
	ldr	r3, .L28+12
	ldr	r1, .L28+16
	ldr	r0, [r3]
	bl	wpa_printf
	b	.L7
.L23:
	ldr	r3, .L28+20
	ldr	r1, .L28+24
	ldr	r0, [r3]
	bl	wpa_printf
	b	.L7
.L22:
	ldr	r3, .L28+20
	mov	r2, r8
	ldr	r0, [r3]
	ldr	r1, .L28+28
	bl	wpa_printf
	mov	r0, r4
	bl	os_free
	mov	r4, r10
	b	.L1
.L25:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	SHA256_MAC_LEN
	.word	.LC3
	.word	dpp_curves
	.word	MSG_DEBUG
	.word	.LC2
	.word	MSG_INFO
	.word	.LC1
	.word	.LC0
	.size	dpp_keygen_configurator, .-dpp_keygen_configurator
	.comm	dpp_curves,4,4
	.comm	SHA256_MAC_LEN,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
