	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_parse_cred_dpp
_dpp_parse_cred_dpp:                    ## @dpp_parse_cred_dpp
	.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, %rbx
	movq	%rdi, %r15
	movq	$0, -64(%rbp)
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_os_memset
	movl	4(%r15), %edi
	callq	_dpp_akm_psk
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	4(%r15), %edi
	callq	_dpp_akm_sae
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dpp_parse_cred_legacy
	testq	%rax, %rax
	js	LBB0_3
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rcx
	movq	_JSON_OBJECT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.8:
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	callq	_dpp_parse_jwk
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r14
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	callq	_dpp_debug_print_key
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_JSON_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.14:
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_os_strlen
	leaq	L_.str.8(%rip), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump_ascii
	movq	8(%rbx), %r13
	movq	%r13, %rdi
	movl	$34, %esi
	callq	_os_strchr
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:
	movl	(%r12), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_13
LBB0_6:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	callq	_wpa_printf
	movl	$-1, %ebx
	xorl	%r14d, %r14d
LBB0_21:
	movq	%r14, %rdi
	callq	_EVP_PKEY_free
	movl	-48(%rbp), %edi
	callq	_os_free
	jmp	LBB0_22
LBB0_3:
	movl	$-1, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
LBB0_13:
	callq	_wpa_printf
	movl	$-1, %ebx
	jmp	LBB0_21
LBB0_9:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_7
LBB0_17:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_dpp_process_signed_connector
	movq	_DPP_STATUS_OK@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.18:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_dpp_parse_connector
	testq	%rax, %rax
	js	LBB0_19
## %bb.20:
	movl	(%r15), %edi
	callq	_os_free
	movq	%r13, %rdi
	callq	_os_strdup
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dpp_copy_csign
	movq	%r15, %rdi
	callq	_dpp_copy_netaccesskey
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_19:
	movl	(%r12), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: Legacy credential included in Connector credential"

L_.str.1:                               ## @.str.1
	.asciz	"DPP: Connector credential"

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

	.comm	_JSON_OBJECT,8,3                ## @JSON_OBJECT
L_.str.3:                               ## @.str.3
	.asciz	"DPP: No csign JWK in JSON"

L_.str.4:                               ## @.str.4
	.asciz	"DPP: Failed to parse csign JWK"

L_.str.5:                               ## @.str.5
	.asciz	"DPP: Received C-sign-key"

L_.str.6:                               ## @.str.6
	.asciz	"signedConnector"

	.comm	_JSON_STRING,8,3                ## @JSON_STRING
L_.str.7:                               ## @.str.7
	.asciz	"DPP: No signedConnector string found"

L_.str.8:                               ## @.str.8
	.asciz	"DPP: signedConnector"

L_.str.9:                               ## @.str.9
	.asciz	"DPP: Unexpected character in signedConnector"

	.comm	_DPP_STATUS_OK,8,3              ## @DPP_STATUS_OK
L_.str.10:                              ## @.str.10
	.asciz	"DPP: Failed to parse connector"

	.no_dead_strip	_dpp_parse_cred_dpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_parse_cred_dpp
_dpp_parse_cred_dpp:                    ; @dpp_parse_cred_dpp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	str	xzr, [sp]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_os_memset
	ldr	w0, [x19, #4]
	bl	_dpp_akm_psk
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_dpp_akm_sae
	cbz	x0, LBB0_3
LBB0_2:
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x21
	bl	_dpp_parse_cred_legacy
	tbnz	x0, #63, LBB0_12
LBB0_3:
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_json_get_member
	cbz	x0, LBB0_11
; %bb.4:
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _JSON_OBJECT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _JSON_OBJECT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	mov	x1, sp
	bl	_dpp_parse_jwk
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.6:
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_dpp_debug_print_key
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_json_get_member
	cbz	x0, LBB0_13
; %bb.7:
	mov	x21, x0
	ldr	x8, [x0]
Lloh15:
	adrp	x9, _JSON_STRING@GOTPAGE
Lloh16:
	ldr	x9, [x9, _JSON_STRING@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
	ldr	w22, [x24]
	ldr	x23, [x21, #8]
	mov	x0, x23
	bl	_os_strlen
	mov	x3, x0
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_wpa_hexdump_ascii
	ldr	x21, [x21, #8]
	mov	x0, x21
	mov	w1, #34
	bl	_os_strchr
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	w1, #10
	bl	_os_strchr
	cbz	x0, LBB0_19
LBB0_10:
	ldr	w0, [x24]
Lloh20:
	adrp	x1, l_.str.9@PAGE
Lloh21:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_15
LBB0_11:
	ldr	w0, [x24]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	x20, #0
	b	LBB0_16
LBB0_12:
	mov	w19, #-1
	b	LBB0_18
LBB0_13:
	ldr	w0, [x24]
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldr	w0, [x24]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	bl	_wpa_printf
LBB0_16:
	mov	w19, #-1
LBB0_17:
	mov	x0, x20
	bl	_EVP_PKEY_free
	ldr	w0, [sp, #8]
	bl	_os_free
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x21
	bl	_dpp_process_signed_connector
Lloh28:
	adrp	x8, _DPP_STATUS_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DPP_STATUS_OK@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.20:
	ldp	w1, w2, [sp, #8]
	mov	x0, x19
	bl	_dpp_parse_connector
	tbnz	x0, #63, LBB0_22
; %bb.21:
	ldr	w0, [x19]
	bl	_os_free
	mov	x0, x21
	bl	_os_strdup
	str	w0, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_dpp_copy_csign
	mov	x0, x19
	bl	_dpp_copy_netaccesskey
	mov	w19, #0
	b	LBB0_17
LBB0_22:
	ldr	w0, [x24]
Lloh31:
	adrp	x1, l_.str.10@PAGE
Lloh32:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: Legacy credential included in Connector credential"

l_.str.1:                               ; @.str.1
	.asciz	"DPP: Connector credential"

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

	.comm	_JSON_OBJECT,8,3                ; @JSON_OBJECT
l_.str.3:                               ; @.str.3
	.asciz	"DPP: No csign JWK in JSON"

l_.str.4:                               ; @.str.4
	.asciz	"DPP: Failed to parse csign JWK"

l_.str.5:                               ; @.str.5
	.asciz	"DPP: Received C-sign-key"

l_.str.6:                               ; @.str.6
	.asciz	"signedConnector"

	.comm	_JSON_STRING,8,3                ; @JSON_STRING
l_.str.7:                               ; @.str.7
	.asciz	"DPP: No signedConnector string found"

l_.str.8:                               ; @.str.8
	.asciz	"DPP: signedConnector"

l_.str.9:                               ; @.str.9
	.asciz	"DPP: Unexpected character in signedConnector"

	.comm	_DPP_STATUS_OK,8,3              ; @DPP_STATUS_OK
l_.str.10:                              ; @.str.10
	.asciz	"DPP: Failed to parse connector"

	.no_dead_strip	_dpp_parse_cred_dpp
.subsections_via_symbols
