	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_parse_jwk
_dpp_parse_jwk:                         ## @dpp_parse_jwk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_JSON_STRING@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.2:
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_wpabuf_free
	movq	%r13, %rdi
	callq	_wpabuf_free
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_19
## %bb.11:
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_19
## %bb.12:
	movl	8(%rbx), %edi
	callq	_dpp_get_curve_jwk_crv
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	%rax, %r12
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_json_get_member_base64url
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	%rax, %r14
	leaq	L_.str.9(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_buf
	movq	%r14, %rdi
	callq	_wpabuf_len
	cmpq	(%r12), %rax
	jne	LBB0_22
## %bb.15:
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	callq	_json_get_member_base64url
	movl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movq	%rax, %r13
	leaq	L_.str.13(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_buf
	movq	%r13, %rdi
	callq	_wpabuf_len
	cmpq	(%r12), %rax
	jne	LBB0_24
## %bb.17:
	movl	8(%r12), %edi
	callq	_OBJ_txt2nid
	movl	%eax, %edi
	callq	_EC_GROUP_new_by_curve_name
	testq	%rax, %rax
	je	LBB0_25
## %bb.18:
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_wpabuf_head
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_wpabuf_head
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_wpabuf_len
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rax, %rcx
	callq	_dpp_set_pubkey_point_group
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_EC_GROUP_free
	movq	%r12, (%r15)
	jmp	LBB0_9
LBB0_19:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_20:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_4
LBB0_21:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_6
LBB0_22:
	movl	(%rbx), %ebx
	movq	%r14, %rdi
	callq	_wpabuf_len
	movl	(%r12), %ecx
	movl	8(%r12), %r8d
	leaq	L_.str.10(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_23:
	leaq	L_.str.12(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_24:
	movl	(%rbx), %r15d
	movq	%r13, %rdi
	callq	_wpabuf_len
	movl	(%r12), %ecx
	movl	8(%r12), %r8d
	leaq	L_.str.14(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_25:
	movl	(%rbx), %edi
	leaq	L_.str.15(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kty"

	.comm	_JSON_STRING,8,3                ## @JSON_STRING
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"DPP: No kty in JWK"

L_.str.2:                               ## @.str.2
	.asciz	"EC"

L_.str.3:                               ## @.str.3
	.asciz	"DPP: Unexpected JWK kty '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"crv"

L_.str.5:                               ## @.str.5
	.asciz	"DPP: No crv in JWK"

L_.str.6:                               ## @.str.6
	.asciz	"DPP: Unsupported JWK crv '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"x"

L_.str.8:                               ## @.str.8
	.asciz	"DPP: No x in JWK"

L_.str.9:                               ## @.str.9
	.asciz	"DPP: JWK x"

L_.str.10:                              ## @.str.10
	.asciz	"DPP: Unexpected JWK x length %u (expected %u for curve %s)"

L_.str.11:                              ## @.str.11
	.asciz	"y"

L_.str.12:                              ## @.str.12
	.asciz	"DPP: No y in JWK"

L_.str.13:                              ## @.str.13
	.asciz	"DPP: JWK y"

L_.str.14:                              ## @.str.14
	.asciz	"DPP: Unexpected JWK y length %u (expected %u for curve %s)"

L_.str.15:                              ## @.str.15
	.asciz	"DPP: Could not prepare group for JWK"

	.no_dead_strip	_dpp_parse_jwk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_parse_jwk
_dpp_parse_jwk:                         ; @dpp_parse_jwk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_json_get_member
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x22, _JSON_STRING@GOTPAGE
Lloh3:
	ldr	x22, [x22, _JSON_STRING@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_9
; %bb.3:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_wpa_printf
	mov	x19, #0
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x23, #0
LBB0_8:
	mov	x0, x19
	bl	_wpabuf_free
	mov	x0, x21
	bl	_wpabuf_free
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_json_get_member
	cbz	x0, LBB0_18
; %bb.10:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.11:
	ldr	w0, [x19, #8]
	bl	_dpp_get_curve_jwk_crv
	cbz	x0, LBB0_19
; %bb.12:
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_json_get_member_base64url
	mov	x19, x0
Lloh20:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	cbz	x19, LBB0_20
; %bb.13:
Lloh22:
	adrp	x1, l_.str.9@PAGE
Lloh23:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_buf
	mov	x0, x19
	bl	_wpabuf_len
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.14:
Lloh24:
	adrp	x1, l_.str.11@PAGE
Lloh25:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_json_get_member_base64url
	mov	x21, x0
	ldr	w0, [x23]
	cbz	x21, LBB0_23
; %bb.15:
Lloh26:
	adrp	x1, l_.str.13@PAGE
Lloh27:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump_buf
	mov	x0, x21
	bl	_wpabuf_len
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.16:
	ldr	w0, [x22, #8]
	bl	_OBJ_txt2nid
	bl	_EC_GROUP_new_by_curve_name
	cbz	x0, LBB0_25
; %bb.17:
	mov	x24, x0
	mov	x0, x19
	bl	_wpabuf_head
	mov	x23, x0
	mov	x0, x21
	bl	_wpabuf_head
	mov	x25, x0
	mov	x0, x19
	bl	_wpabuf_len
	mov	x3, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	bl	_dpp_set_pubkey_point_group
	mov	x23, x0
	mov	x0, x24
	bl	_EC_GROUP_free
	str	x22, [x20]
	b	LBB0_8
LBB0_18:
Lloh28:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_19:
Lloh33:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_5
LBB0_20:
Lloh38:
	adrp	x1, l_.str.8@PAGE
Lloh39:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_22
LBB0_21:
	ldr	w20, [x23]
	mov	x0, x19
	bl	_wpabuf_len
	ldr	x8, [x22]
	ldr	w9, [x22, #8]
	stp	x8, x9, [sp, #8]
	str	x0, [sp]
Lloh40:
	adrp	x1, l_.str.10@PAGE
Lloh41:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
LBB0_22:
	bl	_wpa_printf
	b	LBB0_6
LBB0_23:
Lloh42:
	adrp	x1, l_.str.12@PAGE
Lloh43:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_26
LBB0_24:
	ldr	w20, [x23]
	mov	x0, x21
	bl	_wpabuf_len
	ldr	x8, [x22]
	ldr	w9, [x22, #8]
	stp	x8, x9, [sp, #8]
	str	x0, [sp]
Lloh44:
	adrp	x1, l_.str.14@PAGE
Lloh45:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	b	LBB0_26
LBB0_25:
	ldr	w0, [x23]
Lloh46:
	adrp	x1, l_.str.15@PAGE
Lloh47:
	add	x1, x1, l_.str.15@PAGEOFF
LBB0_26:
	bl	_wpa_printf
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kty"

	.comm	_JSON_STRING,8,3                ; @JSON_STRING
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"DPP: No kty in JWK"

l_.str.2:                               ; @.str.2
	.asciz	"EC"

l_.str.3:                               ; @.str.3
	.asciz	"DPP: Unexpected JWK kty '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"crv"

l_.str.5:                               ; @.str.5
	.asciz	"DPP: No crv in JWK"

l_.str.6:                               ; @.str.6
	.asciz	"DPP: Unsupported JWK crv '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"x"

l_.str.8:                               ; @.str.8
	.asciz	"DPP: No x in JWK"

l_.str.9:                               ; @.str.9
	.asciz	"DPP: JWK x"

l_.str.10:                              ; @.str.10
	.asciz	"DPP: Unexpected JWK x length %u (expected %u for curve %s)"

l_.str.11:                              ; @.str.11
	.asciz	"y"

l_.str.12:                              ; @.str.12
	.asciz	"DPP: No y in JWK"

l_.str.13:                              ; @.str.13
	.asciz	"DPP: JWK y"

l_.str.14:                              ; @.str.14
	.asciz	"DPP: Unexpected JWK y length %u (expected %u for curve %s)"

l_.str.15:                              ; @.str.15
	.asciz	"DPP: Could not prepare group for JWK"

	.no_dead_strip	_dpp_parse_jwk
.subsections_via_symbols
