	.file	"extr_dpp.c_dpp_parse_jwk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"kty"
.LC1:
	.string	"DPP: No kty in JWK"
.LC2:
	.string	"EC"
.LC3:
	.string	"DPP: Unexpected JWK kty '%s'"
.LC4:
	.string	"crv"
.LC5:
	.string	"DPP: No crv in JWK"
.LC6:
	.string	"DPP: Unsupported JWK crv '%s'"
.LC7:
	.string	"x"
.LC8:
	.string	"DPP: No x in JWK"
.LC9:
	.string	"DPP: JWK x"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC10:
	.string	"DPP: Unexpected JWK x length %u (expected %u for curve %s)"
	.section	.rodata.str1.1
.LC11:
	.string	"y"
.LC12:
	.string	"DPP: No y in JWK"
.LC13:
	.string	"DPP: JWK y"
	.section	.rodata.str1.8
	.align 8
.LC14:
	.string	"DPP: Unexpected JWK y length %u (expected %u for curve %s)"
	.align 8
.LC15:
	.string	"DPP: Could not prepare group for JWK"
	.text
	.p2align 4
	.type	dpp_parse_jwk, @function
dpp_parse_jwk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	json_get_member@PLT
	test	rax, rax
	je	.L2
	mov	rbx, rax
	mov	rax, QWORD PTR JSON_STRING[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L2
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC2[rip]
	call	os_strcmp@PLT
	test	rax, rax
	jne	.L24
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	json_get_member@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR JSON_STRING[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L6
	mov	edi, DWORD PTR 8[rbx]
	call	dpp_get_curve_jwk_crv@PLT
	mov	r14, rax
	test	rax, rax
	je	.L25
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	json_get_member_base64url@PLT
	mov	r12, rax
	test	rax, rax
	je	.L26
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	call	wpa_hexdump_buf@PLT
	mov	rdi, r12
	call	wpabuf_len@PLT
	mov	rbx, QWORD PTR [r14]
	cmp	rax, rbx
	jne	.L27
	mov	rdi, rbp
	lea	rsi, .LC11[rip]
	call	json_get_member_base64url@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L28
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rdx, rax
	lea	rsi, .LC13[rip]
	call	wpa_hexdump_buf@PLT
	mov	rdi, rbp
	call	wpabuf_len@PLT
	mov	rbx, QWORD PTR [r14]
	cmp	rax, rbx
	jne	.L29
	mov	edi, DWORD PTR 8[r14]
	call	OBJ_txt2nid@PLT
	mov	edi, eax
	call	EC_GROUP_new_by_curve_name@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L30
	mov	rdi, r12
	call	wpabuf_len@PLT
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	wpabuf_head@PLT
	mov	rdi, r12
	mov	r15d, eax
	call	wpabuf_head@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	edx, r15d
	mov	rdi, rbx
	mov	esi, eax
	call	dpp_set_pubkey_point_group@PLT
	mov	rdi, rbx
	mov	r15, rax
	call	EC_GROUP_free@PLT
	mov	QWORD PTR 0[r13], r14
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rsi, .LC1[rip]
.L21:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	xor	eax, eax
	xor	r15d, r15d
	xor	ebp, ebp
	xor	r12d, r12d
	call	wpa_printf@PLT
.L4:
	mov	rdi, r12
	call	wpabuf_free@PLT
	mov	rdi, rbp
	call	wpabuf_free@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
.L6:
	.cfi_restore_state
	lea	rsi, .LC5[rip]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC3[rip]
.L22:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	xor	eax, eax
	xor	r15d, r15d
	xor	ebp, ebp
	xor	r12d, r12d
	call	wpa_printf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	mov	ebp, DWORD PTR 8[r14]
	mov	rdi, r12
	xor	r15d, r15d
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, ebx
	lea	rsi, .LC10[rip]
	mov	rdx, rax
	mov	r8d, ebp
	xor	eax, eax
	xor	ebp, ebp
	call	wpa_printf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	xor	eax, eax
	xor	r15d, r15d
	xor	ebp, ebp
	lea	rsi, .LC8[rip]
	call	wpa_printf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L29:
	mov	r13d, DWORD PTR 8[r14]
	mov	rdi, rbp
	xor	r15d, r15d
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, ebx
	lea	rsi, .LC14[rip]
	mov	rdx, rax
	mov	r8d, r13d
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC6[rip]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC12[rip]
	xor	eax, eax
	xor	r15d, r15d
	call	wpa_printf@PLT
	jmp	.L4
.L30:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC15[rip]
	xor	eax, eax
	xor	r15d, r15d
	call	wpa_printf@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	dpp_parse_jwk, .-dpp_parse_jwk
	.comm	MSG_DEBUG,4,4
	.comm	JSON_STRING,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_parse_jwk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"kty\000"
	.align	2
.LC1:
	.ascii	"DPP: No kty in JWK\000"
	.align	2
.LC2:
	.ascii	"EC\000"
	.align	2
.LC3:
	.ascii	"DPP: Unexpected JWK kty '%s'\000"
	.align	2
.LC4:
	.ascii	"crv\000"
	.align	2
.LC5:
	.ascii	"DPP: No crv in JWK\000"
	.align	2
.LC6:
	.ascii	"DPP: Unsupported JWK crv '%s'\000"
	.align	2
.LC7:
	.ascii	"x\000"
	.align	2
.LC8:
	.ascii	"DPP: No x in JWK\000"
	.align	2
.LC9:
	.ascii	"DPP: JWK x\000"
	.align	2
.LC10:
	.ascii	"DPP: Unexpected JWK x length %u (expected %u for cu"
	.ascii	"rve %s)\000"
	.align	2
.LC11:
	.ascii	"y\000"
	.align	2
.LC12:
	.ascii	"DPP: No y in JWK\000"
	.align	2
.LC13:
	.ascii	"DPP: JWK y\000"
	.align	2
.LC14:
	.ascii	"DPP: Unexpected JWK y length %u (expected %u for cu"
	.ascii	"rve %s)\000"
	.align	2
.LC15:
	.ascii	"DPP: Could not prepare group for JWK\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dpp_parse_jwk, %function
dpp_parse_jwk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	sub	sp, sp, #8
	ldr	r1, .L29
	mov	r6, r0
	bl	json_get_member
	subs	r4, r0, #0
	beq	.L2
	ldr	r8, .L29+4
	ldr	r2, [r4]
	ldr	r3, [r8]
	cmp	r2, r3
	bne	.L2
	ldr	r1, .L29+8
	ldr	r0, [r4, #4]
	bl	os_strcmp
	subs	r5, r0, #0
	bne	.L22
	mov	r0, r6
	ldr	r1, .L29+12
	bl	json_get_member
	subs	r4, r0, #0
	beq	.L6
	ldr	r3, [r8]
	ldr	r2, [r4]
	cmp	r2, r3
	bne	.L6
	ldr	r0, [r4, #4]
	bl	dpp_get_curve_jwk_crv
	subs	r8, r0, #0
	beq	.L23
	mov	r0, r6
	ldr	r1, .L29+16
	bl	json_get_member_base64url
	subs	r4, r0, #0
	beq	.L24
	ldr	r9, .L29+20
	mov	r2, r4
	ldr	r1, .L29+24
	ldr	r0, [r9]
	bl	wpa_hexdump_buf
	mov	r0, r4
	bl	wpabuf_len
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L25
	mov	r0, r6
	ldr	r1, .L29+28
	bl	json_get_member_base64url
	subs	r6, r0, #0
	beq	.L26
	mov	r2, r6
	ldr	r1, .L29+32
	ldr	r0, [r9]
	bl	wpa_hexdump_buf
	mov	r0, r6
	bl	wpabuf_len
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L27
	ldr	r0, [r8, #4]
	bl	OBJ_txt2nid
	bl	EC_GROUP_new_by_curve_name
	subs	r10, r0, #0
	beq	.L28
	mov	r0, r4
	bl	wpabuf_head
	mov	r5, r0
	mov	r0, r6
	bl	wpabuf_head
	mov	r9, r0
	mov	r0, r4
	bl	wpabuf_len
	mov	r1, r5
	mov	r3, r0
	mov	r2, r9
	mov	r0, r10
	bl	dpp_set_pubkey_point_group
	mov	r5, r0
	mov	r0, r10
	bl	EC_GROUP_free
	str	r8, [r7]
	b	.L4
.L2:
	mov	r5, #0
	ldr	r3, .L29+20
	ldr	r1, .L29+36
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r6, r5
	mov	r4, r5
.L4:
	mov	r0, r4
	bl	wpabuf_free
	mov	r0, r6
	bl	wpabuf_free
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r5, #0
	ldr	r3, .L29+20
	ldr	r1, .L29+40
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r6, r5
	mov	r4, r5
	b	.L4
.L22:
	mov	r5, #0
	ldr	r3, .L29+20
	ldr	r2, [r4, #4]
	ldr	r0, [r3]
	ldr	r1, .L29+44
	bl	wpa_printf
	mov	r6, r5
	mov	r4, r5
	b	.L4
.L25:
	mov	r0, r4
	ldr	r6, [r9]
	bl	wpabuf_len
	ldr	r1, [r8, #4]
	mov	r2, r0
	ldr	r3, [r8]
	mov	r0, r6
	str	r1, [sp]
	ldr	r1, .L29+48
	bl	wpa_printf
	mov	r6, r5
	b	.L4
.L24:
	ldr	r3, .L29+20
	ldr	r1, .L29+52
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r5, r4
	mov	r6, r4
	b	.L4
.L27:
	mov	r0, r6
	ldr	r5, [r9]
	bl	wpabuf_len
	ldr	r1, [r8, #4]
	mov	r2, r0
	ldr	r3, [r8]
	mov	r0, r5
	str	r1, [sp]
	ldr	r1, .L29+56
	bl	wpa_printf
	mov	r5, #0
	b	.L4
.L23:
	ldr	r3, .L29+20
	ldr	r2, [r4, #4]
	ldr	r0, [r3]
	ldr	r1, .L29+60
	mov	r5, r8
	bl	wpa_printf
	mov	r6, r8
	mov	r4, r8
	b	.L4
.L26:
	ldr	r0, [r9]
	ldr	r1, .L29+64
	bl	wpa_printf
	mov	r5, r6
	b	.L4
.L28:
	ldr	r0, [r9]
	ldr	r1, .L29+68
	mov	r5, r10
	bl	wpa_printf
	b	.L4
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	JSON_STRING
	.word	.LC2
	.word	.LC4
	.word	.LC7
	.word	MSG_DEBUG
	.word	.LC9
	.word	.LC11
	.word	.LC13
	.word	.LC1
	.word	.LC5
	.word	.LC3
	.word	.LC10
	.word	.LC8
	.word	.LC14
	.word	.LC6
	.word	.LC12
	.word	.LC15
	.size	dpp_parse_jwk, .-dpp_parse_jwk
	.comm	MSG_DEBUG,4,4
	.comm	JSON_STRING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
