	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_parse_uri_pk
_dpp_parse_uri_pk:                      ## @dpp_parse_uri_pk
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -168(%rbp)
	movq	%rsi, %rdi
	movl	$59, %esi
	callq	_os_strchr
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_27
## %bb.1:
	subl	%ebx, %eax
	leaq	-184(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_base64_decode
	movq	%rax, -176(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	-184(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump
	movq	(%r13), %rcx
	leaq	-176(%rbp), %rsi
	leaq	-184(%rbp), %rdx
	movl	$1, %edi
	callq	_sha256_vector
	movl	(%r12), %edi
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	(%r13), %rdx
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump
	movq	-176(%rbp), %rax
	movq	%rax, -232(%rbp)
	movq	-184(%rbp), %rdx
	leaq	-232(%rbp), %rsi
	xorl	%edi, %edi
	callq	_d2i_PUBKEY
	movq	%rax, %r14
	movq	-176(%rbp), %rdi
	callq	_os_free
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_EVP_PKEY_id
	movl	%eax, %edi
	callq	_EVP_PKEY_type
	movq	_EVP_PKEY_EC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	leaq	-168(%rbp), %rdi
	movq	%r14, %rsi
	callq	_X509_PUBKEY_set
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.12:
	movq	-168(%rbp), %r8
	leaq	-224(%rbp), %rdi
	leaq	-216(%rbp), %rsi
	leaq	-192(%rbp), %rdx
	leaq	-208(%rbp), %rcx
	callq	_X509_PUBKEY_get0_param
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.14:
	movq	-224(%rbp), %rdx
	leaq	-160(%rbp), %rdi
	movl	$100, %esi
	xorl	%ecx, %ecx
	callq	_OBJ_obj2txt
	movl	(%r12), %edi
	cmpl	$100, %eax
	jb	LBB0_17
## %bb.15:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_16
LBB0_2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-176(%rbp), %rdi
	callq	_os_free
	jmp	LBB0_27
LBB0_7:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_27
LBB0_9:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_26
LBB0_11:
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_16
LBB0_13:
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_16
LBB0_17:
	leaq	L_.str.9(%rip), %rsi
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	(%r12), %edi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_16
LBB0_19:
	movq	-208(%rbp), %rcx
	leaq	-240(%rbp), %rdi
	leaq	-188(%rbp), %rsi
	leaq	-200(%rbp), %rdx
	callq	_X509_ALGOR_get0
	movl	-188(%rbp), %eax
	movq	_V_ASN1_OBJECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
## %bb.21:
	movq	-200(%rbp), %rbx
	leaq	-160(%rbp), %rdi
	movl	$100, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_OBJ_obj2txt
	movl	(%r12), %edi
	cmpl	$100, %eax
	jb	LBB0_23
## %bb.22:
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_16
LBB0_20:
	movl	(%r12), %edi
	leaq	L_.str.12(%rip), %rsi
LBB0_16:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_25:
	movq	-168(%rbp), %rdi
	callq	_X509_PUBKEY_free
LBB0_26:
	movq	%r14, %rdi
	callq	_EVP_PKEY_free
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.28:
	movl	%r15d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	L_.str.14(%rip), %rsi
	leaq	-160(%rbp), %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_dpp_get_curve_oid
	movl	%eax, 16(%r13)
	movl	(%r12), %edi
	testl	%eax, %eax
	je	LBB0_24
## %bb.29:
	movq	-216(%rbp), %rdx
	movl	-192(%rbp), %ecx
	leaq	L_.str.16(%rip), %rsi
	callq	_wpa_hexdump
	movq	-168(%rbp), %rdi
	callq	_X509_PUBKEY_free
	movq	%r14, 8(%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_27
LBB0_24:
	leaq	L_.str.15(%rip), %rsi
	leaq	-160(%rbp), %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_25
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: Invalid base64 encoding on URI public-key"

L_.str.1:                               ## @.str.1
	.asciz	"DPP: Base64 decoded URI public-key"

L_.str.2:                               ## @.str.2
	.asciz	"DPP: Failed to hash public key"

L_.str.3:                               ## @.str.3
	.asciz	"DPP: Public key hash"

	.comm	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
L_.str.4:                               ## @.str.4
	.asciz	"DPP: Could not parse URI public-key SubjectPublicKeyInfo"

	.comm	_EVP_PKEY_EC,8,3                ## @EVP_PKEY_EC
L_.str.5:                               ## @.str.5
	.asciz	"DPP: SubjectPublicKeyInfo does not describe an EC key"

L_.str.6:                               ## @.str.6
	.asciz	"DPP: Could not set pubkey"

L_.str.7:                               ## @.str.7
	.asciz	"DPP: Could not extract SubjectPublicKeyInfo parameters"

L_.str.8:                               ## @.str.8
	.asciz	"DPP: Could not extract SubjectPublicKeyInfo algorithm"

L_.str.9:                               ## @.str.9
	.asciz	"DPP: URI subjectPublicKey algorithm: %s"

L_.str.10:                              ## @.str.10
	.asciz	"id-ecPublicKey"

L_.str.11:                              ## @.str.11
	.asciz	"DPP: Unsupported SubjectPublicKeyInfo algorithm"

	.comm	_V_ASN1_OBJECT,4,2              ## @V_ASN1_OBJECT
L_.str.12:                              ## @.str.12
	.asciz	"DPP: SubjectPublicKeyInfo parameters did not contain an OID"

L_.str.13:                              ## @.str.13
	.asciz	"DPP: Could not extract SubjectPublicKeyInfo parameters OID"

L_.str.14:                              ## @.str.14
	.asciz	"DPP: URI subjectPublicKey parameters: %s"

L_.str.15:                              ## @.str.15
	.asciz	"DPP: Unsupported SubjectPublicKeyInfo curve: %s"

L_.str.16:                              ## @.str.16
	.asciz	"DPP: URI subjectPublicKey"

	.no_dead_strip	_dpp_parse_uri_pk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_parse_uri_pk
_dpp_parse_uri_pk:                      ; @dpp_parse_uri_pk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #64]
	mov	x0, x1
	mov	w1, #59
	bl	_os_strchr
	cbz	x0, LBB0_23
; %bb.1:
	sub	w1, w0, w20
	add	x2, sp, #80
	mov	x0, x20
	bl	_base64_decode
	mov	x2, x0
	str	x0, [sp, #88]
Lloh3:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	x2, LBB0_9
; %bb.2:
	ldr	w3, [sp, #80]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump
	ldr	x3, [x19]
	add	x1, sp, #88
	add	x2, sp, #80
	mov	w0, #1
	bl	_sha256_vector
	mov	x8, x0
	ldr	w0, [x22]
	tbnz	x8, #63, LBB0_10
; %bb.3:
	ldr	x2, [x19]
Lloh7:
	adrp	x8, _SHA256_MAC_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SHA256_MAC_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump
	ldp	x2, x8, [sp, #80]
	str	x8, [sp, #72]
	add	x1, sp, #72
	mov	x0, #0
	bl	_d2i_PUBKEY
	mov	x20, x0
	ldr	x0, [sp, #88]
	bl	_os_free
	cbz	x20, LBB0_11
; %bb.4:
	mov	x0, x20
	bl	_EVP_PKEY_id
	bl	_EVP_PKEY_type
Lloh12:
	adrp	x8, _EVP_PKEY_EC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVP_PKEY_EC@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.5:
	add	x0, sp, #64
	mov	x1, x20
	bl	_X509_PUBKEY_set
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.6:
	ldr	x4, [sp, #64]
	add	x0, sp, #56
	add	x1, sp, #48
	add	x2, sp, #44
	add	x3, sp, #32
	bl	_X509_PUBKEY_get0_param
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.7:
	ldr	x2, [sp, #56]
	add	x21, sp, #100
	add	x0, sp, #100
	mov	w1, #100
	mov	w3, #0
	bl	_OBJ_obj2txt
	mov	x8, x0
	ldr	w0, [x22]
	cmp	w8, #100
	b.lo	LBB0_15
; %bb.8:
Lloh15:
	adrp	x1, l_.str.8@PAGE
Lloh16:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_21
LBB0_9:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_23
LBB0_10:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [sp, #88]
	bl	_os_free
	b	LBB0_23
LBB0_11:
	ldr	w0, [x22]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	b	LBB0_23
LBB0_12:
	ldr	w0, [x22]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	b	LBB0_22
LBB0_13:
	ldr	w0, [x22]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_21
LBB0_14:
	ldr	w0, [x22]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_21
LBB0_15:
	str	x21, [sp]
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
Lloh31:
	adrp	x1, l_.str.10@PAGE
Lloh32:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x0, sp, #100
	bl	_os_strcmp
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w0, [x22]
Lloh33:
	adrp	x1, l_.str.11@PAGE
Lloh34:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_21
LBB0_17:
	ldr	x3, [sp, #32]
	add	x0, sp, #24
	add	x1, sp, #12
	add	x2, sp, #16
	bl	_X509_ALGOR_get0
	ldr	w8, [sp, #12]
Lloh35:
	adrp	x9, _V_ASN1_OBJECT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _V_ASN1_OBJECT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.18:
	ldr	x21, [sp, #16]
	add	x23, sp, #100
	add	x0, sp, #100
	mov	w1, #100
	mov	x2, x21
	mov	w3, #0
	bl	_OBJ_obj2txt
	mov	x8, x0
	ldr	w0, [x22]
	cmp	w8, #100
	b.lo	LBB0_26
; %bb.19:
Lloh38:
	adrp	x1, l_.str.13@PAGE
Lloh39:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_21
LBB0_20:
	ldr	w0, [x22]
Lloh40:
	adrp	x1, l_.str.12@PAGE
Lloh41:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_21:
	bl	_wpa_printf
	ldr	x0, [sp, #64]
	bl	_X509_PUBKEY_free
LBB0_22:
	mov	x0, x20
	bl	_EVP_PKEY_free
LBB0_23:
	mov	w0, #-1
LBB0_24:
	ldur	x8, [x29, #-56]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.25:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_26:
	str	x23, [sp]
Lloh45:
	adrp	x1, l_.str.14@PAGE
Lloh46:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	bl	_dpp_get_curve_oid
	mov	x8, x0
	str	w0, [x19, #16]
	ldr	w0, [x22]
	cbz	w8, LBB0_28
; %bb.27:
	ldr	x2, [sp, #48]
	ldr	w3, [sp, #44]
Lloh47:
	adrp	x1, l_.str.16@PAGE
Lloh48:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_wpa_hexdump
	ldr	x0, [sp, #64]
	bl	_X509_PUBKEY_free
	mov	w0, #0
	str	x20, [x19, #8]
	b	LBB0_24
LBB0_28:
	add	x8, sp, #100
	str	x8, [sp]
Lloh49:
	adrp	x1, l_.str.15@PAGE
Lloh50:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_21
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: Invalid base64 encoding on URI public-key"

l_.str.1:                               ; @.str.1
	.asciz	"DPP: Base64 decoded URI public-key"

l_.str.2:                               ; @.str.2
	.asciz	"DPP: Failed to hash public key"

l_.str.3:                               ; @.str.3
	.asciz	"DPP: Public key hash"

	.comm	_SHA256_MAC_LEN,4,2             ; @SHA256_MAC_LEN
l_.str.4:                               ; @.str.4
	.asciz	"DPP: Could not parse URI public-key SubjectPublicKeyInfo"

	.comm	_EVP_PKEY_EC,8,3                ; @EVP_PKEY_EC
l_.str.5:                               ; @.str.5
	.asciz	"DPP: SubjectPublicKeyInfo does not describe an EC key"

l_.str.6:                               ; @.str.6
	.asciz	"DPP: Could not set pubkey"

l_.str.7:                               ; @.str.7
	.asciz	"DPP: Could not extract SubjectPublicKeyInfo parameters"

l_.str.8:                               ; @.str.8
	.asciz	"DPP: Could not extract SubjectPublicKeyInfo algorithm"

l_.str.9:                               ; @.str.9
	.asciz	"DPP: URI subjectPublicKey algorithm: %s"

l_.str.10:                              ; @.str.10
	.asciz	"id-ecPublicKey"

l_.str.11:                              ; @.str.11
	.asciz	"DPP: Unsupported SubjectPublicKeyInfo algorithm"

	.comm	_V_ASN1_OBJECT,4,2              ; @V_ASN1_OBJECT
l_.str.12:                              ; @.str.12
	.asciz	"DPP: SubjectPublicKeyInfo parameters did not contain an OID"

l_.str.13:                              ; @.str.13
	.asciz	"DPP: Could not extract SubjectPublicKeyInfo parameters OID"

l_.str.14:                              ; @.str.14
	.asciz	"DPP: URI subjectPublicKey parameters: %s"

l_.str.15:                              ; @.str.15
	.asciz	"DPP: Unsupported SubjectPublicKeyInfo curve: %s"

l_.str.16:                              ; @.str.16
	.asciz	"DPP: URI subjectPublicKey"

	.no_dead_strip	_dpp_parse_uri_pk
.subsections_via_symbols
